-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
[CL-499][PM-14020] compact mode #11796
Conversation
Codecov ReportAttention: Patch coverage is
✅ All tests successful. No failed tests found. Additional details and impacted files@@ Coverage Diff @@
## main #11796 +/- ##
==========================================
- Coverage 33.48% 33.48% -0.01%
==========================================
Files 2846 2848 +2
Lines 89186 89225 +39
Branches 17000 17002 +2
==========================================
+ Hits 29864 29873 +9
- Misses 56969 56999 +30
Partials 2353 2353 ☔ View full report in Codecov by Sentry. 🚨 Try these New Features:
|
Should be fixed with 9f05381 |
This comment was marked as off-topic.
This comment was marked as off-topic.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
✅ Verified spacing and border-radius on bit-list and bit-list groups is expected
✅ Verified spacing is reduced for header and footer elements show as expected
✅ Verified footer elements are now aligned-center
✅ Known limitation of compact mode: when macOS has only show scrollbar "when scrolling" the scrollbar may overlap slightly with the bit-item content. This is acceptable as we are unable to adjust this with how the styling is currently handled.
⛔️ Unable to verify is navigation footer has reduced padding as shown here in figma
I just remembered that we have some hardcoded heights in px for virtual scrolling. We'll probably need compact mode versions of that, right? Otherwise it won't work in virtual scroll? |
Yes. Great call out. I need to think about the best way to handle that. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
✅ bit-item-group doesn't have the extra 6px of space at the end of the list in either modes that was previously observed
✅ bit-item spacing updated + no spacing exists between list items and last item retains the bottom border
✅ bit-item has a min-height that matches button height for instances that only have 1 line of text
✅ bit-items instances in the extension previously observed to have a missing top border radius now show the proper radius
✅ extension layout now handles search slot padding allowing it to be updated in compact mode. Verified padding is expected in compact mode on Vault and Send pages
✅ Verified no unexpected bottom padding on Vault virtual scroll container when searching or filtering
✅ Compact mode setting appears on Appearance page and includes a beta badge. Setting persists when user closes the extension
❓ Main navigation padding still matches the default padding. Ideally we would drop this top padding by about 4px to more closely match the height of the footer with buttons (view/edit pages). That said, I missed this in my last list of feedback so I'm ok with us moving this to followup work so we can move the feature to QA
@danielleflinn Oops, added here: 1296019 Screen.Recording.2024-11-13.at.9.01.49.PM.mov |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Vault changes look good!
1296019
to
adbfe0c
Compare
Sorry, I borked the commit history with a bad rebase after merging the feature branch. The above commits reflect what was already reviewed and approved by all code owners except Tools. The below commits are new (DS only). |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
✅ Verified page header and footer spacing in default mode was updated to match requirements
✅ Verified compact mode card, form-field, and sections, now have decreased padding
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Approving for tools
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thoughts/q's but looking really good!
3d87add
🎟️ Tracking
https://bitwarden.atlassian.net/browse/CL-499
https://bitwarden.atlassian.net/browse/PM-14020
📔 Objective
Adds a global compact mode setting to the DS for users who prefer a more information-dense UI. See "Compact Mode" in Storybook.
bit-compact:
Tailwind variant andCompactModeService
to hook into compact mode in CSS and TS, respectively.PopupLayoutComponent
now owns the padding for theabove-scroll-area
slotvault-items
virtual scroll height to account for compact mode.ItemHeight
constant from the DS to Vault. We don't have a good way to guarantee the height of the component at the DS level, as it is based on the content passed to it. (This whole business of manually tracking heights for virtual scroll is very annoying. We will try to improve it in the future.)Screen.Recording.2024-11-15.at.4.53.24.PM.mov
⏰ Reminders before review
🦮 Reviewer guidelines
:+1:
) or similar for great changes:memo:
) or ℹ️ (:information_source:
) for notes or general info:question:
) for questions:thinking:
) or 💭 (:thought_balloon:
) for more open inquiry that's not quite a confirmed issue and could potentially benefit from discussion:art:
) for suggestions / improvements:x:
) or:warning:
) for more significant problems or concerns needing attention:seedling:
) or ♻️ (:recycle:
) for future improvements or indications of technical debt:pick:
) for minor or nitpick changes