[PR #118] Customer App Task 9: The My Info Screen (Unlinking Sign-in Methods and Account Deletion Requests)
I requested this work.
- What was done: For the ninth task in the customer app plan, I had Claude build the My Info screen (
/account). The screen shows the linked sign-in methods (phone number, Kakao, Apple) and the date each was linked. Kakao and Apple links can be unlinked, but the phone number link has no unlink button. If only one sign-in method is left, the unlink button is replaced by the message “You cannot remove your last sign-in method. Please contact KOF.” Account deletion requests can also be made on this screen. After a request, the screen shows that it will be processed within 7 days, along with the expected processing date. - Choices made:
- A system confirmation dialog (
Alert.alert, the box the phone shows to confirm an action) cannot hold a switch. So the switch that asks for a phone call with the result, and its explanation, sit in a confirmation area on the screen. Only after the user presses continue does the dialog appear. - The switches use the basic press component (
Pressable) with the switch role, so no new package was added. - Dates are calculated directly by adding 9 hours to UTC, without relying on the device’s time zone setting. Every device shows the same date.
- A double tap on account deletion sends one request to the server. If the server replies that the request already exists, the screen looks the same as after a first request.
- If a request fails, the status goes back to “not requested” so the user can press the button again.
- If the lists cannot be loaded, the screen shows “Please check your connection and try again” with a retry button. Sign-out is always available.
- A system confirmation dialog (
- How it was checked:
- Before building, I ran the tests so I could see them fail. Every test failed because the screen file did not exist yet. That was a missing feature, not a wrong test.
- Right after the build, 18 of 20 screen tests passed and 2 failed. Both failures were problems in the tests, not in the build (see What I learned below). The build side did not change the test files. Fizz, who wrote the tests, fixed the two places.
- After the fixes, the GitHub CI checks (automated checks on every change),
verifyande2e, both passed. - A full
verifyrun with a Docker daemon started by hand (Docker runs the server for tests) passed 136 server tests across 14 files.
- Review: Pollen (OpenCode free model glm-5.3-flash-free) did the general review and approved it. The final review was done by Claude Opus 5.5 as a read-only helper agent that checked the code directly. It looked for any path that could lock a user out, for double sends, and for stored or logged personal data. It found no blocking problems.
| Item | Details |
|---|---|
| What was built | The My Info screen (/account), unlinking sign-in methods, account deletion requests |
| What it prevents | Duplicate sends of unlink and deletion requests, and locking a user out by removing the last sign-in method |
| Checks | After fixing 2 test problems, all 20 screen tests passed; CI verify and e2e passed; 136 server tests passed |
Who did what
- Me: I requested the work.
- Fizz (GPT-6 Luna): wrote the tests before the build, then fixed two places in them after the build.
- Claude (cloud session, Claude Sonnet 5.5): built the screen and its logic.
- Claude (PL, Claude Sonnet 5.5): coordinated the work and organized the PR.
- Pollen (opencode/glm-5.3-flash-free): did the general review.
- Claude (Opus 5.5): did the final review.
What I learned
- A test that checks too early fails even when the code is right. The test checked, right after the screen rendered, that one request had already gone to the server. But the request is sent only after the app reads the device ID from secure storage. So the check always failed, whatever the screen looked like. Waiting for the condition (
waitFor, a test helper that keeps checking until a condition becomes true) fixed it. - When a test and the spec disagree, follow the spec and mark the test problem. The test assumed the unlink button would show on a list where only Apple was linked. The spec says to hide the button when only one sign-in method is left. The build followed the spec, and the test’s list was changed to have the phone number plus Apple.
- The same weakness showed up again. Moving the
/accountline outside the route guard (Stack.Protected, the setting that blocks screens depending on sign-in state) still left the test passing. The test renders the real sign-in provider, and that provider sends the user to the sign-in screen by itself when no sign-in data is saved. To check a guard, the test has to swap in a fake sign-in provider.