From 949af337146a8f1e6a29cf4b89ed75577525e012 Mon Sep 17 00:00:00 2001 From: R Ranathunga Date: Thu, 3 Oct 2024 10:22:13 -0700 Subject: [PATCH 1/2] chore: add alert in summary when sow not uploaded --- app/components/Review/Accordion.tsx | 14 +- app/components/Review/ReviewSectionField.tsx | 2 + .../helpers/ccbcSummaryGenerateFormData.tsx | 179 ++++++++------ .../application/[applicationId]/summary.tsx | 1 - .../[applicationId]/summary.test.tsx | 228 +++++++++++++++++- 5 files changed, 343 insertions(+), 81 deletions(-) diff --git a/app/components/Review/Accordion.tsx b/app/components/Review/Accordion.tsx index c33a5ab02..0c7013b1b 100644 --- a/app/components/Review/Accordion.tsx +++ b/app/components/Review/Accordion.tsx @@ -6,6 +6,7 @@ import Link from 'next/link'; import { FontAwesomeIcon } from '@fortawesome/react-fontawesome'; import { faMinus, faPen, faPlus } from '@fortawesome/free-solid-svg-icons'; import CbcRecordLock from 'components/Analyst/CBC/CbcRecordLock'; +import { Tooltip } from '@mui/material'; import AlertIcon from './AlertIcon'; export function getToggledState( @@ -64,6 +65,10 @@ const StyledLink = styled(Link)` text-decoration: none; `; +const StyledTooltip = styled(Tooltip)` + cursor: pointer; +`; + const Accordion = ({ allowAnalystEdit, children, @@ -71,6 +76,7 @@ const Accordion = ({ isCBC, cbcId, error, + sectionErrors, name, onToggle, toggled, @@ -131,9 +137,11 @@ const Accordion = ({ ))} {error && ( - - - + + + + + )}