From afe2a1b4022e5ea9e1fca94bf413bb74726b5fb8 Mon Sep 17 00:00:00 2001 From: Jonathan Spangler Date: Tue, 13 Oct 2026 18:33:18 -0700 Subject: [PATCH 1/2] fix(desktop): agree nouns with counts ("1 Mac", "Show 1 more model") 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 --- CHANGELOG.md | 4 ++ .../src/renderer/features/home/FleetMacs.tsx | 4 +- .../features/models/ExpandableModelList.tsx | 3 +- .../features/models/RecommendedModels.tsx | 4 +- .../renderer/features/stats/RequestCurve.tsx | 4 +- .../renderer/features/stats/tokenSeries.ts | 4 +- desktop-app/src/renderer/format.ts | 8 ++++ desktop-app/tests/pluralization.test.tsx | 46 +++++++++++++++++++ 8 files changed, 68 insertions(+), 9 deletions(-) create mode 100644 desktop-app/tests/pluralization.test.tsx diff --git a/CHANGELOG.md b/CHANGELOG.md index 2a6fb21ded..fda6a004c8 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,9 @@ # Changelog +## Unreleased — desktop singular counts + +- Use singular nouns for counts of one: “1 Mac” on Home, “Show 1 more model” on Models, “1 download” in model recommendations, and the Stats chart and token-bar descriptions. + ## Unreleased — desktop hardware load - Serve real whole-machine load to the desktop app over the authenticated loopback control API: per-core CPU load with the chip's tier and cluster layout (including M5 Super cores), GPU utilization and memory, ANE activity, memory use and pressure, thermal state, and Darkbloom's share of GPU time. Sampling runs in the desktop API process only while the app is looking, without root, and never reaches heartbeats, logs or the coordinator. diff --git a/desktop-app/src/renderer/features/home/FleetMacs.tsx b/desktop-app/src/renderer/features/home/FleetMacs.tsx index fa7e6eb521..5a92e73a5f 100644 --- a/desktop-app/src/renderer/features/home/FleetMacs.tsx +++ b/desktop-app/src/renderer/features/home/FleetMacs.tsx @@ -2,7 +2,7 @@ import { machineStatus } from '../../presentation/status'; import { useState } from 'react'; import { Search } from 'lucide-react'; import type { Machine } from '../../../shared/contracts'; -import { money } from '../../format'; +import { money, plural } from '../../format'; import { Empty, Status } from '../../components/UI'; import { MachineIcon } from '../machines/MachineIcon'; import { isOnline, memoryLabel } from '../machines/fleet'; @@ -30,7 +30,7 @@ export function FleetMacs({

Your Macs

- {machines.length} Macs + {plural(machines.length, 'Mac')}