[PR #151·152] Groundwork Before the Screens: Display Helpers for the Admin Web, Libraries and API Functions for the Customer App
The first Detail 2 tasks for the admin web and the customer app were not screens but the groundwork the screens would share. A team of Claude and other agents did the work I requested, and neither PR built a screen or a route.
- What was done:
- PR 151 (admin web): Added a function for Korean-time dates and helpers that turn record values and kinds into readable text. New links went into the admin menu, along with messages for the server’s new error codes and a display for record and date-change history. The detail history shows shortened identifiers and summarizes only the dates that changed. One line of dev-server config was added to route the file path to the server.
- PR 152 (customer app): Added 6 libraries pinned to exact versions without
^or~, and test fakes (mocks) in the setup. The request function got an option that takes a function building the payload (FormData), so the payload is rebuilt when a request is resent after the access pass expires. API functions for home, measurement items, photos, records and inquiries were added, along with the outer frame of the tool that fetches and keeps server state (react-query), photo and camera permission text, 20 error messages and display helpers. - Not done this time: screens, route wiring, a draft store and session cleanup (later tasks).
- Methods chosen and alternatives dropped:
- Building the routes in the same PR was dropped. Laying only the base first keeps the review small.
- In the customer app,
npx expo installcould not fetch compatibility info because the environment’s proxy blocked it. Instead, the compatible-version list file that the installedexpocarries was read and the same versions were installed exactly.react-query, which is not on that list, was set to the latest npm 5.x version. - Dates and times are produced by adding 9 hours to UTC rather than relying on the device’s
Intlsupport, because Korea has no daylight saving time. - The order of conditions in the request that fetches the record list was fixed.
Side by side, the two PRs look like this.
| PR 151 admin web | PR 152 customer app | |
|---|---|---|
| Added | Korean-date function, record display helpers, menu links, history display | 6 libraries, API functions, photo upload request, error text, display helpers |
| Tests | Written first by Claude | Written first by Fizz (6 failed at first, all from the missing feature) |
| Implementation | Fizz | Claude |
| Result | 197 admin web tests passed | 186 app tests passed |
| Not confirmed | None | Photo upload on a real device, re-check of library versions |
Who did what
- PL (Claude Sonnet 5.5): confirmed that the changed files stayed within the allowed scope and that CI passed.
- Claude cloud session (Claude Sonnet 5.5): wrote the tests first in PR 151 and implemented in PR 152.
- Fizz (GPT-6 Luna): implemented in PR 151 and wrote the tests first in PR 152. The roles were swapped between the PRs because of the rule that the implementer does not write their own tests.
- Pollen (OpenCode free model glm-5.3-flash-free): reviewed both PRs read-only.
How it was checked
- PR 151: install, the secrets check, the shared build, type check, lint and 197 admin web tests passed. The PL confirmed from the bundle diff that only 6 allowed source files and the work log changed. Pollen raised three low-severity notes, all cases that cannot happen today (an item the date-change summary does not know yet, a value the server always fills in, and a large number the server limit blocks).
- PR 152: Fizz’s tests were run first and 6 failed, all because the feature did not exist; the tests were not edited. After implementation, 186 app tests and
npm run verifypassed. Lint warnings went from 6 to 7 because of onerequire()line that follows the official mock approach; there are no errors.
What was not confirmed
- Whether a photo file really uploads from a physical device was not confirmed. It needs a development build.
- The customer app library versions follow the compatibility list file because
npx expo installcould not run. It is worth re-checking withnpx expo install --checkbefore the first development build.
Lessons
- Laying only the base before the screens keeps the review small. Both PRs held only the functions and display rules that later screen work will pull in.
- When a tool is blocked, read the source it reads. When the command that reports compatible versions was blocked, reading the file holding the same information gave the same result.
- Splitting test writing from implementation lets you run the tests once first. Before implementing, you can tell whether a failure comes from a missing feature or from a mistake in the test.