Repository navigation
Conversation
…effect The detail page gets a one-line header with a menu (edit, pause, end) and four tabs instead of six. The overview opens with three cards built the same way (today, intake, effect), each ending in two equal buttons, then the plan as one table that now also holds the leaflet. The history is one row per day with a column per dose time and one menu per day. The effect tab leads with its result and keeps the method behind a fold. Settings replaces the schedule, supply and advanced tabs with four groups of one-line rows; everything longer opens in a sheet. The efficacy read carries targets[].result, the comparison's direction and one sentence in the reader's language, behind the feature key medication.efficacy-result. Old ?tab= slugs resolve to the tab that holds their controls, and an old supply link opens the supply sheet.
…edication-detail # Conflicts: # CHANGELOG.md
The overview cards move into one module each (anatomy, today, intake, effect, plan), the effect result helpers into their own module, and the short cadence line beside the header that uses it. The settings tab, the history table and the danger zone extract their sheet, groups, table and confirmation, so no function grows past the size ratchet. The intake card reads its rate through shownAdherence; the Polish and Russian miss sentences use the missed word; baselines record the lower counts.
…rt the old tabs used
…lan's supply line
…edication-detail # Conflicts: # CHANGELOG.md # docs/api/openapi.yaml # src/__tests__/baselines/source-file-lines.json # src/__tests__/baselines/source-function-lines.json # src/__tests__/baselines/version-stamp-comments.json # src/components/__tests__/delegated-write-affordances.test.tsx # src/lib/server-features.ts
…e source each The recurrence engine closed a dose's on-time window after the schedule's own value, else its legacy window span, else 60 minutes; the compliance cycle walk fell back to 60 without the span, and the page's plan row and reminder setting to 30. effectiveGraceMinutes is now the one rule and every reader calls it. The header menu and the settings switch each seeded a copy of the paused state at mount, so pausing from one left the other saying the opposite. The hook derives it from the stored active flag and overrides it only while its own write is in flight. A test pins both.
The Today card's sentence read back the time and the state its rows show; it now speaks only when there is no row. The Intake card named its window in the chip and again in the sentence, the Effect card the change in the sentence and again as a figure, and the plan repeated the cadence the header line carries. One filled button per screen: History, Details and the paused card's History are outlined.
… week The history was a table with a day per row, a column per dose time and a menu per day. It is now the shared ListGroup and ListItem: a card per week, the two newest first and older weeks on request, a row per dose with its state at the end and a second line only when what happened differs from the plan. A dose taken on time is a check. A tap opens the dose's sheet with take, skip, pin, release, edit, the toggle, open the day and delete; a write delegate gets take and skip. The summary keeps the rate and the counts that are not zero; its bar is gone, the overview has the picture.
…edication-detail # Conflicts: # CHANGELOG.md
…uttons already say
…ord out of the history
The retarget sheet passes its two buttons to the footer, the on-time check comes from the dose-state look, the single-source test reads through the source helpers, and the ratchets drop the entries the old dose table held.
…paused overview As needed, the Today card no longer repeats the header's "as needed", the Intake card leaves Log past dose to Today and its one-tone legend to the sentence. A dose that cannot be taken now leaves the Today card without a pair, since Intake below carries Log past dose and History.
…d the one on-time window
…edication-detail # Conflicts: # CHANGELOG.md # docs/api/openapi.yaml # src/__tests__/baselines/source-function-lines.json # src/__tests__/baselines/version-stamp-comments.json # src/components/medications/detail/medication-detail-tabs.tsx
…edication-detail # Conflicts: # src/__tests__/baselines/source-file-lines.json # src/__tests__/baselines/source-function-lines.json # src/__tests__/baselines/version-stamp-comments.json
…tail feat(medications): calm detail page with four tabs and server-worded effect
feat(i18n): add Simplified Chinese (zh-CN)
The rules from MBombeck#1528, as a guard rather than a convention, alongside the pass over the bundle that makes it green. Four rules, all scoped to `zh-CN.json`: - **No space before a measure word.** A number and the word counting it are one word in Chinese: `3天`, not `3 天`. The count arrives three ways — a placeholder (`{count}`), an ICU plural body's `#`, or digits — and all three are checked. - **The ellipsis is full.** `……`, not a lone `…`, which reads as a trailing fragment in Chinese typesetting. - **Lists use `、`**, not a half-width comma between two Han characters. - **`「」` and `『』` are exempt.** The glyph guard's ban on dashes and middle dots has nothing to say about them, and the exemption is written down so nobody corrects them to `“”`. The bundle pass removed **1190** spaces before measure words and turned **3** lone ellipses into `……`. No value had a half-width comma between Han characters, so that rule guards against regression rather than fixing anything. Latin units keep their space: `82 kg`, `120 mmHg`, `10 mg/dL` and `5 %` are untouched, because a space there is correct. The test says so, so a later reader cannot "fix" the guard into stripping those too. One glossary term moved with the bundle: the `snooze` concept anchored on `稍后提醒我({minutes} 分钟)` and now matches `稍后提醒我({minutes}分钟)`. Verified: the new guard 11/11, the glossary guard 114/114, and the i18n family (type-glyphs, count-plural, english-leak, dose-vocabulary, drift, title-case, boot catalogs, reverse and call-site coverage) green.
Remedy233
force-pushed
the
feat/150-zh-typography
branch
from
November 28, 2026 15:03
22f394c to
2be1262
Compare
Owner
Author
|
Retargeted to MBombeck#1673, now that MBombeck#1664 has landed and the base branch is release/v1.50.0 upstream. |
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.
What this does
Adds the zh-CN typography rules from MBombeck#1528 as a guard, and the pass over the
bundle that makes it green. This is the piece the maintainer asked for in the
MBombeck#1664 review:
The rules, and why each one is zh-CN-scoped
A rule about Chinese measure words says nothing useful about German or Korean,
so the guard reads one bundle rather than adding a fifth opinion to a guard that
already holds every language to a shared floor.
1. No space before a measure word. A number and the word counting it are one
word in Chinese:
3天, not3 天. The count reaches the value three ways andall three are checked — a placeholder (
{count} 条), an ICU plural body's#(
{count, plural, other {# 条测量}}), and digits (至少 12 个字符).2. The ellipsis is full.
……, not a lone…. A single one reads as atrailing fragment in Chinese typesetting; the pair is the mark.
3. Lists use
、. A half-width comma between two Han characters is theshape a machine translation leaves behind. No value had one, so this rule guards
against regression rather than fixing anything — which is worth having, because
it is the rule a future translator is most likely to break.
4.
「」and『』are exempt. They are the Chinese quote marks. The glyphguard's ban on dashes and middle dots has nothing to say about them, and the
exemption is written into the test so nobody "corrects" them to
“”.The pass over the bundle
…The measure-word findings, by word: 天 237, 个 97, 条 80, 次 74, 小时 56,
分钟 35, 周 20, 份 19, 月 13, 年 12, 步 9, 岁 7, 秒 4, 片 1.
Latin units keep their space.
82 kg,120 mmHg,10 mg/dLand5 %areuntouched, because a space there is correct. The test asserts that too, so the
guard cannot be "improved" into stripping them.
One thing that moved with the bundle
The
snoozeglossary concept anchored on稍后提醒我({minutes} 分钟). Afterthe pass the bundle reads
稍后提醒我({minutes}分钟), so the glossary termmoved with it — the glossary guard fails when the two disagree, which is how
this was caught.
Checks
i18n-zh-typography: 11/11glossary-guard: 114/114leak, dose vocabulary, drift, title sentence case, boot catalogs, reverse
coverage, call-site coverage
tsc --noEmit: cleanBase
Based on
feat/150-zh-cn-locale(MBombeck#1664), because the bundle this guard readsonly exists there. Once MBombeck#1664 lands on
release/v1.50.0this retargets to it andthe diff becomes the guard, the bundle pass and the glossary term — nothing else.
Refs MBombeck#1528.