Skip to content

fix(dashboard): /dashboard/context parent route + missing sidebar.gamificationGroup i18n (#5298) - #5306

Merged
diegosouzapw merged 1 commit into
release/v3.8.40from
fix/5298-services-dashboard-fixes
Jun 29, 2026
Merged

diegosouzapw merged 1 commit into
release/v3.8.40from
fix/5298-services-dashboard-fixes

Conversation

@diegosouzapw

Copy link
Copy Markdown
Collaborator

Partial fix for #5298 — the two items not covered by @KooshaPari's #5299 (which handles service-log lazy-init, empty-install bodies and Tailscale CGNAT coverage).

1. /dashboard/context parent route 404

The compression-context hub had only sub-routes (settings, combos, caveman, rtk, headroom, session-dedup, ccr, llmlingua, lite, aggressive, ultra) and no parent page.tsx, so Next.js RSC prefetches of the bare /dashboard/context segment returned 404 (/dashboard/context?_rsc=… → 404). Added a parent page that redirect()s to the canonical sub-route (/dashboard/context/settings), honoring a legacy ?tab= query for deep links — mirroring the existing /dashboard/settings parent pattern.

2. Missing sidebar.gamificationGroup i18n message

src/shared/constants/sidebarVisibility.ts references titleKey: "gamificationGroup" for the Gamification group, but that key existed in none of the 42 locales → runtime MISSING_MESSAGE: sidebar.gamificationGroup (en) (the group still rendered via its titleFallback: "Gamification", so it was a console warning, not a broken UI). Added the key to all 42 locales (English value, matching the fallback), so coverage is unchanged and the warning is gone.

Not included (deliberate)

  • service-log lazy-init, empty-install body, Tailscale CGNAT → [codex] Fix service dashboard console failures #5299 (KooshaPari).
  • /api/v1/providers/cliproxyapi/models provider-id mapping → needs a product decision on what cliproxyapi should resolve to (left for follow-up).

Validation

  • New tests/unit/dashboard/context-parent-redirect-5298.test.ts — pure resolveContextRoute resolver (default + known-tab + unknown-tab fallback), 3/3 pass; every mapped target verified to exist as a real sub-route.
  • typecheck:core clean, eslint 0 errors, prettier --check clean.
  • check-ui-keys-coverage --threshold=65 (the CI threshold) passes at 77.5% (unchanged); check:test-discovery OK (new test collected).

@gemini-code-assist

Copy link
Copy Markdown
Contributor

Warning

You have reached your daily quota limit. Please wait up to 24 hours and I will start processing your requests again!

@chatgpt-codex-connector

Copy link
Copy Markdown

You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard.

….gamificationGroup i18n (#5298)

Two of the console failures reported in #5298 (the service-log lazy-init,
empty-install body and Tailscale CGNAT items are covered by #5299):

- /dashboard/context had only sub-routes and no parent page, so RSC prefetches
  of the bare segment 404'd. Add a parent page that redirects to the canonical
  sub-route (/dashboard/context/settings), honoring a legacy ?tab= query.
- The Gamification sidebar group referenced sidebar.gamificationGroup, a key
  present in no locale -> MISSING_MESSAGE warning at runtime (UI still rendered
  via titleFallback). Add the key across all 42 locales.

Regression guard: tests/unit/dashboard/context-parent-redirect-5298.test.ts.

Co-authored-by: KooshaPari <KooshaPari@users.noreply.github.com>
@diegosouzapw
diegosouzapw force-pushed the fix/5298-services-dashboard-fixes branch from ebf6849 to 09b85a2 Compare June 29, 2026 06:51
@diegosouzapw
diegosouzapw merged commit dbe750f into release/v3.8.40 Jun 29, 2026
7 checks passed
@diegosouzapw
diegosouzapw deleted the fix/5298-services-dashboard-fixes branch June 29, 2026 07:24
tkgo11 pushed a commit to tkgo11/OmniRoute that referenced this pull request Sep 23, 2026
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