From 8bcb86821f00db18660f78cc67f80eab32be758d Mon Sep 17 00:00:00 2001
From: Luke Campbell <64781228+lcampbell2@users.noreply.github.com>
Date: Thu, 14 Nov 2024 13:14:51 -0400
Subject: [PATCH] Move new summary views to a stream (#5888)
* move landing page progress graph to A stream
* move org page progrerss graph and aggregated findings to A stream
---
frontend/src/landing/LandingPageSummaries.js | 31 ++++++-------
.../OrganizationDetails.js | 45 +++++++++----------
.../src/summaries/HistoricalSummariesGraph.js | 15 +++----
3 files changed, 38 insertions(+), 53 deletions(-)
diff --git a/frontend/src/landing/LandingPageSummaries.js b/frontend/src/landing/LandingPageSummaries.js
index 735a4c9de..762351971 100644
--- a/frontend/src/landing/LandingPageSummaries.js
+++ b/frontend/src/landing/LandingPageSummaries.js
@@ -8,7 +8,6 @@ import { TieredSummaries } from '../summaries/TieredSummaries'
import { Box } from '@chakra-ui/react'
import { HistoricalSummariesGraph } from '../summaries/HistoricalSummariesGraph'
import { ErrorBoundary } from 'react-error-boundary'
-import { ABTestVariant, ABTestWrapper } from '../app/ABTestWrapper'
import useSearchParam from '../utilities/useSearchParam'
export function LandingPageSummaries() {
@@ -41,23 +40,19 @@ export function LandingPageSummaries() {
return (
-
-
- {histSumLoading ? (
-
- ) : (
-
-
-
- )}
-
-
+ {histSumLoading ? (
+
+ ) : (
+
+
+
+ )}
)
}
diff --git a/frontend/src/organizationDetails/OrganizationDetails.js b/frontend/src/organizationDetails/OrganizationDetails.js
index fa1012a43..8bd9a169b 100644
--- a/frontend/src/organizationDetails/OrganizationDetails.js
+++ b/frontend/src/organizationDetails/OrganizationDetails.js
@@ -33,7 +33,6 @@ import { RadialBarChart } from '../summaries/RadialBarChart'
import { RequestOrgInviteModal } from '../organizations/RequestOrgInviteModal'
import { useUserVar } from '../utilities/userState'
import { HistoricalSummariesGraph } from '../summaries/HistoricalSummariesGraph'
-import { ABTestVariant, ABTestWrapper } from '../app/ABTestWrapper'
import useSearchParam from '../utilities/useSearchParam'
import { AggregatedGuidanceSummary } from '../summaries/AggregatedGuidanceSummary'
import { bool } from 'prop-types'
@@ -160,30 +159,26 @@ export default function OrganizationDetails({ loginRequired }) {
-
-
- {orgSummariesLoading ? (
-
- ) : (
-
-
-
- )}
-
- {data?.organization?.userHasPermission && (
-
-
-
- )}
-
-
+ {orgSummariesLoading ? (
+
+ ) : (
+
+
+
+ )}
+
+ {data?.organization?.userHasPermission && (
+
+
+
+ )}
diff --git a/frontend/src/summaries/HistoricalSummariesGraph.js b/frontend/src/summaries/HistoricalSummariesGraph.js
index 1c8009ffa..f8f9568a8 100644
--- a/frontend/src/summaries/HistoricalSummariesGraph.js
+++ b/frontend/src/summaries/HistoricalSummariesGraph.js
@@ -18,7 +18,6 @@ import { Trans, t } from '@lingui/macro'
import { func } from 'prop-types'
import useSearchParam from '../utilities/useSearchParam'
import { useLocation } from 'react-router-dom'
-import { ABTestVariant, ABTestWrapper } from '../app/ABTestWrapper'
const getDate = ({ date }) => new Date(date)
@@ -230,15 +229,11 @@ export function HistoricalSummariesGraph({
-
-
- {location.pathname.includes('/organizations/') && userHasPermission && (
-
- )}
-
-
+ {location.pathname.includes('/organizations/') && userHasPermission && (
+
+ )}