[PR #94] Adding a Full History Page and a Customer History Tab to the Admin Web
I requested this work.
- What was done: On the full history page (
/history), I added history type tabs, a search term and page number, result, empty-result, and error messages, and a CSV link that uses the current search. The history tab on the customer detail page now shows that customer’s audit history. An audit history is a record of who did what and when. The goal is to let admins check it. - How it was chosen: The search term and page number are kept in the URL, so a refresh or a shared link shows the same screen. Changing a tab returns to page 1. Action codes from the server are shown with Korean names kept on the screen side, and any action not in that list shows its original code. Login attempts from accounts outside the company domain get their own message.
- Checks: 16 history page tests and 135 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 | Full history page, history tab on the customer detail page |
| Search state | Search term and page number kept in the URL; changing a tab goes to page 1 |
| Shown | Time in Korean time, customer, action, handler, result, details, reason |
| Checks | 16 history tests and 135 admin web tests passed |
Who did what
- I: requested the work.
- Fizz (GPT-6 Luna, the implementation model is not recorded in the log): built the screens.
- Claude (cloud session, Sonnet): wrote the tests.
- Claude (PL, Sonnet 5.5): split the work and reviewed it. On the first CI (automated checks) run, one login test failed. This PR did not change that test or the login code, and the same test passed in the implementation environment. I treated it as a flaky test (one that sometimes fails on the same code) and decided to run CI again.
What was chosen and what was left
- Chosen: The full list shows a short account ID link instead of a name. Names are not looked up separately for each row. The customer detail history tab uses the customer name that is already loaded.
- Left: CSV export rows do not get a customer link, because the server does not record the target customer ID on those rows. The action-name list on the screen copies names from the server, so it must be updated whenever the server names change. IP addresses and details are shown exactly as the server returns them, and the screen does not hide them again.
Not verified
- The record does not say how the flaky login test turned out in the re-run. Unverified.
- I did not look at the real browser screen in this record.