[PR #201·203] Customer App Completion Check: Three Gaps Found While Filling the Test Map, and a Camera Notice
These two PRs are the last stage of the customer app plan. PR 201, the plan’s last task, filled in the collected-data table used to prepare for store review and built a table matching each line of the spec to real test names. While filling that table in, three places turned up where the app did not just lack tests but did not follow the spec, and they were fixed. PR 203 is a small piece of work that started when I, while reviewing PR 201, asked “can we explain things to the user the first time they use the camera?”
Both pieces of work were split up on my Windows computer. Claude Code (Claude Opus 5.5) directed, Codex (GPT-5.6 Luna) wrote the tests, and a Claude implementation session (Claude Sonnet 5.5) implemented. The implementation side did not change the test files.
- What was done (PR 201):
- Two rows in the collected-data table: Two rows were added to the “what does the app collect” table needed for store review. One is the record being written (drafts and their photo files) and the last chosen module and record tab, which stay on the phone and are not sent to the server. The other is the camera and photo library permission, asked only when attaching a photo to a record.
- A draft note for the privacy policy: The plan said to leave the privacy policy column as “not applicable”, but so customers can also find this in the privacy policy, Claude added a two-line draft note and marked it for review. Since it is legal wording, whether to keep it and how to word it is my decision.
- Test map: The app’s guide document now pairs each screen, each app row of the failure-case table and each app row of the screen-state table with real test titles.
- 15 gaps found: In 12 the app behaved correctly and only tests were missing, so only tests were added. In the other three the app differed from the spec.
- The three fixes (PR 201):
- Saving even when one photo failed to upload: The save button stayed on, so the record was saved with only the photos that had uploaded. Now, for both new records and edits, the save button turns off if any photo is still uploading or has failed.
- No photo row on the water-quality and growth tabs: The plan said these take 0 to 5 photos through the same photo component, but the screens did not have it. The same photo row as the field record (with the face notice) was added, and the edit screen now draws the photo row for all three types.
- The whole list turning into an error screen when the next page failed: In record history, the list already on screen disappeared too. Now the rows already received stay, with “Try again” at the end.
- Camera notice (PR 203):
- The first time “Take photo” is pressed, a short “Camera notice” window appears before the phone’s permission question, with “Cancel” and “Continue” buttons. “Continue” goes to the phone’s permission question; “Cancel” opens nothing and keeps what was being written.
- On a phone that has already allowed or denied it, things work as before with no notice. If it was denied, the existing “Open settings” notice appears.
- Chosen approach and rejected alternatives:
- The water-quality and growth photo rows were built in this PR (PR 201): Leaving them as a gap for a later task was rejected. The plan had already settled this, so it was treated as work inside the plan.
- The directing session fixed flaws in Codex’s tests (PR 201): This keeps the rule that the implementation session does not change tests, while avoiding a round trip back to the test writer. It replaced a regular expression that did not match the real text with the real text, split something that was only named in a test title but never checked into its own test, and filled in missing fake responses.
- No saved setting; ask the phone every time (PR 203): After hearing the options in plain words, I chose “notice only, no saved setting”. Whether to show the notice depends only on whether the phone’s permission state is “never asked yet”. Saving the allow/deny choice separately in the app was rejected, because if the user later changes the permission in the phone’s settings, the saved value becomes wrong.
- No notice for the photo library (PR 203): The Expo documentation says picking photos does not need a permission request (Expo ImagePicker documentation, recorded in the log as checked on 2026-11-09).
- The built-in alert instead of a new screen (PR 203): The notice uses React Native’s built-in
Alert.
- How it was checked:
- PR 201: With only the tests added, 7 new tests failed because of the app gaps and the other 89 passed. After implementation the implementation session confirmed 343 screen, record, module and session tests passing, and the directing session reran 162 on the record-screen side and confirmed they passed. The full
npm run verify(admin web 310, customer app 399, server 592) and 11 app integration tests passed. - PR 203: Codex wrote 8 tests, and before implementation the notice tests failed as expected. The tests check things like “first use: notice → continue → permission question → camera, in that order”, “cancel opens nothing”, “nothing is left in storage” and “picking photos does no permission check”. After implementation 97 related tests and the full
npm run verify(admin web 310, customer app 391, server 592) passed. - A review that was not counted (PR 201):
codex exec reviewended with “no findings”, but the log showed that Codex’s sandbox helper program was missing, so it could not run a single command such asgit diff. Since it never actually read the change, it was not counted as a review.
- PR 201: With only the tests added, 7 new tests failed because of the app gaps and the other 89 passed. After implementation the implementation session confirmed 343 screen, record, module and session tests passing, and the directing session reran 162 on the record-screen side and confirmed they passed. The full
Step by step
| Step | What was done | Key point |
|---|---|---|
| Collected-data table | Two rows: on-phone storage, camera and photo permission | I decide the privacy policy wording |
| Test map | Pair each spec line with a test title | 12 of the 15 gaps only needed tests |
| Fixing the gaps | Photo saving, water-quality and growth photo rows, next-page failure | Three places where the app differed from the spec |
| Camera notice | A short notice only on first use | Nothing saved in the app; ask the phone every time |
Who did what
- I: Asked about the camera notice while reviewing PR 201, chose “notice only, no saved setting” and approved the plan. I also decide the privacy policy wording.
- Claude Code on my Windows computer (Claude Opus 5.5): As the directing session, fixed the flaws in Codex’s tests and reran the tests to confirm.
- Claude: Built the collected-data table, the privacy policy draft note and the test map. The log does not say whether the directing session or the implementation session did this.
- Codex (GPT-5.6 Luna): Wrote the gap tests and the camera notice tests.
- Claude implementation session (Claude Sonnet 5.5): Fixed the app. It did not change the test files.
What could not be confirmed
- It was not checked on a real phone. The new photo rows, the camera notice and flows such as opening settings after a denied permission were all checked only by tests.
- During the work,
npm run verifyin the automatic verification hook failed once. Only documents had changed, and the app tests and admin web tests were run separately right away and all passed. Codex was running tests on the same computer at the time, so load looks like the cause, but no record of that run was kept, so the cause could not be confirmed.
Lessons
- Pairing each spec line with a test name shows both where tests are missing and where the app is wrong. When you find a gap, first check whether the app follows the spec.
- “No findings” is a review result only if the change was actually read. Check the review tool’s log to see that its commands really ran.
- State the user can change in the phone’s settings, such as permissions, is not saved separately in the app; ask the phone every time.
- Random values (
randomUUID) in the test environment always return the same value. Tests that need several file names or request numbers must supply their own values inside the test. - Do not touch the same work folder while Codex is running. The Codex runner’s “file changed from outside” check does not know who changed it and ends in failure. PR 203 kept to this and that failure did not happen.