Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore(UVE): Dropdown selector to switch modes (#31218)
This pull request includes significant updates to the `DotEmaShellComponent` and the `DotEditorModeSelectorComponent`. The changes focus on enhancing the editor mode functionality and improving the user interface. ### Enhancements to Editor Mode Functionality: * Added a new test case to ensure `editorMode` is set to `EDIT` when an invalid mode is passed (`dot-ema-shell.component.spec.ts`). * Updated logic to set `editorMode` to `EDIT` if the provided mode is invalid and to handle `LIVE` mode appropriately (`dot-ema-shell.component.ts`). [[1]](diffhunk://#diff-677330662fea6dadc7e48fd8455ec2a6fe60d624c7ed1f01f0a3e985aacd05c6L224-R231) [[2]](diffhunk://#diff-677330662fea6dadc7e48fd8455ec2a6fe60d624c7ed1f01f0a3e985aacd05c6L238-R241) ### User Interface Improvements: * Introduced a new `DotEditorModeSelectorComponent` with a dropdown menu for selecting editor modes (`dot-editor-mode-selector.component.html`, `dot-editor-mode-selector.component.scss`, `dot-editor-mode-selector.component.ts`). [[1]](diffhunk://#diff-2051bd8ea2cdd67daf6027f806b9fca15bdac177bae11ec30365c07306c09a98R1-R21) [[2]](diffhunk://#diff-298dd2701dd031311cb7d0bafccf722ea64e0c09b5d827149e977e7e5dc1a37fR1-R28) [[3]](diffhunk://#diff-6f27ece37ce65b48ea79f5a4ffc71c4885dbb2edde6783e16d1810c42b5ae92dR1-R93) * Added a new test suite for the `DotEditorModeSelectorComponent` to ensure proper functionality and UI interactions (`dot-editor-mode-selector.component.spec.ts`). ### Toolbar Updates: * Updated the toolbar to include the new editor mode selector and adjusted the layout for `LIVE` and `PREVIEW` modes (`dot-uve-toolbar.component.html`). [[1]](diffhunk://#diff-9937556e73b051b878ba22ad1ce971a70019a617d7979b3e0bcc814801ad350bR2-R20) [[2]](diffhunk://#diff-9937556e73b051b878ba22ad1ce971a70019a617d7979b3e0bcc814801ad350bL26-R29) [[3]](diffhunk://#diff-9937556e73b051b878ba22ad1ce971a70019a617d7979b3e0bcc814801ad350bL70-L78) [[4]](diffhunk://#diff-9937556e73b051b878ba22ad1ce971a70019a617d7979b3e0bcc814801ad350bL103-L108) ### Minor Adjustments: * Changed the icon for the device selector button to maintain consistency across the UI (`dot-uve-device-selector.component.html`). * Removed an unused import from the `dot-uve-toolbar.component.spec.ts` file (`dot-uve-toolbar.component.spec.ts`).
- Loading branch information