-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: updated access facet position in category group (#4133)
- Loading branch information
Fran McDade
authored and
Fran McDade
committed
Nov 5, 2024
1 parent
a97be95
commit 60129b4
Showing
5 changed files
with
215 additions
and
144 deletions.
There are no files selected for viewing
32 changes: 32 additions & 0 deletions
32
explorer/site-config/hca-dcp/cc-ma-dev/index/common/category.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
import { | ||
CategoryConfig, | ||
CategoryGroup, | ||
} from "@databiosphere/findable-ui/lib/config/entities"; | ||
import { mapSelectCategoryValue } from "../../../../../app/config/utils"; | ||
import { | ||
HCA_DCP_CATEGORY_KEY, | ||
HCA_DCP_CATEGORY_LABEL, | ||
} from "../../../category"; | ||
import { CATEGORY_GROUP } from "../../../dev/index/common/category"; | ||
import { mapAccessibleValue } from "./utils"; | ||
|
||
export const ACCESSIBLE: CategoryConfig = { | ||
key: HCA_DCP_CATEGORY_KEY.ACCESSIBLE, | ||
label: HCA_DCP_CATEGORY_LABEL.ACCESSIBLE, | ||
mapSelectCategoryValue: mapSelectCategoryValue(mapAccessibleValue), | ||
}; | ||
|
||
export const MA_CATEGORY_GROUP: Record<string, CategoryGroup> = { | ||
PROJECT: { | ||
...CATEGORY_GROUP.PROJECT, | ||
categoryConfigs: [...CATEGORY_GROUP.PROJECT.categoryConfigs, ACCESSIBLE], | ||
}, | ||
}; | ||
|
||
export const CATEGORY_GROUPS: CategoryGroup[] = [ | ||
MA_CATEGORY_GROUP.PROJECT, | ||
CATEGORY_GROUP.DONOR, | ||
CATEGORY_GROUP.SAMPLE, | ||
CATEGORY_GROUP.PROTOCOL, | ||
CATEGORY_GROUP.FILE, | ||
]; |
19 changes: 0 additions & 19 deletions
19
explorer/site-config/hca-dcp/cc-ma-dev/index/common/constants.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.