|
13 | 13 | <NcTextField |
14 | 14 | :model-value="settingsFilter" |
15 | 15 | :label="t('libresign', 'Search settings')" |
16 | | - :placeholder="t('libresign', 'Search by setting name, summary, or hint')" |
| 16 | + :placeholder="t('libresign', 'Search by setting name, summary, description, or context')" |
17 | 17 | @keydown.esc.prevent="clearSettingsFilter" |
18 | 18 | @update:modelValue="onSettingsFilterChange" /> |
19 | 19 | <div class="policy-workbench__catalog-foot"> |
|
60 | 60 | <div class="policy-workbench__setting-body"> |
61 | 61 | <div class="policy-workbench__setting-header"> |
62 | 62 | <div> |
63 | | - <h3 v-html="highlightText(summary.title)"></h3> |
| 63 | + <h3 class="policy-workbench__setting-title"> |
| 64 | + <span v-html="highlightText(summary.title)"></span> |
| 65 | + <span v-if="summary.context" class="policy-workbench__setting-context">(<span v-html="highlightText(summary.context)"></span>)</span> |
| 66 | + </h3> |
64 | 67 | <p class="policy-workbench__setting-description" v-html="highlightText(summary.description)"></p> |
65 | 68 | </div> |
66 | 69 | </div> |
|
102 | 105 | @keydown.enter.prevent="state.openSetting(summary.key)" |
103 | 106 | @keydown.space.prevent="state.openSetting(summary.key)"> |
104 | 107 | <div class="policy-workbench__settings-row-main"> |
105 | | - <h3 v-html="highlightText(summary.title)"></h3> |
| 108 | + <h3 class="policy-workbench__setting-title"> |
| 109 | + <span v-html="highlightText(summary.title)"></span> |
| 110 | + <span v-if="summary.context" class="policy-workbench__setting-context">(<span v-html="highlightText(summary.context)"></span>)</span> |
| 111 | + </h3> |
106 | 112 | <p v-html="highlightText(summary.description)"></p> |
107 | 113 | <p v-if="hasActiveOverrides(summary.groupCount, summary.userCount)" class="policy-workbench__origin-badge policy-workbench__origin-badge--inline"> |
108 | 114 | {{ t('libresign', 'Custom rules active') }} |
@@ -459,7 +465,7 @@ const filteredSettingSummaries = computed(() => { |
459 | 465 | } |
460 | 466 |
|
461 | 467 | return state.visibleSettingSummaries.filter((summary) => { |
462 | | - return [summary.title, summary.description, summary.menuHint, summary.defaultSummary] |
| 468 | + return [summary.title, summary.context ?? '', summary.description, summary.defaultSummary] |
463 | 469 | .some((value) => value.toLowerCase().includes(normalized)) |
464 | 470 | }) |
465 | 471 | }) |
@@ -1488,6 +1494,18 @@ onBeforeUnmount(() => { |
1488 | 1494 | } |
1489 | 1495 | } |
1490 | 1496 |
|
| 1497 | + &__setting-title { |
| 1498 | + display: inline-flex; |
| 1499 | + align-items: baseline; |
| 1500 | + gap: 0.35rem; |
| 1501 | + } |
| 1502 | +
|
| 1503 | + &__setting-context { |
| 1504 | + font-size: 0.88em; |
| 1505 | + font-weight: 500; |
| 1506 | + color: var(--color-text-maxcontrast); |
| 1507 | + } |
| 1508 | +
|
1491 | 1509 | &__setting-body { |
1492 | 1510 | display: flex; |
1493 | 1511 | flex-direction: column; |
|
0 commit comments