#13511: feat: Short menu for testing model selection
app: web-ui
stale
Cluster:
UI Improvements and Fixes
## Summary
Implements a short menu option for testing model selection to keep the UI focused during development/testing.
## Changes
- Added environment-based menu configuration to navigation.ts
- Updated app-render.ts to use short menu when VITE_TEST_MODE is enabled
- Added vite-env.d.ts for proper TypeScript support of import.meta.env
## Testing
- Verified app-render.ts implementation meets all acceptance criteria
- Menu correctly switches between full and short configuration based on environment
## Related
- US-001: Environment-based menu configuration
- US-002: Short menu in test mode
<!-- greptile_comment -->
<h2>Greptile Overview</h2>
<h3>Greptile Summary</h3>
This PR introduces a “short menu” navigation configuration intended to simplify the UI during testing. It adds `SHORT_TAB_GROUPS` and env-based helpers in `ui/src/ui/navigation.ts`, updates `ui/src/ui/app-render.ts` to select between full vs short tab groups, and adds TypeScript env typings in `ui/src/vite-env.d.ts`, along with new/updated Vitest coverage around these helpers.
Main integration point is the sidebar tab rendering in `renderApp`, which now maps over a `tabGroups` selection rather than always using `TAB_GROUPS`.
<h3>Confidence Score: 3/5</h3>
- Mostly safe to merge, but there are a couple of correctness/repo-hygiene issues to address first.
- The navigation refactor is straightforward, but the env flag used in code (`VITE_SHORT_MENU`) appears to conflict with the PR’s stated `VITE_TEST_MODE` behavior, and the PR adds an apparent stray progress file to the repo.
- ui/src/ui/app-render.ts, progress.txt
<!-- greptile_other_comments_section -->
<!-- /greptile_comment -->
Most Similar PRs
#9628: fix: resolve tsconfig rootDir errors by separating UI config (AI-as...
by KGBos · 2026-02-05
69.5%
#22808: test(ui): split baseline browser-test fixes from webchat feature
by opnsec · 2026-02-21
68.3%
#7824: fix(ui): remove --prod install flag that causes vite not found error
by adityarao3 · 2026-02-03
67.2%
#18662: feat(ui): 3-state mode system
by jasonkneen · 2026-02-16
67.1%
#10800: fix(ui): apply token from URL param to settings
by callebtc · 2026-02-07
66.2%
#13838: UI: fix config panel CI failures and modularize rendering
by fresed05 · 2026-02-11
65.9%
#11979: fix: Change rootDir to project root to allow UI compilation
by fastroc · 2026-02-08
65.4%
#23135: feat(macos): menubar UI consistency overhaul — sections, hover, ico...
by apethree · 2026-02-22
65.1%
#11527: feat(control-ui): UX improvements — Enter key, thinking icon, auto-...
by Annaxiebot · 2026-02-07
64.8%
#5509: Fix TUI crash when terminal window is too narrow
by omar-khaled-2 · 2026-01-31
64.8%