Skip to content

Advanced search UI#770

Merged
ofahimIQSS merged 28 commits intodevelopfrom
feat/760-advanced-search-ui
Aug 21, 2025
Merged

Advanced search UI#770
ofahimIQSS merged 28 commits intodevelopfrom
feat/760-advanced-search-ui

Conversation

@g-saracca
Copy link
Contributor

@g-saracca g-saracca commented Jul 11, 2025

What this PR does / why we need it:

Replicates the Advanced Search UI from the JSF version.
Introduces a mechanism to retain the user's previous advanced search within a specific collection, allowing the form to be pre-filled when performing a new advanced search. This uses localStorage (though sessionStorage could also have been used).
Additionally, it persists the currently selected facet filter queries when performing an advanced search.
This video explains the above

advanced-search-additions.mov

Which issue(s) this PR closes:

Related PRs:

Suggestions on how to test this:

Step 1: Run the Development Environment

  1. Execute npm i.
  2. Navigate with cd packages/design-system && npm i && npm run build.
  3. Return with cd ../../.
  4. Ensure you have a .env file similar to .env.example
  5. Navigate with cd dev-env.
  6. Start the environment using ./run-env.sh 11614-include-isAdvancedSearchField-property .
  7. To verify the environment, visit http://localhost:8000/ and check your local Dataverse installation.

Step 2:

  1. Log in and create different collections, datasets and/or files.
  2. Go to the Root collection and click the "Advanced Search" link next to the search input.
  3. Validate that the form has the same fields as in the JSF version (you can also try on different collections configured with different metadata blocks)
  4. Enter some values and click "Find" (enter same values at the same time in the JSF version), you should be redirected to the collection page.
  5. Validate that the search input is pre-filled with the advanced search query and this one is the same as in the JSF version.
  6. Click on the "Advanced Search" link again and the form should be populated with the previous search.
  7. Click the "Clear Form" to reset the form values.
  8. Follow the same steps, but this time apply some facet filters before clicking the "Advanced Search" button. After performing the advanced search, the previously selected facet filters should still be persisted and reflected in the collections page UI, as long as the advanced search returned results.

Does this PR introduce a user interface change? If mockups are available, please link/include them here: Yes.

localhost_8000_spa_collections_root_search(1440_824)

Is there a release notes update needed for this change?:

N/A

Additional documentation:

N/A

@coveralls
Copy link

coveralls commented Jul 11, 2025

Coverage Status

coverage: 97.535% (-0.5%) from 98.058%
when pulling 1cead0b on feat/760-advanced-search-ui
into 96d881e on develop.

@g-saracca g-saracca moved this to Ready for Review ⏩ in IQSS Dataverse Project Jul 14, 2025
@g-saracca g-saracca added Size: 3 A percentage of a sprint. 2.1 hours. Original size: 3 labels Jul 14, 2025
@g-saracca g-saracca moved this from Ready for Review ⏩ to In Progress 💻 in IQSS Dataverse Project Jul 15, 2025
@g-saracca g-saracca self-assigned this Jul 15, 2025
@g-saracca
Copy link
Contributor Author

g-saracca commented Aug 14, 2025

@ekraffmiller could you take a look? I just changed a missing import and merged with develop.
About test/component failing, I've left a message in our channel, it's not the tests but the coveralls report failing 👍🏼

@g-saracca g-saracca moved this from Ready for QA ⏩ to In Review 🔎 in IQSS Dataverse Project Aug 14, 2025
ekraffmiller
ekraffmiller previously approved these changes Aug 15, 2025
Copy link
Contributor

@ekraffmiller ekraffmiller left a comment

Choose a reason for hiding this comment

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

looks good, approved

@github-project-automation github-project-automation bot moved this from In Review 🔎 to Ready for QA ⏩ in IQSS Dataverse Project Aug 15, 2025
@ofahimIQSS ofahimIQSS self-assigned this Aug 18, 2025
@ofahimIQSS ofahimIQSS moved this from Ready for QA ⏩ to QA ✅ in IQSS Dataverse Project Aug 18, 2025
@ofahimIQSS
Copy link
Contributor

Hello! Please resolve the branch conflicts - I am ready to merge this afterwards.

@ofahimIQSS ofahimIQSS moved this from QA ✅ to In Progress 💻 in IQSS Dataverse Project Aug 19, 2025
@g-saracca g-saracca moved this from In Progress 💻 to In Review 🔎 in IQSS Dataverse Project Aug 20, 2025
@g-saracca g-saracca assigned ekraffmiller and unassigned g-saracca Aug 20, 2025
@github-project-automation github-project-automation bot moved this from In Review 🔎 to Ready for QA ⏩ in IQSS Dataverse Project Aug 20, 2025
@ekraffmiller ekraffmiller removed their assignment Aug 20, 2025
@g-saracca
Copy link
Contributor Author

@ofahimIQSS, done, ready to merge!

@ofahimIQSS ofahimIQSS moved this from Ready for QA ⏩ to QA ✅ in IQSS Dataverse Project Aug 21, 2025
@ofahimIQSS
Copy link
Contributor

Very nice - merging PR!

@ofahimIQSS ofahimIQSS merged commit 91b91d5 into develop Aug 21, 2025
10 of 14 checks passed
@github-project-automation github-project-automation bot moved this from QA ✅ to Merged 🚀 in IQSS Dataverse Project Aug 21, 2025
@ofahimIQSS ofahimIQSS deleted the feat/760-advanced-search-ui branch August 21, 2025 17:09
@ofahimIQSS ofahimIQSS removed their assignment Aug 21, 2025
@scolapasta scolapasta moved this from Merged 🚀 to Done 🧹 in IQSS Dataverse Project Aug 25, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

FY26 Sprint 2 FY26 Sprint 2 (2025-07-16 - 2025-07-30) FY26 Sprint 3 (2025-07-30 - 2025-08-13) FY26 Sprint 4 FY26 Sprint 4 (2025-08-13 - 2025-08-27) GREI Re-arch GREI re-architecture-related Original size: 3 Size: 3 A percentage of a sprint. 2.1 hours. SPA: Collection Page SPA.Q3.2025.1 Advanced Search

Projects

Status: Done 🧹

Development

Successfully merging this pull request may close these issues.

Advanced Search UI Feature Request/Idea: Allow filtering by publication status; e.g. unpublished, published, draft; from advanced search page

5 participants