[PR #109] Customer App Task 4: Building the Login Screen
I requested this work.
- What was done: For the fourth task in the customer app plan, the login screen was built. It has phone number + password login, Kakao and Apple login, and terms links. A social account not yet linked to a phone-number account keeps a
linkTicket(a temporary slip that ties the social account to a phone-number account) in memory only, and goes to the phone number + code screen. The screens the terms, help, invite code and account recovery links lead to are text-only placeholders. - Chosen approach:
- On a 429 (a response saying there are too many requests), the remaining seconds are kept as state and counted down every second, and the button stays blocked meanwhile.
- A social response that arrives after the user cancelled or left the screen is dropped by checking an attempt number. No request is sent to the server in that case.
- For suspended or withdrawn responses, the session-ending handler in the request code already moves the screen, so the login screen does not move it again.
- When Apple login is retried, it always starts over from the beginning, because the authorization code can be used only once.
- Splitting the password field into several separate files was dropped as outside the plan.
- Checks:
- Twenty tests written by Fizz were run once before the implementation, and failed because the feature did not exist. There was nothing wrong with the tests themselves, and all 20 passed after the implementation. The test file was not changed.
- Across the whole app, type checking, lint (0 errors, 2 warnings about unused imports in the test file) and 53 app tests passed. The terminology, traceability table and .env checks passed too.
- GitHub CI
verifyande2eboth passed on the commit to be merged.
| Item | Details |
|---|---|
| Built | A login screen with phone number + password, Kakao and Apple login, and terms links |
| Tests | Fizz’s 20 tests, all passing after the implementation |
| Reviews | Pollen approved; Opus approved the login security review (no high or medium findings) |
| Checks | CI (verify, e2e) passed |
| Not confirmed | The full local server test run (no Docker), whether Apple review allows a custom-made button |
Who Did What
- I: requested the work.
- Cloud session (Claude Sonnet 5.5): implemented the login screen.
- Fizz (GPT-6 Luna): wrote the tests.
- Claude (PL, Sonnet 5.5): checked the scope of changes and handled the push.
- Pollen (OpenCode free model glm-5.3-flash-free): did the general review.
- Claude (Opus): did the final login security review.
What the Reviews Found
- Pollen: approved. It found that all 17 cases in step 1 of the plan are covered by the 20 tests, and that no tests were skipped or weakened. It also confirmed that cancelled and late responses send no request.
- Opus: approved. It confirmed that the password is sent as typed and never logged, that a wrong number and a wrong password show the same message, and that
linkTicketlives only in memory. - Four low-risk findings were put off for later: the temporary store is not cleared after a successful login; a message helper can return something odd for certain server code values (existing code); tapping a link while login is in progress still navigates; and the text goes blank if the terms type is unexpected (not confirmed).
What Needs the Owner’s Confirmation
- The plan says to make “Continue with Apple” with Apple’s official button, but the tests look for the text on screen. The official button is a native view, so the text cannot be seen from tests. To make the tests pass, a custom-made black button was used. If Apple’s review guidelines require the official button, it has to be changed together with the tests, and whether review allows a custom button could not be confirmed.
- The “other login methods” line in the 429 message is a sentence the cloud session’s Claude chose to match the test’s regular expression.
What Could Not Be Confirmed
- This session has no Docker, so the full
npm run verify, which includes the server tests, could not be run. GitHub CI results were used instead.
What I Learned
When tests look directly for text on screen, they can clash with a native component the plan asks for. This time the clash showed up during implementation and was left as a question for the owner.