mirror of
https://github.com/bitbaum/petvity.git
synced 2026-12-05 03:27:18 +01:00
The header sweep missed the nested pages. Check-in, add-pet, edit-pet, health
and health-log still hand-rolled their own <h1>, and had drifted apart exactly
the way the sweep was meant to stop: font-bold vs font-semibold, mb-1 vs mb-2
vs mb-6, three spellings of the same back link. Two of them never said what
they were for at all.
All five now use PageHeader. Add-pet and health-log already had a subtitle, so
those are structural only; check-in, edit-pet and health needed a purpose line,
added in all nine locales.
The dashboard read "All 1 pets checked in today" for anyone with one pet — the
common case for a new owner, and the first sentence the demo shows. The string
had no plural form. Now pluralised via ICU for the six languages with
grammatical number; ja/zh/ko keep a single form, which is how every other count
string in those files is already written.
While fixing it, the same sentence turned out to exist twice — checkinAllDone /
checkinProgress on the check-in page and allCheckedIn / partialCheckedIn on the
dashboard, identical in meaning and already drifted in wording ("{done} /
{total}" vs "{done} of {total}"). Fixing the plural in one would have left the
other wrong, so the pair is consolidated onto the better-worded one and the
duplicates are deleted from all nine locales.
Verified the ICU by parsing every message in every locale (13914 messages, 0
malformed) and by formatting allCheckedIn at n=1 and n=3 in all six pluralised
languages. The walkthrough now covers all five pages for both a title and a
purpose line, so "every page opens the same way" is checked rather than assumed.
Co-authored-by: Claude Opus 5 <noreply@anthropic.com>