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

fix(supersearch): Implement the _Invalid type (LWS-287) #1196

Merged
merged 1 commit into from
Jan 8, 2025

Conversation

jesperengstrom
Copy link
Contributor

@jesperengstrom jesperengstrom commented Dec 20, 2024

LWS-287

Description

Solves

With libris/librisxl#1541, we now have a way to decisively say a property is invalid, and can have the red squiggly line to mean that, not just that no label was found for it.

This can so far only be tested with dev backend.

Summary of changes

  • Forward @type: '_Invalid' as a new key invalid to the frontend. Update DisplayMapping type accordingly.
  • In the GetLabelFunction, match invalid for a certain key and return an invalid boolean.
  • Add a mark decoration if invalid.
  • Update css somewhat.

@jesperengstrom jesperengstrom marked this pull request as ready for review December 20, 2024 13:26
@jesperengstrom jesperengstrom changed the title fix(supersearch): Implement the _Invalid type fix(supersearch): Implement the _Invalid type (LWS-287) Jan 8, 2025
Copy link
Contributor

@johanbissemattsson johanbissemattsson left a comment

Choose a reason for hiding this comment

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

Awesome! Seems to work as intended! 🌟

@jesperengstrom jesperengstrom merged commit b1f87dc into develop Jan 8, 2025
3 checks passed
@jesperengstrom jesperengstrom deleted the fix/supersearch-implement-invalid-query branch January 8, 2025 16:44
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