diff --git a/application/frontend/src/const.ts b/application/frontend/src/const.ts index cc2afdfc8..6f176723f 100644 --- a/application/frontend/src/const.ts +++ b/application/frontend/src/const.ts @@ -36,4 +36,4 @@ export const CRE = '/cre'; export const GRAPH = '/graph'; export const DEEPLINK = '/deeplink'; export const BROWSEROOT = '/root_cres'; -export const GAP_ANALYSIS = '/gap_analysis'; +export const GAP_ANALYSIS = '/map_analysis'; diff --git a/application/frontend/src/pages/GapAnalysis/GapAnalysis.tsx b/application/frontend/src/pages/GapAnalysis/GapAnalysis.tsx index 5f17f6836..10b3eff38 100644 --- a/application/frontend/src/pages/GapAnalysis/GapAnalysis.tsx +++ b/application/frontend/src/pages/GapAnalysis/GapAnalysis.tsx @@ -51,14 +51,14 @@ function useQuery() { const GetStrength = (score) => { if (score == 0) return 'Direct'; - if (score < 5) return 'Strong'; + if (score <= 2) return 'Strong'; if (score >= 20) return 'Weak'; return 'Average'; }; const GetStrengthColor = (score) => { if (score === 0) return 'darkgreen'; - if (score < 5) return '#93C54B'; + if (score <= 2) return '#93C54B'; if (score >= 20) return 'Red'; return 'Orange'; }; @@ -100,7 +100,7 @@ const GetResultLine = (path, gapAnalysis, key) => {
{GetStrength(0)}: Directly Linked
- {GetStrength(3)}: Closely connected likely to have + {GetStrength(2)}: Closely connected likely to have majority overlap
{GetStrength(6)}: Connected likely to have partial @@ -158,7 +158,7 @@ export const GapAnalysis = () => { useEffect(() => { const fetchData = async () => { const result = await axios.get( - `${apiUrl}/gap_analysis?standard=${BaseStandard}&standard=${CompareStandard}` + `${apiUrl}/map_analysis?standard=${BaseStandard}&standard=${CompareStandard}` ); setLoading(false); setGapAnalysis(result.data); @@ -211,7 +211,7 @@ export const GapAnalysis = () => {