Repository navigation
feat: add French language support - #549
Merged
Merged
Conversation
Contributor
Greptile SummaryThe PR adds French localization across the language registry, UI catalogue, printing labels, demo fixtures, documentation, and localization tests.
Confidence Score: 5/5The PR appears safe to merge. No blocking failure remains; the previously reported French demo-phone issue is resolved because explicit international numbers normalize and validate independently of the tenant country.
|
| Filename | Overview |
|---|---|
| frontend/src/lib/i18n/languages.ts | Registers French with the expected locale, direction, selectability, and lazy-loaded message bundle. |
| frontend/src/lib/i18n/messages/fr.json | Adds the full French message catalogue with parity and localization checks included in the PR. |
| main/print/print-labels.generated.ts | Adds the generated French print-label catalogue corresponding to the canonical frontend messages. |
| main/routes/auth.ts | Adds localized French demo data and fixes the previously reported cross-country phone issue by using explicit international E.164 numbers. |
| tests/issue-263-phone-normalization.test.ts | Verifies French fixture localization and stored French phone metadata; the existing normalization contract also covers international numbers with a different default country. |
| scripts/generate-print-labels.cjs | Extends generated print-label language handling to include French. |
| frontend/src/app/setup/page.tsx | Uses registry-native language names in setup, allowing French to appear consistently with other selectable locales. |
Reviews (2): Last reviewed commit: "fix(auth): use international E.164 phone..." | Re-trigger Greptile
carvalab
added a commit
to carvalab/FloCafe
that referenced
this pull request
Aug 31, 2026
…ion (FreeOpenSourcePOS#513) - theme_mode setting (light|dark|system, default system) validated in both write paths (IPC set-setting + HTTP wildcard PUT); no migration, no seeding - useThemeMode store + ThemeSync component: matchMedia resolution, .dark toggle, ownership-gated localStorage mirror, token-gated DB seed for follower windows (DB > param > mirror > OS, bounded retry with real delay + one-shot 60s re-check after transient failure), in-window user-choice guard, server-truth rollback with needsServerTruth hydration delivery, post-login re-hydration via flo:auth-changed, set-theme-effective push - FOUC pre-paint guard (param > mirror > prefers-color-scheme) with vm-based precedence matrix test - main-process wiring: direct getDatabase() initial isDark at window creation, sender-validated set-theme-effective handler (overlay + background color, main window only), effectiveTheme on get-status, ?theme= on the KDS window URL - Appearance settings tab (ownerManager-gated, optimistic + rollback, 5 locales incl. French from FreeOpenSourcePOS#549) - native Electron e2e: dark toggle, nativeTheme.themeSource system sync, relaunch persistence; theme-mode-settings + theme-fouc-script suites; KDS-hardening and renderer-API expectations aligned - dark-token treatment incl. surfaces from FreeOpenSourcePOS#537 (weighted products, refunds, period toggle); light mode pixel-stable; docs amended (title-bar-phase1, platform matrix) Review fixes (greptile): in-window user-choice guard; DB fetch before mirror; bounded retry with no stale mirror write-back; server-truth rollback; one-shot follower re-check after transient outage; hydration delivers server truth when a failed save armed it. Ponytail cleanup: shared fetchThemeMode helper (boot + recheck dedup), stdlib asserts in theme-mode-settings, trimmed VM stubs, optional relaunch on relaunched harness, dead refs/conditions/comments removed (-144 lines). Follow-ups found in visual review: retry delay actually elapses (resolve moved into setTimeout); post-login theme re-hydration via auth-change event (dark-OS users no longer see the wrong palette until reload).
carvalab
pushed a commit
to carvalab/FloCafe
that referenced
this pull request
Aug 31, 2026
…ion (FreeOpenSourcePOS#513) - theme_mode setting (light|dark|system, default system) validated in both write paths (IPC set-setting + HTTP wildcard PUT); no migration, no seeding - useThemeMode store + ThemeSync component: matchMedia resolution, .dark toggle, ownership-gated localStorage mirror, token-gated DB seed for follower windows (DB > param > mirror > OS, bounded retry with real delay + one-shot 60s re-check after transient failure), in-window user-choice guard, server-truth rollback with needsServerTruth hydration delivery, post-login re-hydration via flo:auth-changed, set-theme-effective push - FOUC pre-paint guard (param > mirror > prefers-color-scheme) with vm-based precedence matrix test - main-process wiring: direct getDatabase() initial isDark at window creation, sender-validated set-theme-effective handler (overlay + background color, main window only), effectiveTheme on get-status, ?theme= on the KDS window URL - Appearance settings tab (ownerManager-gated, optimistic + rollback, 5 locales incl. French from FreeOpenSourcePOS#549) - native Electron e2e: dark toggle, nativeTheme.themeSource system sync, relaunch persistence; theme-mode-settings + theme-fouc-script suites; KDS-hardening and renderer-API expectations aligned - dark-token treatment incl. surfaces from FreeOpenSourcePOS#537 (weighted products, refunds, period toggle); light mode pixel-stable; docs amended (title-bar-phase1, platform matrix) Review fixes (greptile): in-window user-choice guard; DB fetch before mirror; bounded retry with no stale mirror write-back; server-truth rollback; one-shot follower re-check after transient outage; hydration delivers server truth when a failed save armed it. Ponytail cleanup: shared fetchThemeMode helper (boot + recheck dedup), stdlib asserts in theme-mode-settings, trimmed VM stubs, optional relaunch on relaunched harness, dead refs/conditions/comments removed (-144 lines). Follow-ups found in visual review: retry delay actually elapses (resolve moved into setTimeout); post-login theme re-hydration via auth-change event (dark-OS users no longer see the wrong palette until reload). Dashboard KPI values kept dark on pastel tiles after the FreeOpenSourcePOS#537 rebase.
carvalab
added a commit
to carvalab/FloCafe
that referenced
this pull request
Aug 31, 2026
…ion (FreeOpenSourcePOS#513) - theme_mode setting (light|dark|system, default system) validated in both write paths (IPC set-setting + HTTP wildcard PUT); no migration, no seeding - useThemeMode store + ThemeSync component: matchMedia resolution, .dark toggle, ownership-gated localStorage mirror, token-gated DB seed for follower windows (DB > param > mirror > OS, bounded retry with real delay + one-shot 60s re-check after transient failure), in-window user-choice guard, server-truth rollback with needsServerTruth hydration delivery, post-login re-hydration via flo:auth-changed, set-theme-effective push - FOUC pre-paint guard (param > mirror > prefers-color-scheme) with vm-based precedence matrix test - main-process wiring: direct getDatabase() initial isDark at window creation, sender-validated set-theme-effective handler (overlay + background color, main window only), effectiveTheme on get-status, ?theme= on the KDS window URL - Appearance settings tab (ownerManager-gated, optimistic + rollback, 5 locales incl. French from FreeOpenSourcePOS#549) - native Electron e2e: dark toggle, nativeTheme.themeSource system sync, relaunch persistence; theme-mode-settings + theme-fouc-script suites; KDS-hardening and renderer-API expectations aligned - dark-token treatment incl. surfaces from FreeOpenSourcePOS#537 (weighted products, refunds, period toggle); light mode pixel-stable; docs amended (title-bar-phase1, platform matrix) Review fixes (greptile): in-window user-choice guard; DB fetch before mirror; bounded retry with no stale mirror write-back; server-truth rollback; one-shot follower re-check after transient outage; hydration delivers server truth when a failed save armed it. Ponytail cleanup: shared fetchThemeMode helper (boot + recheck dedup), stdlib asserts in theme-mode-settings, trimmed VM stubs, optional relaunch on relaunched harness, dead refs/conditions/comments removed (-144 lines). Rebase follow-ups (FreeOpenSourcePOS#537/FreeOpenSourcePOS#549/FreeOpenSourcePOS#546): tokenize weighted-products/refund/ period-toggle surfaces; fr.json theme-key parity; auth-changed dispatch guarded for non-browser envs (auth-ui-deterministic); themed order-card selector in quick-customer-creation e2e.
carvalab
added a commit
to carvalab/FloCafe
that referenced
this pull request
Aug 31, 2026
…ion (FreeOpenSourcePOS#513) - theme_mode setting (light|dark|system, default system) validated in both write paths (IPC set-setting + HTTP wildcard PUT); no migration, no seeding - useThemeMode store + ThemeSync component: matchMedia resolution, .dark toggle, ownership-gated localStorage mirror, token-gated DB seed for follower windows (DB > param > mirror > OS, bounded retry with real delay + one-shot 60s re-check after transient failure), in-window user-choice guard, server-truth rollback with needsServerTruth hydration delivery, post-login re-hydration via flo:auth-changed, set-theme-effective push - FOUC pre-paint guard (param > mirror > prefers-color-scheme) with vm-based precedence matrix test - main-process wiring: direct getDatabase() initial isDark at window creation, sender-validated set-theme-effective handler (overlay + background color, main window only), effectiveTheme on get-status, ?theme= on the KDS window URL - Appearance settings tab (ownerManager-gated, optimistic + rollback, 5 locales incl. French from FreeOpenSourcePOS#549) - native Electron e2e: dark toggle, nativeTheme.themeSource system sync, relaunch persistence; theme-mode-settings + theme-fouc-script suites; KDS-hardening and renderer-API expectations aligned - dark-token treatment incl. surfaces from FreeOpenSourcePOS#537 (weighted products, refunds, period toggle); light mode pixel-stable; docs amended (title-bar-phase1, platform matrix) Review fixes (greptile): in-window user-choice guard; DB fetch before mirror; bounded retry with no stale mirror write-back; server-truth rollback; one-shot follower re-check after transient outage; hydration delivers server truth when a failed save armed it. Ponytail cleanup: shared fetchThemeMode helper (boot + recheck dedup), stdlib asserts in theme-mode-settings, trimmed VM stubs, optional relaunch on relaunched harness, dead refs/conditions/comments removed (-144 lines). Rebase follow-ups (FreeOpenSourcePOS#537/FreeOpenSourcePOS#549/FreeOpenSourcePOS#546): tokenize weighted-products/refund/ period-toggle surfaces; fr.json theme-key parity; auth-changed dispatch guarded for non-browser envs (auth-ui-deterministic); themed order-card selector in quick-customer-creation e2e; dashboard KPI values kept dark on pastel tiles; tripwire regex hardened after persistSession refactor.
7 of 8 tasks
carvalab
added a commit
to carvalab/FloCafe
that referenced
this pull request
Aug 31, 2026
…ion (FreeOpenSourcePOS#513) - theme_mode setting (light|dark|system, default system) validated in both write paths (IPC set-setting + HTTP wildcard PUT); no migration, no seeding - useThemeMode store + ThemeSync component: matchMedia resolution, .dark toggle, ownership-gated localStorage mirror, token-gated DB seed for follower windows (DB > param > mirror > OS, bounded retry with real delay + one-shot 60s re-check after transient failure), in-window user-choice guard, server-truth rollback with needsServerTruth hydration delivery, post-login re-hydration via flo:auth-changed, set-theme-effective push - FOUC pre-paint guard (param > mirror > prefers-color-scheme) with vm-based precedence matrix test - main-process wiring: direct getDatabase() initial isDark at window creation, sender-validated set-theme-effective handler (overlay + background color, main window only), effectiveTheme on get-status, ?theme= on the KDS window URL - Appearance settings tab (ownerManager-gated, optimistic + rollback, 5 locales incl. French from FreeOpenSourcePOS#549) - native Electron e2e: dark toggle, nativeTheme.themeSource system sync, relaunch persistence; theme-mode-settings + theme-fouc-script suites; KDS-hardening and renderer-API expectations aligned - dark-token treatment incl. surfaces from FreeOpenSourcePOS#537 (weighted products, refunds, period toggle); light mode pixel-stable; docs amended (title-bar-phase1, platform matrix) Review fixes (greptile): in-window user-choice guard; DB fetch before mirror; bounded retry with no stale mirror write-back; server-truth rollback; one-shot follower re-check after transient outage; hydration delivers server truth when a failed save armed it. Ponytail cleanup: shared fetchThemeMode helper (boot + recheck dedup), stdlib asserts in theme-mode-settings, trimmed VM stubs, optional relaunch on relaunched harness, dead refs/conditions/comments removed (-144 lines). Rebase follow-ups (FreeOpenSourcePOS#537/FreeOpenSourcePOS#549/FreeOpenSourcePOS#546): tokenize weighted-products/refund/ period-toggle surfaces; fr.json theme-key parity; auth-changed dispatch guarded for non-browser envs (auth-ui-deterministic); themed order-card selector in quick-customer-creation e2e; dashboard KPI values kept dark on pastel tiles; reports-insights fixtures made date-independent (they aged out of the 90-day window on Aug 31); tripwire regex hardened after the persistSession refactor.
carvalab
added a commit
to carvalab/FloCafe
that referenced
this pull request
Aug 31, 2026
…ion (FreeOpenSourcePOS#513) - theme_mode setting (light|dark|system, default system) validated in both write paths (IPC set-setting + HTTP wildcard PUT); no migration, no seeding - useThemeMode store + ThemeSync component: matchMedia resolution, .dark toggle, ownership-gated localStorage mirror, token-gated DB seed for follower windows (DB > param > mirror > OS, bounded retry with real delay + one-shot 60s re-check after transient failure), in-window user-choice guard, server-truth rollback with needsServerTruth hydration delivery, post-login re-hydration via THEME_REHYDRATION_EVENT, set-theme-effective push - FOUC pre-paint guard (param > mirror > prefers-color-scheme) with vm-based precedence matrix test - main-process wiring: direct getDatabase() initial isDark at window creation, sender-validated set-theme-effective handler (overlay + background color, main window only), effectiveTheme on get-status, ?theme= on the KDS window URL - Appearance settings tab (ownerManager-gated, optimistic + rollback, 5 locales incl. French from FreeOpenSourcePOS#549) - native Electron e2e: dark toggle, nativeTheme.themeSource system sync, relaunch persistence; theme-mode-settings + theme-fouc-script suites; KDS-hardening and renderer-API expectations aligned - dark-token treatment incl. surfaces from FreeOpenSourcePOS#537 (weighted products, refunds, period toggle); light mode pixel-stable; docs amended (title-bar-phase1, platform matrix) Review fixes (greptile): in-window user-choice guard; DB fetch before mirror; bounded retry with no stale mirror write-back; server-truth rollback; one-shot follower re-check after transient outage; hydration delivers server truth when a failed save armed it. Ponytail cleanup: shared fetchThemeMode helper (boot + recheck dedup), stdlib asserts in theme-mode-settings, trimmed VM stubs, optional relaunch on relaunched harness, dead refs/conditions/comments removed (-144 lines). Rebase follow-ups (FreeOpenSourcePOS#537/FreeOpenSourcePOS#549/FreeOpenSourcePOS#546): tokenize weighted-products/refund/ period-toggle surfaces; fr.json theme-key parity; auth-changed dispatch guarded for non-browser envs (auth-ui-deterministic); themed order-card selector in quick-customer-creation e2e; dashboard KPI values kept dark on pastel tiles; reports-insights fixtures made date-independent; tripwire regex hardened after the persistSession refactor. Comment hygiene (FreeOpenSourcePOSgh-513): stripped review-narration prose, duplicated blocks, and 'do not remove'-style workarounds; encoded the theme re-hydration event name and the cancellable-sleep helper so the contracts live in code, not in comments.
carvalab
added a commit
to carvalab/FloCafe
that referenced
this pull request
Aug 31, 2026
…ion (FreeOpenSourcePOS#513) - theme_mode setting (light|dark|system, default system) validated in both write paths (IPC set-setting + HTTP wildcard PUT); no migration, no seeding - useThemeMode store + ThemeSync component: matchMedia resolution, .dark toggle, ownership-gated localStorage mirror, token-gated DB seed for follower windows (DB > param > mirror > OS, bounded retry with real delay + one-shot 60s re-check after transient failure), in-window user-choice guard, server-truth rollback with needsServerTruth hydration delivery, post-login re-hydration via flo:auth-changed, set-theme-effective push - FOUC pre-paint guard (param > mirror > prefers-color-scheme) with vm-based precedence matrix test - main-process wiring: direct getDatabase() initial isDark at window creation, sender-validated set-theme-effective handler (overlay + background color, main window only), effectiveTheme on get-status, ?theme= on the KDS window URL - Appearance settings tab (ownerManager-gated, optimistic + rollback, 5 locales incl. French from FreeOpenSourcePOS#549) - native Electron e2e: dark toggle, nativeTheme.themeSource system sync, relaunch persistence; theme-mode-settings + theme-fouc-script suites; KDS-hardening and renderer-API expectations aligned - dark-token treatment incl. surfaces from FreeOpenSourcePOS#537 (weighted products, refunds, period toggle); light mode pixel-stable; docs amended (title-bar-phase1, platform matrix) Review fixes (greptile): in-window user-choice guard; DB fetch before mirror; bounded retry with no stale mirror write-back; server-truth rollback; one-shot follower re-check after transient outage; hydration delivers server truth when a failed save armed it. Ponytail cleanup: shared fetchThemeMode helper (boot + recheck dedup), stdlib asserts in theme-mode-settings, trimmed VM stubs, optional relaunch on relaunched harness, dead refs/conditions/comments removed (-144 lines). Rebase follow-ups (FreeOpenSourcePOS#537/FreeOpenSourcePOS#549/FreeOpenSourcePOS#546): tokenize weighted-products/refund/ period-toggle surfaces; fr.json theme-key parity; auth-changed dispatch guarded for non-browser envs (auth-ui-deterministic); themed order-card selector in quick-customer-creation e2e; dashboard KPI values kept dark on pastel tiles; reports-insights fixtures made date-independent (they aged out of the 90-day window on Aug 31). Comment hygiene: review-narration comments stripped (~200 lines); the flo:auth-changed coupling encoded as THEME_REHYDRATION_EVENT; retry sleep extracted to cancellableSleep; tripwires re-pointed to surviving code.
carvalab
added a commit
to carvalab/FloCafe
that referenced
this pull request
Aug 31, 2026
…ion (FreeOpenSourcePOS#513) - theme_mode setting (light|dark|system, default system) validated in both write paths (IPC set-setting + HTTP wildcard PUT); no migration, no seeding - useThemeMode store + ThemeSync component: matchMedia resolution, .dark toggle, ownership-gated localStorage mirror, token-gated DB seed for follower windows (DB > param > mirror > OS, bounded retry with real delay + one-shot 60s re-check after transient failure), in-window user-choice guard, server-truth rollback with needsServerTruth hydration delivery, post-login re-hydration via flo:auth-changed, set-theme-effective push - FOUC pre-paint guard (param > mirror > prefers-color-scheme) with vm-based precedence matrix test - main-process wiring: direct getDatabase() initial isDark at window creation, sender-validated set-theme-effective handler (overlay + background color, main window only), effectiveTheme on get-status, ?theme= on the KDS window URL - Appearance settings tab (ownerManager-gated, optimistic + rollback, 5 locales incl. French from FreeOpenSourcePOS#549) - native Electron e2e: dark toggle, nativeTheme.themeSource system sync, relaunch persistence; theme-mode-settings + theme-fouc-script suites; KDS-hardening and renderer-API expectations aligned - dark-token treatment incl. surfaces from FreeOpenSourcePOS#537 (weighted products, refunds, period toggle); light mode pixel-stable; docs amended (title-bar-phase1, platform matrix) - allowScripts field declares the install scripts local npm runs need Review fixes (greptile): in-window user-choice guard; DB fetch before mirror; bounded retry with no stale mirror write-back; server-truth rollback; one-shot follower re-check after transient outage; hydration delivers server truth when a failed save armed it. Ponytail cleanup: shared fetchThemeMode helper (boot + recheck dedup), stdlib asserts in theme-mode-settings, trimmed VM stubs, optional relaunch on relaunched harness, dead refs/conditions/comments removed (-144 lines). Rebase follow-ups (FreeOpenSourcePOS#537/FreeOpenSourcePOS#549/FreeOpenSourcePOS#546): tokenize weighted-products/refund/ period-toggle surfaces; fr.json theme-key parity; auth-changed dispatch guarded for non-browser envs (auth-ui-deterministic); themed order-card selector in quick-customer-creation e2e; dashboard KPI values kept dark on pastel tiles; reports-insights fixtures made date-independent (they aged out of the 90-day window on Aug 31); comment hygiene (~200 lines of review-narration stripped); test:refunds restored to the test chain.
carvalab
added a commit
to carvalab/FloCafe
that referenced
this pull request
Aug 31, 2026
…ion (FreeOpenSourcePOS#513) - theme_mode setting (light|dark|system, default system) validated in both write paths (IPC set-setting + HTTP wildcard PUT); no migration, no seeding - useThemeMode store + ThemeSync component: matchMedia resolution, .dark toggle, ownership-gated localStorage mirror, token-gated DB seed for follower windows (DB > param > mirror > OS, bounded retry with real delay + one-shot 60s re-check after transient failure), in-window user-choice guard, server-truth rollback with needsServerTruth hydration delivery, post-login re-hydration via flo:auth-changed, set-theme-effective push - FOUC pre-paint guard (param > mirror > prefers-color-scheme) with vm-based precedence matrix test - main-process wiring: direct getDatabase() initial isDark at window creation, sender-validated set-theme-effective handler (overlay + background color, main window only), effectiveTheme on get-status, ?theme= on the KDS window URL - Appearance settings tab (ownerManager-gated, optimistic + rollback, 5 locales incl. French from FreeOpenSourcePOS#549) - native Electron e2e: dark toggle, nativeTheme.themeSource system sync, relaunch persistence; theme-mode-settings + theme-fouc-script suites; KDS-hardening and renderer-API expectations aligned - full dark-mode coverage: Settings page and panels, products, customers, tables, staff, addon-groups, POS modals, KDS components, dashboard — light mode pixel-stable; docs amended (title-bar-phase1, platform matrix) Review fixes (greptile): in-window user-choice guard; DB fetch before mirror; bounded retry with no stale mirror write-back; server-truth rollback; one-shot follower re-check after transient outage; hydration delivers server truth when a failed save armed it. Ponytail cleanup: shared fetchThemeMode helper (boot + recheck dedup), stdlib asserts in theme-mode-settings, trimmed VM stubs, optional relaunch on relaunched harness, dead refs/conditions/comments removed (-144 lines). Rebase follow-ups (FreeOpenSourcePOS#537/FreeOpenSourcePOS#549/FreeOpenSourcePOS#546): tokenize weighted-products/refund/ period-toggle surfaces; fr.json theme-key parity; auth-changed dispatch guarded for non-browser envs (auth-ui-deterministic); themed order-card selector in quick-customer-creation e2e; dashboard KPI values kept dark on pastel tiles; reports-insights fixtures made date-independent (they aged out of the 90-day window on Aug 31); comment hygiene (~200 lines of review-narration stripped); test:refunds restored to the test chain; allowScripts field declared for local npm install scripts.
carvalab
added a commit
that referenced
this pull request
Aug 31, 2026
…ion (#513) - theme_mode setting (light|dark|system, default system) validated in both write paths (IPC set-setting + HTTP wildcard PUT); no migration, no seeding - useThemeMode store + ThemeSync component: matchMedia resolution, .dark toggle, ownership-gated localStorage mirror, token-gated DB seed for follower windows (DB > param > mirror > OS, bounded retry with real delay + one-shot 60s re-check after transient failure), in-window user-choice guard, server-truth rollback with needsServerTruth hydration delivery, post-login re-hydration via flo:auth-changed, set-theme-effective push - FOUC pre-paint guard (param > mirror > prefers-color-scheme) with vm-based precedence matrix test - main-process wiring: direct getDatabase() initial isDark at window creation, sender-validated set-theme-effective handler (overlay + background color, main window only), effectiveTheme on get-status, ?theme= on the KDS window URL - Appearance settings tab (ownerManager-gated, optimistic + rollback, 5 locales incl. French from #549) - native Electron e2e: dark toggle, nativeTheme.themeSource system sync, relaunch persistence; theme-mode-settings + theme-fouc-script suites; KDS-hardening and renderer-API expectations aligned - full dark-mode coverage: Settings page and panels, products, customers, tables, staff, addon-groups, POS modals, KDS components, dashboard, loyalty ledger modal — light mode pixel-stable - docs amended (title-bar-phase1, platform matrix); reports-insights fixtures date-independent; allowScripts field for local install scripts Review fixes (greptile): in-window user-choice guard; DB fetch before mirror; bounded retry with no stale mirror write-back; server-truth rollback; one-shot follower re-check after transient outage; hydration delivers server truth when a failed save armed it. Ponytail cleanup: shared fetchThemeMode helper (boot + recheck dedup), stdlib asserts in theme-mode-settings, trimmed VM stubs, optional relaunch on relaunched harness, dead refs/conditions/comments removed (-144 lines). Rebase follow-ups (#537/#549/#546/#562): tokenize weighted-products/refund/ period-toggle/loyalty-ledger surfaces; fr.json theme-key parity; auth dispatch guarded for non-browser envs (auth-ui-deterministic); themed order-card selector in quick-customer-creation e2e; dashboard KPI values kept dark on pastel tiles; test:refunds restored to the test chain; comment hygiene (~200 lines of review-narration stripped); allowScripts field for local npm install scripts.
carvalab
added a commit
that referenced
this pull request
Aug 31, 2026
…ion (#513) - theme_mode setting (light|dark|system, default system) validated in both write paths (IPC set-setting + HTTP wildcard PUT); no migration, no seeding - useThemeMode store + ThemeSync component: matchMedia resolution, .dark toggle, ownership-gated localStorage mirror, token-gated DB seed for follower windows (DB > param > mirror > OS, bounded retry with real delay + one-shot 60s re-check after transient failure), in-window user-choice guard, server-truth rollback with needsServerTruth hydration delivery, post-login re-hydration via flo:auth-changed, set-theme-effective push - FOUC pre-paint guard (param > mirror > prefers-color-scheme) with vm-based precedence matrix test - main-process wiring: direct getDatabase() initial isDark at window creation, sender-validated set-theme-effective handler (overlay + background color, main window only), effectiveTheme on get-status, ?theme= on the KDS window URL - Appearance settings tab (ownerManager-gated, optimistic + rollback, 5 locales incl. French from #549) - native Electron e2e: dark toggle, nativeTheme.themeSource system sync, relaunch persistence; theme-mode-settings + theme-fouc-script suites; KDS-hardening and renderer-API expectations aligned - full dark-mode coverage: Settings page and panels, products, customers, tables, staff, addon-groups, POS modals, KDS components, dashboard, loyalty ledger modal — light mode pixel-stable - docs amended (title-bar-phase1, platform matrix); allowScripts field for local npm install scripts Review fixes (greptile): in-window user-choice guard; DB fetch before mirror; bounded retry with no stale mirror write-back; server-truth rollback; one-shot follower re-check after transient outage; hydration delivers server truth when a failed save armed it. Ponytail cleanup: shared fetchThemeMode helper (boot + recheck dedup), stdlib asserts in theme-mode-settings, trimmed VM stubs, optional relaunch on relaunched harness, dead refs/conditions/comments removed (-144 lines). Rebase follow-ups (#537/#549/#546/#562): tokenize weighted-products/refund/ period-toggle/loyalty-ledger surfaces; fr.json theme-key parity; auth dispatch guarded for non-browser envs (auth-ui-deterministic); themed order-card selector in quick-customer-creation e2e; dashboard KPI values kept dark on pastel tiles; reports-insights fixtures date-independent (upstream #562 fix adopted); test:refunds restored to the test chain; comment hygiene (~200 lines of review-narration stripped); allowScripts field for local npm install scripts.
carvalab
added a commit
that referenced
this pull request
Aug 31, 2026
…ion (#513) (#563) - theme_mode setting (light|dark|system, default system) validated in both write paths (IPC set-setting + HTTP wildcard PUT); no migration, no seeding - useThemeMode store + ThemeSync component: matchMedia resolution, .dark toggle, ownership-gated localStorage mirror, token-gated DB seed for follower windows (DB > param > mirror > OS, bounded retry with real delay + one-shot 60s re-check after transient failure), in-window user-choice guard, server-truth rollback with needsServerTruth hydration delivery, post-login re-hydration via flo:auth-changed, set-theme-effective push - FOUC pre-paint guard (param > mirror > prefers-color-scheme) with vm-based precedence matrix test - main-process wiring: direct getDatabase() initial isDark at window creation, sender-validated set-theme-effective handler (overlay + background color, main window only), effectiveTheme on get-status, ?theme= on the KDS window URL - Appearance settings tab (ownerManager-gated, optimistic + rollback, 5 locales incl. French from #549) - native Electron e2e: dark toggle, nativeTheme.themeSource system sync, relaunch persistence; theme-mode-settings + theme-fouc-script suites; KDS-hardening and renderer-API expectations aligned - full dark-mode coverage: Settings page and panels, products, customers, tables, staff, addon-groups, POS modals, KDS components, dashboard, loyalty ledger modal — light mode pixel-stable - docs amended (title-bar-phase1, platform matrix); allowScripts field for local npm install scripts Review fixes (greptile): in-window user-choice guard; DB fetch before mirror; bounded retry with no stale mirror write-back; server-truth rollback; one-shot follower re-check after transient outage; hydration delivers server truth when a failed save armed it. Ponytail cleanup: shared fetchThemeMode helper (boot + recheck dedup), stdlib asserts in theme-mode-settings, trimmed VM stubs, optional relaunch on relaunched harness, dead refs/conditions/comments removed (-144 lines). Rebase follow-ups (#537/#549/#546/#562): tokenize weighted-products/refund/ period-toggle/loyalty-ledger surfaces; fr.json theme-key parity; auth dispatch guarded for non-browser envs (auth-ui-deterministic); themed order-card selector in quick-customer-creation e2e; dashboard KPI values kept dark on pastel tiles; reports-insights fixtures date-independent (upstream #562 fix adopted); test:refunds restored to the test chain; comment hygiene (~200 lines of review-narration stripped); allowScripts field for local npm install scripts.
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.
Intent
Add French language support and full i18n localization
What Changed
fr) language configuration and UI message catalogue infrontend/src/lib/i18n/messages/fr.json.main/print/print-labels.generated.tsand localized demo restaurant seeding for French inmain/routes/auth.ts.Risk Assessment
✅ Low: The change cleanly adds French language support across the i18n registry, translation bundle, printer labels, and demo fixtures with comprehensive parity test coverage.
Testing
Exercised full French (fr) i18n localization, translation key parity across all 2,248 keys in en/es/fr/pt/fa, print label code generation, French demo restaurant profile seeding, SSR formatting, error surface rendering, and generated full reviewer-visible visual screenshots and HTML artifacts in the dedicated evidence directory. All targeted tests passed cleanly with 0 failures.
~/.no-mistakes/evidence/01M1ACNC10PJ0HA2E0TKR2BYQN/web_print_bill_fr_fr.png)Evidence: Web Print Bill (French fr-FR) HTML Render
~/.no-mistakes/evidence/01M1ACNC10PJ0HA2E0TKR2BYQN/tables_ui_void_adjustment_fr.png)Evidence: Tables UI Void Adjustment Status (French) HTML Render
~/.no-mistakes/evidence/01M1ACNC10PJ0HA2E0TKR2BYQN/pos-printer-error-card-fr.png)Evidence: POS Printer Error Card (French) HTML Render
~/.no-mistakes/evidence/01M1ACNC10PJ0HA2E0TKR2BYQN/printer-status-dropdown-fr.png)~/.no-mistakes/evidence/01M1ACNC10PJ0HA2E0TKR2BYQN/import-success-toast-fr.png)~/.no-mistakes/evidence/01M1ACNC10PJ0HA2E0TKR2BYQN/support-queued-toast-fr.png)~/.no-mistakes/evidence/01M1ACNC10PJ0HA2E0TKR2BYQN/i18n-ssr-timezone-fr.png)Pipeline
Updates from git push no-mistakes
✅ **intent** - passed
✅ No issues found.
✅ **Rebase** - passed
✅ No issues found.
✅ **Review** - passed
✅ No issues found.
✅ **Test** - passed
✅ No issues found.
npm run test:translationsnpm run test:print-labelsEVIDENCE_DIR=~/.no-mistakes/evidence/01M1ACNC10PJ0HA2E0TKR2BYQN npx ts-node --transpile-only -P tests/tsconfig.json tests/i18n-audit-remediations.test.tsEVIDENCE_DIR=~/.no-mistakes/evidence/01M1ACNC10PJ0HA2E0TKR2BYQN npx ts-node --transpile-only -P tests/tsconfig.json tests/issue-241-localized-errors.test.tsEVIDENCE_DIR=~/.no-mistakes/evidence/01M1ACNC10PJ0HA2E0TKR2BYQN npx ts-node --transpile-only -P tests/tsconfig.json tests/i18n-ssr-timezone.test.tsnpx ts-node --transpile-only -P tests/tsconfig.json tests/issue-263-phone-normalization.test.tsnpx ts-node --transpile-only -P tests/tsconfig.json tests/rtl-setup-auth-settings.test.tsnpx ts-node --transpile-only -P tests/tsconfig.json tests/rtl-dashboard-pos-common.test.tsnpx ts-node --transpile-only -P tests/tsconfig.json tests/rtl-kds-server-whatsapp.test.tsnpx ts-node --transpile-only -P tests/tsconfig.json tests/print-parity.test.tsnpx ts-node --transpile-only -P tests/tsconfig.json tests/print-kernel.test.tsnpm run i18n:check✅ **Document** - passed
✅ No issues found.
✅ **Lint** - passed
✅ No issues found.
✅ **Push** - passed
✅ No issues found.