From ee3db4b95117262afb41f1fa6c2c390ce2c106cc Mon Sep 17 00:00:00 2001 From: vzpgb <45467497+vzpgb@users.noreply.github.com> Date: Wed, 6 Nov 2024 11:10:03 -0600 Subject: [PATCH 1/9] 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 <113449836+jarvisraymond-uchicago@users.noreply.github.com> --- .../AccessibilityCSS/AccessibilityGWAS.css | 43 ++++++++++++++----- 1 file changed, 33 insertions(+), 10 deletions(-) diff --git a/src/Analysis/SharedUtils/AccessibilityUtils/AccessibilityCSS/AccessibilityGWAS.css b/src/Analysis/SharedUtils/AccessibilityUtils/AccessibilityCSS/AccessibilityGWAS.css index 2ac34ec05..2b1431372 100644 --- a/src/Analysis/SharedUtils/AccessibilityUtils/AccessibilityCSS/AccessibilityGWAS.css +++ b/src/Analysis/SharedUtils/AccessibilityUtils/AccessibilityCSS/AccessibilityGWAS.css @@ -5,26 +5,37 @@ border-color: #194C90; } -.GWASUI-navBtn:not([disabled]):hover, -.GWASUI-navBtn:not([disabled]):focus { - background: #2466AC; - border-color: #2466AC; +.gwas-modal .ant-btn-primary:not([disabled]) { + background: #194C90; + border-color: #194C90; } -.gwas-modal .ant-btn-primary:not([disabled]) { +.gwas-modal .ant-btn-default { + color: #194C90; + border-color: #194C90; +} + +.euler-diagram-controls .ant-btn-primary:not([disabled]), +.euler-diagram-controls .ant-btn-primary:not([disabled]):focus { background: #194C90; border-color: #194C90; } -.gwas-modal .ant-btn-primary:not([disabled]):hover, -.gwas-modal .ant-btn-primary:not([disabled]):focus { +.euler-diagram-controls .ant-btn-secondary { + color: #194C90; + border-color: #194C90; +} + +.GWASUI-navBtn:not([disabled]):hover, +.GWASUI-navBtn:not([disabled]):focus { background: #2466AC; border-color: #2466AC; } -.gwas-modal .ant-btn-default { - color: #194C90; - border-color: #194C90; +.gwas-modal .ant-btn-primary:not([disabled]):hover, +.gwas-modal .ant-btn-primary:not([disabled]):focus { + background: #2466AC; + border-color: #2466AC; } .gwas-modal .ant-btn-default:hover, @@ -32,3 +43,15 @@ color: #2466AC; border-color: #2466AC; } + +.euler-diagram-controls .ant-btn-primary:not([disabled]):hover { + background: #2466AC; + border-color: #2466AC; +} + +.euler-diagram-controls .ant-btn-secondary:hover, +.euler-diagram-controls .ant-btn-secondary:focus { + + color: #2466AC; + border-color: #2466AC; +} From 43acb19fdd30cc14b78980994beb2f0804f7b35e Mon Sep 17 00:00:00 2001 From: pieterlukasse Date: Mon, 4 Nov 2024 21:26:09 +0100 Subject: [PATCH 2/9] fix: improve error message for Euler diagram ...replacing it with a more generic error message that applies better to all possible error scenarios --- src/Analysis/GWASApp/Utils/constants.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Analysis/GWASApp/Utils/constants.js b/src/Analysis/GWASApp/Utils/constants.js index 243ad90fa..a9bb9bbed 100644 --- a/src/Analysis/GWASApp/Utils/constants.js +++ b/src/Analysis/GWASApp/Utils/constants.js @@ -19,7 +19,7 @@ export const GWASAppSteps = [ export const MESSAGES = { OVERLAP_ERROR: { title: - 'None of the persons in the (remaining) population of your selected cohorts overlap with the study population', + 'One or more groups have no overlap with the (remaining) population of any of the other groups', messageType: 'warning', }, NO_BINS_ERROR: { From 13d7261a6182c3ab22a67c7c1c2c1a38f0d22cd9 Mon Sep 17 00:00:00 2001 From: pieterlukasse Date: Wed, 6 Nov 2024 21:25:48 +0100 Subject: [PATCH 3/9] 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 https://github.com/uc-cdis/data-portal/pull/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 --- docs/portal_config.md | 2 +- src/Analysis/AnalysisApp.jsx | 8 +++- .../AtlasDataDictionaryContainer.tsx | 22 ++++------ .../AtlasLegacyDataDictionaryButton.jsx | 43 +++++++++++++++++++ .../AtlasLegacyDataDictionaryButton.test.jsx | 19 ++++++++ 5 files changed, 77 insertions(+), 17 deletions(-) create mode 100644 src/Analysis/AtlasDataDictionary/AtlasLegacyDataDictionaryButton/AtlasLegacyDataDictionaryButton.jsx create mode 100644 src/Analysis/AtlasDataDictionary/AtlasLegacyDataDictionaryButton/AtlasLegacyDataDictionaryButton.test.jsx diff --git a/docs/portal_config.md b/docs/portal_config.md index b085cb7a8..9e422aec2 100644 --- a/docs/portal_config.md +++ b/docs/portal_config.md @@ -204,6 +204,7 @@ Below is an example, with inline comments describing what each JSON block config "studyRegistration": true, // optional, whether to enable the study registration feature "workspaceRegistration": true, // optional, whether to enable the workspace registration feature "workspaceTokenServiceRefreshTokenAtLogin": true, // optional, whether to refresh the WTS token directly at portal login (recommended mode). If not set, this refresh happens only when the user enters the workspace section of the portal (default/old/previous mode). + "legacyVADCDataDictionary": false, // optional, VADC specific. Set to "true" to ensure the new version of the /analysis/AtlasDataDictionary data dictionary is displayed the user navigates to /analysis/AtlasDataDictionary, and when the user clicks on the data dictionary button in when in the Atlas app page. }, "dataExplorerConfig": { // required only if featureFlags.explorer is true; configuration for the Data Explorer (/explorer); can be replaced by explorerConfig, see Multi Tab Explorer doc "charts": { // optional; indicates which charts to display in the Data Explorer @@ -749,7 +750,6 @@ Below is an example, with inline comments describing what each JSON block config "description": "My app description", // App title/name, also displayed on the App card in the /analysis page "image": "/src/img/analysis-icons/myapp-image.svg", // App logo/image to be displayed on the App card in the /analysis page "needsTeamProject": true, // Optional. Whether the app needs a "team project" selection to be made by the user first. If true, it will force the user to select a "team project" first. See also https://github.com/uc-cdis/data-portal/pull/1445 - "dataDictionaryVersion": "new", // Optional, for custom AtlasDataDictionary. Set to "new" to ensure the new version of the /analysis/AtlasDataDictionary data dictionary when the user navigates to /analysis/AtlasDataDictionary. }, { "title": "My other app", diff --git a/src/Analysis/AnalysisApp.jsx b/src/Analysis/AnalysisApp.jsx index 6ae96918d..58aa48ec2 100644 --- a/src/Analysis/AnalysisApp.jsx +++ b/src/Analysis/AnalysisApp.jsx @@ -17,6 +17,8 @@ import CheckForTeamProjectApplication from './SharedUtils/TeamProject/Utils/Chec import TeamProjectHeader from './SharedUtils/TeamProject/TeamProjectHeader/TeamProjectHeader'; import './AnalysisApp.css'; import AtlasDataDictionaryButton from './AtlasDataDictionary/AtlasDataDictionaryButton/AtlasDataDictionaryButton'; +import AtlasLegacyDataDictionaryButton from './AtlasDataDictionary/AtlasLegacyDataDictionaryButton/AtlasLegacyDataDictionaryButton'; +import isEnabled from '../helpers/featureFlags'; const queryClient = new QueryClient(); @@ -139,7 +141,7 @@ class AnalysisApp extends React.Component { return (
); @@ -168,7 +170,9 @@ class AnalysisApp extends React.Component {
{this.state.app.title === 'OHDSI Atlas' && ( - + isEnabled('legacyVADCDataDictionary') + ? + : )}