Skip to content

Commit 338824d

Browse files
committed
merge from develop
2 parents bd4ea3c + 9a1ca3f commit 338824d

File tree

252 files changed

+20108
-6503
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

252 files changed

+20108
-6503
lines changed

.dockerignore

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,15 @@
11
node_modules
22
packages/core/node_modules
3+
packages/core/dist
34
packages/frontend/node_modules
5+
packages/frontend/dist
46
packages/tools/node_modules
7+
packages/tools/dist
58
packages/sampleCommons/node_modules
69
packages/sampleCommons/.next
10+
packages/sampleCommons/.swc
711
.git
812
.nx
913
.next
14+
.nx
15+
docs

.github/workflows/ci.yaml

Lines changed: 10 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -4,16 +4,14 @@ jobs:
44
build:
55
runs-on: ubuntu-latest
66
steps:
7-
- uses: actions/checkout@v2
8-
- uses: actions/setup-node@v3.4.1
9-
with:
10-
node-version: 20.11.0
11-
- name: install npm version
12-
run: npm install -g npm
13-
- name: Get Version
14-
run: npm -v
15-
- name: Install modules
7+
- uses: actions/checkout@v2
8+
- uses: actions/setup-node@v4.1.0
9+
with:
10+
node-version: 20.17.0
11+
- name: Get Version
12+
run: npm -v
13+
- name: Install modules
1614

17-
run: npm ci
18-
- name: Run ESLint
19-
run: npm run lint
15+
run: npm ci --include=optional
16+
- name: Run ESLint
17+
run: npm run lint

.gitignore

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,8 @@ packages/sampleCommons/.next/
1919
.DS_Store
2020
*.pem
2121
.vscode
22+
.nx
23+
.idea
2224

2325
# debug
2426
npm-debug.log*
@@ -31,11 +33,10 @@ yarn-error.log*
3133
.env.test.local
3234
.env.production.local
3335

34-
35-
# Ignore DevSpace cache and log folder
36-
.devspace/
37-
3836
# sample configs
3937
packages/sampleCommons/config/canine
4038
packages/sampleCommons/config/midrc
4139
packages/sampleCommons/config/heal
40+
packages/sampleCommons/config/bdc
41+
/packages/frontend/.rollup.cache/
42+
/packages/sampleCommons/.swc/

.nvmrc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
v20.17.0
1+
v20.17.0

Dockerfile

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
# docker build -t ff .
2+
# docker run -p 3000:3000 -it ff
13
# Build stage
24
FROM quay.io/cdis/ubuntu:20.04 AS builder
35

@@ -38,7 +40,7 @@ COPY packages/frontend/package.json ./packages/frontend/
3840
COPY packages/sampleCommons/package.json ./packages/sampleCommons/
3941

4042
# Install dependencies
41-
RUN npm ci
43+
RUN npm ci --include=optional
4244

4345
# Install additional dependencies
4446
RUN npm install \
@@ -57,7 +59,7 @@ RUN lerna run --scope @gen3/core build && \
5759
lerna run --scope @gen3/samplecommons build
5860

5961
# Production stage
60-
FROM node:20-slim AS production
62+
FROM node:20.18.2-alpine3.20 AS production
6163

6264
WORKDIR /gen3
6365

@@ -67,7 +69,7 @@ RUN addgroup --system --gid 1001 nextjs && \
6769

6870
# Copy built artifacts from builder
6971
COPY --from=builder --chown=nextjs:nextjs /gen3 .
70-
72+
RUN apk add --no-cache bash
7173
# Set environment variables
7274
ENV PORT=3000
7375
ENV NODE_ENV=production

NOTICE

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
Copyright 2022-2025 University of Chicago
2+
3+
Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at
4+
5+
http://www.apache.org/licenses/LICENSE-2.0
6+
7+
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

docs/Configuration/Discovery.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,9 @@ The configuration for the Discovery Page is divided into several sections:
1515
- `tagsDisplayName`: Name for the tag categories displayed.
1616
- `tagColumnWidth`: Width settings for the tag columns.
1717
- `minimalFieldMapping`: Essential field mappings required by the page.
18-
- `tagCategories`: Definitions for the categorization and display of tags.
18+
- `tags`: Definitions for the categorization and display of tags.
19+
- `tagCategories`: Definitions for the categorization and display of tags.
20+
- `showUnknownTags`: Defaults to False
1921

2022
### 2. Detailed Configuration Sections
2123

docs/Configuration/Explorer.md

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,31 @@ and
5757
https://localhost/Explorer/files
5858
```
5959

60+
### Charts
61+
The charts section configures data visualizations for the explorer page. Each chart is defined by its `chartType` and `title`.
62+
63+
```json
64+
"charts": {
65+
"race": {
66+
"chartType": "fullPie",
67+
"title": "Race"
68+
},
69+
"ethnicity": {
70+
"chartType": "horizontalStacked",
71+
"title": "Ethnicity"
72+
},
73+
"gender": {
74+
"chartType": "bar",
75+
"title": "Gender"
76+
}
77+
}
78+
```
79+
80+
The currently supported chart types are:
81+
* `bar`: a regular vertical bar chart.
82+
* `horizontalStacked`: horizontal stacked bar chart.
83+
* `fullPie`: full pie chart.
84+
* `donut`: pie chart with a hole.
6085

6186
### Download Table Data
6287

docs/Configuration/Login.md

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
# Login Configuration Guide
2+
3+
The login page configuration consists of two main sections:
4+
* Top Content
5+
* Bottom Content
6+
7+
and example configuration:
8+
```json
9+
{
10+
"topContent": [
11+
{
12+
"text": "Gen3 Data Commons",
13+
"className": "text-center text-3xl font-bold"
14+
},
15+
{
16+
"text": "DISCOVER, ANALYZE, AND SHARE DATA",
17+
"className": "text-center text-xl font-medium"
18+
}
19+
],
20+
"bottomContent": [
21+
{
22+
"type" : "textWithEmail",
23+
"text": "If you have any questions about access or the registration process, please contact",
24+
"email": "gen3@datacommons.io",
25+
"className": "text-center text-sm"
26+
}
27+
],
28+
"image": "images/gene_side_texture.svg",
29+
"showCredentialsLogin" : true
30+
}
31+
32+
```
33+
34+
Both topContent and bottomContent are arrays of the [TextContent](../../packages/frontend/docs/components/TextContent.md) component.
35+
36+
* image: the side image for the login page
37+
* showCredentialsLogin: is for development and allows logins using a credentials file instead of logging in which
38+
usually will not work because fence will not allow redirects back to https://localhost

docs/Configuration/Navigation.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ Example of a top bar item:
7373
where:
7474
* 'visible' - always shown, if logged in shows userId and a logout button
7575
* 'logoutOnly' - only show the logoutButton when logged in
76-
* 'hidded' - never show
76+
* 'hide' - never show
7777

7878
```json
7979
"loginButtonVisibility": "logoutOnly"

0 commit comments

Comments
 (0)