From c3a42cbd615abb0972171a02260960ddbc027124 Mon Sep 17 00:00:00 2001 From: Aditya Anand M C Date: Wed, 11 Dec 2024 17:44:13 +0530 Subject: [PATCH] fix: add ApplicationSummary to EvaluationView page (#87) * fix: add ApplicationSummary to EvaluationView page - refactor ApplicationSummary into component - reuse in SubmitEvaluation - wire it into EvaluationView page - rename gray -> grey - update ApplicationSummary component to accordian closes PAR-688 * address feedback --- .../components/PoolSummary/PoolSummary.tsx | 4 +- .../ApplicationSummary/ApplicationSummary.mdx | 23 +++ .../ApplicationSummary.stories.tsx | 26 +++ .../ApplicationSummary/ApplicationSummary.tsx | 169 ++++++++++++++++++ .../components/ApplicationSummary/index.ts | 1 + .../components/ApplicationSummary/mocks.ts | 101 +++++++++++ .../ProjectSummary/ProjectSummary.tsx | 6 +- ...licationEvaluationOverviewPage.stories.tsx | 7 +- .../ApplicationEvaluationOverviewPage.tsx | 2 +- ...ubmitApplicationEvaluationPage.stories.tsx | 6 +- .../SubmitApplicationEvaluationPage.tsx | 151 +--------------- .../ViewApplicationEvaluationsPage.tsx | 40 +++-- src/tokens/colors.ts | 1 + 13 files changed, 372 insertions(+), 165 deletions(-) create mode 100644 src/components/project/components/ApplicationSummary/ApplicationSummary.mdx create mode 100644 src/components/project/components/ApplicationSummary/ApplicationSummary.stories.tsx create mode 100644 src/components/project/components/ApplicationSummary/ApplicationSummary.tsx create mode 100644 src/components/project/components/ApplicationSummary/index.ts create mode 100644 src/components/project/components/ApplicationSummary/mocks.ts diff --git a/src/components/pool/components/PoolSummary/PoolSummary.tsx b/src/components/pool/components/PoolSummary/PoolSummary.tsx index e18d1092..77c2c0bb 100644 --- a/src/components/pool/components/PoolSummary/PoolSummary.tsx +++ b/src/components/pool/components/PoolSummary/PoolSummary.tsx @@ -107,7 +107,7 @@ export const PoolSummary = (pool: PoolSummaryProps) => {