Skip to content

Conversation

@huuaho
Copy link
Contributor

@huuaho huuaho commented Jan 5, 2026

Overview

Updated dataset search results to have a conditional fields for study type + new hidden fields for institute and experimental approaches + testing.

Change Details (Specifics)

  • 'Elevated' Study Type to be a new conditional field (similar to sample count) in the search results
  • Study Type is placed under primary disease
  • Added institute and experimental approaches under the hidden fields
  • Added extensive tests for the search results file, with 100% even covering falsy paths that would not happen in practice
  • Removed dead code

Related Ticket(s)

INS-1506

Copilot AI review requested due to automatic review settings January 5, 2026 21:23
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

This PR adds study type as a conditionally rendered field in dataset search results, relocates institute and experimental approaches to hidden fields, and adds comprehensive test coverage.

  • Elevated study type to a conditional field displayed between primary disease and sample count
  • Added institute and experimental approaches to hidden searchable fields ("Other Match in...")
  • Implemented extensive test suite achieving 100% coverage including edge cases

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 1 comment.

File Description
SearchResult.test.jsx Added comprehensive test suite covering conditional field rendering, hidden field matching, search filtering, highlighting behavior, and edge cases
SearchResult.js Added study type as conditional field with highlighting support, moved institute and experimental approaches to hidden fields array, removed unused sorting code

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@huuaho huuaho requested a review from amattu2 January 5, 2026 21:24
@amattu2 amattu2 added this to the 3.3.0 milestone Jan 6, 2026
Copy link
Contributor

@amattu2 amattu2 left a comment

Choose a reason for hiding this comment

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

One minor suggestion for the unit tests. Code functionally looks good.

… updated test suite name to remove string literal
Copilot AI review requested due to automatic review settings January 8, 2026 16:53
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

Copilot reviewed 2 out of 2 changed files in this pull request and generated 2 comments.


💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@huuaho huuaho requested a review from Copilot January 8, 2026 17:04
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

Copilot reviewed 2 out of 2 changed files in this pull request and generated no new comments.


💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@amattu2 amattu2 merged commit 2c5850f into 3.3.0 Jan 12, 2026
3 of 4 checks passed
@amattu2 amattu2 deleted the INS-1506 branch January 12, 2026 16:42
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.

3 participants