Skip to content

ILLDEV-537 Use illConfig.isPickupLocation to mark pickup locations - #63

Merged
jakub-id merged 4 commits into
mainfrom
is-pickup-location
Sep 29, 2026
Merged

jakub-id merged 4 commits into
mainfrom
is-pickup-location

Conversation

@jakub-id

@jakub-id jakub-id commented Sep 29, 2026 •

Copy link
Copy Markdown
Contributor

We can't rely on lmsConfig.requesterPickupLocation to mark a pickup location since we need them supported also when NCIP is disabled.

Copilot AI balanced review requested due to automatic review settings September 29, 2026 13:24

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

🟡 Changes recommended

Saving the flag leaves the cached owned-entry pickup options stale for up to five minutes.

Review effort: Balanced
Findings: 1 Medium severity

Open (1)
What changed in this PR

Uses illConfig.isPickupLocation to control which owned directory entries are offered as requester pickup locations.

Changes:

  • Adds an editable pickup-location flag and label.
  • Filters pickup options by the new flag.
  • Updates create/edit route fixtures and coverage.
File Description
ui-rsdir/​translations/​ui-rsdir/​en.json Adds the flag label.
ui-rsdir/​src/​routes/​ILLConfigRoute.js Exposes the boolean setting.
ui-rs/​src/​util/​useOwnedEntries.js Filters pickup locations by the flag.
ui-rs/​src/​routes/​EditRoute.test.js Updates flagged-entry fixtures.
ui-rs/​src/​routes/​CreateRoute.test.js Tests inclusion and exclusion behavior.

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

Comment thread ui-rsdir/src/routes/ILLConfigRoute.js
@jakub-id jakub-id changed the title Use illConfig.isPickupLocation to mark pickup locations ILLDEV-537 Use illConfig.isPickupLocation to mark pickup locations Sep 29, 2026
@jakub-id
jakub-id merged commit b5f261a into main Sep 29, 2026
3 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.

3 participants