From a8a849bf27b8ea8f3fdb6e8d0499331c284d96eb Mon Sep 17 00:00:00 2001 From: john681611 Date: Thu, 7 Sep 2023 13:25:03 +0100 Subject: [PATCH] Styling improvements and legends --- .../src/pages/GapAnalysis/GapAnalysis.tsx | 93 ++++++++++++------- 1 file changed, 62 insertions(+), 31 deletions(-) diff --git a/application/frontend/src/pages/GapAnalysis/GapAnalysis.tsx b/application/frontend/src/pages/GapAnalysis/GapAnalysis.tsx index 139387693..833407f23 100644 --- a/application/frontend/src/pages/GapAnalysis/GapAnalysis.tsx +++ b/application/frontend/src/pages/GapAnalysis/GapAnalysis.tsx @@ -1,7 +1,18 @@ import axios from 'axios'; import React, { useEffect, useState } from 'react'; import { useLocation } from 'react-router-dom'; -import { Accordion, Button, Dropdown, DropdownItemProps, Grid, Icon, Popup, Table } from 'semantic-ui-react'; +import { + Accordion, + Button, + Container, + Dropdown, + DropdownItemProps, + Grid, + Icon, + Label, + Popup, + Table, +} from 'semantic-ui-react'; import { LoadingAndErrorIndicator } from '../../components/LoadingAndErrorIndicator'; import { useEnvironment } from '../../hooks'; @@ -96,43 +107,64 @@ export const GapAnalysis = () => { }; return ( -
+
- setBaseStandard(value?.toString())} - value={BaseStandard} - /> + - setCompareStandard(value?.toString())} - value={CompareStandard} - /> + {gapAnalysis && ( - - - + <> + + Generally: lower is better +
+ {GetStrength(0)}: Closely connected likely to have + majority overlap +
+ {GetStrength(6)}: Connected likely to have partial + overlap +
+ {GetStrength(22)}: Weakly connected likely to + have small or no overlap +
+
+ + + + )}
@@ -160,7 +192,6 @@ export const GapAnalysis = () => { > {' '} - {gapAnalysis[key].start.id}
{gapAnalysis[key].start.sectionID} {gapAnalysis[key].start.description}