Repository navigation
fix(desktop): agree nouns with counts (“1 Mac”, “Show 1 more model”) - #1472
Merged
jonathan308 merged 2 commits intoOct 15, 2026
Merged
Conversation
Several labels appended a fixed plural to a count: every single-Mac or unlinked user saw "1 Macs" above Home's Mac list, Models offered "Show 1 more models", recommendations said "1 downloads", and the Stats request curve and token-bar descriptions read "1 requests" / "1 tokens". Add a small plural() helper next to count() and use it at each site. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
jonathan308
had a problem deploying
to
benchmarks
October 14, 2026 01:33 — with
GitHub Actions
Error
The live-activity summary printed a fixed plural next to the count, so a single in-flight request read "1 requests processing". Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
jonathan308
had a problem deploying
to
benchmarks
October 14, 2026 20:08 — with
GitHub Actions
Error
Collaborator
Author
|
Follow-up 7d14f9c: live activity's summary read "1 requests processing" for a single in-flight request. Covered by a new case in |
jonathan308
merged commit Oct 15, 2026
c5406ed
into
codex/desktop-mac-preview-20261012
30 of 33 checks passed
This branch was successfully deployed
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
Several labels appended a fixed plural noun to a count:
Found during the second desktop UI audit pass. Base:
codex/desktop-mac-preview-20261012(unmerged desktop stack: #1354 plus the signed preview packaging commits). The diff contains only this fix. The Desktop / frontend check on this base also needs #1455.Before / After
flowchart LR subgraph Before["Before"] direction TB B1(["machines.length = 1"]):::user --> B2["`${n} Macs`"]:::bad B2 --> B3(["“1 Macs”"]):::bad end subgraph After["After"] direction TB A1(["machines.length = 1"]):::user --> A2["plural(n, 'Mac')"]:::fix A2 --> A3(["“1 Mac” · “2 Macs”"]):::good end classDef user fill:#1f2937,stroke:#93c5fd,color:#f9fafb classDef bad fill:#7f1d1d,stroke:#fca5a5,color:#fef2f2 classDef fix fill:#065f46,stroke:#6ee7b7,color:#ecfdf5 classDef good fill:#14532d,stroke:#86efac,color:#f0fdf4Legend: blue = data, red = defect, green = changed code / fixed outcome. The same helper is used at all five sites.
Changes
format.ts:plural(value, one, many?, format = count)returns the formatted count with the agreeing noun.FleetMacs.tsx,ExpandableModelList.tsx,RecommendedModels.tsx,stats/RequestCurve.tsx,stats/tokenSeries.ts: use it.tests/pluralization.test.tsx(new): the helper, 1 Mac, Show 1 more model, and the singular token-bar description. All four tests fail on the base branch.CHANGELOG.md: Unreleased entry.Validation
🤖 Generated with Claude Code
Need help on this PR? Tag
@codesmith-botwith what you need.