-
Notifications
You must be signed in to change notification settings - Fork 561
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Resolve Military Time Display and Schedule Exception Issue on Mobile #10804
base: develop
Are you sure you want to change the base?
Conversation
Important Review skippedDraft detected. Please check the settings in the CodeRabbit UI or the You can disable this status message by setting the WalkthroughThe changes update the Changes
Suggested labels
Suggested reviewers
Poem
Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media? 🪧 TipsChatThere are 3 ways to chat with CodeRabbit:
Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. CodeRabbit Commands (Invoked using PR comments)
Other keywords and placeholders
CodeRabbit Configuration File (
|
✅ Deploy Preview for care-ohc ready!
To edit notification comments on pull requests, go to your Netlify site configuration. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Actionable comments posted: 0
🧹 Nitpick comments (1)
src/pages/Scheduling/components/CreateScheduleExceptionSheet.tsx (1)
266-272
: LGTM! Consider adding ARIA labels for better accessibility.The addition of
step="60"
effectively resolves the military time display issue by enforcing minute-level precision. This aligns well with the form's "HH:mm" format validation.Consider adding ARIA labels to improve accessibility:
<Input type="time" step="60" + aria-label={t("exception_start_time")} {...field} disabled={unavailableAllDay} />
<Input type="time" step="60" + aria-label={t("exception_end_time")} {...field} disabled={unavailableAllDay} />
Also applies to: 285-291
📜 Review details
Configuration used: CodeRabbit UI
Review profile: CHILL
Plan: Pro
📒 Files selected for processing (1)
src/pages/Scheduling/components/CreateScheduleExceptionSheet.tsx
(2 hunks)
⏰ Context from checks skipped due to timeout of 90000ms (1)
- GitHub Check: cypress-run (1)
🔇 Additional comments (3)
src/pages/Scheduling/components/CreateScheduleExceptionSheet.tsx (3)
63-95
: LGTM! Robust validation logic.The form schema properly validates military time format and ensures correct time ranges, with appropriate handling of the all-day unavailability case.
137-145
: LGTM! Clean state management.The form state management properly handles time field updates and resets, with appropriate handling of the all-day unavailability toggle.
1-38
: LGTM! Well-structured component.The component follows best practices with clear separation of concerns, proper use of design system components, and internationalization support.
Also applies to: 158-319
Proposed Changes
@ohcnetwork/care-fe-code-reviewers
Merge Checklist
Summary by CodeRabbit