Skip to content

fix(ui): stabilize settings apply flow and mobile/admin UX - #12

Merged
kutaelee merged 2 commits into
mainfrom
fix/ui-routing-mobile-settings
Mar 6, 2026
Merged

fix(ui): stabilize settings apply flow and mobile/admin UX#12
kutaelee merged 2 commits into
mainfrom
fix/ui-routing-mobile-settings

Conversation

@kutaelee

@kutaelee kutaelee commented Mar 6, 2026

Copy link
Copy Markdown
Owner

What\n- Make app locale state global () and persist in localStorage\n- Sync locale from on load and after save\n- Apply settings immediately after save (reload)\n- Add AppShell brand click -> \n- Improve admin shell mobile tab layout\n- Add preferences read fallback ( -> on 404)\n\n## Why\nAddress runtime issues reported in production-like access:\n- settings save/apply feels not reflected globally\n- mobile settings tab layout breakage\n- home navigation missing on logo click\n\n## Validation\n- bash scripts/run_evidence.sh --scope ui_light PASS\n- API checks for and root children pass

@kutaelee
kutaelee merged commit 4f197f6 into main Mar 6, 2026
2 checks passed

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 3f0ffd4ed6

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread packages/ui/src/i18n/t.ts
let currentLocale: Locale = "ko-KR";

if (typeof window !== "undefined") {
const saved = window.localStorage.getItem(LOCALE_KEY);

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P1 Badge Guard locale bootstrap from storage access failures

Reading window.localStorage at module initialization can throw a SecurityError in environments where storage is blocked (for example strict privacy settings or sandboxed contexts), and this code runs as soon as t.ts is imported by the app shell. That turns a recoverable preference read into an app-boot crash for all routes, so this read should be wrapped in a safe fallback path instead of executing unguarded at import time.

Useful? React with 👍 / 👎.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant