-
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.
- Added the Pagination component to the VEP results view - Added a dropdown to select the number of variants per page of VEP results - Updated the Pagination component so that it triggers a change event when user presses the Enter key rather than when he just types the number - Updated styles of the grey bar right above the results (ToolsTopBar, VepTopBar) - Updated the CircleLoader component by wrapping its rotating element into a static container element. This makes it possible to apply CSS transforms to CircleLoader without interfering with the rotation transform that makes the loader spin. - Removed the 'Change' link to the right of SpeciesTabsSlider, by Andrea's request. As a consequence, deleted the SpeciesTabsWrapper component whose purpose it was to temporarily display the "Change" link to the right of species tabs until species manager was ready
- Loading branch information
Showing
22 changed files
with
502 additions
and
167 deletions.
There are no files selected for viewing
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
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
26 changes: 17 additions & 9 deletions
26
src/content/app/tools/shared/components/tools-top-bar/ToolsTopBar.module.css
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 |
---|---|---|
@@ -1,10 +1,18 @@ | ||
.topBar { | ||
min-height: 74px; | ||
display: flex; | ||
flex-direction: column; | ||
background-color: var(--color-light-grey); | ||
padding: 24px 30px 20px; | ||
box-shadow: 0 3px 5px var(--global-box-shadow-color); | ||
position: relative; | ||
z-index: 2; | ||
/* | ||
Wrap ToolsTopBar's styles in the components layer | ||
to enable overrides from consuming components. | ||
(E.g. in the top bar in VEP.) | ||
*/ | ||
|
||
@layer components { | ||
.topBar { | ||
min-height: 74px; | ||
display: flex; | ||
flex-direction: column; | ||
background-color: var(--color-light-grey); | ||
padding: 24px 30px 20px; | ||
box-shadow: 0 3px 5px var(--global-box-shadow-color); | ||
position: relative; | ||
z-index: 2; | ||
} | ||
} |
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
8 changes: 8 additions & 0 deletions
8
src/content/app/tools/vep/components/vep-input-summary/VepInputSummary.module.css
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,8 @@ | ||
.label { | ||
margin-right: 10px; | ||
} | ||
|
||
.smallLight { | ||
font-size: 12px; | ||
font-weight: var(--font-weight-light); | ||
} |
58 changes: 58 additions & 0 deletions
58
src/content/app/tools/vep/components/vep-input-summary/VepInputSummary.tsx
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,58 @@ | ||
/** | ||
* See the NOTICE file distributed with this work for additional information | ||
* regarding copyright ownership. | ||
* | ||
* 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 | ||
* http://www.apache.org/licenses/LICENSE-2.0 | ||
* | ||
* 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. | ||
*/ | ||
|
||
import classNames from 'classnames'; | ||
|
||
import type { VepSubmissionWithoutInputFile } from 'src/content/app/tools/vep/types/vepSubmission'; | ||
|
||
import styles from './VepInputSummary.module.css'; | ||
|
||
/** | ||
* This component appears in a couple of places, | ||
* and shows whether the variants for a VEP analysis | ||
* were pasted in the textarea of the VEP submission form, | ||
* or were appended in a file | ||
*/ | ||
|
||
type Props = { | ||
submission: VepSubmissionWithoutInputFile; | ||
className?: string; | ||
}; | ||
|
||
const VepInputSummary = (props: Props) => { | ||
const { submission } = props; | ||
|
||
const componentClasses = props.className; | ||
|
||
if (submission.inputText) { | ||
return ( | ||
<span className={classNames(componentClasses, styles.smallLight)}> | ||
Pasted data | ||
</span> | ||
); | ||
} else if (submission.inputFileName) { | ||
return ( | ||
<span className={componentClasses}> | ||
<span className={classNames(styles.smallLight, styles.label)}> | ||
From file | ||
</span> | ||
<span>{submission.inputFileName}</span> | ||
</span> | ||
); | ||
} | ||
}; | ||
|
||
export default VepInputSummary; |
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.