fix: address review feedback on admin pages and backgrounds

- guard config.default_quick_amounts with ?? [] so the edit page survives a
  cabinet deployed ahead of the bot
- roll back the first faq reorder request when the second fails so both
  questions don't end up with the same display_order
- stop overriding the aurora palette in render for the legacy seed colors
- add the missing legalPages / displayMode / quickAmounts keys to fa and zh
This commit is contained in:
Boris Kovalskii
2026-06-11 20:00:52 +10:00
parent acd0d7c69e
commit 9e6372afba
5 changed files with 122 additions and 15 deletions

View File

@@ -15,13 +15,9 @@ const SPEED_DURATIONS: Record<string, string> = {
};
export default function AuroraBackground({ settings }: Props) {
const isLegacySeed =
settings.firstColor === '#00d2ff' &&
settings.secondColor === '#7928ca' &&
settings.thirdColor === '#ff0080';
const firstColor = isLegacySeed ? '#3b82f6' : sanitizeColor(settings.firstColor, '#3b82f6');
const secondColor = isLegacySeed ? '#a5b4fc' : sanitizeColor(settings.secondColor, '#a5b4fc');
const thirdColor = isLegacySeed ? '#93c5fd' : sanitizeColor(settings.thirdColor, '#93c5fd');
const firstColor = sanitizeColor(settings.firstColor, '#3b82f6');
const secondColor = sanitizeColor(settings.secondColor, '#a5b4fc');
const thirdColor = sanitizeColor(settings.thirdColor, '#93c5fd');
const speed = safeSelect(settings.speed, ['slow', 'normal', 'fast'] as const, 'normal');
const showRadialGradient = safeBoolean(settings.showRadialGradient, true);
const paused = useAnimationPause();