Skip to content

Types: withheld on roster entries, fueling rollups and AI reports - #30

Open
DrAlexHarrison wants to merge 1 commit into
mainfrom
rosterwithheld
Open

DrAlexHarrison wants to merge 1 commit into
mainfrom
rosterwithheld

Conversation

@DrAlexHarrison

Copy link
Copy Markdown
Member

What changes, in plain words

The Coach API tells a coach's script when some of an athlete's sessions are left out of an answer (the athlete connected an app whose data stays on Saturday). It sends a withheld object on that athlete's roster row, fueling rollup and AI report, and the docs describe it, but the TypeScript types had no field for it, so a script had to cast to read it. They have one now: withheld?: CoachWithheldNotice (kind: 'connected_app_sessions', message).

RosterEntry.top_reasons is documented as [] for an athlete who is not flagged. The API sent null there; fuel-backend #1808 makes it [], matching the existing string[] type.

Types only: no runtime change, no request change.

Merge after fuel-backend #1808 lands (left unlabeled; this repo is public).

Checks

🤖 Generated with Claude Code

https://claude.ai/code/session_01RdmWd4TJTQMDjLtmVXcBu1

The Coach API sends a withheld notice about an athlete who connected an app
whose data stays on Saturday; the types had no field for it. top_reasons is
documented as [] for an athlete who is not flagged.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01RdmWd4TJTQMDjLtmVXcBu1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant