stable

Clone or download

Read-only

Display list of projects in switch to dropdown

If user does not have any projects => empty state is displayed. Else display the list of projects according to mockup (dedicated design check is planned anyway). If user can access the software map, a link is displayed. Filter will come in a dedicated changeset. No moar Lab mode to have the switch to. Part of story #16209: Β« Switch to… Β» button Change-Id: I3ccfa0f68ca73d7a4c718268db8f774765f8dfbc

Modified Files

Name
R src/themes/BurningParrot/include/Navbar/DropdownMenuItem/Content/Projects/ProjectPresenter.php Go to diff View file
R src/themes/BurningParrot/include/Navbar/DropdownMenuItem/Content/Projects/ProjectPresentersBuilder.php Go to diff View file
M src/common/User/SwitchToPresenter.php +23 βˆ’0 Go to diff View file
M src/common/User/SwitchToPresenterBuilder.php +17 βˆ’5 Go to diff View file
M src/scripts/switch-to/index-bp.ts +3 βˆ’11 Go to diff View file
M src/scripts/switch-to/index-fp.ts +3 βˆ’11 Go to diff View file
M src/scripts/switch-to/po/fr_FR.po +12 βˆ’0 Go to diff View file
A src/scripts/switch-to/src/components/Projects/ListOfProjects.test.ts +77 βˆ’0 Go to diff View file
A src/scripts/switch-to/src/components/Projects/ListOfProjects.vue +73 βˆ’0 Go to diff View file
A src/scripts/switch-to/src/components/Projects/ProjectLink.test.ts +47 βˆ’0 Go to diff View file
A src/scripts/switch-to/src/components/Projects/ProjectLink.vue +59 βˆ’0 Go to diff View file
A src/scripts/switch-to/src/components/Projects/ProjectsEmptyState.test.ts +57 βˆ’0 Go to diff View file
A src/scripts/switch-to/src/components/Projects/ProjectsEmptyState.vue +56 βˆ’0 Go to diff View file
A src/scripts/switch-to/src/components/Projects/ProjectsEmptyStateSvg.vue +30 βˆ’0 Go to diff View file
A src/scripts/switch-to/src/components/Projects/__snapshots__/ProjectLink.test.ts.snap +18 βˆ’0 Go to diff View file
A src/scripts/switch-to/src/components/Projects/__snapshots__/ProjectsEmptyState.test.ts.snap +31 βˆ’0 Go to diff View file
M src/scripts/switch-to/src/components/SwitchToBody.vue +7 βˆ’3 Go to diff View file
A src/scripts/switch-to/src/helpers/local-vue-for-test.ts +34 βˆ’0 Go to diff View file
A src/scripts/switch-to/src/initiate-app.ts +51 βˆ’0 Go to diff View file
A src/scripts/switch-to/src/store/index.ts +27 βˆ’0 Go to diff View file
A src/scripts/switch-to/src/store/type.ts +26 βˆ’0 Go to diff View file
A src/scripts/switch-to/src/type.ts +27 βˆ’0 Go to diff View file
M src/themes/BurningParrot/css/includes/_switch-to.scss +83 βˆ’1 Go to diff View file
M src/themes/BurningParrot/include/BurningParrotTheme.php +4 βˆ’5 Go to diff View file
M src/themes/BurningParrot/include/Navbar/DropdownMenuItem/Content/Projects/ProjectsPresenter.php +1 βˆ’0 Go to diff View file
M src/themes/BurningParrot/include/Navbar/PresenterBuilder.php +3 βˆ’3 Go to diff View file
M src/themes/BurningParrot/templates/header.mustache +5 βˆ’1 Go to diff View file
M src/themes/FlamingParrot/css/utils/_switch-to.scss +85 βˆ’1 Go to diff View file
M src/themes/FlamingParrot/templates/container.mustache +5 βˆ’1 Go to diff View file
M src/www/themes/FlamingParrot/FlamingParrot_Theme.class.php +2 βˆ’1 Go to diff View file
A tests/unit/common/User/SwitchToPresenterBuilderTest.php +67 βˆ’0 Go to diff View file