Skip to content

Release v1.49.0: navigation counts switch, Care, emergency card in the account menu - #1446

Open
MBombeck wants to merge 7 commits into
mainfrom
release/v1.49.0
Open

MBombeck wants to merge 7 commits into
mainfrom
release/v1.49.0

Conversation

@MBombeck

Copy link
Copy Markdown
Owner

Three navigation changes that complete 1.49.0 before it is tagged (the tag has not been published yet).

  • The navigation counts on Medications and Care can be switched off under Settings > Account > Display (default on). Off means no badges and no counts request. New column User.showNavCounts (migration 0559), carried by the account backup, restore and export; settings and backup round-trip tests cover it. Refs Where should doctor visits, procedures and body sites live? #1113
  • The English name of the preventive-care page is Care, at /care (/care/practitioners). /checkups and /checkups/* redirect permanently with the query kept. Every path value sent to clients (push targets, digest, day, search, related records, MCP) stays /checkups for iOS builds before 1.7, pinned by a test. German keeps Vorsorge.
  • The emergency card opens from the account menu instead of the sidebar and the More sheet; Medical history, Settings > Health record and search still lead to it.

1.49.0 now ships 37 migrations (0514 to 0559).

The counts on Medications and Checkups in the sidebar and the More sheet
can now be turned off under Settings > Account > Display. On by default,
which is how they behaved before.

User.showNavCounts (migration 0559, BOOLEAN NOT NULL DEFAULT true) is
written by PATCH /api/auth/me/show-nav-counts and published on
/api/auth/me, so the account seed carries it into the first paint.
useNavCounts reads it: while it is off no count is drawn and
GET /api/nav/counts is never asked.

The setting travels with the account settings backup in both purposes,
is restored like the other interface preferences, and is kept by the data
wipe. The settings round trip covers write, /me, backup and restore; the
backup parity goldens gain the column.
The preventive-care page reads Care in English and lives at /care, with
the practitioners under /care/practitioners. German keeps Vorsorge;
Brazilian Portuguese and Russian drop their transliterations for
Prevencao and Profilaktika. Message keys, tour ids, the Arrangement
sub-page and every API path stay as they were.

/checkups and /checkups/* answer a permanent redirect to the same place
under /care with the query kept, and /vorsorge now goes there in one
hop. care-route-redirects.test.ts runs the old addresses through the
Next.js matcher and checks status and Location.

What the server sends keeps /checkups: push and webhook targets, and
the href/path fields of the digest, day, search, related-records and
onboarding answers, because released iPhone builds parse only those
shapes. visit-links.ts now has a wire and a web spelling;
care-wire-paths.test.ts pins the wire values and fails on a /care
literal in server code.
The emergency card is set up once and then waits in the background, so it
no longer takes a slot in the sidebar or the phone's More sheet. It moves to
NAV_ACCOUNT_MENU_DESTINATIONS and renders in both account menus (the
sidebar's avatar menu and the top bar's on a phone) through one shared
slice. Inside a shared record it keeps the rule the rail entry had: the
guardian of a managed profile sees it, an adult's delegate does not.

The search palette keeps the entry under its existing id, the button under
Medical history and the card under Settings > Health record stay as they
were.
…schedule

A medication save that sent back the same schedule archived no era but still
tombstoned today's open pending rows. The next projecting read re-minted the
same instants under new ids, and the edit woke every device with an intake
sync and a data-changed push for nothing.

The schedule replace now decides both consequences with one predicate,
scheduleReplaceChangesCadence: the era is archived and the open slots are
tombstoned only when tracking changes, the stretch is untracked, or the
cadence materially differs. The edit tells the devices only when the stored
medication, its schedules or its category actually changed.

The integration test follows a time edit through the reminder worker,
resolved-slots, dose-history, the MCP schedule, the today list, the
dashboard and the digest, including a move to a time already past, and
holds an unchanged save to the same row id and no wake.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant