Skip to content

Add dashboard page with booking management#8

Open
nasmans wants to merge 1 commit intomainfrom
codex/create-dashboard-page-with-buttons
Open

Add dashboard page with booking management#8
nasmans wants to merge 1 commit intomainfrom
codex/create-dashboard-page-with-buttons

Conversation

@nasmans
Copy link
Copy Markdown
Owner

@nasmans nasmans commented Oct 29, 2025

Summary

  • scaffold a minimal Next.js TypeScript setup with Framer Motion dependency
  • implement the dashboard page with animated tab navigation and booking management actions
  • add settings flows for contact verification with OTP prompts and admin event notifications

Testing

  • npm install (fails: 403 Forbidden when downloading @types/node)

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

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 +151 to +155
if (!response.ok) {
throw new Error('تعذّر تحديث الحجز.');
}

const data = (await response.json()) as { booking?: Booking };
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 Assume booking PATCH always returns JSON body

The update handler unconditionally parses the PATCH response with response.json() after checking only response.ok. Many REST endpoints legitimately respond 204 No Content for a successful update, in which case response.json() throws and the UI treats the update as a failure even though the server accepted it. Consider skipping JSON parsing when the status is 204 or when no body is present before showing an error or updating local state.

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