-
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
[AC-2436] Show unassigned items banner in web #8655
[AC-2436] Show unassigned items banner in web #8655
Conversation
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #8655 +/- ##
==========================================
- Coverage 27.22% 27.21% -0.01%
==========================================
Files 2337 2338 +1
Lines 68114 68217 +103
Branches 12733 12738 +5
==========================================
+ Hits 18543 18567 +24
- Misses 48177 48255 +78
- Partials 1394 1395 +1 ☔ View full report in Codecov by Sentry. |
New Issues
|
…-unassigned-ciphers
Is it intentional that we are completely replacing the "new web layout" banner? I would have thought we would keep that one and add the unassigned items banner below/above. |
@shane-melton yes, that's intentional. My understanding is that it was time for that banner to come down anyway. |
Pull request was closed
* Boostrap basic banner, show for all admins * Remove UI banner, fix method calls * Invert showBanner -> hideBanner * Add api call * Minor tweaks and wording * Change to active user state * Add tests * Fix mixed up names * Simplify logic * Add feature flag * Do not clear on logout * Update apps/web/src/locales/en/messages.json --------- Co-authored-by: Addison Beck <[email protected]> (cherry picked from commit be36298)
* Boostrap basic banner, show for all admins * Remove UI banner, fix method calls * Invert showBanner -> hideBanner * Add api call * Minor tweaks and wording * Change to active user state * Add tests * Fix mixed up names * Simplify logic * Add feature flag * Do not clear on logout * Update apps/web/src/locales/en/messages.json --------- Co-authored-by: Addison Beck <[email protected]> (cherry picked from commit be36298)
Type of change
Objective
Show a banner re: unassigned organization items if the user is an admin or owner of an org that has unassigned items.
Server PR: bitwarden/server#3967
Code changes
unassigned-items-banner.service.ts
This does the main work. It uses a single piece of state,
SHOW_BANNER_KEY
, to manage the banner:null
-> the banner has not been shown to the user yet, check with the server whether we need to display it. This then updates the value which will trigger another run through the subscribe callbacktrue
-> show the bannerfalse
-> do not show the banner (because it has been dismissed or the server indicated it's not required)Note that this is user state (because its value is computed per user) that is not cleared on logout (because we don't want to show them the banner again later). I'm checking with Platform Team that this is OK, because at the moment we don't have any way of looking this up later to clear it after the user has logged out.
Aside from this, it follows the same approach as
web-layout-migration-banner.service.ts
Other changes
Screenshots
Before you submit