Repository navigation
Test the attendee page, attendees list, listing loaders and store-and-refund #1993
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
stefan-burke
merged 17 commits into
main
from
claude/site-tidyup-migrations-status-yl8jsv
Jul 30, 2026
Merged
Changes from 15 commits
Commits
Show all changes
17 commits
Select commit
Hold shift + click to select a range
ccf21a5
WIP: direct tests for the attendee page and attendees browser
claude d5bec6f
WIP: strengthen the attendee-page suite, add roster-filter tests
claude c1e79d5
WIP: target the attendee-page survivors, add store-refund tests
claude b63e9ce
WIP: attendees-list paging and activity-log tests, listing-page-data …
claude 9639b4c
WIP: money-path tests for storeRefundedBooking
claude bb409cb
WIP: balance-change and overbook tests for store-refund
claude ae71e6c
Record the one unclosed store-refund mutant in the backlog
claude b153bce
Sharpen the listing-page-data ledger and activity-preview tests
claude 6c7db9f
Give four feature modules the direct tests the mutation gate needs
claude de1aa11
Answer the review: restore a lost TODO, split the helper, fix the fix…
claude 861d524
Import the seeder from its new module in the integration suite
claude 162ff25
Record the duplicate attendees-list suites for a future pass
claude 0317da4
Fixtures for the listing page's package, parent, daily and note paths
claude f3ed7ff
Questions, date-picker and daily-date fixtures for the listing page
claude 0864406
WIP: review fixes — package helper, guide path, stronger refund asser…
claude e78c5b4
All four modules reach 100%
claude b1924ff
Build the refund fixtures from real types, not any
claude File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -1435,6 +1435,30 @@ stands, so the split can be a pure move. | |
|
|
||
| --- | ||
|
|
||
| ## Two suites now cover the attendees list | ||
|
|
||
| *Origin: Codex review of PR #1993 (direct tests for the four testless modules).* | ||
|
|
||
| `test/features/admin/attendees-list.test.ts` was added because the mutation | ||
| gate needs a test at the source's mirrored path. It calls the handlers | ||
| directly. But `test/integration/server/attendees-list.test.ts` already drives | ||
| the same behaviour over HTTP — authentication, the listing filter, sort order | ||
| and paging — and `test/integration/server/attendees-csv.test.ts` covers the | ||
| export. So the same rules are now checked twice. | ||
|
|
||
| That costs runtime on every suite run, and lets the two sets of fixtures and | ||
| expectations drift apart. The fix is to consolidate: move the route-level cases | ||
| into the mirrored feature suite (which can call the handler directly *and* go | ||
| through the router where that is the point), and delete what is left behind. | ||
|
|
||
| Not done in #1993 because that change touches suites the PR otherwise had no | ||
| reason to open, and the mirrored suite had to exist first. Worth doing next | ||
| time either file is opened. | ||
|
|
||
| Starting point: the three files named above. | ||
|
|
||
| --- | ||
|
|
||
| ## Let Deno-hosted sites with a Bunny database be migrated | ||
|
|
||
| `POST /instance/site-credentials` (`src/features/instance.ts`) only returns | ||
|
|
@@ -1708,33 +1732,28 @@ and thinking again about the startup grace, which exists because a process id | |
| can be given to somebody else after the original has gone. Start at | ||
| `RUN_STARTUP_GRACE_MS` in `isolation-state.ts` and the comment above it. | ||
|
|
||
| ## Four feature modules have no test at their mirrored path | ||
| ## Four feature modules had no test at their mirrored path — now they do | ||
|
|
||
| *Origin: `deno task precommit:mutation` on the notes-migration branch, which | ||
| could not start.* | ||
|
|
||
| The mutation gate refuses to run a source that has mutants but no test at its | ||
| mirrored path under `test/`. Four modules are in that state: | ||
|
|
||
| - `src/features/admin/attendee-page.ts` (55 mutants) | ||
| - `src/features/admin/attendees-list.ts` (37) | ||
| - `src/features/admin/listing-page-data.ts` (45) | ||
| - `src/features/api/payment-processing/store-refund.ts` (29) | ||
|
|
||
| Nothing needs moving: no test imports any of them. They are reached only | ||
| through the app, by integration and Cucumber journeys, so each needs a direct | ||
| test written at `test/features/…` to match its path. | ||
|
|
||
| This blocks the gate for *any* branch that touches one of them, however small | ||
| the change — the notes migration only swapped an import in each. Until they | ||
| have direct tests, a branch touching them can prove its own work with a | ||
| targeted `deno task mutation <source> <tests>` run instead. | ||
|
|
||
| `src/features/admin/attendee-notes.ts` was in the same state and is now fixed: | ||
| its route suite drives real pages through the session helpers, so it moved from | ||
| `test/integration/admin/` to `test/features/admin/`, which is where that kind | ||
| of suite belongs (see "Let the misplaced-test list see past request helpers" | ||
| above). The other four have no such suite to move. | ||
| could not start. Closed by the direct-test pass that followed.* | ||
|
|
||
| All four now have a direct test at their mirrored path, so the gate no longer | ||
| refuses to start on a branch that touches them: | ||
|
|
||
| - `src/features/admin/attendee-page.ts` → `test/features/admin/attendee-page.test.ts` (98.1%, one recorded equivalent) | ||
| - `src/features/admin/attendees-list.ts` → `test/features/admin/attendees-list.test.ts` (100%) | ||
| - `src/features/admin/listing-page-data.ts` → `test/features/admin/listing-page-data/` (100%, one recorded equivalent) | ||
| - `src/features/api/payment-processing/store-refund.ts` → `test/features/api/payment-processing/store-refund.test.ts` (100%) | ||
|
|
||
| Every one of them is now at the 100% the gate demands, so a branch touching | ||
| any of them can pass without first writing the tests that should already have | ||
| existed. | ||
|
Comment on lines
+1748
to
+1750
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 📐 Maintainability & Code Quality | 🟡 Minor | ⚡ Quick win Clarify that this refers to 100% coverage. “Now at the 100% the gate demands” is grammatically incomplete. Use “now at the 100% coverage the gate demands” or equivalent. 🤖 Prompt for AI Agents |
||
|
|
||
| `src/features/admin/attendee-notes.ts` was in the same state and was fixed | ||
| earlier: its route suite drives real pages through the session helpers, so it | ||
| moved from `test/integration/admin/` to `test/features/admin/`, which is where | ||
| that kind of suite belongs (see "Let the misplaced-test list see past request | ||
| helpers" above). | ||
|
|
||
| --- | ||
|
|
||
|
|
||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This replacement also deletes the unrelated “An answer filed under a listing nobody booked” item that came from the review of PR #1990, although the bug is still present:
BookingIntentSchemaaccepts any numeric listing key, andsaveSessionAnswersonly visitscreatedEntries, so answers keyed to an unbooked listing are silently discarded after payment. Restore that TODO until the booking code validates the answer keys, rather than losing an acknowledged out-of-scope review issue.AGENTS.md reference: AGENTS.md:L99-L99
Useful? React with 👍 / 👎.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fixed in de1aa11, and thank you for catching it — this was real data loss, not a judgement call. My edit replaced from the "Four feature modules" heading to end of file, so it took the still-open lost-answer item with it. The section is restored verbatim from
origin/main, andgit diff origin/main -- TODO.mdnow shows only the one heading I meant to rewrite.Generated by Claude Code