chore: drop the em dashes this release added to prose and test titles

The notification categories' contract description, which lands in the
published API document, and a handful of new code comments and test
titles used em dashes; the house style keeps them out of new prose.
This commit is contained in:
Marc-André Bombeck committed 2026-11-12 12:54:20 +01:00
1 parent cad4c89831
commit 2d1009136a
8 files changed
+11 -11

No files matched your search

@@ -45,7 +45,7 @@ const REGISTRY = "lib/measurements/display-transform.ts";
/**
* The one module allowed to import the unrounded escape hatch. The target
* adapter needs the unrounded pound edge of a canonical guardrail so it can
* round it INWARD — rounding to the nearest tenth first can put the pound
* round it INWARD: rounding to the nearest tenth first can put the pound
* edge outside the kilogram window, and the server rejects what converts
* back from it.
*/
@@ -1272,7 +1272,7 @@ describe("POST /api/telegram/webhook — record-only medications", () => {
* silent, so a reminder button left in the chat, the /add list and the
* "taken" keyword do nothing either.
*/
describe("POST /api/telegram/webhook — Medications module off", () => {
describe("POST /api/telegram/webhook with the Medications module off", () => {
function textUpdate(text: string) {
return {
update_id: 400,
@@ -1323,7 +1323,7 @@ describe("POST /api/telegram/webhook — Medications module off", () => {
* since ended, which would also take a unit off the stock. The list side is
* pinned in `src/lib/__tests__/telegram-dose-medications.test.ts`.
*/
describe("POST /api/telegram/webhook — ended course", () => {
describe("POST /api/telegram/webhook on an ended course", () => {
const DAY_MS = 24 * 60 * 60 * 1000;
const ENDED = {
...MEDICATION,
@@ -408,7 +408,7 @@ describe("submit invalidation — the quick-add is a capture-picker surface, not
});
it("forces the inactive Today hero + dashboard reads to refetch after submit", async () => {
// The helper the submit path calls — asserted directly, same shape as
// The helper the submit path calls, asserted directly, same shape as
// the take-all-due suite: the bundle fans out (N keys), then the two
// daily reads are invalidated with `refetchType: "inactive"`, which is
// what actually refetches them while unmounted.
@@ -2,9 +2,9 @@
/**
* The vault document picker sheet: a `ResponsiveSheet` (bottom sheet on
* phones) with a debounced search over the person's own vault — the same
* recall path as the vault page, one page (50) of matches with a line that
* says when more exist, the search input as the way to an older document —
* phones) with a debounced search over the person's own vault (the same
* recall path as the vault page, one page of 50 matches with a line that
* says when more exist, the search input as the way to an older document)
* and one toggle row per document.
*
* Two pickers used to carry this whole body as copies: linking documents to
+1 -1
View File
@@ -1355,7 +1355,7 @@ async function resolveProviderForTestUnbound(
// Empty selection ("test my saved config" — the ai-section calls
// /api/ai/test with an empty body): resolve via the SAME path generation
// uses — the first entry of `resolveProviderChain`. The legacy codex→admin
// uses, the first entry of `resolveProviderChain`. The legacy codex→admin
// fallback used to probe a different provider than generation ran
// (observed: test→admin-key while generation→codex), so a green test gave
// no signal about whether overnight generation would work.
@@ -346,7 +346,7 @@ describe("generateBloodPressureStatusForUser — no rate without an expectation"
});
});
describe("generateBloodPressureStatusForUser — the person's own target", () => {
describe("generateBloodPressureStatusForUser and the person's own target", () => {
const readings = [1, 2, 3].flatMap((daysAgo) => {
const measuredAt = new Date(Date.now() - daysAgo * dayMs);
return [
+1 -1
View File
@@ -422,7 +422,7 @@ describe("extractFeatures — weight target direction (#1006)", () => {
});
});
describe("extractFeatures — blood pressure against the person's own target", () => {
describe("extractFeatures: blood pressure against the person's own target", () => {
// 135/85 on three days: above the age default's ceiling, inside a target
// the person's doctor agreed (up to 140/90).
const bpRows = [1, 2, 3].flatMap((daysAgo) => {
+1 -1
View File
@@ -76,7 +76,7 @@ const notificationPreferencesResponse = z
eventTypes: z
.array(z.string())
.describe(
"The event categories this account is shown a switch for, in declaration order — the list a client renders rows for. A category nothing sends is not listed, and `preferences` carries no stored row for it.",
"The event categories this account is shown a switch for, in declaration order: the list a client renders rows for. A category nothing sends is not listed, and `preferences` carries no stored row for it.",
),
eventDefaults: z
.record(eventTypeEnum, z.boolean())