Repository navigation
fix(web-ui): drop formula copy from turn metric tooltips - #3710
Merged
Merged
Conversation
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.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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.tsxno longer passes anoteto either tooltip.modelRound.metrics.rateBasisandmodelRound.metrics.ttftBasisare removed from en-US, zh-CN and zh-TW, and from the design-lab messages and preview. No other references remain.FLOWCHAT_VIRTUALIZATION.mdkeeps 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:webandpnpm --dir design-system/apps/design-lab run type-check— clean.Checklist