diff --git a/ordinis-admin-ui/src/routes/dictionaries.index.tsx b/ordinis-admin-ui/src/routes/dictionaries.index.tsx index b121eb9..68de1dd 100644 --- a/ordinis-admin-ui/src/routes/dictionaries.index.tsx +++ b/ordinis-admin-ui/src/routes/dictionaries.index.tsx @@ -23,7 +23,7 @@ import { dictionaryDependentsQuery, useDictionaries, useDictionaryDependents } f import type { DataScope, DictionaryDefinition, SchemaDependent } from '@/api/client' import { DictionaryEditorDialog } from '@/components/schema/DictionaryEditorDialog' import { useCanMutate } from '@/auth/useCanMutate' -import { SCOPE_DOT, SCOPE_ORDER } from '@/lib/scope-style' +import { SCOPE_BG_TINT, SCOPE_DOT, SCOPE_ORDER, SCOPE_TEXT } from '@/lib/scope-style' // ===== Search params ===== @@ -248,7 +248,7 @@ function DictionariesPage() { title={t(`dict.list.section.${scope}`)} className={`text-cap tracking-[0.14em] uppercase font-semibold px-3 py-1.5 rounded-md border transition-colors focus:outline-none focus:ring-2 focus:ring-accent/40 ${ selected - ? 'border-ink bg-surface text-ink ring-1 ring-ink' + ? `${SCOPE_BG_TINT[scope]} ${SCOPE_TEXT[scope]} border-transparent` : 'border-line bg-surface text-ink-2 hover:border-ink-2 hover:bg-surface-2' }`} > @@ -473,18 +473,28 @@ function DictRow({ d, t }: { d: DictionaryDefinition; t: TFunc }) { } } + // Per redesign prototype: row левый край имеет 4px stripe в scope color + + // INTERNAL/RESTRICTED rows получают subtle bg tint для visual scope grouping. + // PUBLIC = plain white (default — самый common scope не нужно подкрашивать). + const rowTint = d.scope === 'PUBLIC' ? '' : `${SCOPE_BG_TINT[d.scope]}/30` + return (
+
{d.description}
)} @@ -506,9 +516,13 @@ function DictRow({ d, t }: { d: DictionaryDefinition; t: TFunc }) {