1
0
mirror of https://github.com/bitwarden/browser.git synced 2024-11-25 12:15:18 +01:00
bitwarden-browser/apps/web/src
Rui Tomé 8e7a215597
[AC-1712] Add functionality to approve all device approval requests (#9251)
* [AC-2302] Move organization-auth-request.service to bit-common folder

* [AC-2302] Rename organization-auth-request.service to organization-auth-request-api.service

* [AC-2302] Move logic from component to organization-auth-request.service

* [AC-2302] Fix import path in OrganizationAuthRequestService

* [AC-2302] Move imports to OrganizationsModule and delete unused CoreOrganizationModule

* [AC-2302] Move the call to get userResetPasswordDetails into OrganizationAuthRequestService

* [AC-2302] Remove @Injectable() and manually configure dependencies

* [AC-2302] Add OrganizationAuthRequestService unit tests first draft

* [AC-2302] Refactor device-approvals.component.ts to remove unused imports

* [AC-2302] Set up jest on bit-common and add unit tests for OrganizationAuthRequestService

* [AC-2302] Add bit-common to jest.config.js

* [AC-2302] Update organizations.module.ts to include safeProviders declared in variable

* [AC-2302] Remove services and views folders from bit-common

* [AC-2302] Define path mapping

* Adjust an import path

The import path of `PendingAuthRequestView` in
`OrganizationAuthRequestApiService` was pointing to the wrong place. I
think this file was just recently moved, and the import didn't get
updated.

* Get paths working

* Fix import

* Update jest config to use ts-jest adn jsdom

* Copy-paste path mappings from bit-web

* Remove unnecessary test setup file

* Undo unnecessary change

* Fix remaining path mappings

* Remove Bitwarden License mapping from OSS code

* Fix bit-web so it uses its own tsconfig

* Fix import path

* Remove web-bit entrypoint from OSS tsconfig

* Make DeviceApprovalsComponent standalone

* Remove organization-auth-request-api.service export

* Add BulkApproveAuthRequestsRequest class for bulk approval of authentication requests

* Add api call for device bulk approvals

* Add bulk device approval to OrganizationAuthRequestService

* Add unit tests for bulk device approval method

* Remove OrganizationsRoutingModule from DeviceApprovalsComponent imports

* Remove CoreOrganizationModule from OrganizationsModule imports

* Remove NoItemsModule from OrganizationsModule imports

* Get keys for each item to approve

* Update approvePendingRequests unit test

* Use ApiService from JslibServicesModule

* Update providers in device-approvals.component.ts

* Add method to retrieve reset password details for multiple organization users

* Add organizationUserId property to OrganizationUserResetPasswordDetailsResponse class

* Use method to retrieve reset password details for multiple organization users

* Rename ResetPasswordDetails to AccountRecoveryDetails

* Update OrganizationAuthRequestService to use getManyOrganizationUserAccountRecoveryDetails

* Add functionality to approve all device approval requests

* Update AdminAuthRequestUpdateWithIdRequest property names and imports

* Refactor bulk approval functionality in organization auth requests

* Put the 'Approve All' button behind a feature flag.

* Update feature flag key

Co-authored-by: Addison Beck <github@addisonbeck.com>

* Rename update request AdminAuthRequestUpdateWithIdRequest to OrganizationAuthRequestUpdateRequest

* Update organization-auth-request.service.spec.ts to use bulkUpdatePendingRequests method

---------

Co-authored-by: Addison Beck <hello@addisonbeck.com>
Co-authored-by: Thomas Rittson <trittson@bitwarden.com>
Co-authored-by: Addison Beck <github@addisonbeck.com>
2024-05-27 14:20:44 +01:00
..
404 [deps] Autofill: Update prettier to v3 (#7014) 2023-11-29 16:15:20 -05:00
app Use User Key Definitions for user-scoped data (#9348) 2024-05-27 08:12:28 -04:00
connectors only show hand off message on desktop (#7965) 2024-02-15 12:07:22 -05:00
images [SM-956] Secret Manager: Integrations Page (#8701) 2024-04-18 15:24:16 -04:00
locales [AC-1712] Add functionality to approve all device approval requests (#9251) 2024-05-27 14:20:44 +01:00
scss [CL-18] toast component and service (#6490) 2024-04-18 13:23:35 -04:00
utils [SM-1031] Remove SecretsManager & showDDG compile flags (#8610) 2024-04-08 17:46:24 +02:00
.nojekyll Move web to apps/web and bitwarden_license/bit-web 2022-06-02 11:55:37 +02:00
404.html Update all instances of copyright with 2023 to 2024 (#7396) 2023-12-29 15:28:14 +00:00
app-id.json Move web to apps/web and bitwarden_license/bit-web 2022-06-02 11:55:37 +02:00
browserconfig.xml Move web to apps/web and bitwarden_license/bit-web 2022-06-02 11:55:37 +02:00
favicon.ico Move web to apps/web and bitwarden_license/bit-web 2022-06-02 11:55:37 +02:00
global.d.ts Move web to apps/web and bitwarden_license/bit-web 2022-06-02 11:55:37 +02:00
index.html [deps] Autofill: Update prettier to v3 (#7014) 2023-11-29 16:15:20 -05:00
main.ts Add eslint rule no-floating-promises (#7789) 2024-02-02 15:13:37 -05:00
manifest.json Move web to apps/web and bitwarden_license/bit-web 2022-06-02 11:55:37 +02:00
polyfills.ts [BEEEP] [PM-4043] Remove date-input-polyfill (#6372) 2023-09-22 10:33:46 +00:00
theme.ts [PM-5539] Migrate ThemingService (#8219) 2024-03-13 15:25:39 +00:00
translation-constants.ts Update supported languages for web (#8382) 2024-03-21 12:26:59 -04:00
version.json Move web to apps/web and bitwarden_license/bit-web 2022-06-02 11:55:37 +02:00