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

CBIIT / crdc-datahub-ui / 10620943351

29 Aug 2024 06:52PM UTC coverage: 45.576% (+0.4%) from 45.203%
10620943351

Pull #447

github

web-flow
Merge e49ac8e05 into 8bedf7236
Pull Request #447: CRDCDH-1444 QuickSight Dashboard Embedding

1777 of 4478 branches covered (39.68%)

Branch coverage included in aggregate %.

50 of 90 new or added lines in 10 files covered. (55.56%)

1 existing line in 1 file now uncovered.

2673 of 5286 relevant lines covered (50.57%)

128.08 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
NEW
12
const Home = LazyLoader(lazy(() => import("./content")));
×
NEW
13
const Login = LazyLoader(lazy(() => import("./content/login/Controller")));
×
NEW
14
const Questionnaire = LazyLoader(lazy(() => import("./content/questionnaire/Controller")));
×
NEW
15
const DataSubmissions = LazyLoader(lazy(() => import("./content/dataSubmissions/Controller")));
×
NEW
16
const Users = LazyLoader(lazy(() => import("./content/users/Controller")));
×
NEW
17
const DMN = LazyLoader(lazy(() => import("./content/modelNavigator/Controller")));
×
NEW
18
const Organizations = LazyLoader(lazy(() => import("./content/organizations/Controller")));
×
NEW
19
const Status404 = LazyLoader(lazy(() => import("./content/status/Page404")));
×
NEW
20
const OperationDashboard = LazyLoader(
×
NEW
21
  lazy(() => import("./content/operationDashboard/Controller"))
×
22
);
23

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

129
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