Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support displaying "similar to a Work" search results #292

Merged
merged 1 commit into from
Aug 30, 2023

Conversation

adamjarling
Copy link
Contributor

@adamjarling adamjarling commented Aug 29, 2023

What does this do?

When a user clicks on the "View All" button in a Clover Slider on a Work page, now they'll see Works which are "similar", "related to", etc.

image

image

  • The /search page now keeps track of a new query param, similar, and if it exists a UI will render noting the Search page is showing Works "similar" to a particular Work.
  • A user can still interact with all facets as normal, and the Works should filter down accordingly.
  • Dismissing the "similar" alert will remove the filter on search results. This is a one-way action and cannot be restored from the UI on the current page. A user will have to go to another Work page and click "view all" from another Slider to re-initiate.

How to test

  1. Go to a Work page and click "view all" button on a "More Like This" Slider.
  2. Note the new "similar" UI.
  3. Explore adding / removing facets.

@adamjarling adamjarling self-assigned this Aug 29, 2023
@adamjarling adamjarling force-pushed the 3741-view-all-clover-slider branch from a1de678 to 78db842 Compare August 29, 2023 16:49
Copy link
Member

@mathewjordan mathewjordan left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is slick.

@@ -35,7 +35,7 @@
"@radix-ui/react-select": "^1.0.0",
"@radix-ui/react-switch": "^1.0.1",
"@radix-ui/react-tabs": "^1.0.1",
"@samvera/clover-iiif": "^2.0.0",
"@samvera/clover-iiif": "^2.0.2",
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

:tada

@adamjarling adamjarling force-pushed the 3741-view-all-clover-slider branch from 78db842 to ad8c3cc Compare August 30, 2023 15:46
@adamjarling
Copy link
Contributor Author

@mathewjordan I just kind of threw in the Announcement component to indicate the "similar Work". Do you have any ideas on how to make this look better?

@mathewjordan
Copy link
Member

@mathewjordan I just kind of threw in the Announcement component to indicate the "similar Work". Do you have any ideas on how to make this look better?

I feel like we can iterate on it as other cases for similarity come in. I actually like the Announcement as it differentiates the similar selection from other facets nicely. Only thing I would do would be to maybe represent the work that is being set to a bit more? Maybe a very small thumbnail or small card of some sort. I don't think it needs to be there this time though.

@adamjarling adamjarling merged commit 6648842 into deploy/staging Aug 30, 2023
@adamjarling adamjarling deleted the 3741-view-all-clover-slider branch August 30, 2023 16:02
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.

2 participants