Skip to content

fix(web-ui): drop formula copy from turn metric tooltips - #3710

Merged
bobleer merged 1 commit into
openBitFun:mainfrom
bobleer:bob/drop-metric-formula-copy
Nov 3, 2026
Merged

bobleer merged 1 commit into
openBitFun:mainfrom
bobleer:bob/drop-metric-formula-copy

Conversation

@bobleer

@bobleer bobleer commented Nov 3, 2026

Copy link
Copy Markdown
Collaborator

Summary

The TPS and TTFT tooltips in the flow chat turn footer appended a note explaining how each value is calculated, including the 15/40/80 tokens/s speed-level boundaries. This removes that copy so the tooltips show only the measured values and speed level.

Type and Areas

Type: UI/UX

Areas: web UI (flow chat), design-lab preview, locales

Motivation / Impact

The calculation is implementation detail, not something users need in a tooltip, and the copy had already drifted: zh-TW still said TTFT is excluded from the rate, and the design-lab copy described a whole-turn-duration formula that no longer exists.

  • TurnUsageMetrics.tsx no longer passes a note to either tooltip.
  • modelRound.metrics.rateBasis and modelRound.metrics.ttftBasis are removed from en-US, zh-CN and zh-TW, and from the design-lab messages and preview. No other references remain.
  • FLOWCHAT_VIRTUALIZATION.md keeps the thresholds as a design fact but no longer says the tooltip discloses them.

Speed level labels, the rate value, and TTFT value are unchanged.

Verification

  • pnpm run i18n:contract:test — 37 passed.
  • pnpm run i18n:audit — passed, 0 warnings.
  • pnpm --dir src/web-ui run test:run src/flow_chat/components/modern/TurnUsageMetrics.test.tsx src/flow_chat/utils/turnUsageMetrics.test.ts — 36 passed.
  • pnpm run type-check:web and pnpm --dir design-system/apps/design-lab run type-check — clean.
  • Design lab, FlowChatTurnMetrics preview: the speed tooltip shows only "Average output rate · 42 tokens/s"; no formula text anywhere on the page.

Checklist

  • This PR is focused and does not include secrets, temporary prompts, generated scratch files, or unrelated artifacts.
  • Relevant verification is recorded above, or skipped checks are explained.
  • User-facing strings, docs, and locales are updated where applicable.

The TPS and TTFT tooltips appended a note explaining how each value is
calculated, including the 15/40/80 tokens/s speed-level boundaries. That
is implementation detail, and the zh-TW and design-lab copies had already
drifted from the real formula. Show only the measured values and level,
and remove the rateBasis and ttftBasis keys from every locale.
@bobleer
bobleer merged commit 3e13b3a into openBitFun:main Nov 3, 2026
3 checks passed
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