Skip to content

fix(web): align mobile navigation preferences - #771

Merged
gkhngyk merged 1 commit into
ansvisor:mainfrom
luozejian:fix/mobile-nav-brand-preferences
Aug 22, 2026
Merged

gkhngyk merged 1 commit into
ansvisor:mainfrom
luozejian:fix/mobile-nav-brand-preferences

Conversation

@luozejian

Copy link
Copy Markdown
Contributor

Summary

  • share dashboard-label translation and brand-preference visibility rules between desktop and mobile navigation
  • hide Shopping in mobile navigation when the active brand has shopping mode disabled
  • route all dashboard labels and the brand-scoped Prompts link through i18n
  • add focused tests for navigation label coverage and Shopping visibility

Fixes #766

Validation

  • yarn test (18 files, 103 tests)
  • yarn typecheck
  • yarn lint (passes with 7 existing warnings in untouched files)
  • yarn format:check
  • npm run version:check

Build note

yarn build compiles and completes TypeScript validation, but page-data collection needs real server-side Supabase configuration (supabaseUrl and supabaseKey), which is intentionally not present in this local environment.

Screenshots

Not included: the full authenticated Supabase-backed app was not run locally.

@github-actions github-actions 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.

Welcome to Ansvisor, and thank you for your first PR! A maintainer will be by soon to review.

In the meantime, two things that make review faster:

  • A short description of why the change matters, not just what it does — most of our PRs link a Fixes #... to the issue that explains the why.
  • A quick local test note if there's anything worth eyeballing in the browser.

If you'd like to keep an eye on where Ansvisor goes next, a ⭐ on the repo helps others discover it (and Watch sends you a ping when related issues land). Either way — looking forward to your next one.

@gkhngyk
gkhngyk merged commit 75b63d3 into ansvisor:main Aug 22, 2026
5 checks passed
@gkhngyk

gkhngyk commented Aug 22, 2026

Copy link
Copy Markdown
Contributor

Matches the issue exactly: one shared helper, the label map pinned to dashboardNav by a test so the two menus can't drift again, and the dead Overview/Settings keys gone. CI green. Thanks!

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.

bug: the mobile menu ignores the brand-preference check and four labels bypass i18n

2 participants