Skip to content

Conversation

@danieleguido
Copy link
Contributor

This fixes #1774 , #1784, #1843

  • improving UX for search embeddings and similar word integration
  • fix partially the text-resuse-passages not shwing up (still related to IML issue)

danieleguido and others added 3 commits December 12, 2025 13:02
This PR fixes an issue where text reuse search pills were missing labels. 
this is the case for Text reuse passages facets for clusters : it returns empty items (see related issue on IML impresso/impresso-middle-layer#648) The changes implement fallback handling for missing textReuseCluster data and batch loading of facets to improve performance.

Key changes:

    Added batch facet loading via new loadFacets method to reduce API calls
    Implemented fallback label generation for textReuseCluster items without full data
    Improved null/undefined handling using isNaN checks instead of direct comparisons

---------

Co-authored-by: Copilot <[email protected]>
* Refactor EmbeddingsSearch and improve filter integration

Refactored EmbeddingsSearch.vue to use script setup, improved UI/UX, and enhanced filter management with preview and multi-word support. Updated FilterMonitor.vue and Search.vue to use the new EmbeddingsSearch API, including passing filters as props and handling filter changes via events. Replaced legacy modal with InfoModal in Search.vue and removed unused code.

Replaced the Modal component with InfoModal in Search.vue and updated the embeddings search integration

* Make InfoModal title optional and update prop name
The modal title is now only rendered if provided, and the default prop name was changed from 'title' to 'modalTitle' for clarity.

* Update style.css

* Add buttonClass prop to Dropdown component

Introduces a new 'buttonClass' prop to allow custom classes on the dropdown button. This provides greater flexibility for styling the Dropdown component.


* Add Storybook stories and mock data for EmbeddingsSearch

Introduces a mock data file for word embeddings and a Storybook story for the EmbeddingsSearch component. The story uses MSW to mock API responses, enabling isolated UI testing with sample data.

Added error handling to TextReuse.vue for improved debugging


---------

Co-authored-by: Copilot <[email protected]>
@danieleguido danieleguido merged commit 5474ec8 into master Dec 13, 2025
1 check passed
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