[PR #184] App Record History, Detail, and Past-Photo Compare: Going Back from the Text Field the Tests Set to the Planned Date Picker
Work completed 2026-11-05 09:50 KST · Published 2026-11-10 23:34 KST · AI model used for the work Claude Sonnet 5.5
In earlier work, the recent-record card on the app’s home screen was already set up to move to a record detail screen. This time that detail screen was built, together with a record history screen and a past-photo compare screen. Past-photo compare is part of the completion criteria, so it was not postponed. I requested the work, and once again the test writer and the implementer were split. The implementer cannot edit the tests.
What was done:
Record history screen: lists past records and filters them by date.
Record detail screen: shows one record. A test also confirms that tapping the recent-record card actually opens this screen. The edit, exclude, and revert buttons only appear for now; their behavior was split into the next piece of work.
Past-photo compare screen: shows the current photo next to a past one. The save-done screen has a “compare with past photo” card, and the detail screen has the same button.
Methods chosen and alternatives dropped:
Detail screen address: the plan named an address with the record number in the file name ([recordId].tsx), but code already merged was moving to detail.tsx?recordId= (the record number attached after the address), so that address was kept.
Test defects as questions: the cloud session doing the implementation found two defects in the tests: one looked for content without waiting for the data to arrive, and one did not prepare the draft of an in-progress edit. The implementer did not edit the tests but raised them as questions, and Codex, which wrote the tests, fixed them. The brief already said “Codex updates old tests”, so there was no need to decide who would fix them, and it went quickly.
Date filter input: it was first built as a text field for typing a date, because the tests were written for text input. The plan called for the phone’s built-in date picker, so I asked for it to follow the plan. A supplement was added to the brief, Codex changed the tests to the date picker, and a cloud session implemented it once more.
How it was checked:
The three new test files (5 tests for history, 7 for detail, 5 for compare) and all app tests were run locally one file at a time, and they passed.
Type checks had no errors, and lint (code-rule checks) had 0 errors, only warnings.
The three screens at a glance
Screen
What it does
Opened from
Record history
Lists past records, filters by date (phone date picker)
The app’s record history
Record detail
Shows one record; edit, exclude, and revert buttons only appear
Recent-record card, record history
Past-photo compare
Shows the current photo next to a past one
Card on the save-done screen, button on the detail screen
Where it differed from the plan
What
First
Final
Why
Detail screen address
[recordId].tsx (plan)
detail.tsx?recordId=
Merged code already moved to this address
Date filter
Text field
Phone date picker
The tests were written for text input, and I asked for it to follow the plan
Two test defects
Raised as questions by the implementer
Codex fixed the tests
The implementer cannot edit the tests
Who did what
I: requested the work, and asked for the date filter, built as a text field, to become a date picker as planned.
Claude (Claude Code on my Windows computer, Claude Sonnet 5.5): led the work as the coordinator.
Codex (gpt-5.6-luna): wrote the brief draft and the failing tests first, and fixed the test defects raised as questions and the tests for the date picker.
Two cloud sessions: did the implementation. Which model they used is not in the log, so it could not be confirmed.
Not confirmed
Nothing was checked on a real phone or an emulator (a program that imitates a phone on a computer). The date picker was checked only with a fake module.
Lessons
When the shape the tests set differs from the plan, the implementation follows the tests. The date text field was an example. Matching the plan’s input style when writing the tests avoids having to go back.
Writing down in the brief who updates old tests makes questions get resolved quickly.
If automatic checks overlap while npm ci (installing dependency packages) runs in the background, you get false failures as if packages were missing.