[PR #26] Writing the Sub-milestone 2 Spec and Three Plans
- What changed: A spec and three plans for Part 2 (the home frame and recording) were written together.
- Decision: Photos are stored again in original form, but location information is removed. Two lines on this were added to the privacy policy draft.
- Still unknown: Whether location information is actually removed when a photo is saved will be checked after implementation.
Starting sub-milestone 2 (the home skeleton and record entry) needed one spec and three plans, as in sub-milestone 1. This PR wrote all four together. There is no code yet; only documents.
What was done and why
- The results are:
- One sub-milestone 2 spec. I approved it.
- A server plan, an admin web plan and a customer app plan.
- A photo policy note. Original photos are also re-saved, and location data is removed.
- Two lines in section 1 of the privacy policy draft about how location data is handled in original photos.
- The admin web plan covers the record list screen (the list, the date table, and the detail with version history and original photos), management of measurement items, and the planned installation and shipment dates on a customer’s module detail. Items in the design document that were left out are listed in a table with the reasons.
- The customer app plan covers going straight to home after login, five bottom-menu items, record entry (on-site, measurements and growth), editing records, per-module drafts, photo permissions and HEIC conversion.
Options chosen and rejected
- Original photos are also re-saved to remove location data (my decision). The privacy policy says location is removed from photos, so original photos had to follow the same rule. The rejected option was to open each file’s structure and cut out only the location parts. That keeps the picture quality, but it needs a separate parser for each photo format, and if one is missed, the location is left in. Re-saving was chosen instead: JPEG and WEBP at quality 95, PNG lossless.
- The server plan was extended in the same PR. Writing the screens showed several gaps in the server plan. One example: there was no way to show old records for a measurement item that had been stopped. The fix was to include the item name and unit in the server response, and to stop re-checking values that are kept as they are.
- The admin record detail is fetched once, when the screen opens. The server logs an access record each time a detail is returned. Re-fetching every time the window is focused would record one viewing as several.
- Customer app drafts go in the app’s document folder, not the cache folder. The system can delete cache files when storage runs low. Uploaded photo IDs are not kept in the draft; they are uploaded again when the draft is restored. This avoids saving against an old ID that the server has already deleted.
- HEIC photos are converted to JPEG by the app. The documents did not say whether the device does the conversion, so the plan has the app do it.
- The edit screen has no draft. If the app closes during an edit, the old version stays intact. Only the unsaved edits are lost.
How it was checked
- Claude checked each row of the design document’s screen scope, failure table and screen-state table against the plans, to confirm that each has a task and a test.
- Claude read the home specification and the design document’s screen notes, and matched the bottom-menu order and the schedule display wording.
- Claude checked the Expo documentation. The
latestaddress already pointed to the next SDK, so the library docs were reopened at the address for the version we pinned (SDK 57), and the sources were recorded in the plan. - There is no code yet, so no automated tests were run.
Lessons
- The Expo
latestdocs move on to the next version. A project with a pinned version has to read the docs at the address that contains its version number. - A server request that logs an access record every time it is opened has to be planned together with the screen’s cache settings. Reading the server plan alone does not reveal this gap.