Skip to content

Conversation

@frano-m
Copy link
Contributor

@frano-m frano-m commented Oct 29, 2025

Closes #511.

This pull request updates the genome table columns in the GA2 catalog to improve the display of numeric data. The main change is the addition of number formatting for several columns, ensuring that values like length, scaffold count, scaffold N50, and scaffold L50 are presented in a more readable format.

Enhancements to table column rendering:

  • Imported formatNumber from common/viewModelBuilders to enable consistent number formatting in the table columns.
  • Updated the buildOrganismGenomesTableColumns function so that the LENGTH, SCAFFOLD_COUNT, SCAFFOLD_N50, and SCAFFOLD_L50 columns now use formatNumber to format their cell values.
image

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 number formatting to numeric columns in the GA2 organism genomes table to improve readability by displaying numbers with locale-appropriate thousand separators (e.g., 1,000,000 instead of 1000000).

  • Imports the formatNumber utility function from common viewModelBuilders
  • Applies number formatting to LENGTH, SCAFFOLD_COUNT, SCAFFOLD_N50, and SCAFFOLD_L50 columns using cell renderers
Comments suppressed due to low confidence (1)

app/viewModelBuilders/catalog/ga2/viewModelBuilders.ts:125

  • The CHROMOSOMES column (lines 124-125) should also use formatNumber for consistency with the other numeric columns (LENGTH, SCAFFOLD_COUNT, SCAFFOLD_N50, SCAFFOLD_L50). The corresponding column in BRC catalog uses buildChromosomes which internally calls formatNumber. Add: cell: ({ getValue }) => formatNumber(getValue()), after line 124.
      accessorKey: GA2_CATEGORY_KEY.CHROMOSOMES,
      header: GA2_CATEGORY_LABEL.CHROMOSOMES,

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

@frano-m frano-m moved this to Ready for Review in BRC development tasks Oct 29, 2025
@frano-m frano-m force-pushed the fran/511-number-format branch from 1070e78 to 7b45583 Compare October 29, 2025 07:06
@frano-m frano-m marked this pull request as ready for review October 29, 2025 07:06
Copy link
Contributor

@MillenniumFalconMechanic MillenniumFalconMechanic left a comment

Choose a reason for hiding this comment

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

LGTM, thanks F!

@MillenniumFalconMechanic MillenniumFalconMechanic merged commit a89376e into main Nov 4, 2025
3 checks passed
@github-project-automation github-project-automation bot moved this from Ready for Review to Done in BRC development tasks Nov 4, 2025
@MillenniumFalconMechanic MillenniumFalconMechanic deleted the fran/511-number-format branch November 4, 2025 20:28
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.

Add number formatting for numeric columns

3 participants