Update full-day date range defaults#69
Conversation
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 7f951d3031
ℹ️ 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".
There was a problem hiding this comment.
Pull request overview
Updates the Create Event form so full-day events default to a “today → one month ahead” date range while keeping the existing time-grid defaults, and adds UI/submission assertions to cover the new behavior.
Changes:
- Added full-day default date range logic (today through +1 month) while preserving the time-grid default range.
- Updated event type selection to reset date range only when the user is still on the current default.
- Expanded
CreateEventFormtests to assert the full-day range label and submitted date span.
Reviewed changes
Copilot reviewed 2 out of 2 changed files in this pull request and generated 2 comments.
| File | Description |
|---|---|
| src/components/create-event-form.tsx | Introduces new default date range helpers and updates event-type switching behavior to apply appropriate defaults. |
| src/components/create-event-form.test.tsx | Adds assertions for full-day date range label and submitted date boundaries. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
Summary
Testing
src/components/create-event-form.test.tsx.