Skip to content

Commit

Permalink
resolving bad merge
Browse files Browse the repository at this point in the history
  • Loading branch information
pearl-truss committed Oct 20, 2023
1 parent f3eaa81 commit 5718bcf
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 1 deletion.
6 changes: 5 additions & 1 deletion services/app-web/src/constants/routes.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ const ROUTES = [
'HELP',
'REPORTS',
'SETTINGS',
'RATES_SUMMARY',
'SUBMISSIONS',
'SUBMISSIONS_NEW',
'SUBMISSIONS_TYPE',
Expand Down Expand Up @@ -47,6 +48,7 @@ const RoutesRecord: Record<RouteT, string> = {
HELP: '/help',
REPORTS: '/reports',
SETTINGS: '/settings',
RATES_SUMMARY: 'rates/:id',
SUBMISSIONS: '/submissions',
SUBMISSIONS_NEW: '/submissions/new',
SUBMISSIONS_EDIT_TOP_LEVEL: '/submissions/:id/edit/*',
Expand Down Expand Up @@ -102,6 +104,7 @@ const QUESTION_RESPONSE_SHOW_SIDEBAR_ROUTES: RouteTWithUnknown[] = [
const PageHeadingsRecord: Partial<Record<RouteTWithUnknown, string>> = {
ROOT: 'Dashboard',
DASHBOARD_SUBMISSIONS: 'Dashboard',
DASHBOARD_RATES: 'Dashboard',
SUBMISSIONS_NEW: 'New submission',
UNKNOWN_ROUTE: '404',
}
Expand All @@ -121,6 +124,7 @@ const PageTitlesRecord: Record<RouteT | 'UNKNOWN_ROUTE', string> = {
DASHBOARD: 'Dashboard',
DASHBOARD_RATES: 'Rate Review Dashboard',
DASHBOARD_SUBMISSIONS: 'Dashboard',
RATES_SUMMARY: 'Rate summary',
SUBMISSIONS: 'Submissions',
SUBMISSIONS_NEW: 'New submission',
SUBMISSIONS_EDIT_TOP_LEVEL: 'Submissions',
Expand All @@ -129,10 +133,10 @@ const PageTitlesRecord: Record<RouteT | 'UNKNOWN_ROUTE', string> = {
SUBMISSIONS_RATE_DETAILS: 'Rate details',
SUBMISSIONS_CONTACTS: 'Contacts',
SUBMISSIONS_DOCUMENTS: 'Supporting documents',
SUBMISSIONS_MCCRSID: 'Add MC-CRS record number',
SUBMISSIONS_REVIEW_SUBMIT: 'Review and submit',
SUBMISSIONS_REVISION: 'Submission revision',
SUBMISSIONS_SUMMARY: 'Submission summary',
SUBMISSIONS_MCCRSID: 'Add MC-CRS record number',
SUBMISSIONS_QUESTIONS_AND_ANSWERS: 'Q&A',
SUBMISSIONS_UPLOAD_QUESTION: 'Add questions',
SUBMISSIONS_UPLOAD_RESPONSE: 'Add response',
Expand Down
1 change: 1 addition & 0 deletions services/app-web/src/constants/tealium.ts
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@ const CONTENT_TYPE_BY_ROUTE: Record<RouteT | 'UNKNOWN_ROUTE', string> = {
GRAPHQL_EXPLORER: 'dev',
REPORTS: 'table',
SETTINGS: 'table',
RATES_SUMMARY: 'summary',
SUBMISSIONS: 'form',
SUBMISSIONS_NEW: 'form',
SUBMISSIONS_EDIT_TOP_LEVEL: 'form',
Expand Down
6 changes: 6 additions & 0 deletions services/app-web/src/pages/App/AppRoutes.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@ import {
UploadQuestions,
} from '../QuestionResponse'
import { GraphQLExplorer } from '../GraphQLExplorer/GraphQLExplorer'
import { RateSummary } from '../SubmissionSummary/RateSummary'

function componentForAuthMode(
authMode: AuthModeType
Expand Down Expand Up @@ -207,6 +208,11 @@ const CMSUserRoutes = ({
/>
</Route>

<Route
path={RoutesRecord.RATES_SUMMARY}
element={<RateSummary />}
/>

<Route
path={RoutesRecord.SUBMISSIONS_MCCRSID}
element={<MccrsId />}
Expand Down

0 comments on commit 5718bcf

Please sign in to comment.