Skip to content

Show collection descriptions in the /collections dropdown#93

Merged
neomorphic merged 1 commit into
masterfrom
feature/collections-dropdown-descriptions
Jul 13, 2026
Merged

Show collection descriptions in the /collections dropdown#93
neomorphic merged 1 commit into
masterfrom
feature/collections-dropdown-descriptions

Conversation

@neomorphic

Copy link
Copy Markdown
Member

Summary

On the /collections page, the collection picker previously listed only the collection names, asking users to parse the jargon before knowing what each collection contains. This shows the description inside each dropdown option, with the collection name in bold above its description.

Changes

  • Each option in the collection Select now renders the collection name (bold) above its description.
  • The closed selector still shows just the name (via optionLabelProp="label"), and search still filters by name (optionFilterProp="label").
  • Virtualization is disabled (virtual={false}) so the multi-line options aren't clipped to a single row, and a popupClassName lets the option content wrap.
  • Options stay grouped by microscopy type (Light / Electron).
  • The selected collection's description also still appears above its release table.

Descriptions come from collections.json (added in the collections redesign), so no new content is hardcoded.

Test plan

  • npm start, log in, open /collections.
  • Open the collection dropdown: each entry shows a bold name with its description beneath, grouped by type.
  • Select one: the input shows just the name; the release table and description render as before.

Render each option in the collection picker with the collection name in
bold above its description, so users can tell what a collection contains
without having to parse the name first. The closed selector still shows
just the name (optionLabelProp), and virtualization is disabled so the
multi-line options are not clipped.
@neomorphic
neomorphic merged commit 18d9730 into master Jul 13, 2026
1 check passed
@neomorphic
neomorphic deleted the feature/collections-dropdown-descriptions branch July 13, 2026 18:39
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