mirror of
https://github.com/bitwarden/clients.git
synced 2026-07-04 21:05:54 +08:00
* [PM-34804] Implement policy drawer feature for editing policies * Added `openDrawer` method to `PolicyDialogComponent` and `MultiStepPolicyEditDialogComponent` to support opening dialogs in a drawer format. * Updated `edit` method in `PoliciesComponent` to conditionally use the drawer based on the `PolicyDrawers` feature flag. * Introduced `PolicyDrawers` feature flag in `feature-flag.enum.ts` to control the new drawer functionality. * Enhance policy edit dialogs with drawer support * Updated `policy-edit-dialog.component.html` and `multi-step-policy-edit-dialog.component.html` to conditionally apply full height class based on drawer state. * Modified `PolicyEditDialogComponent` to include a host binding for full height when in drawer mode. * Enhance MultiStepPolicyEditDialogComponent to support full height in drawer mode by adding a host binding for the full height class based on the dialog reference state. * Enhance PoliciesComponent to manage dialog references and ensure proper cleanup on destroy. Added drawerRef to handle drawer state and close it when the component is destroyed. * Refactor PoliciesComponent to change drawerRef from readonly to mutable, allowing for potential updates to the dialog reference during component lifecycle. * Enhance PoliciesComponent tests to support async operations and add new test for drawer functionality. Update policy-edit-dialog components to remove deprecated host bindings. Adjust layout component styles for drawer container. * Refactor layout component: Simplify drawer container markup by removing unnecessary grid styling. * Refactor PoliciesComponent: Replace drawerRef with signal for improved state management and update cleanup logic on component destruction. * Refactor policy edit dialog components: Simplify form markup by integrating dialog properties directly into the form tag and enhancing title template handling for improved readability and maintainability. * Refactor loading indicator in policy edit dialog to use @if syntax for improved readability * Refactor policy edit dialog to dynamically set title and subtitle based on current step content |
||
|---|---|---|
| .. | ||
| browser | ||
| cli | ||
| desktop | ||
| web | ||