-
Notifications
You must be signed in to change notification settings - Fork 44
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* VADC-1482: Updated buttons' colors in Eurler diagram according to 508 (#1626) * fix(cardDescriptionParsing): initial commit (#1612) * fix(cardDescriptionParsing): initial commit * fix(cardDescriptionParsing): ranner linter and fixed error * Bugfix/combo box labels (#1611) * bugfix(comboBoxLabels): Began dev of new select box component, need to resolve issues with setting selectedValue * bugfix(comboBoxLabels): made select box a controllable component, moved IsEnterOrSpace into accessibilityUtils folder * bugfix(comboBoxLabels): removed console.log statements * bugfix(comboBoxLabels): ran linter * bugfix(comboBoxLabels): removed commented code * bugfix(comboBoxLabels): ran linter * bugfix(comboBoxLabels): Added Teams Dropdown test * bugfix(comboBoxLabels): updated Teams Dropdown test * bugfix(comboBoxLabels): removed unneeded div element from TeamDropdown * fix(comboBoxLabels): Updated label text * fix(comboBoxLabels): Updated unit test * VADC-1420: Fixed modal button color to ensure accessibility (#1615) * fix(vadc-1420): Fixed modal button color to ensure accessibility * Updated background/border/hover colors for modal window * (VADC-1430): fix(vaLogoAltText) * VADC-1479: Updated Previous/Next buttons' colors for VA GWAS according to 508 (#1618) * fix(vadc-1479): Updated colors for the GWAS next/previous buttons * fix(vadc-1479): Undo automatic discovery style changes * fix(vadc-1479): Updated class in CSS for Previous/Next buttons * Use updated colors only for active button (#1620) * VADC-1516: Updated colors for the buttons in the GWAS modal according to 508 (#1621) * fix(vadc-1516): Updated colors for the buttons in the GWAS modal * fix(vadc-1516): Unify style order * fix(vadc-1516): Refactor CSS * fix(vadc-1516): Added comment * fix(vadc-1516): Updated text color for the dropdown in the Team's modal * fix(vadc-1516): formatting * fix(vadc-1516): formatting * fix(vadc-1516): formatting * fix(vadc-1516): formatting * fix(vadc-1482): Updated button colors in Eurler diagram * fix(vadc-1482): Updated focus color for the Eurler diagram --------- Co-authored-by: Jarvis <[email protected]> * fix: improve error message for Euler diagram ...replacing it with a more generic error message that applies better to all possible error scenarios * Fix/enable legacy vs new data dictionary - part2 (#1629) * fix: revert and bring back old data dictionary button component ...from https://github.com/uc-cdis/data-portal/tree/5dc09282573e93f8e11d44f53d65e3cf677256c6/src/Analysis/AtlasDataDictionary/AtlasDataDictionaryButton ...which in turn is a restore from older code #1478 * fix: using AtlasLegacyDataDictionaryButton for the legacy scenario * fix: remove unused variables * fix: fix AtlasLegacyDataDictionaryButton tests * feat: use feature flag legacyDataDictionary instead of analysis app attribute * fix: remove duplicated AtlasDataDictionaryButton css file * fix: use project specific feature flag name * VADC-1544: Refactor CSS to be more generic (#1635) * fix discovery batch loading (#1632) * fix discovery batch loading * fix return as needed * fix(vadc-1544): Refactor CSS * Branch fix * Missing syntax added * Undo * Undo * fix(vadc-1544): Refactor CSS to LESS * fix(vadc-1544): Formatting * fix(vadc-1544): Formatting --------- Co-authored-by: Mingfei Shao <[email protected]> * add aria label for popup message * remove commit from wrong file * VADC-1472: Change Back to Apps link color according to 508 guidelines (#1640) * fix(vadc-1472): Change link color * fix(vadc-1472): eslint-new configuration * Merge master into release branch 22 (#1643) * fix discovery batch loading (#1632) * fix discovery batch loading * fix return as needed * new changes for B3 WALDER project to make changes for discovery porta… (#1551) * new changes for B3 WALDER project to make changes for discovery portal in PRC * spacing changes for code * changes suggested by mingfei * changes made after mingfei's comments and meeting * eslint on openfillrequestformbutton * added missing variables in discovey config * added null condition and ran eslint * added check for null to pass npm test * added check for null to pass npm test * refactor: simplify button logic by removing redundant check * refactor: remove redundant check from disabled condition * changes for failing test * new variable fillRequestFormCheckField added * changes for if condition * if condition fixes * new property added to allow checkboxes if not logged in * revert change * removed extra space * changed text for tooltip * fixes for props variable * Update src/Discovery/DiscoveryActionBar/components/OpenFillRequestFormButton.tsx Co-authored-by: Mingfei Shao <[email protected]> * changes for tooltip if multiple flags are on * Update src/Discovery/DiscoveryListView.tsx Co-authored-by: Mingfei Shao <[email protected]> --------- Co-authored-by: Mingfei Shao <[email protected]> * Update team project filter (#1633) * update team project filter * update unit test * (VADC-1444): add please login to access text to login page (#1617) * (VADC-1439): add link to access denied page (#1616) * VADC-1448: add logout warning (#1636) * (VADC-1455, VADC-1454, VADC-1424): mis 508 fixes (#1637) * Fix/vadc 1417 (#1638) * update link color * styling format --------- Co-authored-by: Mingfei Shao <[email protected]> Co-authored-by: Urvi Sheth <[email protected]> Co-authored-by: Jian <[email protected]> * VADC-1477, VADC-1487: Fix pagination colors according to 508 guidelines (#1646) * fix(vadc-1477): Fix pagination colors * Formatting * fix(vadc-1477): More pagination styles * Fix/radio buttons508 (#1644) * fix(radioButtons508): initial commit * fix(radioButtons508): resolved eslint issues with proptypes * fix(radioButtons508): removed unintentional changes from auto formatting * fix(radioButtons508): Updated aria label texts * VADC-1486: Fix selected phenotypes/covariates colors according to 508 guidelines (#1648) * fix(vadc-1486): Fix selected phenotypes/covariates colors * fix(vadc-1486): Restore styles for gwas and teams modals --------- Co-authored-by: vzpgb <[email protected]> Co-authored-by: pieterlukasse <[email protected]> Co-authored-by: Mingfei Shao <[email protected]> Co-authored-by: tianj7 <[email protected]> Co-authored-by: Shawn O'Connor <[email protected]> Co-authored-by: Urvi Sheth <[email protected]> Co-authored-by: Jian <[email protected]>
- Loading branch information
1 parent
9dc390a
commit 6f568b5
Showing
17 changed files
with
306 additions
and
102 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
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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
43 changes: 43 additions & 0 deletions
43
...s/AtlasDataDictionary/AtlasLegacyDataDictionaryButton/AtlasLegacyDataDictionaryButton.jsx
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,43 @@ | ||
import React, { useState } from 'react'; | ||
import { Modal } from 'antd'; | ||
import Button from '@gen3/ui-component/dist/components/Button'; | ||
import '../AtlasDataDictionaryButton/AtlasDataDictionaryButton.css'; | ||
|
||
const AtlasLegacyDataDictionaryButton = () => { | ||
const dataDictionaryURL = 'https://vincicentral.vinci.med.va.gov/SitePages/VINCI_University-VADC_Academy.aspx'; | ||
const [isModalOpen, setIsModalOpen] = useState(false); | ||
const showModal = () => { | ||
setIsModalOpen(true); | ||
}; | ||
const handleCancel = () => { | ||
setIsModalOpen(false); | ||
}; | ||
|
||
return ( | ||
<div className='atlas-data-dictionary-button' data-testid='atlas-data-dictionary-button'> | ||
<Modal | ||
title="You're now leaving the VA Data Commons" | ||
open={isModalOpen} | ||
className='atlas-data-dictionary-button-modal' | ||
onOk={() => { | ||
window.open(dataDictionaryURL, '_blank'); | ||
handleCancel(); | ||
}} | ||
onCancel={handleCancel} | ||
> | ||
<p> | ||
The VADC website, privacy and security policies don't apply to the | ||
site or app you're about to visit. | ||
</p> | ||
</Modal> | ||
<Button | ||
className='analysis-app__button' | ||
onClick={showModal} | ||
label='MVP Data Dictionary' | ||
buttonType='secondary' | ||
rightIcon='external-link' | ||
/> | ||
</div> | ||
); | ||
}; | ||
export default AtlasLegacyDataDictionaryButton; |
19 changes: 19 additions & 0 deletions
19
...asDataDictionary/AtlasLegacyDataDictionaryButton/AtlasLegacyDataDictionaryButton.test.jsx
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,19 @@ | ||
import React from 'react'; | ||
import { render, fireEvent } from '@testing-library/react'; | ||
import '@testing-library/jest-dom/extend-expect'; | ||
import AtlasLegacyDataDictionaryButton from './AtlasLegacyDataDictionaryButton'; | ||
|
||
describe('AtlasLegacyDataDictionaryButton', () => { | ||
it('renders the AtlasLegacyDataDictionaryButton component with an "MVP Data Dictionary" Button', () => { | ||
const { getByRole, getByTestId } = render(<AtlasLegacyDataDictionaryButton />); | ||
expect(getByRole('button')).toBeInTheDocument(); | ||
expect(getByRole('button')).toHaveTextContent('MVP Data Dictionary'); | ||
expect(getByTestId('atlas-data-dictionary-button')).toBeInTheDocument(); | ||
}); | ||
|
||
it('shows the Modal when the button is clicked', () => { | ||
const { getByRole, queryByText } = render(<AtlasLegacyDataDictionaryButton />); | ||
fireEvent.click(getByRole('button')); | ||
expect(queryByText('You\'re now leaving the VA Data Commons')).toBeInTheDocument(); | ||
}); | ||
}); |
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
27 changes: 0 additions & 27 deletions
27
src/Analysis/SharedUtils/AccessibilityUtils/AccessibilityCSS/Accessibility.css
This file was deleted.
Oops, something went wrong.
34 changes: 0 additions & 34 deletions
34
src/Analysis/SharedUtils/AccessibilityUtils/AccessibilityCSS/AccessibilityGWAS.css
This file was deleted.
Oops, something went wrong.
12 changes: 0 additions & 12 deletions
12
src/Analysis/SharedUtils/AccessibilityUtils/AccessibilityCSS/AccessibilityTeams.css
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.