Skip to content

Conversation

frano-m
Copy link
Contributor

@frano-m frano-m commented Aug 19, 2025

Closes #721.

This pull request enhances the sorting functionality of the organism genomes table in the BRC Analytics Catalog. The changes improve the user experience by enabling sorting and setting a default sort order for key columns.

Table sorting improvements:

  • Enabled sorting in the organism genomes table and set up the getSortedRowModel function from @tanstack/react-table to manage sorted data. [1] [2]
  • Defined an initial sort order: descending by IS_REF and ascending by ACCESSION columns, providing users with a more logical default view.
image

Copy link
Contributor

@Copilot 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 enables sorting functionality for the organism genomes table in the BRC Analytics Catalog, improving user experience by providing a logical default sort order.

Key changes:

  • Enabled table sorting with enableSorting: true and added getSortedRowModel function
  • Set default sort order to prioritize reference assemblies (IS_REF descending) followed by accession number (ACCESSION ascending)

Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.

Copy link
Collaborator

@NoopDog NoopDog left a comment

Choose a reason for hiding this comment

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

Thanks! @frano-m

@NoopDog NoopDog merged commit ca4222e into main Aug 19, 2025
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

Sort organism details assembly list by is_ref then accession number
2 participants