Skip to content

feat: bookmarks sidebar #277

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 50 commits into from
Apr 23, 2025
Merged

feat: bookmarks sidebar #277

merged 50 commits into from
Apr 23, 2025

Conversation

shelldandy
Copy link
Contributor

@shelldandy shelldandy commented Apr 10, 2025

Fixes: #253

image

Empty:

image

@shelldandy shelldandy self-assigned this Apr 10, 2025
@grafakus grafakus changed the title Chore: bookmarks sidebar feat: bookmarks sidebar Apr 10, 2025
@shelldandy shelldandy marked this pull request as ready for review April 16, 2025 20:04
@shelldandy shelldandy requested a review from a team as a code owner April 16, 2025 20:04
@@ -5,5 +5,5 @@ export default config({
reporter: [['list'], ['html', { outputFolder: '../test-reports', open: 'never' }], ['github']],
retries: 1,
forbidOnly: true,
workers: 1,
workers: 2,
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

gotta go fast, but in CI :)

@shelldandy shelldandy requested a review from yangkb09 April 16, 2025 20:47
@yangkb09
Copy link
Contributor

yangkb09 commented Apr 17, 2025

miguel this is really good!! looks like bookmarks are being stored correctly in the sidebar. my main feedback is that it seems clicking on a bookmark doesn't take me to the metric

the rest of my feedback is non-blocking nits:

  • the toast notif for successful bookmark still takes us to the old homepage (not sure if we want to do anything about this right now)
  • would be nice to have the scrollbar be visible without needing to scroll
  • the info icon on hover says "bookmarks". do we want to replace that with something else? or get rid of it
  • the current logic for truncating bookmark names was tailored to the width of the DataTrailCard. @catherineymgui do we want to change how the truncation works given the width of the sidebar is smaller than the DataTrailCards?
277.toast-notif.mov
277.scrollbar-persist.mov

image

@yangkb09
Copy link
Contributor

clicking on a bookmark now takes me to the bookmarked metric - nice!! ❤️

i noticed a few other things. since i think the MVP functionality of bookmarks has been met (ability to bookmark, click on a bookmark and see the metric), i think these things can be addressed in the future. WDYT?

  • a new filter icon is created on the top nav bar after i bookmark a metric
277.filters-on-top-after-bookmarking.mov
  • there's no "star" indicating a metric has already been bookmarked when i click into a bookmarked metric
277.clicking-on-bookmark-no-star.mov
  • bookmarks persist when i switch datasources (which may not be ideal since bookmarks are DS specific)
277.cross-DS-bookmarks.mov

yangkb09
yangkb09 previously approved these changes Apr 23, 2025
@catherineymgui
Copy link
Collaborator

This looks good! Two small nits:

  1. Could we also use the star icon to represent bookmarks in the sidebar? So it matches the star action for bookmarking
  2. Could we add more padding between the items in bookmarks? (Another 4px for example)

@NWRichmond
Copy link
Collaborator

re:

a new filter icon is created on the top nav bar after i bookmark a metric

This was my bad! Fixed by #326.

NWRichmond
NWRichmond previously approved these changes Apr 23, 2025
Copy link
Collaborator

@NWRichmond NWRichmond left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looking good!

Later, let's figure out how to remove the special navigation event handling introduced by this PR.

@shelldandy shelldandy merged commit 789421c into main Apr 23, 2025
10 checks passed
@shelldandy shelldandy deleted the chore/bookmarks-sidebar branch April 23, 2025 17:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Filters - add bookmarks
4 participants