-
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
[EC-14] Part II: Add Collection Rows to Vault List #3875
[EC-14] Part II: Add Collection Rows to Vault List #3875
Conversation
…back into Vault Filter component. Remove VaultService
- the subscription gives a callback for when we finish a sync - by awaiting the sync before we weren't using the callback to refresh
- we want to avoid async subscriptions
- added takeUntil - use combineLatest
- remove nested subscriptions - use takeUntil
|
||
import { ServiceUtils } from "./serviceUtils"; | ||
|
||
describe("serviceUtils", () => { |
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.
These tests have previously been reviewed in #4092
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.
In general I think this PR looks good to go, comments are mostly non-blocking and can be ignored. Otherwise some nitpicks and a question for design regarding the full-width layout
...web/src/app/organizations/shared/components/collection-dialog/collection-dialog.component.ts
Show resolved
Hide resolved
apps/web/src/app/vault/bulk-action-dialogs/bulk-delete-dialog/bulk-delete-dialog.component.html
Show resolved
Hide resolved
apps/web/src/app/vault/bulk-action-dialogs/bulk-move-dialog/bulk-move-dialog.component.ts
Outdated
Show resolved
Hide resolved
<input | ||
bitInput | ||
type="checkbox" | ||
[(ngModel)]="c.checked" |
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.
thought(non-blocking): It feels like we should try to use reactive forms here as well, however that would probably require FormArray
which introduces a lot of complexity. @shane-melton you dealt with this in you access selector, what's your take?
{{ col.node.name }} | ||
</button> | ||
</td> | ||
<td bitCell class="tw-w-72" (click)="selectRow(col)"> |
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.
question: How does this work with full width layout? How is it supposed to work?
Should we use percentage widths for the columns sizes in the vault ciphers list? @bitwarden/dept-design
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.
Yes percentage widths makes sense to me. I think that is how we have the component library tables.
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.
Removed the hardcoded values and replaced with percentages in 1281e3f
One thing to note is that this will cause the table columns to change width based on whats visible. The only way to fix this is would be to add table-layout:fixed
to our component. I think thats outside of the scope of this PR but is something we should consider moving forward to VVR.
- CanViewAssignedCollections doesn't include CanViewAllCollections - CanViewAssignedCollections does include IsManager
- users with custom admin permissions should be able to edit as well
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.
Looks good!
- renamed api call
Type of change
Objective
This PR is for the second half of EC-14, more specifically:
This PR is a follow up to #3440, where we refactored the vault filter extensively to make the collection rows possible. There are some minor UI changes in that PR that I will not repeat here, might be worth a look.
This PR has a server dependency bitwarden/server#2360
Overview of features added:
Known issues:
Access and Edit Info added once EC-73 is finishedCollections are not currently searchable, they will be hidden once a search is initiatedCode changes
The main technical ideas include:
selectedCollectionNode.children
from thevault-filter.model
to show the Collection Rows in the vault. This allows me to navigate easily in the vault list by setting theselectedCollectionNode
to whatever child was selected.Screenshots
End User Vault:
Org Admin Vault:
Before you submit