feat(admin-ui): catalog refresh + token migration (Stage 3.2)

This commit is contained in:
Александр Зимин
2026-05-11 09:08:38 +00:00
parent 3e19fd2cf9
commit 6db2a0c345
24 changed files with 289 additions and 273 deletions
@@ -184,7 +184,7 @@ export const SchemaDrivenForm = ({
</div>
)}
{idSource && (
<div className="sm:col-span-2 text-2xs text-carbon/60 px-2">
<div className="sm:col-span-2 text-2xs text-mute px-2">
{t('form.idSourceNote', { field: idSource })}
</div>
)}
@@ -327,9 +327,9 @@ const FieldBody = ({
<div>
<FieldLabel required={required}>
{label}{' '}
<span className="text-2xs uppercase tracking-label text-carbon/60 ml-1">i18n</span>
<span className="text-2xs uppercase tracking-[0.10em] text-mute ml-1">i18n</span>
</FieldLabel>
<div className="space-y-2 pl-3 border-l-2 border-regolith mt-1">
<div className="space-y-2 pl-3 border-l-2 border-line mt-1">
{supportedLocales.map((loc) => (
<Controller
key={loc}
@@ -337,7 +337,7 @@ const FieldBody = ({
name={`data.${fieldKey}.${loc}` as `data.${string}`}
render={({ field }) => (
<div className="flex items-center gap-3">
<span className="text-xs font-mono text-carbon/70 normal-case tracking-normal whitespace-nowrap shrink-0 w-14">
<span className="text-xs font-mono text-ink-2 normal-case tracking-normal whitespace-nowrap shrink-0 w-14">
{loc === defaultLocale ? <strong>{loc}</strong> : loc}
</span>
<div className="flex-1 min-w-0">
@@ -599,7 +599,7 @@ const DateTimeField = ({ label, value, defaultTime, onChange, hint, error }: Dat
/>
</div>
</div>
{hint && !error && <p className="text-2xs text-carbon/60 mt-1">{hint}</p>}
{hint && !error && <p className="text-2xs text-mute mt-1">{hint}</p>}
{error && <p className="text-2xs text-mars mt-1">{error}</p>}
</div>
)
@@ -797,11 +797,11 @@ const ReferenceSelectField = ({
// appearance-none убирает OS default стрелку.
// py-2 (8px) match'ит TextInput высоту. pr-10 — место под адорнмент.
className={[
'w-full appearance-none border rounded-sm pl-3 pr-10 py-2 text-sm font-secondary',
'w-full appearance-none border rounded-sm pl-3 pr-10 py-2 text-sm font-display',
'bg-white text-black transition-colors',
'focus:outline-none focus:ring-1 focus:ring-ultramarain focus:border-ultramarain',
errorMsg ? 'border-mars' : 'border-regolith hover:border-carbon/40',
isLoading ? 'cursor-wait text-carbon/60' : 'cursor-pointer',
'focus:outline-none focus:ring-1 focus:ring-accent focus:border-accent',
errorMsg ? 'border-mars' : 'border-line hover:border-carbon/40',
isLoading ? 'cursor-wait text-mute' : 'cursor-pointer',
].join(' ')}
>
<option value="">{isLoading ? '…' : '—'}</option>
@@ -816,9 +816,9 @@ const ReferenceSelectField = ({
aria-hidden="true"
>
{isLoading ? (
<CircleNotchIcon size={16} weight="bold" className="text-ultramarain animate-spin" />
<CircleNotchIcon size={16} weight="bold" className="text-accent animate-spin" />
) : (
<CaretDownIcon size={16} weight="regular" className="text-carbon/40" />
<CaretDownIcon size={16} weight="regular" className="text-mute/70" />
)}
</div>
</div>