refactor(builder): single language manager, theme before branding
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com> P0 user feedback: General asked admins to type locale codes comma-separated, and Branding (logos) came before Theme (colors). - Root cause: General duplicated language management as raw text/CSV inputs while a full Languages manager section (add/remove/set-default with per-locale content seeding) already existed one tab away. Removed the duplicate inputs; General now shows a read-only chip summary (default language first, marked) with a 'Manage languages' link to the real manager. One source of truth, no comma parsing, no risk of bypassing LocaleSyncService - Builder navigation now orders Theme before Branding - merchants pick a palette first, then upload logos that match it - New builder keys (languagesSummaryDesc, manageLanguages) in en/ru/hy; verified in browser (chips RU-default/EN/HY, nav order theme->branding)
This commit is contained in:
@@ -228,3 +228,16 @@ button.secondary {
|
||||
grid-template-columns: 1fr;
|
||||
}
|
||||
}
|
||||
|
||||
.languages-summary { display: grid; gap: 6px; }
|
||||
.languages-summary__chips { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
|
||||
.languages-summary__chip {
|
||||
display: inline-flex; align-items: center; gap: 6px;
|
||||
padding: 4px 10px; border-radius: 999px;
|
||||
border: 1px solid var(--border-color, #d3dad9);
|
||||
font-size: 0.8rem; font-weight: 600;
|
||||
em { font-style: normal; font-weight: 400; font-size: 0.7rem; color: var(--text-secondary, #6b7280); }
|
||||
}
|
||||
.languages-summary__chip--default { border-color: var(--color-primary, #2f8f5b); }
|
||||
.languages-summary__manage { font-size: 0.85rem; text-decoration: underline; color: var(--text-primary, #1e3c38); }
|
||||
.languages-summary__manage:focus-visible { outline: 2px solid var(--color-primary, #2f8f5b); outline-offset: 2px; }
|
||||
|
||||
Reference in New Issue
Block a user