Skip to content

Commit

Permalink
2024-11-14 - web-ui - external feedback
Browse files Browse the repository at this point in the history
  • Loading branch information
Luch76 committed Nov 14, 2024
1 parent 0661d63 commit 16830e9
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 195 deletions.
3 changes: 1 addition & 2 deletions web-ui-external-feedback/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -42,8 +42,7 @@
To create a production bundle, use `npm run build` or `yarn build`.
-->

<h1>hello from test</h1>

<script type="module" src="/src/index.jsx"></script>

</body>
</html>
195 changes: 2 additions & 193 deletions web-ui-external-feedback/src/components/routes/Routes.jsx
Original file line number Diff line number Diff line change
@@ -1,208 +1,17 @@
import React, { useContext } from 'react';
import { Switch, Route } from 'react-router-dom';

import { AppContext } from '../../context/AppContext';

import AnniversaryReportPage from '../../pages/AnniversaryReportPage';
import AnnualReviewReportPage from '../../pages/AnnualReviewReportPage';
import BirthdayReportPage from '../../pages/BirthdayReportPage';
import CertificationReportPage from '../../pages/CertificationReportPage';
import CheckinsPage from '../../pages/CheckinsPage';
import CheckinsReportPage from '../../pages/CheckinsReportPage';
import EditPermissionsPage from '../../pages/PermissionsPage';
import EditSkillsPage from '../../pages/EditSkillsPage';
import GroupIcon from '@mui/icons-material/Group';
import GuildsPage from '../../pages/GuildsPage';
import Header from '../header/Header';
import HomePage from '../../pages/HomePage';
import MemberProfilePage from '../../pages/MemberProfilePage';
import PeoplePage from '../../pages/PeoplePage';
import PulsePage from '../../pages/PulsePage';
import PulseReportPage from '../../pages/PulseReportPage';
import Roles from '../admin/roles/Roles';
import SettingsPage from '../../pages/SettingsPage';
import SkillReportPage from '../../pages/SkillReportPage';
import TeamSkillReportPage from '../../pages/TeamSkillReportPage';
import TeamsPage from '../../pages/TeamsPage';
import MeritReportPage from '../../pages/MeritReportPage';
import Users from '../admin/users/Users';
import VolunteerReportPage from '../../pages/VolunteerReportPage';

import { selectIsAdmin } from '../../context/selectors';
import FeedbackRequestConfirmation from '../feedback_request_confirmation/FeedbackRequestConfirmation';
import FeedbackRequestPage from '../../pages/FeedbackRequestPage';
import ViewFeedbackPage from '../../pages/ViewFeedbackPage';
import ViewFeedbackResponses from '../view_feedback_responses/ViewFeedbackResponses';
import FeedbackSubmitConfirmation from '../feedback_submit_confirmation/FeedbackSubmitConfirmation';
import FeedbackSubmitPage from '../../pages/FeedbackSubmitPage';
import ReceivedRequestsPage from '../../pages/ReceivedRequestsPage';
import EmailPage from '../../pages/EmailPage';
import ReviewsPage from '../../pages/ReviewsPage';
import SelfReviewsPage from '../../pages/SelfReviewsPage';
import KudosPage from '../../pages/KudosPage';
import ManageKudosPage from '../../pages/ManageKudosPage';
import SkillCategoriesPage from '../../pages/SkillCategoriesPage';
import SkillCategoryEditPage from '../../pages/SkillCategoryEditPage';


export default function Routes() {
const { state } = useContext(AppContext);

return (
<Switch>
<Route path="/teams">
<Header title="Teams">
<GroupIcon fontSize="large" />
</Header>
<TeamsPage />
</Route>
<Route path="/guilds">
<Header title="Guilds & Communities" />
<GuildsPage />
</Route>
<Route exact path="/">
<Header />
<HomePage />
</Route>
<Route path="/people">
<Header title="People" />
<PeoplePage />
</Route>
<Route path="/pulse">
<Header title="Pulse" />
<PulsePage />
</Route>
<Route path="/checkins/:memberId?/:checkinId?">
<Header title="Check-ins" />
<CheckinsPage />
</Route>
<Route path="/profile/:memberId?">
<Header title="Member Profile" />
<MemberProfilePage />
</Route>
<Route exact path="/feedback/request/confirmation">
<FeedbackRequestConfirmation />
</Route>
<Route path="/feedback/request">
<FeedbackRequestPage />
</Route>
<Route exact path="/feedback/view">
<ViewFeedbackPage />
</Route>
<Route exact path="/feedback/view/responses">
<ViewFeedbackResponses />
</Route>
<Route exact path="/feedback/submit/confirmation">
<Route exact path="/externalFeedback/">
<FeedbackSubmitConfirmation />
</Route>
<Route path="/feedback/submit">
<FeedbackSubmitPage />
</Route>
<Route path="/feedback/received-requests">
<ReceivedRequestsPage />
</Route>
<Route path="/feedback/reviews">
<ReviewsPage />
</Route>
<Route path="/feedback/self-reviews">
<SelfReviewsPage />
</Route>
<Route exact path="/kudos">
<Header title="Kudos" />
<KudosPage />
</Route>

<Route path="/admin/edit-skills">
<Header title="Skills" />
<EditSkillsPage />
</Route>
<Route path="/admin/settings">
<Header title="Settings" />
<SettingsPage />
</Route>
<Route path="/admin/permissions">
<Header title="Permissions" />
<EditPermissionsPage />
</Route>
<Route path="/admin/skill-categories/:categoryId">
<SkillCategoryEditPage />
</Route>
<Route path="/admin/skill-categories">
<SkillCategoriesPage />
</Route>
<Route path="/checkins-reports">
<Header title="Check-in Report" />
<CheckinsReportPage />
</Route>
<Route path="/skills-reports">
<Header title="Skill Report" />
<SkillReportPage />
</Route>
<Route path="/team-skills-reports">
<Header title="Team Skill Report" />
<TeamSkillReportPage />
</Route>
<Route path="/anniversary-reports">
<Header title="Anniversary Report" />
<AnniversaryReportPage />
</Route>
<Route path="/birthday-reports">
<Header title="Birthday Report" />
<BirthdayReportPage />
</Route>
<Route path="/certification-reports">
<Header title="Certification Report" />
<CertificationReportPage />
</Route>
<Route path="/annual-review-reports">
<Header title="Annual Review Report" />
<AnnualReviewReportPage />
</Route>
<Route path="/merit-reports">
<Header title="Merit Report" />
<MeritReportPage />
</Route>
<Route path="/volunteer-reports">
<Header title="Volunteering Report" />
<VolunteerReportPage />
</Route>
<Route path="/pulse-reports">
<Header title="Pulse Report" />
<PulseReportPage />
</Route>
<Route path="/admin/roles">
<Header title="Roles"></Header>
<Roles />
</Route>
<Route path="/admin/users">
<Header title="Users"></Header>
<Users />
</Route>
<Route path="/admin/email">
<Header title="Send Email"></Header>
<EmailPage />
</Route>
<Route exact path="/feedback/request/confirmation">
<FeedbackRequestConfirmation />
</Route>
<Route path="/feedback/request">
<FeedbackRequestPage />
</Route>
<Route exact path="/feedback/view">
<ViewFeedbackPage />
</Route>
<Route exact path="/feedback/view/responses">
<ViewFeedbackResponses />
</Route>
<Route exact path="/feedback/submit/confirmation">
<FeedbackSubmitConfirmation />
</Route>
<Route path="/feedback/submit">
<FeedbackSubmitPage />
</Route>
<Route exact path="/admin/manage-kudos">
<Header title="Manage Kudos"></Header>
<ManageKudosPage />
</Route>
</Switch>
);
}

0 comments on commit 16830e9

Please sign in to comment.