[PR #90] Adding a Summary Screen and a Withdrawal Panel to the Admin Web
I requested this work.
- What was done: I connected a summary screen to the admin web home. It shows four counts by condition, a list of withdrawal requests, the five most recent history entries, and a link to the full history. Only customers with a withdrawal request can open the withdrawal confirmation panel from their detail page. I also added a phone outreach list (customers who must be told by phone before withdrawal).
- Why: So an admin does not have to hunt through several screens for work that needs doing, I gathered that work on one screen.
- How it was chosen: Withdrawal cannot be undone, so it sits behind its own confirmation panel and needs two presses. While a request is running, the same request cannot be sent again. On success, the customer detail and summary data are fetched again. If releasing an external connection (such as a Kakao login link) fails, the list of failed providers is kept, so only the Kakao failure gets its own message. The raw phone number stays inside the row component only and is cleared after a contact record is saved.
- Checks: 20 summary screen tests and 119 tests across the whole admin web passed. The type check (a check that values have the right kinds), lint (a code style check), and whitespace check also passed.
| Item | Details |
|---|---|
| Scope | Admin summary screen, withdrawal confirmation, phone outreach list |
| Withdrawal | The confirmation panel opens only for customers with a withdrawal request, and the request is sent after a second press |
| Repeat submit | The same request is blocked while one is running; on success the detail and summary reload |
| Checks | 20 summary tests, 119 admin web tests, type check and lint passed |
Who did what
- I: requested the work.
- Fizz (GPT-6 Luna): built the summary screen and the withdrawal panel.
- Claude (cloud session, Sonnet): wrote the tests.
- Claude (PL, Sonnet 5.5): wrote the work instructions and checked the combined change. PL is the role that hands out pieces of work and gathers the results. One login test failed once in CI (automated checks). The code was not changed; running it again passed. It is recorded as an unstable test (one that sometimes fails on the same code) and not counted as a failure.
- Pollen (opencode/glm-5.3-flash-free): reviewed the change. It found no blocking issues and three low-priority items.
What was chosen and what was left
- Chosen: The withdrawal action appears only for customers who requested withdrawal, and it asks for confirmation once more. The PR lists three points that need the owner’s confirmation: the scope of the shared communication code change (
client.ts), the phone outreach contact type that was defined locally to match the screen because no shared type existed, and the way a withdrawal request ID is matched to a customer ID. - Left: Three low-priority items were not fixed, because they are display-text issues outside this scope and were sent to the owner for review. Recent history shows the same wording for every entry without action names. Past-date checks are recalculated on the screen. A period with less than a day left shows as “1 day”.
Not verified
- I did not look at the real browser screen in this record.
- This record has no results from a server-side check, so that is unverified.
- One login test failed once in CI. The cause is not in the record, so it is unverified. I only confirmed that re-running it passed.