stable

Clone or download

Read-only

Sidebar component can be collapsed

In order to give consumers of the component control on how the sidebar behaves the information is given to the component with the 'collapsed' attribute. To update the attribute (as recommended by the best practices when writing a custom element) when the user clicks on the button we have been forced to rewrap Vue API. Since it is not possible for the component to know how to interact with the Tuleap API, updating the user preference will be under the responsability of the consumer. Part of request #23465: Publish a project sidebar custom element Change-Id: Ibaaf6878d1614b010f9185fe58b1f4a7ef8fc647

Modified Files

Name
M .eslintrc.js +1 −0 Go to diff View file
M src/scripts/lib/project-sidebar/dev-loader.ts +13 −1 Go to diff View file
M src/scripts/lib/project-sidebar/src/ProjectSidebar.vue +26 −11 Go to diff View file
A src/scripts/lib/project-sidebar/src/SidebarCollapseButton.test.ts +69 −0 Go to diff View file
A src/scripts/lib/project-sidebar/src/SidebarCollapseButton.vue +54 −0 Go to diff View file
M src/scripts/lib/project-sidebar/src/SidebarLogo.test.ts +7 −1 Go to diff View file
M src/scripts/lib/project-sidebar/src/SidebarLogo.vue +8 −3 Go to diff View file
M src/scripts/lib/project-sidebar/src/__snapshots__/ProjectSidebar.test.ts.snap +20 −13 Go to diff View file
M src/scripts/lib/project-sidebar/src/configuration.ts +7 −1 Go to diff View file
M src/scripts/lib/project-sidebar/src/main.ts +32 −3 Go to diff View file
M src/scripts/lib/project-sidebar/src/project-sidebar-example-config.ts +3 −0 Go to diff View file
M src/themes/BurningParrot/css/includes/_logo-url.scss +1 −0 Go to diff View file
M src/themes/BurningParrot/css/includes/sidebar/_sidebar-collapsed.scss +1 −2 Go to diff View file