mirror of
https://github.com/bitwarden/clients.git
synced 2026-07-21 21:17:06 +08:00
* 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. |
||
|---|---|---|
| .. | ||
| .vscode | ||
| config | ||
| scripts | ||
| src | ||
| .dockerignore | ||
| .gitignore | ||
| CLAUDE.md | ||
| config.js | ||
| crowdin.yml | ||
| dev-server.shared.pem | ||
| Dockerfile | ||
| entrypoint.sh | ||
| jest.config.js | ||
| package.json | ||
| postcss.config.js | ||
| project.json | ||
| README.md | ||
| tailwind.config.js | ||
| test.setup.ts | ||
| tsconfig.build.json | ||
| tsconfig.json | ||
| tsconfig.spec.json | ||
| webpack.base.js | ||
| webpack.config.js | ||
Bitwarden Web App
The Bitwarden web project is an Angular application that powers the web vault (https://vault.bitwarden.com/).
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.