feat(admin-ui): catalog refresh + token migration (Stage 3.2)
This commit is contained in:
@@ -50,15 +50,15 @@ export function TimeTravelPicker({
|
||||
}, [marks, valueDate])
|
||||
|
||||
return (
|
||||
<div className="flex flex-col gap-3 px-4 py-3 rounded-md border border-orbit/40 bg-orbit/4 text-sm">
|
||||
<div className="flex flex-col gap-3 px-4 py-3 rounded-md border border-warn bg-warn-bg text-sm">
|
||||
<div className="flex items-center gap-2">
|
||||
<ClockCounterClockwiseIcon weight="bold" size={16} className="text-orbit" />
|
||||
<span className="text-2xs font-secondary uppercase tracking-label text-carbon/70">
|
||||
<ClockCounterClockwiseIcon weight="bold" size={16} className="text-warn" />
|
||||
<span className="text-2xs font-display uppercase tracking-[0.10em] text-ink-2">
|
||||
{t('timeTravel.label')}
|
||||
</span>
|
||||
<button
|
||||
type="button"
|
||||
className="ml-auto text-2xs text-carbon/60 hover:text-carbon hover:underline inline-flex items-center gap-1"
|
||||
className="ml-auto text-2xs text-mute hover:text-ink hover:underline inline-flex items-center gap-1"
|
||||
onClick={onClose}
|
||||
>
|
||||
<XIcon weight="bold" size={12} />
|
||||
@@ -314,7 +314,7 @@ function TimelineTrack({
|
||||
)}
|
||||
|
||||
{marks.length > 0 && (
|
||||
<div className="text-2xs text-carbon/50 font-secondary mt-1">
|
||||
<div className="text-2xs text-mute font-display mt-1">
|
||||
{marks.length === 1
|
||||
? '1 точка изменений'
|
||||
: marks.length < 5
|
||||
@@ -340,7 +340,7 @@ function QuickPresets({ onPick }: { onPick: (deltaMs: number) => void }) {
|
||||
]
|
||||
return (
|
||||
<div className="flex flex-wrap items-center gap-1.5">
|
||||
<span className="text-2xs uppercase tracking-label text-carbon/60 font-secondary mr-1">
|
||||
<span className="text-2xs uppercase tracking-[0.10em] text-mute font-display mr-1">
|
||||
{t('timeTravel.quickPresets')}
|
||||
</span>
|
||||
{presets.map((p) => (
|
||||
@@ -348,7 +348,7 @@ function QuickPresets({ onPick }: { onPick: (deltaMs: number) => void }) {
|
||||
key={p.key}
|
||||
type="button"
|
||||
onClick={() => onPick(p.deltaMs)}
|
||||
className="px-2.5 py-1 rounded-full border border-regolith hover:border-ultramarain hover:bg-ultramarain/4 text-2xs font-mono uppercase tracking-label text-carbon transition-colors"
|
||||
className="px-2.5 py-1 rounded-full border border-line hover:border-accent hover:bg-accent/4 text-2xs font-mono uppercase tracking-[0.10em] text-ink transition-colors"
|
||||
>
|
||||
{p.label}
|
||||
</button>
|
||||
@@ -386,23 +386,23 @@ function StatusFooter({
|
||||
|
||||
if (!valueDate) {
|
||||
return (
|
||||
<div className="text-2xs text-carbon/60 font-secondary italic">
|
||||
<div className="text-2xs text-mute font-display italic">
|
||||
{t('timeTravel.hint')}
|
||||
</div>
|
||||
)
|
||||
}
|
||||
|
||||
return (
|
||||
<div className="flex flex-wrap items-center gap-2 pt-2 border-t border-orbit/20">
|
||||
<ClockCounterClockwiseIcon weight="regular" size={14} className="text-orbit shrink-0" />
|
||||
<span className="text-xs font-mono text-carbon/80">
|
||||
<div className="flex flex-wrap items-center gap-2 pt-2 border-t border-warn/30">
|
||||
<ClockCounterClockwiseIcon weight="regular" size={14} className="text-warn shrink-0" />
|
||||
<span className="text-xs font-mono text-ink">
|
||||
{valueDate.toLocaleString(lang === 'en' ? 'en-US' : 'ru-RU', {
|
||||
dateStyle: 'long',
|
||||
timeStyle: 'short',
|
||||
})}
|
||||
</span>
|
||||
{relativeLabel && (
|
||||
<span className="text-2xs text-carbon/60 font-secondary lowercase">
|
||||
<span className="text-2xs text-mute font-display lowercase">
|
||||
({relativeLabel})
|
||||
</span>
|
||||
)}
|
||||
@@ -418,10 +418,10 @@ function StatusFooter({
|
||||
valueDate.getMinutes(),
|
||||
)
|
||||
}
|
||||
className="w-10 px-1.5 py-0.5 rounded-sm border border-regolith bg-white text-2xs font-mono text-center"
|
||||
className="w-10 px-1.5 py-0.5 rounded-sm border border-line bg-white text-2xs font-mono text-center"
|
||||
aria-label={t('timeTravel.hours')}
|
||||
/>
|
||||
<span className="text-carbon/50 font-mono text-2xs">:</span>
|
||||
<span className="text-mute font-mono text-2xs">:</span>
|
||||
<input
|
||||
type="number"
|
||||
min={0}
|
||||
@@ -433,13 +433,13 @@ function StatusFooter({
|
||||
Math.max(0, Math.min(59, parseInt(e.target.value, 10) || 0)),
|
||||
)
|
||||
}
|
||||
className="w-10 px-1.5 py-0.5 rounded-sm border border-regolith bg-white text-2xs font-mono text-center"
|
||||
className="w-10 px-1.5 py-0.5 rounded-sm border border-line bg-white text-2xs font-mono text-center"
|
||||
aria-label={t('timeTravel.minutes')}
|
||||
/>
|
||||
</span>
|
||||
<button
|
||||
type="button"
|
||||
className="ml-auto text-2xs text-ultramarain hover:underline"
|
||||
className="ml-auto text-2xs text-accent hover:underline"
|
||||
onClick={onClear}
|
||||
>
|
||||
{t('timeTravel.clear')}
|
||||
|
||||
Reference in New Issue
Block a user