Skip to content

feat(web): show full number below 10,000 instead of compact K suffix#295

Open
fengshao1227 wants to merge 1 commit into
seakee:mainfrom
fengshao1227:feat/show-full-number-below-10k
Open

feat(web): show full number below 10,000 instead of compact K suffix#295
fengshao1227 wants to merge 1 commit into
seakee:mainfrom
fengshao1227:feat/show-full-number-below-10k

Conversation

@fengshao1227

@fengshao1227 fengshao1227 commented Jul 7, 2026

Copy link
Copy Markdown

Summary

Display full numeric values for numbers below 10,000 instead of abbreviating them with the K suffix (e.g., 1200 instead of 1.2K). Numbers >= 10,000 continue to use K format as before.

Scope

  • Frontend panel
  • Manager Server
  • CPA panel mode
  • Full Docker mode
  • Native packages / release
  • Docs / Wiki
  • CI / build / tooling

Changes

  • Raise the K-suffix threshold from 1,000 to 10,000 in the canonical formatCompactNumber (usage.ts) by separating threshold from divisor
  • Apply the same threshold change in two local duplicates (usageAnalyticsPresentation.ts, UsageAnalyticsPage.tsx)
  • Update unit tests and component tests to match

User Impact

Token/usage values between 1,000–9,999 now display as full numbers (e.g., 1900 instead of 1.9K), making it easier to distinguish exact reasoning token counts.

Compatibility / Runtime Notes

  • CPA panel mode: N/A
  • Manager Server mode: N/A
  • Full Docker / native packages: N/A

Data / Security Notes

N/A

Risk / Rollback

Risk level: Low

Rollback notes:

  • Revert the single commit to restore the original 1,000 threshold

Verification

  • Type check
  • Lint
  • Tests
  • Build
  • Manual UI check
  • Docs/link check
  • Not applicable, docs-only

Commands / evidence:

npm --workspace apps/web run test    # 82 passed, 673 tests
npm --workspace apps/web run type-check  # clean

Screenshots / Recordings

N/A — display-only formatting change

Docs

  • README updated
  • Wiki updated
  • Release notes needed
  • Not needed

Related

Closes #249

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.

[Feature]: 用量在10000以下显示完整数值

1 participant