[PR #113] Customer App Task 6: Help and Password Recovery Screens, a Notice Message, and the Official Apple Button
I requested this work.
- What was done: For the sixth task in the customer app plan, five help and password recovery screens were built. Two things I added on 2026-10-28 went in with them: a notice message on the login screen and the official Apple sign-in button.
- Help: It shows three reasons a person might need help, a note about phoning an administrator to get a recovery code, and one line for social-login users. The administrator’s phone number is read from an app setting (an environment variable, a value set separately for each environment); if it is missing, the number line is hidden. If it is present, tapping it places the call.
- Recovery code check: The phone number and recovery code are sent for checking. On success, the temporary slip that comes back is kept only in the app’s temporary store, and the app moves to the next screen.
- New password: The new password and its confirmation are sent. The password is sent as typed, with no trimming of spaces at either end. If the code slip has expired or is invalid, the number is kept and the app goes back to the code check screen.
- Done: It says “You’ve been signed out on your other devices.” Only the slips are cleared and the number is kept, so the login screen fills in that number. The password field is empty.
- Contact: A person enters a name, number, login method and message, and can tap “Copy message.” The copied text has no password or code line. If copying fails, a read-only box appears so the text can be selected and copied by hand, and closing it returns accessibility focus (the spot a screen reader points at) to the copy button.
- Notice message (item B): When the link slip for a social account has expired, the login screen shows the notice once as a warning-role text and then clears it.
- Official Apple button (item C): The black button that had been hand-built was replaced with the official sign-in button Apple provides. It is hidden where unavailable, and pressing it again while a request is running is blocked.
- Chosen approach:
- Of the help screen’s three reasons, “I forgot my password” goes to the recovery screen and the other two go to Contact. The plan did not say where each should lead, so the implementing Claude decided; this needs confirmation.
- The “code validity period has passed” message is shown only on the recovery screens. Changing the shared message would break the existing wording in the invite tests.
- For the copy feature’s package (
expo-clipboard), the development tool’s install command failed because of this session’s network restrictions, so the version that matches the app’s Expo release was read from a file and installed directly. In the lockfile (the file that pins installed package versions), the marker on some packages changed automatically, but no versions changed. - The Apple button’s properties were checked against the installed package’s type file. The official documentation page could not be opened in this session (not confirmed).
- Checks:
- Fizz’s tests were run once before the implementation. Five login and invite tests failed because the features did not exist, and the recovery tests did not run because the module was missing. However, the implementation code was written before the tests were run, which differs from the instructions’ order (tests first).
- After the implementation, 82 app tests other than the recovery tests passed and lint errors were 0. The recovery tests did not run as they were because of two problems inside the tests (a type error, and the Kakao login module not being mocked). In a temporary copy where only those two places were fixed, all 10 passed. So
npm run verifyat that point was a verification failure. - Fizz then fixed the two test problems, and no test was weakened or skipped. In the final state, GitHub CI’s
verifyande2eboth passed.
| Item | Details |
|---|---|
| Built | Help, recovery code check, new password, done, and contact screens |
| Added alongside | Notice for an expired social link, official Apple sign-in button |
| First blocker | verify failed on type and module problems in the recovery tests; Fizz fixed them |
| Review | Pollen approved; Opus approved (1 medium and 1 low finding fixed in the same task) |
| Checks | CI (verify, e2e) passed |
| Needs confirmation | Where each help reason leads, the message for accounts without phone login, a test for when the administrator number is set |
Who did what
- I: requested the work, and added the login-screen notice and the official Apple button on 2026-10-28.
- Cloud session (Claude Sonnet 5.5): built the screens and fixed the Opus review findings. The model did not change during the session.
- Fizz (GPT-6 Luna): wrote the tests and fixed their type error and module problem.
- Claude (PL, Sonnet 5.5): wrote the instructions, merged the results and checked CI.
- Pollen (OpenCode free model glm-5.3-flash-free): did the general review.
- Claude (Opus 5.5): did the final security review of the login and recovery screens.
The tests that first failed to run
After the implementation was done, the recovery tests would not run as they were. There were two type mismatches in the tests, and a test that reads the login screen did not mock the Kakao login module, so the whole file could not run. The implementing side did not edit the tests and left the problem as a question in the log; Fizz fixed the tests.
What the reviews found
- Pollen: Approved. Two low findings (no test for when the administrator number is set, and the lockfile marker change) were left as they are.
- Opus findings and fixes:
- Medium (M1): After a failed recovery, the person could end up on a dead-end screen. If the code was already used, the screen now says “Setup may already be finished. Try logging in” with a login button. If it was expired, revoked, locked or invalid, the slips are cleared and the person is sent back to the code check screen with a notice. A message for accounts without phone login was also added.
- Low (L2): The new-password screen sends no request and returns to the code check screen if the purpose is not “recovery.” This keeps a slip from an invite from being used to send a recovery request.
- This change made two existing tests fail; Fizz fixed them by adding a line that sets the purpose to recovery in their setup.
- Low finding L1 was not addressed.
What needs the owner’s confirmation
- Where each of the help screen’s three reasons leads (see “Chosen approach”)
- The message shown when an account does not use phone login (in the form “This account has no phone login. Please contact the administrator.”)
- That there is no test for when the administrator number is set (number line shown, placing the call)
All three are easy to undo, so they were applied as Claude recommended.
What I learned
When a test-side problem is sent back to the test’s author instead of weakening the test, it is possible to tell whether a red CI is the implementation’s fault or the test’s. This time, a type error and a module problem in the tests showed up that way.