Skip to content

feat: add booking form and ticket modal#5

Open
nasmans wants to merge 1 commit intomainfrom
codex/create-bookingform-component-and-update-modals
Open

feat: add booking form and ticket modal#5
nasmans wants to merge 1 commit intomainfrom
codex/create-bookingform-component-and-update-modals

Conversation

@nasmans
Copy link
Copy Markdown
Owner

@nasmans nasmans commented Oct 29, 2025

Summary

  • add a booking form that reads client data from context and exposes service, date, and visit options
  • introduce a ticket-style confirmation modal with dotted separators and dashboard action
  • supply styles and CSS module typings for the new booking components

Testing

  • not run (project setup not provided)

https://chatgpt.com/codex/tasks/task_b_690262c104748328802778a89b5955ec

Copy link
Copy Markdown

@chatgpt-codex-connector chatgpt-codex-connector bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment on lines +86 to +90
...(key === 'participantsCount'
? {
participants: buildParticipants(value as number).map((participant, index) => ({
...participant,
...prev.participants[index],
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P1 Badge Expanding participant count throws TypeError

Increasing the participant count calls updateField('participantsCount', …), which recreates the array by spreading prev.participants[index] into each new slot. For indexes that did not exist previously this value is undefined, and object spread on undefined raises Cannot convert undefined or null to object. The first attempt to add a second participant will therefore crash the form and prevent multi-person bookings.

Useful? React with 👍 / 👎.

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