-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
2024-11-14 - web-ui - external feedback
- Loading branch information
Showing
2 changed files
with
3 additions
and
195 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
195 changes: 2 additions & 193 deletions
195
web-ui-external-feedback/src/components/routes/Routes.jsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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> | ||
); | ||
} |