Skip to content

fix(coaching): confirm paid sessions and show registrations - #149

Open
RenaudBernier wants to merge 1 commit into
developfrom
feature/117-coaching-status-bug
Open

RenaudBernier wants to merge 1 commit into
developfrom
feature/117-coaching-status-bug

Conversation

@RenaudBernier

Copy link
Copy Markdown
Member

Closes #117

Overview

Private lessons stayed pending after successful checkout, and the service's Registrations page only queried program bookings. Completed coaching checkout now sets the booking to confirmed, expires the registrations cache, and shows private lessons in the service's registration list. The existing payment-state guard and single coordinator notification are preserved.

Testing

  • pnpm test:ci --runInBand: 109 tests passed across 14 suites, including webhook confirmation/retries, adult and child registrations, program compatibility, and the Confirmed badge.
  • pnpm lint: passed with 12 existing warnings; changed TypeScript files pass focused lint.
  • pnpm exec tsc --noEmit: blocked by existing TS2556 errors in __tests__/children-actions.test.ts:37 and __tests__/children-admin-actions.test.ts:36.

Screenshots / Screencasts

Registration rendering is covered by the component test. Live Stripe checkout was not exercised.

Checklist

  • Code is neat, readable, and covered by tests
  • Behavior is documented
  • Commit messages follow conventional commits
  • Issue number is linked
  • Branch is linked
  • Reviewers are assigned

Notes

This confirms new paid bookings; it does not assign a time. The existing availability-window flow still leaves scheduling to the coach. Existing pending rows are not migrated.

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