clients/apps/web
Rui Tomé b455cb5986
[PM-24146] Remove stateProvider.activeUserId from ProviderService (#16258)
* Refactor provider service calls to include userId parameter

- Updated multiple components and services to pass userId when fetching provider data.
- Adjusted the ProviderService interface to require userId for get, get$, and getAll methods.
- Ensured consistent handling of userId across various components, enhancing data retrieval based on active user context.

* Remove deprecated type safety comments and use the getById utility for fetching providers.

* Update ProviderService methods to return undefined for non-existent providers

- Modified the return types of get$ and get methods in ProviderService to allow for undefined values, enhancing type safety.
- Adjusted the providers$ method to return only defined Provider arrays, ensuring consistent handling of provider data.

* Enhance provider permissions guard tests to include userId parameter

- Updated test cases in provider-permissions.guard.spec.ts to pass userId when calling ProviderService methods.
- Mocked AccountService to provide active account details for improved test coverage.
- Ensured consistent handling of userId across all relevant test scenarios.

* remove promise based api's from provider service, continue refactor

* cleanup observable logic

* cleanup

---------

Co-authored-by: Brandon <btreston@bitwarden.com>
2025-09-22 11:06:28 -04:00
..
.vscode [PM-8836] Move ownership of biometrics to key-management (#10818) 2024-09-30 18:14:32 +02:00
config Removing testing tabs and the learn more link (#12481) 2025-01-08 16:09:05 +01:00
scripts [deps] Autofill: Update prettier to v3 (#7014) 2023-11-29 16:15:20 -05:00
src [PM-24146] Remove stateProvider.activeUserId from ProviderService (#16258) 2025-09-22 11:06:28 -04:00
.dockerignore
.gitignore Noop notifications for dev (#6671) 2023-10-24 15:18:23 +02:00
config.js Use settings in base.json and merge config keys (#3804) 2022-10-18 12:00:40 +10:00
crowdin.yml [deps]: Update crowdin/github-action action to v2 (#15169) 2025-06-12 17:59:17 -04:00
dev-server.shared.pem
Dockerfile add shadow package, restore entrypoint functionality (#16124) 2025-08-26 08:47:19 -04:00
entrypoint.sh add shadow package, restore entrypoint functionality (#16124) 2025-08-26 08:47:19 -04:00
jest.config.js Implement and extend tsconfig.base across projects (#14554) 2025-06-02 20:38:17 +00:00
package.json Bumped client version(s) 2025-09-22 15:01:30 +00:00
postcss.config.js eslint: report unused disable directives (#13463) 2025-03-10 09:33:08 -04:00
README.md Fix some references to master (#14578) 2025-05-01 07:18:09 -07:00
tailwind.config.js [CL-573] Move all svg icons to new libs/assets (#16020) 2025-08-21 11:35:59 -05:00
test.setup.ts [PM-18599] Forbid unknown property and element in tests (#13556) 2025-02-25 14:02:19 -08:00
tsconfig.build.json [PM-22623] Remove most TS encryption code, remove service workers (#15153) 2025-07-30 15:50:00 +02:00
tsconfig.json [PM-22623] Remove most TS encryption code, remove service workers (#15153) 2025-07-30 15:50:00 +02:00
tsconfig.spec.json [CL-525] Upgrade angular to v19 (#14815) 2025-06-02 13:13:31 -04:00
webpack.config.js [PM-22271] Switch to SDK argon2 implementation, and drop other impls (#15401) 2025-07-15 11:53:58 +02:00

The Bitwarden web project is an Angular application that powers the web vault (https://vault.bitwarden.com/).

Github Workflow build on main Crowdin DockerHub gitter chat

Documentation

Please refer to the Web vault section of the Contributing Documentation for build instructions, recommended tooling, code style tips, and lots of other great information to get you started.