Skip to content

Show / hide configuration associations (PP-4022)#213

Open
tdilauro wants to merge 8 commits intomainfrom
feature/show-associated-libraries
Open

Show / hide configuration associations (PP-4022)#213
tdilauro wants to merge 8 commits intomainfrom
feature/show-associated-libraries

Conversation

@tdilauro
Copy link
Copy Markdown
Contributor

Description

Add an expandable disclosure panel to each row on the integration/configuration list pages, showing the libraries / roles associated with that service. Users can expand/collapse individual rows or use Expand all / Collapse all controls. Alt+Click on any toggle expands or collapses all rows at once.

This is implemented as a set of overridable template methods on GenericEditableConfigList:

  • getAssociatedEntries — returns entries to display (or undefined to suppress the toggle entirely)
  • formatAssociatedCount — controls the count label (e.g. "3 libraries", "2 roles", "1 registered library")
  • getAllLibraries — resolves short names to display names and edit links

Each component overrides as needed:

  • Collections / base class — shows associated libraries
  • DiscoveryServices — shows successfully registered libraries with their registration stage
  • IndividualAdmins — shows admin roles; sitewide roles (manager-all, librarian-all) are pinned to the top; system admins show a synthetic "sysadmin" entry
  • Libraries — suppresses the panel (libraries are not associated with other libraries)

Also includes a few minor fixes picked up along the way:

  • UNSAFE_componentWillMount update to componentDidMount,
  • (window as any).FormData updated to FormData,
  • .catch() added to save() to suppress unhandled-rejection warnings, and
  • CollectionData now explicitly declares marked_for_deletion.

Motivation and Context

Admins currently have no way to see which libraries are associated with a service without opening each service's edit form individually.

[Jira PP-4022]

How Has This Been Tested?

  • Manual testing in local development environment.
  • New tests for added functionality.
  • CI checks pass.

Checklist:

  • I have updated the documentation accordingly.
  • All new and existing tests passed.

@tdilauro tdilauro requested a review from a team April 13, 2026 15:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant