• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

CBIIT / crdc-datahub-ui / 12936221948

23 Jan 2025 07:03PM UTC coverage: 57.932% (-0.02%) from 57.952%
12936221948

Pull #605

github

web-flow
Merge 9c041f8e4 into bc7a90325
Pull Request #605: CRDCDH-2266 Support Viewing Older Data Model Versions

2807 of 5284 branches covered (53.12%)

Branch coverage included in aggregate %.

6 of 17 new or added lines in 6 files covered. (35.29%)

45 existing lines in 1 file now uncovered.

4033 of 6523 relevant lines covered (61.83%)

144.5 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

0.0
/src/router.tsx
1
import { lazy } from "react";
2
import { RouteObject } from "react-router-dom";
3
import Layout from "./layouts";
4
import withTracking from "./components/Hocs/withTracking";
5
import LazyLoader from "./components/LazyLoader";
6
import RequireAuth from "./components/RequireAuth";
7

8
// Layouts
9
const MainLayout = withTracking(Layout);
×
10

11
// Pages
12
const Home = LazyLoader(lazy(() => import("./content")));
×
13
const Login = LazyLoader(lazy(() => import("./content/Login/Controller")));
×
14
const Questionnaire = LazyLoader(lazy(() => import("./content/questionnaire/Controller")));
×
15
const DataSubmissions = LazyLoader(lazy(() => import("./content/dataSubmissions/Controller")));
×
16
const Users = LazyLoader(lazy(() => import("./content/users/Controller")));
×
NEW
17
const ModelNavigator = LazyLoader(lazy(() => import("./content/ModelNavigator/Controller")));
×
18
const ReleaseNotes = LazyLoader(lazy(() => import("./content/ReleaseNotes/Controller")));
×
19
const Organizations = LazyLoader(lazy(() => import("./content/organizations/Controller")));
×
20
const Studies = LazyLoader(lazy(() => import("./content/studies/Controller")));
×
21
const Status404 = LazyLoader(lazy(() => import("./content/status/Page404")));
×
22
const OperationDashboard = LazyLoader(
×
23
  lazy(() => import("./content/OperationDashboard/Controller"))
×
24
);
25

26
const routes: RouteObject[] = [
×
27
  {
28
    path: "",
29
    element: <MainLayout />,
30
    children: [
31
      {
32
        path: "/",
33
        element: <Home />,
34
      },
35
      {
36
        path: "/login",
37
        element: <Login />,
38
      },
39
      {
40
        path: "/model-navigator/:model/:version?",
41
        element: <ModelNavigator />,
42
      },
43
      {
44
        path: "/release-notes",
45
        element: <ReleaseNotes />,
46
      },
47
      {
48
        path: "/submissions",
49
        element: (
50
          <RequireAuth
51
            component={<Questionnaire />}
52
            redirectPath="/submissions"
53
            redirectName="Submission Requests"
54
          />
55
        ),
56
      },
57
      {
58
        path: "/data-submissions",
59
        element: (
60
          <RequireAuth
61
            component={<DataSubmissions />}
62
            redirectPath="/data-submissions"
63
            redirectName="Data Submissions"
64
          />
65
        ),
66
      },
67
      {
68
        path: "/data-submission/:submissionId/:tab?",
69
        element: (
70
          <RequireAuth
71
            component={<DataSubmissions />}
72
            redirectPath="/data-submission"
73
            redirectName="Data Submission"
74
          />
75
        ),
76
      },
77
      {
78
        path: "/submission/:appId/:section?",
79
        element: (
80
          <RequireAuth
81
            component={<Questionnaire />}
82
            redirectPath="/submissions"
83
            redirectName="Submission Requests"
84
          />
85
        ),
86
      },
87
      {
88
        path: "/users/:userId?",
89
        element: (
90
          <RequireAuth
91
            component={<Users key="users-view" type="users" />}
92
            redirectPath="/users"
93
            redirectName="User Management"
94
          />
95
        ),
96
      },
97
      {
98
        path: "/profile/:userId?",
99
        element: (
100
          <RequireAuth
101
            component={<Users key="profile-view" type="profile" />}
102
            redirectPath="/profile"
103
            redirectName="User Profile"
104
          />
105
        ),
106
      },
107
      {
108
        path: "/programs/:orgId?",
109
        element: (
110
          <RequireAuth
111
            component={<Organizations />}
112
            redirectPath="/programs"
113
            redirectName="Program Management"
114
          />
115
        ),
116
      },
117
      {
118
        path: "/studies/:studyId?",
119
        element: (
120
          <RequireAuth
121
            component={<Studies />}
122
            redirectPath="/studies"
123
            redirectName="Studies Management"
124
          />
125
        ),
126
      },
127
      {
128
        path: "/operation-dashboard",
129
        element: (
130
          <RequireAuth
131
            component={<OperationDashboard />}
132
            redirectPath="/operation-dashboard"
133
            redirectName="Operation Dashboard"
134
          />
135
        ),
136
      },
137
      {
138
        path: "*",
139
        element: <Status404 />,
140
      },
141
    ],
142
  },
143
];
144

145
export default routes;
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2025 Coveralls, Inc