Skip to content

fix: invalid libraries metadata - #318

Merged
michalges merged 7 commits into
mainfrom
fix/invalid-libraries-metadata
Mar 27, 2026
Merged

fix: invalid libraries metadata#318
michalges merged 7 commits into
mainfrom
fix/invalid-libraries-metadata

Conversation

@michalges

Copy link
Copy Markdown
Member

No description provided.

Copilot AI review requested due to automatic review settings March 24, 2026 22:38
@michalges
michalges requested a review from kguzek as a code owner March 24, 2026 22:38
@michalges michalges self-assigned this Mar 24, 2026
@github-actions

Copy link
Copy Markdown

Looks like you did not link an issue to this PR. If this PR completes a task, consider linking it.

@michalges michalges linked an issue Mar 24, 2026 that may be closed by this pull request

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

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 Resource slugs and resource metadata (apiPath, queryName, and default values) for RegularHours/SpecialHours.
  • Changed SpecialHourSchema.specialDate validation from ISO timestamp to date-only.
  • Modified TimePicker and DatePicker behaviors/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.

Comment thread src/components/inputs/time-picker.tsx Outdated
Comment thread src/components/inputs/time-picker.tsx
Comment thread src/features/resources/schemas/special-hour-schema.ts Outdated
@michalges
michalges force-pushed the fix/invalid-libraries-metadata branch from 6c773e9 to eacd73c Compare March 25, 2026 10:10
@pull-request-size pull-request-size Bot added size/L and removed size/M labels Mar 25, 2026
Comment thread src/components/inputs/time-picker.tsx Outdated
Comment thread src/components/inputs/date-time-picker.tsx
Comment thread src/features/resources/data/resource-metadata.ts Outdated
Copilot AI review requested due to automatic review settings March 26, 2026 12:50
@kguzek
kguzek force-pushed the fix/invalid-libraries-metadata branch from eacd73c to d318e68 Compare March 26, 2026 12:50

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

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.

Comment thread src/schemas/string-date-schema.ts
Comment thread src/components/inputs/time-picker.tsx
Comment thread src/components/inputs/time-picker.tsx Outdated
Comment thread src/components/inputs/date-time-picker.tsx
Copilot AI review requested due to automatic review settings March 26, 2026 17:58

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

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.

Comment thread src/components/inputs/time-picker.tsx
Comment thread src/components/inputs/time-picker.tsx
Comment thread src/features/resources/data/resource-metadata.ts Outdated
Comment thread src/components/inputs/time-picker.tsx Outdated
@michalges
michalges requested a review from kguzek March 26, 2026 23:45
Copilot AI review requested due to automatic review settings March 27, 2026 09:21

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

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.

Comment thread src/features/resources/schemas/versions-schema.ts
Copilot AI review requested due to automatic review settings March 27, 2026 10:25

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

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.

Comment thread src/components/inputs/time-picker.tsx
Comment thread src/components/inputs/time-picker.tsx
@michalges
michalges merged commit f3f5888 into main Mar 27, 2026
12 checks passed
@michalges
michalges deleted the fix/invalid-libraries-metadata branch March 27, 2026 10:54
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.

naprawić 500 w panelu budynki > biblioteki

3 participants