Skip to content

Show resource type chips in search results - #339

Merged
ewlarson merged 1 commit into
developfrom
feature/search-results-resource-type-chips
Aug 19, 2026
Merged

Show resource type chips in search results#339
ewlarson merged 1 commit into
developfrom
feature/search-results-resource-type-chips

Conversation

@ewlarson

Copy link
Copy Markdown
Contributor

Summary

  • replace Subject chips on full search-result cards with Resource Type chips
  • keep Theme chips and their existing styling
  • link Resource Type chips to the gbl_resourceType_sm search filter
  • add regression coverage for chip content, filter URLs, and subject suppression

Why

Subject values are less normalized and can be lengthy, which makes result cards noisy. Resource Type values are more consistent and usually limited to one or two values, so they provide more useful scannable metadata.

User impact

Search results and bookmarked-result cards now show Resource Type and Theme chips beneath the description. Clicking a Resource Type chip opens a filtered search for that value.

Validation

  • npm test -- --run — 956 tests passed
  • npm run build — passed
  • targeted ESLint and Prettier checks for the changed files — passed
  • git diff --check — passed

Repository-wide lint and format checks still report pre-existing failures in unrelated files.

Closes #335

@ewlarson
ewlarson marked this pull request as ready for review August 19, 2026 22:13
@ewlarson
ewlarson merged commit 61e7712 into develop Aug 19, 2026
12 checks passed
@ewlarson
ewlarson deleted the feature/search-results-resource-type-chips branch August 19, 2026 22:14
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.

Search results views: include Resource Type as a chip

1 participant