Closed addisonbeck closed 2 years ago
jslib will need to be updated with the linked PR before this build will function correctly again
@eliykat Send issues are resolved here: [bug] Adjusted Send filters to match new HTML structure for vault fil…
Folder edit button issues are addressed here: [bug] Fixed color and location for several filter buttons
as i see this touches on the "Edit" buttons for folders, just going to mention bitwarden/clients#2567
Thanks for the note @patrickhlauke. I'm happy to say this will resolve bitwarden/clients#2567. I broke out all those nested controls into individual <button>
s. Both edit buttons and toggle buttons are tab friendly with these changes, and toggle buttons are all using aria-expanded
and aria-controls
.
@addisonbeck perfect, thanks
https://bitwarden.atlassian.net/browse/SG-80?atlOrigin=eyJpIjoiNWU1OWRhMDYyMTBmNDdjNWFlMDFlOTMxNGEwMTkxNTMiLCJwIjoiaiJ9
Type of change
Objective
The product initiative here is to implement the filters section of the end user vault refresh epic. This includes:
.active
vault filter style from a black bar across the item to a highlight text and bold font weightThere are some other initiatives in here, mostly around refactoring. These include:
Service
from our route guards. This work was mostly done in jslib and is being carried into desktop with this PR.GroupingsComponent
into a module with several smaller components. This is also mostly done in jslib, and is being implemented in this PR.SharedModule
as an effort to clean upAppModule
, and to reuse shared modules in other modules. This is a pretty standard practice in Angular applications.scss
from the left nav into a separate file. This was mostly a necessity in order to make sense of what was going on with the styles during development, but is an extra refactor none the less.I am not planning to add any more refactoring initiatives. I'm happy to discuss them, but this is already a long list of changes and I need to get to other tickets.
Code changes
Service
suffix fromLoginGuard
and relocated it to aguards
folderGroupingsComponent
into aVaultFiltersModule
with components for each filter typeOrganizationFilterComponent
<a>
tag with aclick
event that performed the filter, but that<a>
tag could have any number of<span>
or<i>
tags inside of it that had their own click events. I changed all of this so every clickable element is a<button>
, and added the attributes requested by design..active
style for selected nodes as requested.Screenshots
! I noticed that these screenshots use inconsistent casing for "All Vaults". This is fixed by [bug] Apply text-transform: uppercase to All Vaults filter header. Please don't make me take three new screenshots 😅
Before you submit
npm run lint
) (required)