diff --git a/ordinis-admin-ui/src/components/editor/EditorInfoPanel.tsx b/ordinis-admin-ui/src/components/editor/EditorInfoPanel.tsx index 6d4588a..0f780a4 100644 --- a/ordinis-admin-ui/src/components/editor/EditorInfoPanel.tsx +++ b/ordinis-admin-ui/src/components/editor/EditorInfoPanel.tsx @@ -2,11 +2,17 @@ import { useMemo } from 'react' import { Link } from '@tanstack/react-router' import { useTranslation } from 'react-i18next' import { ClockCounterClockwiseIcon, MapTrifoldIcon, DownloadSimpleIcon, ArrowRightIcon } from '@phosphor-icons/react' -import { Badge } from '@/ui' import { useDictionaryDependents } from '@/api/queries' -import type { DictionaryDetail, OnCloseAction, SchemaDependent } from '@/api/client' +import type { DataScope, DictionaryDetail, OnCloseAction, SchemaDependent } from '@/api/client' import { cn } from '@/lib/utils' +/** Scope badge — solid scope-color bg per redesign prototype. */ +const SCOPE_BADGE_CLASS: Record = { + PUBLIC: 'bg-accent-bg text-accent', + INTERNAL: 'bg-warn-bg text-warn', + RESTRICTED: 'bg-pink-bg text-pink', +} + /** * EditorInfoPanel — left rail с dict metadata per handoff prototype Screen 2. * @@ -47,7 +53,14 @@ export function EditorInfoPanel({ detail, recordCount, actions }: EditorInfoPane return (