[PR #89] Adding Suspension and Connected-Device Management to the Admin Web
I requested this work.
- What was done: On the customer detail screen, a customer’s use can be suspended or restored. Suspending requires a reason and shows what the change affects. Restoring shows which modules are kept and that the customer must sign in again. For each connected device (a device the customer signs in from), the screen shows recent activity and the number of valid connections. One device or all devices can be ended, and ending also requires a reason.
- Chosen approach: Withdrawn customers can only view the connected-device list. The buttons that change use status and end sessions are hidden. Times use the existing Korean time display. When a server error happens, the dialog stays open and shows a shared message. While submitting, the same request cannot be sent again, and the list reloads when done.
- Checks: 99 tests in 12 unit test files of the admin app passed. Type checking and linting (automatic code style checks) also passed. The server code was not changed.
| Item | Detail |
|---|---|
| Scope | Suspend and restore, per-device activity and ending |
| Reason | Required for suspending and for ending devices |
| Withdrawn customers | Device list view only; change buttons hidden |
| Repeat submit | Blocked while submitting; list reloads when done |
| Checks | 99 admin tests, type check, lint passed; backend and security not reviewed |
Who did what
- I: requested the work.
- Fizz (GPT-6 Luna): built the screens. The server code did not change.
- Claude (cloud session, Sonnet): wrote the tests.
- Claude (PL, Sonnet 5.5): checked the change and summarized the review findings. It confirmed CI (automatic checks) passed on the last commit.
- Pollen (opencode/glm-5.3-flash-free): ran a general review. The result was “approved, no blocking issues, 3 low, 3 notes.”
Chosen and left for later
- Chosen: Withdrawn customers can only view, and the change buttons are hidden. This is an easy-to-reverse choice, so Claude picked the recommended option and noted in the PR that the owner should confirm it.
- Left for later: Three low-level findings were grouped into follow-up cleanup: the valid connection count is filtered again with the browser clock, the withdrawn customer list has an empty action column, and the empty-reason text differs from other dialogs.
Not verified
- Backend and security review were not done. The server code did not change.
- I did not look at the real browser screen while writing this record.
- The three low-level findings were judged not to affect function, but they were not fixed this time.
What I learned
A feature that changes a customer’s status needs both a required reason and protection against repeated submission. This PR included both.