stable

Clone or download

Read-only

feat: Display 'Content matches: xxx'

When an item matches the keywords but nothing is highlighted it is because FTS detected that the content of the item is matching. It might confuse people to have one item with highlighting match and other one without. For the latter we now display "Content matches: <keywords>" to better reflect this situation. Ideally we would display an extract of the content that matches the keywords, but let's stick with this simpler proposal first. Part of story #26771: Index artifact fields (REST + Switch to) on updated artifacts only Change-Id: I823799f1b020432651601685be9455ddcefdc6a1

Modified Files

Name
M src/scripts/switch-to/po/fr_FR.po +3 −0 Go to diff View file
M src/scripts/switch-to/po/pt_BR.po +3 −0 Go to diff View file
M src/scripts/switch-to/src/components/Body/HighlightMatchingText.vue +2 −0 Go to diff View file
M src/scripts/switch-to/src/components/Body/Items/ItemEntry.test.ts +110 −0 Go to diff View file
M src/scripts/switch-to/src/components/Body/Items/ItemEntry.vue +31 −5 Go to diff View file
M src/scripts/switch-to/src/components/Body/Items/__snapshots__/ItemEntry.test.ts.snap +32 −12 Go to diff View file
M src/themes/common/css/utils/_switch-to.scss +2 −2 Go to diff View file