fix: invalid libraries metadata - #318
Conversation
|
Looks like you did not link an issue to this PR. If this PR completes a task, consider linking it. |
There was a problem hiding this comment.
Pull request overview
This PR updates the “libraries hours” resources to use corrected route/API metadata and adjusts date/time input handling to better match the expected formats for regular/special library hours.
Changes:
- Updated
Resourceslugs and resource metadata (apiPath,queryName, and default values) for RegularHours/SpecialHours. - Changed
SpecialHourSchema.specialDatevalidation from ISO timestamp to date-only. - Modified
TimePickerandDatePickerbehaviors/types to handle time/date values differently.
Reviewed changes
Copilot reviewed 5 out of 5 changed files in this pull request and generated 3 comments.
Show a summary per file
| File | Description |
|---|---|
| src/features/resources/schemas/special-hour-schema.ts | Switches specialDate validation to date-only format. |
| src/features/resources/enums.ts | Updates route slugs for RegularHours/SpecialHours resources. |
| src/features/resources/data/resource-metadata.ts | Fixes API paths/query names and adjusts default values for hours resources. |
| src/components/inputs/time-picker.tsx | Refactors TimePicker to accept/emit time-only strings. |
| src/components/inputs/date-picker.tsx | Accepts ISO datetime strings (containing T) when computing displayed date. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
6c773e9 to
eacd73c
Compare
eacd73c to
d318e68
Compare
There was a problem hiding this comment.
Pull request overview
Copilot reviewed 7 out of 7 changed files in this pull request and generated 4 comments.
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
There was a problem hiding this comment.
Pull request overview
Copilot reviewed 9 out of 9 changed files in this pull request and generated 4 comments.
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
There was a problem hiding this comment.
Pull request overview
Copilot reviewed 9 out of 9 changed files in this pull request and generated 1 comment.
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
There was a problem hiding this comment.
Pull request overview
Copilot reviewed 10 out of 10 changed files in this pull request and generated 2 comments.
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
No description provided.