clients/apps/web
Jared ab6858a053
[PM-38519] Add AutoConfirmPolicy V2 component and associated templates (#21828)
* Add AutoConfirmPolicy V2 component and associated templates

- Introduced AutoConfirmPolicyEditV2Component to handle the v2 experience for the auto-confirm policy, featuring a new layout and risk acceptance mechanism.
- Added HTML templates for the v2 component, including step content and footer.
- Updated AutoConfirmPolicy to reference the new v2 component.
- Created Storybook stories for both modal and drawer experiences of the auto-confirm policy.
- Enhanced tests to ensure proper rendering and functionality of the new v2 component.

This update aims to improve the user experience by clearly separating the v1 and v2 flows while maintaining shared logic where applicable.

* Enhance AutoConfirmPolicy integration in Storybook

- Added necessary providers for AutoConfirmPolicy in the policy drawer story to prevent NullInjectorError during component creation.
- Updated AutoConfirmPolicy class to explicitly type the v2 property, ensuring compatibility with the base class structure.
- Made the riskAccepted control public in AutoConfirmPolicyEditV2Component for direct test access.

These changes improve the stability and testability of the AutoConfirmPolicy components in the Storybook environment.

* Fix AutoConfirmPolicy behavior to reset switch value on risk un-acceptance

- Added a regression test to ensure that un-accepting risk after enabling the policy correctly resets the switch value to false, preventing the policy from being saved as enabled.
- Updated the AutoConfirmPolicyEditV2Component to set the switch value to false when the risk is unchecked, addressing a potential issue where a disabled FormControl could still return a true value.

These changes enhance the integrity of the policy management process by ensuring that the UI state accurately reflects the underlying data model.

* Remove redundant comments in AutoConfirmPolicyEditV2Component to streamline code readability and maintainability.
2026-07-15 11:25:36 -04:00
..
.vscode [PM-8836] Move ownership of biometrics to key-management (#10818) 2024-09-30 18:14:32 +02:00
config Change configRetrievalIntervalMs (#21143) 2026-06-09 11:34:13 -04:00
scripts [deps] Autofill: Update prettier to v3 (#7014) 2023-11-29 16:15:20 -05:00
src [PM-38519] Add AutoConfirmPolicy V2 component and associated templates (#21828) 2026-07-15 11:25:36 -04:00
.dockerignore
.gitignore Noop notifications for dev (#6671) 2023-10-24 15:18:23 +02:00
CLAUDE.md [PM-26337] Create a Claude markdown file (#16676) 2025-10-03 16:48:01 +02:00
config.js
crowdin.yml [deps]: Update crowdin/github-action action to v2 (#15169) 2025-06-12 17:59:17 -04:00
dev-server.shared.pem
Dockerfile [PM-35903] Update clients to node 24 (#20400) 2026-07-08 16:32:10 +02: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) (#21811) 2026-07-13 11:32:28 -04:00
postcss.config.js build(web): integrate nx (#16706) 2025-10-13 06:31:17 -04:00
project.json fix(nx): [PM-33529] Update web nx serve configuration names to match CLI and docs 2026-03-27 13:05:10 -04:00
README.md Remove gitter chat badges from READMEs (#19368) 2026-03-04 16:33:27 +00:00
tailwind.config.js [CL-1141] Improve tailwind config structure across apps and libs (#20102) 2026-04-28 17:09:05 -04: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-29239] Create proxy cookie redirect connector (#18476) 2026-02-03 07:08:44 -05:00
tsconfig.json [PM-29239] Create proxy cookie redirect connector (#18476) 2026-02-03 07:08:44 -05:00
tsconfig.spec.json [CL-525] Upgrade angular to v19 (#14815) 2025-06-02 13:13:31 -04:00
webpack.base.js [PM-38529] Fix virtual scroll after Angular 21 update (#21055) 2026-06-05 12:19:58 -04:00
webpack.config.js [PM-27564] Self-host configuration is not applied with nx build (#17279) 2025-11-24 16:36:23 +01:00

Bitwarden Web App

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

Github Workflow build on main Crowdin DockerHub

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.