[PR #166·171·172·176] How an Admin Views Customer Records: A Date Table, a Detail Page, and Checking Against a Real Server
The four PRs build one feature in sequence: the way an admin looks up a customer’s records. The server opens the lookup paths (PR 172), the admin web gets a date-by-date table (PR 166) and a record detail page (PR 171), and finally a flow test run against a real server found that the table was calling the wrong address, which was then fixed (PR 176). I requested all four, and a team of agents split the work between those who wrote tests and those who implemented.
- What was done:
- PR 172, server lookup paths: Four paths for the admin web: the record list, one record’s detail, a photo address, and record counts per day. Opening a detail or an original photo leaves a “who looked, and when” view history (about the person who wrote the record). The list and the small preview copy of a photo leave none. Dates follow the Korean calendar date, and only the current valid version is counted.
- PR 166, date table: Pick a facility and each module gets a row, each date a cell. A cell shows only the kinds that have records, as abbreviations with counts. If everything is zero it shows “not entered” as text with a light red background, so it does not rely on color alone. Clicking a cell filters the list to that module and day’s valid records. If the range is too long, or the facility is “all”, a notice appears instead of the table.
- PR 171, record detail: Shows the latest values, the version history, per-item values and photos. Edit, remove and restore were not included.
- PR 176, checking against a real server: Tests that save a record and photo through the customer app’s path, then check in the admin screen that today’s cell shows a count and yesterday’s says “not entered”, that the photo is drawn in the detail, and that opening “view original” leaves two lines in the view history. A second test adds a measurement item, deactivates it, and checks it disappears from the customer app’s list.
- Chosen approach and rejected alternatives:
- Server list: One lookup that the customer list already used was widened to facility and module scope, and the admin list reuses it. Writing a separate admin lookup was rejected because the sorting rule would then live in two places. Empty days get no fake records; zeros are filled in only when the response is built.
- Date table requests: Each module row sends its own request. Bundling them was rejected because retrying only one row became awkward. This way one failing row can retry on its own. Date headers are a short
MM-DDso a month does not get too wide. - Refetching the detail: Returning to the window or reconnecting does not refetch the detail, but leaving the list and opening it again always does. Opening a detail is itself a view-history event, so even with a cache (values already received) the server must know each time it is opened.
- Photos: When a photo address expires, only that one photo is fetched again. Refetching the whole detail was rejected because it would pad the view history needlessly. The original-photo address is kept only while the dialog is open and discarded on close.
- Time display: Version times are fixed to Korean time and a 24-hour clock so the browser’s language setting cannot shift them. A collapsed version line shows only the kind name, and the values appear only when expanded.
- How to fix the address (PR 176): The admin side’s request address was changed to match the server’s real address shape. Adding a route on the server that accepts the old address was rejected, since this problem was scoped to the admin client and the server was to stay unchanged.
- What happened: The PR 166 date table was built before the server path existed, so it was checked only against fake responses. The address on the fake side and the server’s real address, built later, had different shapes, yet every unit test passed. When the tests were run against a real server, the table request failed with a “no such address” error, and the table showed 1 cell where 7 were expected. To see whether the test itself was right, Claude temporarily changed one line of the request address and ran again, and both tests passed. That change was reverted at once; the real fix was made in the implementation turn by Fizz, who also changed the fake side’s address to the same shape.
- Checks:
- PR 166: 283 admin web tests in 24 files passed. The tests confirm that hovering or focusing with the keyboard sends no request, the range boundaries, retry when only one row fails, and that nothing carries over.
- PR 172: 6 of 8 new server tests passed. For the other 2, values in the tests looked inconsistent with the contract, so Claude did not edit the tests, left the implementation following the rule, and raised questions. One test’s data times did not match the rule of filtering by Korean date; the other checks the connection address recorded in the view history, which came out different under the current settings.
- PR 176: Of 7 admin tests against a real server, 6 passed before the implementation and 1 failed for the intended reason. The measurement item test passed from the start because that screen already existed, so it is a regression guard (protection against something fixed breaking again), not a failing test.
The four PRs at a glance
| PR | What was done | Key method |
|---|---|---|
| 172 | Four server lookup paths | Widen the customer list’s lookup and reuse it; leave a history when a detail or original photo is opened |
| 166 | Date table | One request per module row; “not entered” shown as text and background together |
| 171 | Record detail | Request on every open, refetch one photo only, discard the original address on close |
| 176 | Real-server test | Request address matched to the server’s real address shape |
Who did what
- I: requested all four works.
- Claude (Claude Sonnet 5.5, cloud sessions): Implemented the server lookup paths in PR 172 and the date table in PR 166, and wrote the real-server tests in PR 176. The PR 166 implementation session was started by the Claude session on my Windows computer because the Buzz server was down.
- Fizz (GPT-6 Luna): Wrote the PR 172 server tests first, and implemented the record detail screen in PR 171 and the address fix in PR 176.
What could not be checked
- Whether the PR 166 table shows a full month of cells at the real screen width was not checked in a browser.
- In PR 171, Fizz’s environment could not start the test tool, so the admin tests were not run. The PR 176 address fix was likewise not test-run there, and whether the real-server test passed after the fix is not in the log, so I could not confirm it.
- The PR 172 server tests could not start the test database and were run on a different version of a local database. Final confirmation was left to the automatic checks, and their result is not in the log.
- How the two tests that looked inconsistent were settled afterwards is also not in the log, so it could not be confirmed.
What this taught
- An address checked only against fake responses is not guaranteed to match the real server. When the server path appears, the fake side’s address shape has to be matched too.
- One test that runs end to end against a real server catches mismatches that all-passing unit tests miss.
- The server rule “leave a view history” is tied to the screen’s cache settings. The detail must be requested on every open or the history gets gaps.
- When a test looks inconsistent with the rule, do not bend the implementation to it; leave a question.
- Do not signal state with color alone; add text.