From a66b81d15f5bb1d20a89e6842501c8ee3ba981fc Mon Sep 17 00:00:00 2001 From: Bastien DUMONT <bdumont@grandlyon.com> Date: Fri, 30 Aug 2024 09:22:03 +0000 Subject: [PATCH] chore: add urls to components --- src/components/Action/ActionView.tsx | 3 +++ src/components/Analysis/AnalysisView.tsx | 3 +++ src/components/Challenge/ChallengeView.tsx | 3 +++ src/components/Connection/GRDFConnect/GrdfConnectView.tsx | 4 +++- src/components/Connection/SGEConnect/SgeConnectView.tsx | 3 +++ src/components/Consumption/ConsumptionView.tsx | 6 ++++++ src/components/Duel/DuelView.tsx | 3 +++ src/components/Ecogesture/EcogestureTabsView.tsx | 5 +++++ src/components/Ecogesture/SingleEcogestureView.tsx | 3 +++ src/components/EcogestureForm/EcogestureFormView.tsx | 5 ++++- .../EcogestureSelection/EcogestureSelectionView.tsx | 3 +++ src/components/Exploration/ExplorationView.tsx | 3 +++ src/components/Options/GCU/GCUView.tsx | 3 +++ src/components/Options/LegalNotice/LegalNoticeView.tsx | 3 +++ src/components/Options/OptionsView.tsx | 3 +++ src/components/ProfileType/ProfileTypeView.tsx | 3 +++ src/components/Quiz/QuizView.tsx | 3 +++ src/components/Routes/Routes.tsx | 1 - 18 files changed, 57 insertions(+), 3 deletions(-) diff --git a/src/components/Action/ActionView.tsx b/src/components/Action/ActionView.tsx index 7b5fbab5d..091cdba3b 100644 --- a/src/components/Action/ActionView.tsx +++ b/src/components/Action/ActionView.tsx @@ -9,6 +9,9 @@ import ActionChoose from './ActionChoose/ActionChoose' import ActionDone from './ActionDone/ActionDone' import ActionOnGoing from './ActionOnGoing/ActionOnGoing' +/** + * http://ecolyo.cozy.tools:8080/#/challenges/ + */ const ActionView = () => { const { currentChallenge } = useAppSelector(state => state.ecolyo.challenge) diff --git a/src/components/Analysis/AnalysisView.tsx b/src/components/Analysis/AnalysisView.tsx index 85e543aca..34230d6ca 100644 --- a/src/components/Analysis/AnalysisView.tsx +++ b/src/components/Analysis/AnalysisView.tsx @@ -17,6 +17,9 @@ import { updateProfile } from 'store/profile/profile.slice' import { isLastDateReached } from 'utils/date' import './analysisView.scss' +/** + * http://ecolyo.cozy.tools:8080/#/analysis + */ const AnalysisView = () => { const client = useClient() const { diff --git a/src/components/Challenge/ChallengeView.tsx b/src/components/Challenge/ChallengeView.tsx index 6affdfee8..ed1ba020c 100644 --- a/src/components/Challenge/ChallengeView.tsx +++ b/src/components/Challenge/ChallengeView.tsx @@ -13,6 +13,9 @@ import { useAppSelector } from 'store/hooks' import ChallengeCard from './ChallengeCard/ChallengeCard' import './challengeView.scss' +/** + * http://ecolyo.cozy.tools:8080/#/challenges/ + */ const ChallengeView = () => { const { t } = useI18n() const { userChallengeList } = useAppSelector(state => state.ecolyo.challenge) diff --git a/src/components/Connection/GRDFConnect/GrdfConnectView.tsx b/src/components/Connection/GRDFConnect/GrdfConnectView.tsx index 8923b875d..75770f05a 100644 --- a/src/components/Connection/GRDFConnect/GrdfConnectView.tsx +++ b/src/components/Connection/GRDFConnect/GrdfConnectView.tsx @@ -18,7 +18,9 @@ export enum GrdfStep { Identity, Consent, } - +/** + * http://ecolyo.cozy.tools:8080/#/connect/gas + */ export const GrdfConnectView = () => { const navigate = useNavigate() const { instanceSettings } = useUserInstanceSettings() diff --git a/src/components/Connection/SGEConnect/SgeConnectView.tsx b/src/components/Connection/SGEConnect/SgeConnectView.tsx index 2b8a84e08..6c8305bf5 100644 --- a/src/components/Connection/SGEConnect/SgeConnectView.tsx +++ b/src/components/Connection/SGEConnect/SgeConnectView.tsx @@ -28,6 +28,9 @@ export type SGEKeysForm = | 'dataConsent' | 'pdlConfirm' +/** + * http://ecolyo.cozy.tools:8080/#/connect/electricity + */ const SgeConnectView = () => { const navigate = useNavigate() const dispatch = useAppDispatch() diff --git a/src/components/Consumption/ConsumptionView.tsx b/src/components/Consumption/ConsumptionView.tsx index a4f19def0..bb953c0e8 100644 --- a/src/components/Consumption/ConsumptionView.tsx +++ b/src/components/Consumption/ConsumptionView.tsx @@ -34,6 +34,12 @@ import { import ConsumptionDetails from './ConsumptionDetails/ConsumptionDetails' import FluidButtons from './FluidButtons/FluidButtons' +/** + * http://ecolyo.cozy.tools:8080/#/consumption + * http://ecolyo.cozy.tools:8080/#/consumption/electricity + * http://ecolyo.cozy.tools:8080/#/consumption/water + * http://ecolyo.cozy.tools:8080/#/consumption/gas + */ const ConsumptionView = ({ fluidType }: { fluidType: FluidType }) => { const client = useClient() const dispatch = useAppDispatch() diff --git a/src/components/Duel/DuelView.tsx b/src/components/Duel/DuelView.tsx index b4004e073..3da01109c 100644 --- a/src/components/Duel/DuelView.tsx +++ b/src/components/Duel/DuelView.tsx @@ -11,6 +11,9 @@ import DuelError from './DuelError/DuelError' import DuelOngoing from './DuelOngoing/DuelOngoing' import DuelUnlocked from './DuelUnlocked/DuelUnlocked' +/** + * http://ecolyo.cozy.tools:8080/#/challenges/ + */ const DuelView = () => { const navigate = useNavigate() const { userChallengeList } = useAppSelector(state => state.ecolyo.challenge) diff --git a/src/components/Ecogesture/EcogestureTabsView.tsx b/src/components/Ecogesture/EcogestureTabsView.tsx index 4553e7e28..c8c629b95 100644 --- a/src/components/Ecogesture/EcogestureTabsView.tsx +++ b/src/components/Ecogesture/EcogestureTabsView.tsx @@ -37,6 +37,11 @@ const TabPanel = ({ children, tab, value }: TabPanelProps) => { ) } +/** + * http://ecolyo.cozy.tools:8080/#/ecogestures + * http://ecolyo.cozy.tools:8080/#/ecogestures?tab=1 + * http://ecolyo.cozy.tools:8080/#/ecogestures?tab=2 + */ const EcogestureTabsView = () => { const { t } = useI18n() const client = useClient() diff --git a/src/components/Ecogesture/SingleEcogestureView.tsx b/src/components/Ecogesture/SingleEcogestureView.tsx index 077faf8d5..e35c2b387 100644 --- a/src/components/Ecogesture/SingleEcogestureView.tsx +++ b/src/components/Ecogesture/SingleEcogestureView.tsx @@ -25,6 +25,9 @@ import { importIconById } from 'utils/utils' import EfficiencyRating from './EfficiencyRating/EfficiencyRating' import './singleEcogestureView.scss' +/** + * http://ecolyo.cozy.tools:8080/#/ecogesture/ECOGESTURE0001 + */ const SingleEcogestureView = () => { const { t } = useI18n() const client = useClient() diff --git a/src/components/EcogestureForm/EcogestureFormView.tsx b/src/components/EcogestureForm/EcogestureFormView.tsx index 456b90389..8f7a8303c 100644 --- a/src/components/EcogestureForm/EcogestureFormView.tsx +++ b/src/components/EcogestureForm/EcogestureFormView.tsx @@ -11,10 +11,13 @@ import ProfileEcogestureFormService from 'services/profileEcogestureForm.service import { useAppDispatch, useAppSelector } from 'store/hooks' import { updateProfile } from 'store/profile/profile.slice' import { newProfileEcogestureEntry } from 'store/profileEcogesture/profileEcogesture.slice' +import EcogestureInitModal from '../Ecogesture/EcogestureInitModal/EcogestureInitModal' import EcogestureFormEquipment from './EcogestureFormEquipment/EcogestureFormEquipment' import EcogestureFormSingleChoice from './EcogestureFormSingleChoice/EcogestureFormSingleChoice' -import EcogestureInitModal from '../Ecogesture/EcogestureInitModal/EcogestureInitModal' +/** + * http://ecolyo.cozy.tools:8080/#/ecogesture-form + */ const EcogestureFormView = () => { const navigate = useNavigate() const dispatch = useAppDispatch() diff --git a/src/components/EcogestureSelection/EcogestureSelectionView.tsx b/src/components/EcogestureSelection/EcogestureSelectionView.tsx index df6806976..dd47ee224 100644 --- a/src/components/EcogestureSelection/EcogestureSelectionView.tsx +++ b/src/components/EcogestureSelection/EcogestureSelectionView.tsx @@ -15,6 +15,9 @@ import EcogestureSelectionModal from './EcogestureSelectionModal/EcogestureSelec import EcogestureSelectionRestart from './EcogestureSelectionRestart/EcogestureSelectionRestart' import './ecogestureSelectionView.scss' +/** + * http://ecolyo.cozy.tools:8080/#/ecogesture-selection + */ const EcogestureSelectionView = () => { const { t } = useI18n() const client = useClient() diff --git a/src/components/Exploration/ExplorationView.tsx b/src/components/Exploration/ExplorationView.tsx index ccde8fdb7..14f8737b6 100644 --- a/src/components/Exploration/ExplorationView.tsx +++ b/src/components/Exploration/ExplorationView.tsx @@ -9,6 +9,9 @@ import ExplorationError from './ExplorationError' import ExplorationFinished from './ExplorationFinished' import ExplorationOngoing from './ExplorationOngoing' +/** + * http://ecolyo.cozy.tools:8080/#/challenges/ + */ const ExplorationView = () => { const { currentChallenge } = useAppSelector(state => state.ecolyo.challenge) diff --git a/src/components/Options/GCU/GCUView.tsx b/src/components/Options/GCU/GCUView.tsx index 9f4e06c97..9dd174eba 100644 --- a/src/components/Options/GCU/GCUView.tsx +++ b/src/components/Options/GCU/GCUView.tsx @@ -4,6 +4,9 @@ import Header from 'components/Header/Header' import GCUContent from 'components/Options/GCU/GCUContent' import React from 'react' +/** + * http://ecolyo.cozy.tools:8080/#/options/gcu + */ const GCUView = () => { return ( <> diff --git a/src/components/Options/LegalNotice/LegalNoticeView.tsx b/src/components/Options/LegalNotice/LegalNoticeView.tsx index 660a1f148..4a2683fbc 100644 --- a/src/components/Options/LegalNotice/LegalNoticeView.tsx +++ b/src/components/Options/LegalNotice/LegalNoticeView.tsx @@ -5,6 +5,9 @@ import React from 'react' import LegalNoticeContent from './LegalNoticeContent' import './legalNoticeView.scss' +/** + * http://ecolyo.cozy.tools:8080/#/options/legalnotice + */ const LegalNoticeView = () => { return ( <> diff --git a/src/components/Options/OptionsView.tsx b/src/components/Options/OptionsView.tsx index 54e5e694e..efe08aa6f 100644 --- a/src/components/Options/OptionsView.tsx +++ b/src/components/Options/OptionsView.tsx @@ -14,6 +14,9 @@ import ProfileTypeOptions from './ProfileTypeOptions/ProfileTypeOptions' import ReportOptions from './ReportOptions/ReportOptions' import Version from './Version/Version' +/** + * http://ecolyo.cozy.tools:8080/#/options + */ const OptionsView = () => { const { t } = useI18n() diff --git a/src/components/ProfileType/ProfileTypeView.tsx b/src/components/ProfileType/ProfileTypeView.tsx index 0e3369a04..e7ce6980a 100644 --- a/src/components/ProfileType/ProfileTypeView.tsx +++ b/src/components/ProfileType/ProfileTypeView.tsx @@ -32,6 +32,9 @@ import ProfileTypeFormNumber from './ProfileTypeFormNumber/ProfileTypeFormNumber import ProfileTypeFormNumberSelection from './ProfileTypeFormNumberSelection/ProfileTypeFormNumberSelection' import ProfileTypeFormSingleChoice from './ProfileTypeFormSingleChoice/ProfileTypeFormSingleChoice' +/** + * http://ecolyo.cozy.tools:8080/#/profileType + */ const ProfileTypeView = () => { const { profile, profileType, profileEcogesture } = useAppSelector( state => state.ecolyo diff --git a/src/components/Quiz/QuizView.tsx b/src/components/Quiz/QuizView.tsx index fc45df655..f6b2a39c6 100644 --- a/src/components/Quiz/QuizView.tsx +++ b/src/components/Quiz/QuizView.tsx @@ -9,6 +9,9 @@ import QuizBegin from './QuizBegin/QuizBegin' import QuizFinish from './QuizFinish/QuizFinish' import QuizQuestion from './QuizQuestion/QuizQuestion' +/** + * http://ecolyo.cozy.tools:8080/#/challenges/ + */ const QuizView = () => { const { currentChallenge } = useAppSelector(state => state.ecolyo.challenge) diff --git a/src/components/Routes/Routes.tsx b/src/components/Routes/Routes.tsx index a6cdf99bb..a1a55f5ce 100644 --- a/src/components/Routes/Routes.tsx +++ b/src/components/Routes/Routes.tsx @@ -89,7 +89,6 @@ const AppRoutes = ({ termsStatus }: { termsStatus: TermsStatus }) => { <Route path="/ecogestures" element={<EcogestureTabsView />} /> <Route path="/options/legalnotice" element={<LegalNoticeView />} /> <Route path="/options/gcu" element={<GCUView />} /> - <Route path="/options/:connectParam" element={<OptionsView />} /> <Route path="/options" element={<OptionsView />} /> <Route path="/analysis" element={<AnalysisView />} /> <Route path="/profiletype" element={<ProfileTypeView />} /> -- GitLab