stable

Clone or download

Read-only

feat: Display status badge for artifacts

Given a tracker have a semantic status defined, and this semantic is based on static values, When one of its artifact is displayed in the SwitchTo modal, either in recent items or in search results, Then a badge is displayed to its right. And if the static values have decorators based on tlp palette colors, Then the badge reflects that color (else it default to "secondary"). Part of story #26771: Index artifact fields (REST + Switch to) on updated artifacts only Change-Id: Ie8f4fc6e67ca986d4461f0f2f8c32780192d67cd

Modified Files

Name
M plugins/agiledashboard/include/AgileDashboard/Kanban/RecentlyVisited/VisitRetriever.php +2 −1 Go to diff View file
M plugins/fts_common/include/REST/v1/SearchResultEntryRepresentation.php +4 −0 Go to diff View file
M plugins/tracker/include/Tracker/Artifact/RecentlyVisited/VisitRetriever.php +11 −20 Go to diff View file
A plugins/tracker/include/Tracker/Artifact/StatusBadgeBuilder.php +85 −0 Go to diff View file
M plugins/tracker/include/Tracker/Artifact/Tracker_Artifact_ChangesetValue_List.class.php +11 −21 Go to diff View file
M plugins/tracker/include/Tracker/Search/SearchResultRetriever.php +19 −5 Go to diff View file
M plugins/tracker/include/Tracker/Tracker.class.php +2 −1 Go to diff View file
M plugins/tracker/include/trackerPlugin.php +5 −2 Go to diff View file
M plugins/tracker/tests/unit/Tracker/Artifact/RecentlyVisited/VisitRetrieverTest.php +12 −3 Go to diff View file
A plugins/tracker/tests/unit/Tracker/Artifact/StatusBadgeBuilderTest.php +192 −0 Go to diff View file
M plugins/tracker/tests/unit/Tracker/Search/SearchResultRetrieverTest.php +12 −2 Go to diff View file
M src/common/Search/SearchResultEntry.php +3 −1 Go to diff View file
A src/common/Search/SearchResultEntryBadge.php +33 −0 Go to diff View file
M src/common/User/History/HistoryEntry.php +12 −0 Go to diff View file
A src/common/User/History/HistoryEntryBadge.php +33 −0 Go to diff View file
M src/common/User/REST/v1/UserHistoryEntryRepresentation.php +9 −1 Go to diff View file
A src/scripts/switch-to/src/components/Body/Items/ItemBadge.test.ts +64 −0 Go to diff View file
A src/scripts/switch-to/src/components/Body/Items/ItemBadge.vue +34 −0 Go to diff View file
M src/scripts/switch-to/src/components/Body/Items/ItemEntry.test.ts +41 −1 Go to diff View file
M src/scripts/switch-to/src/components/Body/Items/ItemEntry.vue +46 −37 Go to diff View file
M src/scripts/switch-to/src/components/Body/Items/__snapshots__/ItemEntry.test.ts.snap +79 −64 Go to diff View file
M src/scripts/switch-to/src/type.ts +6 −0 Go to diff View file
M src/themes/common/css/utils/_switch-to.scss +16 −1 Go to diff View file
M tests/unit/common/Search/IndexedItemFoundToSearchResultTest.php +1 −0 Go to diff View file
M tests/unit/common/User/History/HistoryRetrieverTest.php +2 −1 Go to diff View file