Skip to content

Make directory ui inheritance-aware - #108

Merged
kurtnordstrom merged 1 commit into
mainfrom
ui-rsdir-inheritance-aware
Nov 12, 2026
Merged

kurtnordstrom merged 1 commit into
mainfrom
ui-rsdir-inheritance-aware

Conversation

@kurtnordstrom

Copy link
Copy Markdown
Contributor

No description provided.

@kurtnordstrom
kurtnordstrom marked this pull request as ready for review November 12, 2026 16:48
Copilot AI balanced review requested due to automatic review settings November 12, 2026 16:48

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.

🟢 Approval recommended

No active review issues are reported for the inheritance-aware directory settings changes.

No open issues 🎉

What changed in this PR

Makes the directory settings UI aware of inheritance, using OpenAPI policy metadata to control field visibility and editing while distinguishing local values from inherited values.

Changes:

  • Applies inheritance rules consistently across settings editors, search, and section navigation.
  • Edits local values while displaying resolved values, with explicit choices to inherit or store an empty override.
  • Adds policy and editor tests, user-facing messages, styling, and documentation.
File Description
ui-rsdir/​translations/​ui-rsdir/​en.json Adds inheritance prompts and local-value error messages.
ui-rsdir/​src/​util/​settingsIndex.test.js Updates search coverage for policy-hidden sections.
ui-rsdir/​src/​util/​settingsIndex.js Filters search sections using effective applicability.
ui-rsdir/​src/​util/​inheritancePolicy.test.js Tests inheritance roots, editability, and field filtering.
ui-rsdir/​src/​util/​inheritancePolicy.js Determines whether fields are editable, read-only, or hidden.
ui-rsdir/​src/​util/​configFieldDescription.js Exports schema metadata traversal for policy reuse.
ui-rsdir/​src/​routes/​ILLConfigRoute.js Uses policy-aware fields and waits for policy loading to settle.
ui-rsdir/​src/​routes/​HoldingsPolicyRoute.js Uses policy-aware fields and waits for policy loading to settle.
ui-rsdir/​src/​hooks/​useEffectiveSections.js Combines profile mappings with inheritance policy.
ui-rsdir/​src/​config/​configSections.js Updates section applicability and handles null copyright selections.
ui-rsdir/​src/​components/​SettingsConfigEditor.test.js Covers local editing, inheritance choices, retries, and read-only fields.
ui-rsdir/​src/​components/​SettingsConfigEditor.js Adds local-value loading, inheritance confirmation, and read-only rendering.
ui-rsdir/​src/​components/​SettingsConfigEditor.css Styles inheritance errors, unset notices, and read-only fields.
ui-rsdir/​src/​components/​EntrySections.js Filters navigation using effective sections.
ui-rsdir/​src/​components/​EntryPane.js Passes effective sections to navigation.
ui-rsdir/​FieldMapping.md Documents inheritance policy and local-value editing behavior.

Review effort: Balanced

@kurtnordstrom
kurtnordstrom merged commit 10fd516 into main Nov 12, 2026
4 checks passed
@kurtnordstrom
kurtnordstrom deleted the ui-rsdir-inheritance-aware branch November 12, 2026 17:16
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