FE: runtime per-tenant theming (S8) + react-i18next EN/IT (X2) - #51
Draft
braghettos wants to merge 1 commit into
Draft
FE: runtime per-tenant theming (S8) + react-i18next EN/IT (X2)#51braghettos wants to merge 1 commit into
braghettos wants to merge 1 commit into
Conversation
Two engine-level, use-case-agnostic portal mechanisms: Runtime theming (config.theme): - config.json gains an optional `theme` section (primaryColor + per-mode palette overrides) served through the same ConfigMap-mounted path as the login branding — per-install re-branding at runtime, NO rebuild. - resolvePalette() overlays the built-in tokens; primaryColor rewrites the BRAND keys only (semantic status colors stay intact); both the antd theme and the :root CSS custom properties re-derive from it, light and dark. - Built-in tokens remain the referentially-stable fallback when unset. Internationalization (react-i18next, EN + IT): - src/i18n: catalogs + init before mount; locale order = user choice (persisted) > Org default from config.json (i18n.defaultLocale) > browser > EN. Language switcher in the user menu. - App-chrome strings externalized (theme toggle, user menu, notifications, command palette, widget error states). - Second layer: `i18n:`-prefixed strings in widget CR data resolve against the catalogs (deep walk in WidgetRenderer); plain strings pass through untouched, unknown keys fall back to the key body. Runtime-extendable via i18next.addResourceBundle. Plus: RuntimeConfigBridge wiring both concerns from the fetched config, unit tests (palette resolution, widget-string resolution), and docs — usage (docs/theming-and-i18n.md) + design scaffolds for per-user dashboard personalization, group-admin params UI, onboarding wizard shell and the a11y audit loop (docs/ux-scaffolds.md). Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
This was referenced Jul 20, 2026
Collaborator
Author
|
Status note (leaving this draft open for its author): the theming half is now superseded — Brand v2 landed on |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Implements FE (tier-a mechanism): S8 per-tenant runtime palette override via ConfigContext → CSS custom properties + antd theme, and X2 react-i18next wiring with EN/IT catalogs, externalized app-chrome strings, and the
i18n:key convention for widget CR strings. Includes design scaffolds (docs/ux-scaffolds.md) for per-user dashboard personalization, group-admin params UI, onboarding wizard shell, and a11y audit notes. Ref: braghettos/krateo-acmp#14, braghettos/krateo-acmp#19. Draft for review.Notes:
package-lock.jsonupdated via npm (the Dockerfile path);pnpm-lock.yamlleft untouched.