[PR #103] Customer App Task 1: Skeleton, Error Copy, API Client, and Test Foundation
I requested this work.
- What was done: This is the first task for the customer app (
apps/app). It built the app skeleton (Expo-based), an error-message table (src/copy/ko.ts), server connection code (src/api/client.ts), input helpers for phone number, password and code, device ID code, and the test setup (jest-expo). Screens, navigation, Kakao and Apple sign-in, and app release settings belong to later tasks, so they were not included. - What got stuck: The first attempt stopped before any implementation. The test helper written by Fizz (
fake-fetch.ts) declared the namefakeFetchtwice. The task instructions forbade changing test helpers, so Claude did not fix it and sent it back to Fizz. After Fizz fixed it, the implementation continued. - Chosen approach:
- The skeleton was written by hand instead of using the example screens a generator tool creates. This avoids deleting the examples and avoids unneeded packages (images, symbols, glass effects and so on).
- The app’s packages are pinned to exact versions, without
^or~, so that a silent version change cannot alter test results. expo-secure-store, which stores the device ID, is replaced by an in-memory store in tests, so tests can check that the same ID comes back on every call.- The access token for server requests is kept only in a memory variable. Automatic refresh is a later task. The code-check ticket is sent in the
X-Code-Ticketheader, and the header name was confirmed by reading the server code.
- Checks:
npm run verifypassed (term check, type check, lint, app tests, server tests). The server tests need Docker.- The first type check reported a
jestname error in the test setup file, which was fixed by importing it from@jest/globals. - No test files were changed. No test conflicted with the instructions.
| Item | Content |
|---|---|
| Built | App skeleton, error-message table, server connection code, input helpers, device ID, test setup |
| Not included | Screens, navigation, Kakao and Apple sign-in, app release settings |
| What got stuck | Duplicate declaration in a test helper; implementation continued after Fizz fixed it |
| Checks | verify passed, app and server tests passed, CI (verify, e2e) passed |
Who Did What
- I: requested the work.
- Fizz (GPT-6 Luna): wrote the tests and fixed the test helper with the duplicate name.
- Cloud session (Claude Sonnet 5.5): implemented the skeleton, message table and server connection code, and ran
verify. - Claude (PL, Sonnet 5.5): read the diff without running the build output and checked that files the instructions said not to touch were unchanged. Also confirmed that the PR’s CI passed on the commit being merged.
- Pollen (OpenCode free model glm-5.3-flash-free): reviewed read-only and approved. It found that all the test cases in the plan were present, none were skipped or weakened, and no secrets were included.
What Was Chosen and What Was Left
- Chosen: When a test helper is wrong, the implementer sends it back to its author instead of fixing it.
- Left:
- The app’s identifier name is a placeholder using the plan’s default, and I need to decide the final name.
- Six error messages that had no sentence in the plan were newly written briefly by Claude. This is Pollen’s low-risk finding, and they will be refined when the related screens are built.
- The sign-in rate-limit message does not yet include the remaining time.
- There is no screens folder yet, so the app cannot be launched for now.
What Could Not Be Checked
- Launching the app on a real device or simulator was not checked, because there are no screens yet.
Lessons Learned
- To use an outside variable inside
jest.mock, the variable name must start withmock(a babel-jest rule). - To check that Docker is running in a new session, look for a Server section in the
docker infooutput. The command can succeed even without a server.