fix: attendees after 2026-08 Wodify redesign

- endpoint moved: WodifyClient_Class/Classes/Class/ActionGetClassAttendees
  (old Schedule_OS GetClassAttendees no longer fires anywhere in the app)
- render.attendees() delegates to attendee_rows() — PersonName, not Name
- test fixtures updated to ClassDetailAttendee.List wire shape
- CLAUDE.md: diagnosis notes (path re-prefix + lazy attendee action)

prime now captures 8/8 actions; 138 tests pass
This commit is contained in:
lucio committed 2026-08-23 23:57:16 -07:00
1 parent ae3c39b384
commit fdc2c49991
4 files changed
+53 -18

No files matched your search

+32
View File
@@ -279,6 +279,38 @@ STALE: schedule: Wodify redeployed (module changed=True, api changed=False). Re-
Exit 3, no fallback, no guess. Intended behaviour, fired unprompted.
### The 2026-08 redesign: attendees moved, paths re-prefixed
Wodify redeployed around 2026-08-22 and broke `attendees` in two independent
ways. Both are fixed; recorded so the next redesign is faster to diagnose.
1. **Every data action gained a `WodifyClient_DataFetch_WB/` prefix** (e.g.
`Schedule_OS/GetClassList_ForClient_WithReservationCounts_WB/...` now lives
under `WodifyClient_DataFetch_WB/Schedule_OS/...`). Symptom was subtle:
cached apiVersions kept working, so everything *except* never-captured
actions kept answering — and re-prime could not recapture anything new,
because `_observe` matches captured paths exactly against the allowlist.
2. **`GetClassAttendees` is gone entirely.** No request by that name fires
anywhere in the app now, on any screen, including scroll. The class screen
sources its roster from a different endpoint:
`WodifyClient_Class/Classes/Class/ActionGetClassAttendees` (note: no
`_WB`, no `DataAction` infix — ServiceAPI style). It only fires when a
class is opened from the Scheduler UI, which the existing workout walk
already does.
Diagnosis recipe that found both: attach CDP with a request observer, click
through Home → Schedule → a class, and dump every `/screenservices/` path
(probe script pattern in git history, `probe4.py`). Grepping the dump for
the missing action's name fragments (`Attendee`) reveals its new home.
The response shape also changed: attendees now arrive as
`Response.ClassDetailAttendee.List[].{PersonName, StatusInClass, ...}` —
which `render.attendee_rows` already handled, but the CLI's `attendees`
command had its own older inline renderer that only knew `Name`/
`FirstName+LastName` and silently printed "No attendees listed." for every
class. Rule reinforced: **there must be exactly one attendee-shape parser**;
`render.attendees()` now delegates to `attendee_rows()`.
### Publishing
Test fixtures use **fictional** names. Real gym members' names were scrubbed and the git