Skip to content

Replace overview SLO buttons with a six-stop slider / 将 Overview 页 SLO 按钮替换为六档滑块 - #701

Draft
functionstackx wants to merge 2 commits into
masterfrom
codex/overview-slo-slider
Draft

Replace overview SLO buttons with a six-stop slider / 将 Overview 页 SLO 按钮替换为六档滑块#701
functionstackx wants to merge 2 commits into
masterfrom
codex/overview-slo-slider

Conversation

@functionstackx

@functionstackx functionstackx commented Aug 9, 2026

Copy link
Copy Markdown
Contributor

Summary

  • Replaces the six SLO buttons on /overview with one discrete range slider for 30, 50, 75, 100, 150, and 200 tok/s/user.
  • Preserves the existing cached JSON navigation, canonical URL query, pending filter state, and overview_selector_changed analytics.
  • Adds a selected-track treatment and contrasting ridges at all six stops, plus accessible English/Chinese value text, while retaining native keyboard, pointer, and touch behavior.
  • Updates the overview E2E suite to exercise slider selection, ridge states, cache reuse, filter preservation, responsive layout, and the /zh/overview sibling.

Validation

  • bun run fmt
  • bun run lint
  • bun run typecheck
  • Focused overview unit tests: 102 passed
  • Fixture-backed overview.cy.ts: 28 passed
  • Live browser verification at /overview and /zh/overview for SLO 50 and 100, including filled/selected/unfilled ridges; no console errors
  • bun run test:unit: 3,705 app/constants/database tests passed; the unrelated MCP package then failed 25 tests during mocked server setup because z.enum was undefined

中文说明

  • /overview 原有的六个 SLO 按钮替换为离散滑块,可选择 30、50、75、100、150、200 tok/s/user 六档。
  • 保留现有的 JSON 缓存导航、规范化 URL 查询参数、待提交筛选状态与 overview_selector_changed 埋点。
  • 增加已选区间样式及六个档位的对比刻度脊线,并提供中英文无障碍数值说明,同时继续使用原生键盘、指针与触控交互。
  • 更新 Overview E2E 测试,覆盖滑块选择、刻度状态、缓存复用、筛选条件保留、响应式布局及 /zh/overview 中文页面。

验证结果

  • bun run fmt
  • bun run lint
  • bun run typecheck
  • Overview 相关单元测试:102 项通过
  • 基于 fixture 的 overview.cy.ts:28 项通过
  • /overview/zh/overview 上对 SLO 50、100 完成浏览器实测(包括已填充、当前选中与未填充刻度),控制台无报错
  • bun run test:unit:App、Constants、Database 共 3,705 项测试通过;随后与本次改动无关的 MCP package 在 mock server 初始化阶段因 z.enum 为 undefined 导致 25 项失败

Add a six-stop accessible range control that preserves overview URL state, cached navigation, analytics, and English/Chinese value text. Update overview E2E coverage for slider selection and filter preservation.

中文:将 Overview 页的 SLO 按钮组替换为六档无障碍滑块,同时保留 URL 状态、缓存导航、埋点以及中英文数值说明;更新 E2E 测试以覆盖滑块选择与筛选条件保留。
@vercel

vercel Bot commented Aug 9, 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 9, 2026 1:15am

Request Review

Render contrasting ridges at each of the six SLO stops and extend overview E2E coverage for filled, selected, and unfilled ridge states.

中文:为 Overview SLO 滑块的六个档位添加对比鲜明的刻度脊线,并扩展 E2E 测试,覆盖已填充、当前选中与未填充状态。
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