[PR #22] Cross-Checking Three Plans While Writing the Customer App Plan
- What changed: While writing the customer app plan (11 tasks), the three plans for server, admin web, and customer app were lined up and their blanks filled.
- Decision: The social-login path was changed to a number-plus-code method. An exception allows running the server on this personal computer only for tests on a real phone.
- Still unknown: The conditions of this exception will be checked when the real-phone tests are run.
This is the record of writing the customer app development plan for sub-milestone 1 and strengthening the server plan to match the customer app specification. No code changed. Only documents were revised: the plans, the spec, decision notes, and the privacy policy draft.
What was done and why
As learned from the admin web plan (PR #21), I read the customer app specification to the end first and matched each server API (the channel through which the app and the server exchange data) and screen one by one.
| Output | Content |
|---|---|
| Customer app plan | A new plan (11 tasks) |
| Sub-milestone 1 spec | Social-login paths also changed to a number-plus-code method |
| Server plan | A section “strengthened to match the customer app spec”, and API and test fixes across several tasks |
| Admin web plan | Test strengthening |
| Privacy policy draft | Items collected automatically, processing records, retention periods, and backup retention period |
| Tech stack decision memo | An exception: the server runs on my Windows computer only for tests on a real phone |
Options considered
- The earlier version of the specification was followed (my decision). The shared drive held the earlier version (v0.1) and a new version (v0.3) that said it replaces the earlier one. The new version added other social logins, an email reset link, and an operator approval-wait procedure, and left Apple login as “needs review.” It differed greatly from the sub-milestone 1 spec already decided, so following the whole new version was dropped. Only the screen behaviors that did not conflict were taken: a cancelled social login shows no error, late responses are ignored, a number is kept but the password is cleared after a failure, and there is a fallback when copying fails.
- Social login for a first link also takes the number plus a code (my decision during review). If only a code was taken, someone who saw an 8-digit code could take over another person’s account with their own Kakao account. An approval-wait step would add request tables and approval screens, and customers would get no notice, so it was dropped. Instead, the number the customer registered is also taken on the social path. This matches the number path, and removes “finding by code alone,” which also makes the server simpler.
- Eight gaps in the server plan were filled (approved by me). These included adding number login, an error code for an expired code ticket, a list of terms to show before login, and an error code for sessions cut off by a service suspension. Names for shared constants used by the customer app were also set. The values stay the same.
- Technology choices were made as in the table below (approved by me). This table is all you need to read.
| Area | Choice | Reason in one line |
|---|---|---|
| Screen navigation | Expo Router | Includes a feature (Stack.Protected) that blocks screens depending on login state. Writing React Navigation by hand was dropped |
| Kakao login | @react-native-kakao/* 3.0.0 |
From React Native 0.82, only the new architecture works, and this library is built for it. It is only five days old, so it is checked first in a development build, and if it fails, it is replaced with @react-native-seoul/kakao-login 6.0.4 |
| iPhone build | EAS | Expo’s cloud build service. Works on Windows too |
| Testing | jest-expo + Testing Library | The server is replaced by a fake fetch, and the match with the real server is checked by API order tests. MSW and Maestro were not added |
| Secure storage | expo-secure-store | Used with a setting that keeps it out of backups |
- After invitation setup, the app goes straight to the next screen without the login screen. The server already gives the login key when it accepts the invitation, so Kakao and Apple users are not made to authenticate twice.
- The three plans were placed side by side and checked twice (you asked for it and approved). The first pass matched names. The full set of shared data types and error codes was written first in the server’s first step, and a script checked that no error code name was missing across the three plans. The second pass followed flows to the end. Because the customer code tab on the admin screen had no data to show, a list API for one customer was added. Actions the customer takes in the app (accepting an invitation, adding or removing a login method, agreeing to terms, requesting withdrawal) were also recorded in the history. A message that asked a person who had withdrawn to log in again was changed to “Withdrawal is complete.” When Apple login fails with a communication error, the same request is not sent again; the Apple window is opened again first, because an Apple authorization code can be used only once.
- Login logs were completed (you asked and approved). While asking “how are login logs managed,” six gaps came up. There was no record of admin lookups or CSV downloads of customer data, so records were added to meet Article 8 of the personal information security measures standard. Admin login, rejection, and logout records and the IP in every history entry were added, and names and numbers are masked in the history. The “app version” collection item in the privacy policy draft was removed, because it was not actually collected. Recording every list-screen view was dropped because the records would become too large, and restricting access only through DB account permissions was dropped because it is hard to test. Article 8 was checked only through a summary, not the original text.
- Development server, secrets, and backups were completed (you asked and approved).
- Where the server runs for tests on a real phone: my Windows computer on the same Wi-Fi (option “A”). Kakao and Apple login only send requests outward from the server, so the server does not need to be exposed to the internet. A cloud server was dropped because it costs money. Whether an iPhone connects by IP address was not confirmed.
- Secrets: if the
.envfile goes into git, the automatic check (verify) fails. An encryption key that cannot be recovered if lost has a copy, and a key version number is attached to ciphertext. - Backups: restoring from a backup would bring back withdrawals processed afterward, so a name and number could reappear. A command was made to process the withdrawal again right after a restore, and the backup retention period was written into the privacy policy draft.
- The app bundle name was left to be decided by the check result (my decision, the default is a new name). At first, a new name was recommended because the upload key of the old app could not be found. On comparison, that reason was weak. Google’s documentation says an app that uses Play app signing can request a reset even if the upload key is lost. So the old name is reused or not based on what the store console shows, and if that cannot be confirmed, a new name is used. It was also noted that an Android app name that has ever been installed cannot be used again even after the app is removed.
How it was checked
- Both versions of the specification were read to the end, and the items, buttons, and errors of the 15 screens and the consent screen were matched one by one against the server plan’s APIs and error codes.
- The latest versions and dates of Expo SDK 57, the Kakao libraries, and others were checked on npm. Official documents confirmed that Expo SDK 57 pairs with React Native 0.86, how
Stack.Protectedis used, the Kakao setup plugin and repository, Apple’s cancellation code, and the backup caution for SecureStore. - Items not yet confirmed (the real behavior of Kakao 3.0.0, the name of the value
login()returns, handling of the Apple nonce,renderRouter) were written under the plan’s “not yet confirmed” items and set to be matched in the first task.
Lessons
- Matching names alone is not enough when checking plans against each other. Following one user’s actions through admin screen → server → app → back to the admin history found more gaps.
- Reference documents on a shared drive also change versions. Before writing a plan, check the folder for the latest version.