Skip to content

feat(app): left sidebar app shell with grouped navigation / 左侧边栏应用外壳与分组导航 - #883

Draft
adibarra wants to merge 2 commits into
masterfrom
redesign/sidebar-shell
Draft

feat(app): left sidebar app shell with grouped navigation / 左侧边栏应用外壳与分组导航#883
adibarra wants to merge 2 commits into
masterfrom
redesign/sidebar-shell

Conversation

@adibarra

Copy link
Copy Markdown
Contributor

Alternative take on the shell redesign, for comparison with #882: the header becomes a fixed left sidebar from the xl breakpoint up, giving the site an app-like frame with far more navigation surface. Builds on the #882 editorial light theme (its landing/footer commit is included on this branch).

这是与 #882 对比的另一版外壳重设计:从 xl 断点起,顶部导航栏变为固定左侧边栏,为站点提供更接近应用的框架和更充裕的导航空间。本分支包含 #882 的落地页与页脚提交。

What changed / 变更内容

  • Left sidebar at xl+ — brand on top, grouped navigation in the middle, utilities (GitHub stars, language, theme, minecraft toggles) pinned to the foot. Below xl the shell collapses to the previous sticky top bar with the hamburger menu, so tablet/mobile behavior is untouched.
  • Primary nav with icons — Home, AgentX (NEW), Overview, Dashboard, Comparisons, Articles, About, same order and testids as before.
  • Nested dashboard tabs — while any dashboard route is active, the seven primary tabs (Inference Performance, Accuracy Evals, Historical Trends, TCO Calculator, Fleet Lifecycle, Chip Specs, Submissions) render beneath the Dashboard entry (sidebar-tab-*), so tab switching no longer depends on the horizontal tab bar.
  • Data & Reference group — deep destinations that previously lived only in the footer are now one click away: GPU Rankings, Model on GPU Results, Chip Specs & Pricing, Chip Reliability, Performance per Dollar, Glossary, API Reference (sidebar-link-*, additive namespace).
  • Layout — content column (pages + footer) shifts right via xl:pl-72; the minecraft grass strip moves from the header underline to the sidebar's right edge at xl; the agentic metric toolbar's sticky offset adjusts at xl since there is no top bar.
  • Full 中文 mirror: group headings, secondary links, and dashboard tabs all localized; NEW badge renders 新.

Compatibility / 兼容性

  • One DOM tree serves both layouts, so every existing testid exists exactly once: header, header-brand, nav-link-* (order preserved), language-toggle, theme-toggle, header-star-button, mobile-menu-toggle, mobile-menu.
  • All routes remain reachable; navigation behavior (navigateInApp double-push for Overview/Dashboard, current-page no-op, analytics events) is unchanged. New links use additive sidebar-link-* / sidebar-tab-* testids and new analytics events.
  • Light remains the default theme; dark and minecraft verified.

QA

  • Playwright at 1280/1440 (sidebar), 1009–1024 (hamburger), 375 and 320 (mobile menu: 7 links ≥44px, 44×44 targets, star hidden, no overflow) in light, dark, minecraft, and 中文.
  • Verified hydrated in-app navigation: Dashboard entry, nested tab (TCO Calculator), secondary link (GPU Rankings), language toggle, theme cycle, mobile menu.
  • typecheck, lint, fmt pass. Cypress could not launch in this sandbox (Node/undici env limitation), so the header component contract was re-verified point-by-point with Playwright instead.

Screenshots: desktop sidebar (light/dark/minecraft/zh), dashboard sub-tabs, and 320px mobile menu were reviewed during QA.

From the xl breakpoint up the header renders as a fixed left sidebar:
brand on top, primary nav with icons, nested dashboard tabs while a
dashboard route is active, a Data & Reference group surfacing deep
destinations (rankings, run results, chip specs, reliability,
per-dollar, glossary, API), and utilities pinned to the foot. Below xl
the shell collapses to the previous sticky top bar with the hamburger
menu, so every existing nav-link-* testid, order, and behavior is
unchanged. The content column shifts right via xl:pl-72; the minecraft
grass strip moves to the sidebar's right edge at xl.
@vercel

vercel Bot commented Aug 27, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
inferencemax-app Ready Ready Preview Aug 27, 2026 4:05am

Request Review

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.

2 participants