Skip to content

Commit

Permalink
chore: update to findable ui 21 (#203)
Browse files Browse the repository at this point in the history
  • Loading branch information
hunterckx committed Jan 7, 2025
1 parent 3510337 commit e157b61
Show file tree
Hide file tree
Showing 3 changed files with 161 additions and 10 deletions.
155 changes: 150 additions & 5 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
"build-brc-db": "esrun files/build-catalog.ts"
},
"dependencies": {
"@databiosphere/findable-ui": "^19.0.0",
"@databiosphere/findable-ui": "^21.0.0",
"@emotion/react": "^11.13.3",
"@emotion/styled": "^11.13.0",
"@mdx-js/loader": "^3.0.1",
Expand Down
14 changes: 10 additions & 4 deletions site-config/brc-analytics/local/index/genomeEntityConfig.ts
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ export const genomeEntityConfig: BRCEntityConfig<BRCDataCatalogGenome> = {
component: C.AnalyzeGenome,
viewBuilder: V.buildAnalyzeGenome,
} as ComponentConfig<typeof C.AnalyzeGenome, BRCDataCatalogGenome>,
disableSorting: true,
enableSorting: false,
header: BRC_DATA_CATALOG_CATEGORY_LABEL.ANALYZE_GENOME,
id: BRC_DATA_CATALOG_CATEGORY_KEY.ANALYZE_GENOME,
width: "auto",
Expand Down Expand Up @@ -145,9 +145,15 @@ export const genomeEntityConfig: BRCEntityConfig<BRCDataCatalogGenome> = {
width: { max: "0.5fr", min: "142px" },
},
],
defaultSort: {
desc: SORT_DIRECTION.ASCENDING,
id: BRC_DATA_CATALOG_CATEGORY_KEY.SPECIES,
tableOptions: {
initialState: {
sorting: [
{
desc: SORT_DIRECTION.ASCENDING,
id: BRC_DATA_CATALOG_CATEGORY_KEY.SPECIES,
},
],
},
},
} as ListConfig<BRCDataCatalogGenome>,
listView: {
Expand Down

0 comments on commit e157b61

Please sign in to comment.