Skip to content

fix(web): pluralize Topics KPI strings and align pts decimal formatting - #619

Merged
gkhngyk merged 1 commit into
ansvisor:mainfrom
d180:fix/topics-kpi-plural-decimal-format
Aug 3, 2026
Merged

gkhngyk merged 1 commit into
ansvisor:mainfrom
d180:fix/topics-kpi-plural-decimal-format

Conversation

@d180

@d180 d180 commented Aug 3, 2026

Copy link
Copy Markdown
Contributor

Summary

  • kpi.unassignedPrompts and appearedIn used plain interpolation, so a count of 1 rendered "1 prompts without a topic" / "Appeared in 1 of 1 prompts". Both now use ICU plural form, matching the existing citations.domainCount precedent.
  • The Top Mover KPI rendered the raw change value (+4 pts) while the leaderboard's Trend column formats the identical value with one decimal (4.0 pts). Applied .toFixed(1) to the Top Mover value so both surfaces now agree (+4.0 pts).

Related issue

Closes #596

Type of change

  • fix — Bug fix

Checklist

  • Branch follows the naming convention (fix/)
  • Commits follow Conventional Commits
  • yarn lint passes (run from web/)
  • yarn typecheck passes (run from web/)
  • yarn format:check passes (run from web/)
  • Changes are focused — one concern per PR

@gkhngyk gkhngyk left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Correct ICU plurals and the pts decimal now matches the leaderboard. Thanks!

@gkhngyk
gkhngyk merged commit 0498ed7 into ansvisor:main Aug 3, 2026
4 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.

Topics KPI strip: "1 prompts without a topic" pluralization and +4 vs 4.0 pts formatting mismatch

2 participants