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

feat(lxlweb): Decorated suggestions (LWS-321) #1210

Draft
wants to merge 12 commits into
base: develop
Choose a base branch
from

Conversation

jesperengstrom
Copy link
Contributor

@jesperengstrom jesperengstrom commented Jan 30, 2025

Description

Tickets involved

LWS-321

Solves

Adds decorated data to supersearch suggestions in the form of a SuggestCard component, basically a slimmed version of SearchCard. Now also fetching results for Work, Agent, Concept & Language types.

As a result of new types showing up, the cards (lenses) needed adjustment. I chose a minimal approach, see examples below.

Suggestions now also probably needs relevance adjustments: a search for 'Mikael Yvesand' returns the Person as the last result.

Upgraded Svelte to be able to use the new more flexible class array syntax.

Skärmavbild 2025-01-30 kl  23 36 02 Skärmavbild 2025-01-30 kl  23 36 13

Skärmavbild 2025-01-30 kl  23 39 35 Skärmavbild 2025-01-30 kl  23 39 52

Skärmavbild 2025-01-30 kl  23 45 36 Skärmavbild 2025-01-30 kl  23 45 45

Skärmavbild 2025-01-30 kl  23 47 35 Skärmavbild 2025-01-30 kl  23 47 45

Summary of changes

  • Add component SuggestionCard
  • Include more types to search, format data in /supersearch api route
  • Tweak cards for Agent Concept, Language in display-web + additional formatters
  • Subsequent minor tweaks to SearchCard
  • Breakout getInstanceData function into utils file and add tests
  • Implement esScore debug for suggestions
  • Some more tweaks to dialog/combobox layout
  • Upgrade Svelte to 5.18.0

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