stable

Clone or download

Read-only

feat: Display promoted trackers in sidebar

The feature is hidden behind a feature flag. By default, no change: promoted trackers are not displayed in the sidebar To activate it: tuleap config-set feature_flag_display_promoted_trackers_in_sidebar 1 ➡️ Promoted trackers are displayed in the sidebar for (both FP and BP pages). Services that rely on a specific release of the sidebar like MediaWiki Standalone do not display the promoted trackers. To deactivate: tuleap config-set feature_flag_display_promoted_trackers_in_sidebar 0 We now have an overlap between Sidebar and InNewDropdown, we will probably have to do some cleanup here, in a dedicate changeset. Part of story #34002: see promoted trackers in sidebar Change-Id: Ib15acb86949bb609b7149bcc222b7c3a2780fcb0

Modified Files

Name
M lib/frontend/project-sidebar-internal/src/Styles/_sidebar-collapsed.scss +1 −0 Go to diff View file
M lib/frontend/project-sidebar-internal/src/Styles/_sidebar-project.scss +19 −2 Go to diff View file
A lib/frontend/project-sidebar-internal/src/Tools/PromotedItemPresenter.vue +47 −0 Go to diff View file
M lib/frontend/project-sidebar-internal/src/Tools/ToolPresenter.test.ts +84 −1 Go to diff View file
M lib/frontend/project-sidebar-internal/src/Tools/ToolPresenter.vue +15 −1 Go to diff View file
M lib/frontend/project-sidebar-internal/src/configuration.ts +7 −0 Go to diff View file
M lib/frontend/project-sidebar-internal/src/project-sidebar-example-config.ts +12 −0 Go to diff View file
A plugins/tracker/include/RetrievePromotedTrackers.php +31 −0 Go to diff View file
M plugins/tracker/include/ServiceTracker.class.php +18 −0 Go to diff View file
M plugins/tracker/include/Tracker/NewDropdown/TrackerInNewDropdownRetriever.php +2 −1 Go to diff View file
A plugins/tracker/include/Tracker/Service/SidebarPromotedTrackerRetriever.php +85 −0 Go to diff View file
M plugins/tracker/include/trackerPlugin.php +2 −0 Go to diff View file
A plugins/tracker/tests/unit/Stub/RetrievePromotedTrackersStub.php +50 −0 Go to diff View file
A plugins/tracker/tests/unit/Tracker/Service/SidebarPromotedTrackerRetrieverTest.php +131 −0 Go to diff View file
M src/common/Layout/ProjectSidebarToolsBuilder.php +2 −2 Go to diff View file
A src/common/Layout/SidebarPromotedItemPresenter.php +34 −0 Go to diff View file
M src/common/Layout/SidebarServicePresenter.php +8 −2 Go to diff View file
M src/common/Project/Service.class.php +10 −0 Go to diff View file