1
0
mirror of https://github.com/bitwarden/browser.git synced 2024-12-02 13:23:29 +01:00
bitwarden-browser/libs/components/src
Shane Melton 0afbd90a2d
[AC-1192] Create new device approvals component for TDE (#5548)
* Add feature flag route guard and tests

* Add additional test for not showing error toast

* Strengthen error toast test with message check

* Cleanup leaking test state in platformService mock

* Negate if statement to reduce nesting

* Update return type to CanActivateFn

* Use null check instead of undefined

* Introduce interface to support different feature flag types

- Switch to observable pattern to access serverConfig$ subject
- Add catchError handler to allow navigation in case of unexpected exception
- Add additional tests

* Add additional test for missing feature flag

* Remove subscription to the serverConfig observable

Introduce type checking logic to determine the appropriately typed flag getter to use in configService

* [AC-1192] Create initial device approvals component and route

* [AC-1192] Introduce appIfFeature directive for conditionally rendering content based on feature flags

* [AC-1192] Add DeviceApprovals link in Settings navigation

* Remove align middle from bitCell directive

The bitRow directive supports alignment for the entire row and should be used instead

* [AC-1192] Add initial device approvals page template

* [AC-1192] Introduce fingerprint pipe

* [AC-1192] Create core organization module in bitwarden_license directory

* [AC-1192] Add support for new Devices icon to no items component

- Add new Devices svg
- Make icon property of bit-no-items an Input property

* [AC-1192] Introduce organization-auth-request.service.ts with related views/responses

* [AC-1192] Display pending requests on device approvals page

- Add support for loading spinner and no items component

* [AC-1192] Add method to bulk deny auth requests

* [AC-1192] Add functionality to deny requests from device approvals page

* [AC-1192] Add organizationUserId to pending-auth-request.view.ts

* [AC-1192] Add approvePendingRequest method to organization-auth-request.service.ts

* [AC-1192] Add logic to approve a device approval request

* [AC-1192] Change bitMenuItem directive into a component and implement ButtonLikeAbstraction

Update the bitMenuItem to be a component and implement the ButtonLikeAbstraction to support the bitAction directive.

* [AC-1192] Update menu items to use bitActions

* [AC-1192] Update device approvals description copy

* [AC-1192] Revert changes to bitMenuItem directive

* [AC-1192] Rework menus to use click handlers

- Wrap async actions to catch/log any exceptions, set an in-progress state, and refresh after completion
- Show a loading spinner in the header when an action is in progress
- Disable all menu items when an action is in progress

* [AC-1192] Move Devices icon into admin-console web directory

* [AC-1192] bit-no-items formatting

* [AC-1192] Update appIfFeature directive to hide content on error

* [AC-1192] Remove deprecated providedIn for OrganizationAuthRequestService

* [AC-1192] Rename key to encryptedUserKey to be more descriptive

* [AC-1192] Cleanup loading/spinner logic on data refresh

* [AC-1192] Set middle as the default bitRow.alignContent

* [AC-1192] Change default alignRowContent for table story

* [AC-1192] Rename userId to fingerprintMaterial to be more general

The fingerprint material is not always the userId so this name is more general

* [AC-1192] Remove redundant alignContent attribute

* [AC-1192] Move fingerprint pipe to platform
2023-06-15 14:53:21 -07:00
..
app Move to libs 2022-06-03 16:24:40 +02:00
async-actions Platform/pm 19/platform team file moves (#5460) 2023-06-06 15:34:53 -05:00
avatar Platform/pm 19/platform team file moves (#5460) 2023-06-06 15:34:53 -05:00
badge [AC-1088] Truncating collection names on Groups table (#5236) 2023-06-12 10:56:03 +01:00
badge-list [AC-1088] Truncating collection names on Groups table (#5236) 2023-06-12 10:56:03 +01:00
banner Platform/pm 19/platform team file moves (#5460) 2023-06-06 15:34:53 -05:00
breadcrumbs [PM-2276] Upgrade Storybook to v7 (#5258) 2023-05-26 15:58:06 +02:00
button [PM-2276] Upgrade Storybook to v7 (#5258) 2023-05-26 15:58:06 +02:00
callout Platform/pm 19/platform team file moves (#5460) 2023-06-06 15:34:53 -05:00
checkbox Platform/pm 19/platform team file moves (#5460) 2023-06-06 15:34:53 -05:00
color-password Platform/pm 19/platform team file moves (#5460) 2023-06-06 15:34:53 -05:00
dialog Platform/pm 19/platform team file moves (#5460) 2023-06-06 15:34:53 -05:00
form Platform/pm 19/platform team file moves (#5460) 2023-06-06 15:34:53 -05:00
form-control Platform/pm 19/platform team file moves (#5460) 2023-06-06 15:34:53 -05:00
form-field Platform/pm 19/platform team file moves (#5460) 2023-06-06 15:34:53 -05:00
icon [PM-2276] Upgrade Storybook to v7 (#5258) 2023-05-26 15:58:06 +02:00
icon-button [PM-2276] Upgrade Storybook to v7 (#5258) 2023-05-26 15:58:06 +02:00
input [PM-2276] Upgrade Storybook to v7 (#5258) 2023-05-26 15:58:06 +02:00
link [PM-2276] Upgrade Storybook to v7 (#5258) 2023-05-26 15:58:06 +02:00
menu [PM-2276] Upgrade Storybook to v7 (#5258) 2023-05-26 15:58:06 +02:00
multi-select Platform/pm 19/platform team file moves (#5460) 2023-06-06 15:34:53 -05:00
navigation Platform/pm 19/platform team file moves (#5460) 2023-06-06 15:34:53 -05:00
no-items [AC-1192] Create new device approvals component for TDE (#5548) 2023-06-15 14:53:21 -07:00
progress [PM-2276] Upgrade Storybook to v7 (#5258) 2023-05-26 15:58:06 +02:00
radio-button Platform/pm 19/platform team file moves (#5460) 2023-06-06 15:34:53 -05:00
search Platform/pm 19/platform team file moves (#5460) 2023-06-06 15:34:53 -05:00
select Platform/pm 19/platform team file moves (#5460) 2023-06-06 15:34:53 -05:00
shared Platform/pm 19/platform team file moves (#5460) 2023-06-06 15:34:53 -05:00
stories [PM-2238] Add nord and solarize themes (#5491) 2023-06-06 09:35:13 +02:00
table [AC-1192] Create new device approvals component for TDE (#5548) 2023-06-15 14:53:21 -07:00
tabs [PM-2276] Upgrade Storybook to v7 (#5258) 2023-05-26 15:58:06 +02:00
toggle-group [PM-2276] Upgrade Storybook to v7 (#5258) 2023-05-26 15:58:06 +02:00
typography [PM-2276] Upgrade Storybook to v7 (#5258) 2023-05-26 15:58:06 +02:00
utils Platform/pm 19/platform team file moves (#5460) 2023-06-06 15:34:53 -05:00
favicon.ico Move to libs 2022-06-03 16:24:40 +02:00
index.html Move to libs 2022-06-03 16:24:40 +02:00
index.ts [PM-2276] Upgrade Storybook to v7 (#5258) 2023-05-26 15:58:06 +02:00
main.ts Move to libs 2022-06-03 16:24:40 +02:00
polyfills.ts Move to libs 2022-06-03 16:24:40 +02:00
styles.css Move to libs 2022-06-03 16:24:40 +02:00
styles.scss [AC-1011] Admin Console / Billing code ownership (#4973) 2023-03-22 10:03:50 -05:00
test.setup.ts PS-813 Add memory storage to state service (#2892) 2022-06-27 12:38:12 -05:00
tw-theme.css [PM-2238] Add nord and solarize themes (#5491) 2023-06-06 09:35:13 +02:00
variables.scss [PM-1512] Upgrade prettier (#5028) 2023-03-21 11:28:15 +01:00