Skip to content

Add alternate date/time options for private matches#253

Open
Studio-18 wants to merge 1 commit into
mainfrom
codex/improve-private-match-scheduling-options
Open

Add alternate date/time options for private matches#253
Studio-18 wants to merge 1 commit into
mainfrom
codex/improve-private-match-scheduling-options

Conversation

@Studio-18
Copy link
Copy Markdown
Collaborator

Motivation

  • Improve private match invitations by allowing hosts to offer multiple date/time options so invitees have flexible choices and higher chance to join.

Description

  • Added alternate/availability option support to the main in-app create flow by introducing availabilityOptions on matchData, UI for adding/removing datetime-local options, client-side validation (no duplicates, not equal to primary time, max 5), and formatted display in the preview and invite screens (src/TennisMatchApp.jsx).
  • Implemented the same feature in the dedicated match creator flow with alternateTimes state, date/time inputs, add/remove UI, validation, formatted review list, and sharing text updates (src/components/MatchCreatorFlow.jsx).
  • Added helper functions to format alternate times and to build a combined notes payload (buildAlternateTimesNote, formatAlternateTimes, formatAlternateSlots) and included alternate options in notes sent to the API and in calendar/event descriptions and share messages.
  • Ensured switching match types clears or preserves alternate options appropriately and surfaced alternate options in share messages and previews so invitees can see backup slots.

Testing

  • Started the dev server with npm run dev and confirmed Vite served the app at /ttp-play-dates/ (server ready). (succeeded)
  • Ran a headless Playwright script that opened the create flow as an authenticated host, selected a private match, filled a primary date/time, added an alternate date/time option, clicked Add, and captured a screenshot of the alternate options UI; the script completed and produced artifacts/alternate-options.png. (succeeded)
  • No unit tests or lint runs were added or executed as part of this change.

Codex Task

@github-actions
Copy link
Copy Markdown

github-actions Bot commented Feb 4, 2026

PR Preview Action v1.6.2

🚀 View preview at
https://CodeMyMobile.github.io/ttp-play-dates/pr-preview/pr-253/

Built to branch gh-pages at 2026-02-04 15:27 UTC.
Preview will be ready when the GitHub Pages deployment is complete.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant