Skip to content

Commit 294f08e

Browse files
frano-mMillenniumFalconMechanic
authored andcommitted
feat: add number formatting to numeric columns (#511)
1 parent 93ca9a3 commit 294f08e

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

app/viewModelBuilders/catalog/ga2/viewModelBuilders.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ import {
1717
buildAnalyzeGenome,
1818
buildGenomeTaxonomicLevelStrain,
1919
buildIsRef,
20+
formatNumber,
2021
} from "../brc-analytics-catalog/common/viewModelBuilders";
2122

2223
/**
@@ -125,18 +126,22 @@ function buildOrganismGenomesTableColumns(): ColumnDef<GA2AssemblyEntity>[] {
125126
},
126127
{
127128
accessorKey: GA2_CATEGORY_KEY.LENGTH,
129+
cell: ({ getValue }) => formatNumber(getValue()),
128130
header: GA2_CATEGORY_LABEL.LENGTH,
129131
},
130132
{
131133
accessorKey: GA2_CATEGORY_KEY.SCAFFOLD_COUNT,
134+
cell: ({ getValue }) => formatNumber(getValue()),
132135
header: GA2_CATEGORY_LABEL.SCAFFOLD_COUNT,
133136
},
134137
{
135138
accessorKey: GA2_CATEGORY_KEY.SCAFFOLD_N50,
139+
cell: ({ getValue }) => formatNumber(getValue()),
136140
header: GA2_CATEGORY_LABEL.SCAFFOLD_N50,
137141
},
138142
{
139143
accessorKey: GA2_CATEGORY_KEY.SCAFFOLD_L50,
144+
cell: ({ getValue }) => formatNumber(getValue()),
140145
header: GA2_CATEGORY_LABEL.SCAFFOLD_L50,
141146
},
142147
{

0 commit comments

Comments
 (0)