Skip to content

Commit

Permalink
Merge pull request #103 from CanDIG/stable-candidate-2.1.0
Browse files Browse the repository at this point in the history
Update Stable
  • Loading branch information
OrdiNeu authored Nov 10, 2023
2 parents 728b10b + d6c5b0d commit fb9c83a
Show file tree
Hide file tree
Showing 57 changed files with 1,255 additions and 1,946 deletions.
3 changes: 2 additions & 1 deletion .env.development
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,5 @@ REACT_APP_FEDERATION_API_SERVER=''
REACT_APP_BASE_NAME=''
REACT_APP_SITE_LOCATION = ''
REACT_APP_HTSGET_SERVER = ''
GENERATE_SOURCEMAP=false
REACT_APP_INGEST_SERVER = ''
GENERATE_SOURCEMAP=false
3 changes: 3 additions & 0 deletions .eslintrc
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,9 @@
"no-unused-vars": [
1,
{
"argsIgnorePattern": "^_",
"varsIgnorePattern": "^_",
"caughtErrorsIgnorePattern": "^_",
"ignoreRestSiblings": false
}
],
Expand Down
30 changes: 19 additions & 11 deletions .github/pull_request_template.md
Original file line number Diff line number Diff line change
@@ -1,33 +1,41 @@
## Ticket(s)

-

## Description

-

## Expected Behaviour

-

## Related Issues (if appropriate)

-

## Screenshots (if appropriate)

### Before PR

### After PR

## To do/Tickets to be made before merging branch
-

-

## Types of Change(s)
- [ ] 🪲 Bug fix (non-breaking change that fixes an issue)
- [ ] ✨ New feature (non-breaking change that adds functionality)
- [ ] 💥 Breaking change (fix or feature that would cause existing functionality to change)

- [ ] 🪲 Bug fix (non-breaking change that fixes an issue)
- [ ] ✨ New feature (non-breaking change that adds functionality)
- [ ] 💥 Breaking change (fix or feature that would cause existing functionality to change)

## Has it been tested for:
- [ ] My change requires a change to the documentation
- [ ] I have updated the documentation accordingly
- [ ] Prettier linter doesn't return errors
- [ ] Production branch PR browser testing: Chrome, Firefox, Edge, etc.
- [ ] Locally tested
- [ ] Dev server tested
- [ ] Production tested when merging into stable/production branch

- [ ] My change requires a change to the documentation
- [ ] I have updated the documentation accordingly
- [ ] Prettier linter doesn't return errors
- [ ] Production branch PR browser testing: Chrome, Firefox, Edge, etc.
- [ ] Locally tested
- [ ] Dev server tested
- [ ] Production tested when merging into stable/production branch
27 changes: 27 additions & 0 deletions .github/workflows/candig-dispatch.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
name: Dispatch
on:
push:
branches: [develop]
jobs:
CanDIG-dispatch:
runs-on: ubuntu-latest
env:
PARENT_REPOSITORY: 'CanDIG/CanDIGv2'
CHECKOUT_BRANCH: 'develop'
PR_AGAINST_BRANCH: 'develop'
OWNER: 'CanDIG'
steps:
- name: Check out repository code
uses: actions/checkout@v3
- name: Create PR in CanDIGv2
id: make_pr
uses: jman005/github-action-pr-expanded@v0
with:
github_token: ${{ secrets.SUBMODULE_PR }}
parent_repository: ${{ env.PARENT_REPOSITORY }}
checkout_branch: ${{ env.CHECKOUT_BRANCH}}
pr_against_branch: ${{ env.PR_AGAINST_BRANCH }}
pr_description: 'PR triggered by update to develop branch on ${{ github.repository }}. Commit hash: ${{ github.sha }}'
owner: ${{ env.OWNER }}
submodule_path: lib/candig-data-portal/candig-data-portal
label: Submodule update
39 changes: 39 additions & 0 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
name: Lint

on:
# Trigger the workflow on push or pull request,
# but only for the develop branch
push:
branches:
- develop
pull_request:
branches:
- develop

# Down scope as necessary via https://docs.github.com/en/actions/security-guides/automatic-token-authentication#modifying-the-permissions-for-the-github_token
permissions:
checks: write
contents: write

jobs:
run-linters:
name: Run linters
runs-on: ubuntu-latest

steps:
- name: Check out Git repository
uses: actions/checkout@v3

- name: Set up Node.js
uses: actions/setup-node@v1
with:
node-version: 12

- name: Install Node.js dependencies
run: npm ci

- name: Run linters
uses: wearerequired/lint-action@v2
with:
eslint: true
prettier: true
3 changes: 1 addition & 2 deletions .prettierrc
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,5 @@
"trailingComma": "none",
"tabWidth": 4,
"useTabs": false,
"endOfLine": "auto",
"camelcase": "off"
"endOfLine": "auto"
}
7 changes: 4 additions & 3 deletions PULL_REQUEST_TEMPLATE/stable_pr_template.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
## vX.X.X: Description

Add a summary description of the main user-facing changes made in this release, relative to the last stable release.

- [] Tagged as a release in this repo
- [] Passes integration tests on a development instance
- [] Images pushed to Dockerhub
- [ ] Tagged as a release in this repo
- [ ] Passes integration tests on a development instance
- [ ] Images pushed to Dockerhub
16 changes: 10 additions & 6 deletions package-lock.json

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

3 changes: 1 addition & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
"name": "candig-data-portal",
"version": "0.1.0",
"private": true,
"homepage": "/portal",
"dependencies": {
"@candig/igv": "^2.10.5-c.1",
"@emotion/cache": "^11.4.0",
Expand Down Expand Up @@ -30,7 +31,6 @@
"highcharts": "^10.0.0",
"highcharts-react-official": "^3.1.0",
"history": "^5.0.0",
"js-cookie": "^3.0.5",
"material-ui-popup-state": "^1.8.0",
"npm": "^8.6.0",
"papaparse": "^5.3.2",
Expand Down Expand Up @@ -97,4 +97,3 @@
"webpack-cli": "^4.9.2"
}
}

2 changes: 1 addition & 1 deletion public/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@

<link rel="preconnect" href="https://fonts.gstatic.com" />
<link
href="https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=Poppins:wght@400;500;600;700&family=Roboto:wght@400;500;700&display=swap"
href="https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=Poppins:wght@400;500;600;700&family=Roboto:wght@400;500;700&display=swap&family=Catamaran:wght@400&display=swap"
rel="stylesheet"
/>
</head>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
import React from 'react';

import { makeStyles } from '@mui/styles';
import {
Avatar,
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
import React from 'react';

import { makeStyles } from '@mui/styles';
import { Button, Card, CardContent, Grid, Stack, Typography } from '@mui/material';

Expand Down
31 changes: 9 additions & 22 deletions src/layout/MainLayout/Header/ProfileSection/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,9 @@ import {
ClickAwayListener,
Divider,
Grid,
InputAdornment,
List,
ListItemIcon,
ListItemText,
OutlinedInput,
Paper,
Popper,
Typography
Expand All @@ -29,7 +27,7 @@ import Transitions from 'ui-component/extended/Transitions';
import { SITE } from 'store/constant';

// assets
import { IconLogout, IconSearch, IconSettings } from '@tabler/icons';
import { IconLogout, IconSettings } from '@tabler/icons';
import User1 from 'assets/images/users/user-round.svg';
import BCGSC from 'assets/images/users/bcgsc.svg';
import UHN from 'assets/images/users/UHN.svg';
Expand Down Expand Up @@ -77,6 +75,9 @@ const useStyles = makeStyles((theme) => ({
cardContent: {
padding: '16px !important'
},
showOnTop: {
zIndex: 11001
},
card: {
backgroundColor: theme.palette.primary.light,
marginBottom: '16px',
Expand Down Expand Up @@ -108,6 +109,9 @@ const useStyles = makeStyles((theme) => ({
badgeWarning: {
backgroundColor: theme.palette.warning.dark,
color: '#fff'
},
usernamePadding: {
paddingBottom: '1em'
}
}));

Expand All @@ -118,7 +122,6 @@ const ProfileSection = () => {
const theme = useTheme();
const customization = useSelector((state) => state.customization);

const [value, setValue] = React.useState('');
const [selectedIndex] = React.useState(1);

const [open, setOpen] = React.useState(false);
Expand Down Expand Up @@ -185,7 +188,7 @@ const ProfileSection = () => {
anchorEl={anchorRef.current}
role={undefined}
transition
disablePortal
className={classes.showOnTop}
popperOptions={{
modifiers: [
{
Expand All @@ -210,26 +213,10 @@ const ProfileSection = () => {
First Name Last Name
</Typography> */}
</Grid>
<Grid item>
<Grid item className={classes.usernamePadding}>
<Typography variant="subtitle2">{SITE}</Typography>
</Grid>
</Grid>
<OutlinedInput
className={classes.searchControl}
id="input-search-profile"
value={value}
onChange={(e) => setValue(e.target.value)}
placeholder="Search profile options"
startAdornment={
<InputAdornment position="start">
<IconSearch stroke={1.5} size="1.3rem" className={classes.startAdornment} />
</InputAdornment>
}
aria-describedby="search-helper-text"
inputProps={{
'aria-label': 'weight'
}}
/>
<Divider />
<PerfectScrollbar className={classes.ScrollHeight}>
<Divider />
Expand Down
2 changes: 1 addition & 1 deletion src/layout/MainLayout/Header/SearchSection/index.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import React, { useState } from 'react';
import { useState } from 'react';

// material-ui
import { makeStyles } from '@mui/styles';
Expand Down
7 changes: 7 additions & 0 deletions src/layout/MainLayout/Sidebar/SidebarContext.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
import React from 'react';

import PropTypes from 'prop-types';

const DEFAULT_STATE = false;

const SidebarReaderContext = React.createContext(DEFAULT_STATE);
Expand All @@ -20,6 +22,11 @@ export function SidebarProvider(props) {
);
}

SidebarProvider.propTypes = {
data: PropTypes.object,
setData: PropTypes.func
};

/**
* Obtain the context reader of the federation sites query.
* @returns {Object} a React context of the sidebar DOM component
Expand Down
2 changes: 0 additions & 2 deletions src/layout/MainLayout/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -91,8 +91,6 @@ const MainLayout = () => {
// eslint-disable-next-line react-hooks/exhaustive-deps
}, [matchDownMd]);

console.log(leftDrawerOpened);

return (
<div className={classes.root}>
<SidebarProvider data={sidebarContent} setData={setSidebarContent}>
Expand Down
1 change: 0 additions & 1 deletion src/layout/NavMotion.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import PropTypes from 'prop-types';
import React from 'react';

// third-party
import { motion } from 'framer-motion';
Expand Down
3 changes: 2 additions & 1 deletion src/menu-items/index.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import clinicalGenomicSearch from './clinicalGenomicSearch';
import summary from './summary';
// import ingest from './ingest';

// import pages from './pages';
// import utilities from './utilities';
Expand All @@ -8,7 +9,7 @@ import summary from './summary';
// ===========================|| MENU ITEMS ||=========================== //

const menuItems = {
items: [summary, clinicalGenomicSearch /* pages, utilities, other */]
items: [summary, clinicalGenomicSearch /* , ingest, pages, utilities, other */]
};

export default menuItems;
Loading

0 comments on commit fb9c83a

Please sign in to comment.