Skip to content

Don't require pickup location when none can be selected - #61

Merged
jakub-id merged 1 commit into
mainfrom
allow-no-pickup-loc
Sep 29, 2026
Merged

jakub-id merged 1 commit into
mainfrom
allow-no-pickup-loc

Conversation

@jakub-id

Copy link
Copy Markdown
Contributor

No description provided.

Copilot AI balanced review requested due to automatic review settings September 29, 2026 10:33

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Copilot review overview

🟢 Approval recommended

The validation change is focused and adequately covered by route-level tests.

Review effort: Balanced
Findings: None

What changed in this PR

Allows loan requests to proceed when no pickup locations are available.

Changes:

  • Requires pickup location only when selectable locations exist.
  • Adds coverage for failed, empty, and institution-only lookups.
File Description
PatronRequestForm.js Makes pickup-location validation conditional on available options.
CreateRoute.test.js Verifies submission without available pickup locations.

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

@jakub-id
jakub-id merged commit 56d83ce into main Sep 29, 2026
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

2 participants