@burdenoff/microfe-buildmyiq 2026.1031.3 → 2026.1031.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/buildmyiq/BuildmyiqRoot.d.ts.map +1 -1
- package/dist/buildmyiq/BuildmyiqRoot.js +82 -74
- package/dist/buildmyiq/BuildmyiqRoot.js.map +1 -1
- package/dist/buildmyiq/BuildmyiqRoutes.d.ts.map +1 -1
- package/dist/buildmyiq/BuildmyiqRoutes.js +36 -32
- package/dist/buildmyiq/BuildmyiqRoutes.js.map +1 -1
- package/dist/buildmyiq/components/BadgeIcon.d.ts +13 -0
- package/dist/buildmyiq/components/BadgeIcon.d.ts.map +1 -0
- package/dist/buildmyiq/components/BadgeIcon.js +42 -0
- package/dist/buildmyiq/components/BadgeIcon.js.map +1 -0
- package/dist/buildmyiq/components/StatusBadge.d.ts.map +1 -1
- package/dist/buildmyiq/components/StatusBadge.js +1 -0
- package/dist/buildmyiq/components/StatusBadge.js.map +1 -1
- package/dist/buildmyiq/hooks/index.d.ts +1 -0
- package/dist/buildmyiq/hooks/index.d.ts.map +1 -1
- package/dist/buildmyiq/hooks/index.js +1 -0
- package/dist/buildmyiq/hooks/useBuildmyiqApi.d.ts +23 -1
- package/dist/buildmyiq/hooks/useBuildmyiqApi.d.ts.map +1 -1
- package/dist/buildmyiq/hooks/useBuildmyiqApi.js +201 -104
- package/dist/buildmyiq/hooks/useBuildmyiqApi.js.map +1 -1
- package/dist/buildmyiq/hooks/useScimProvisioning.d.ts +7 -0
- package/dist/buildmyiq/hooks/useScimProvisioning.d.ts.map +1 -0
- package/dist/buildmyiq/hooks/useScimProvisioning.js +76 -0
- package/dist/buildmyiq/hooks/useScimProvisioning.js.map +1 -0
- package/dist/buildmyiq/pages/badges/BadgesPanel.d.ts +3 -0
- package/dist/buildmyiq/pages/badges/BadgesPanel.d.ts.map +1 -0
- package/dist/buildmyiq/pages/badges/BadgesPanel.js +545 -0
- package/dist/buildmyiq/pages/badges/BadgesPanel.js.map +1 -0
- package/dist/buildmyiq/pages/badges/MyBadgesSection.d.ts +3 -0
- package/dist/buildmyiq/pages/badges/MyBadgesSection.d.ts.map +1 -0
- package/dist/buildmyiq/pages/badges/MyBadgesSection.js +56 -0
- package/dist/buildmyiq/pages/badges/MyBadgesSection.js.map +1 -0
- package/dist/buildmyiq/pages/certificates/CertificatesPage.d.ts.map +1 -1
- package/dist/buildmyiq/pages/certificates/CertificatesPage.js +265 -243
- package/dist/buildmyiq/pages/certificates/CertificatesPage.js.map +1 -1
- package/dist/buildmyiq/pages/learning/MyLearningPage.d.ts.map +1 -1
- package/dist/buildmyiq/pages/learning/MyLearningPage.js +91 -82
- package/dist/buildmyiq/pages/learning/MyLearningPage.js.map +1 -1
- package/dist/buildmyiq/pages/provisioning/ProvisioningPage.d.ts +3 -0
- package/dist/buildmyiq/pages/provisioning/ProvisioningPage.d.ts.map +1 -0
- package/dist/buildmyiq/pages/provisioning/ProvisioningPage.js +384 -0
- package/dist/buildmyiq/pages/provisioning/ProvisioningPage.js.map +1 -0
- package/dist/buildmyiq/pages/provisioning/provisioningModel.d.ts +78 -0
- package/dist/buildmyiq/pages/provisioning/provisioningModel.d.ts.map +1 -0
- package/dist/buildmyiq/pages/provisioning/provisioningModel.js +120 -0
- package/dist/buildmyiq/pages/provisioning/provisioningModel.js.map +1 -0
- package/dist/buildmyiq/types/index.d.ts +55 -0
- package/dist/buildmyiq/types/index.d.ts.map +1 -1
- package/dist/buildmyiq/types/index.js.map +1 -1
- package/package.json +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"BuildmyiqRoot.d.ts","sourceRoot":"","sources":["../../src/buildmyiq/BuildmyiqRoot.tsx"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAEH,OAAO,KAAK,EAAE,EAAE,EAAE,MAAM,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"BuildmyiqRoot.d.ts","sourceRoot":"","sources":["../../src/buildmyiq/BuildmyiqRoot.tsx"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAEH,OAAO,KAAK,EAAE,EAAE,EAAE,MAAM,OAAO,CAAC;AA8BhC,OAAO,KAAK,EAAE,kBAAkB,EAAW,MAAM,SAAS,CAAC;AAY3D,eAAO,MAAM,aAAa,EAAE,EAAE,CAAC,kBAAkB,CA8MhD,CAAC"}
|
|
@@ -6,195 +6,203 @@ import { QueryClient as a, QueryClientProvider as o } from "@tanstack/react-quer
|
|
|
6
6
|
import { FeatureFlagProvider as s } from "@burdenoff/fe-libs/shared/feature-flags";
|
|
7
7
|
import { PermissionProvider as c } from "@burdenoff/fe-libs/shared/providers/shell";
|
|
8
8
|
import { useI18n as l } from "@burdenoff/fe-libs/shared/providers/shell/I18nProvider";
|
|
9
|
-
import { ArrowRightLeft as u, Award as d, BookOpen as f, CheckSquare as p, ClipboardCheck as m, GraduationCap as h, LayoutDashboard as g, LineChart as _, MessageSquareText as v, PencilRuler as y, Plug as b, Route as x, ShieldBan as S, ShieldCheck as C, Sparkles as w, Target as T,
|
|
10
|
-
import { jsx as
|
|
9
|
+
import { ArrowRightLeft as u, Award as d, BookOpen as f, CheckSquare as p, ClipboardCheck as m, GraduationCap as h, LayoutDashboard as g, LineChart as _, MessageSquareText as v, PencilRuler as y, Plug as b, Route as x, ShieldBan as S, ShieldCheck as C, Sparkles as w, Target as T, UserCog as E, Users as D, Workflow as O } from "lucide-react";
|
|
10
|
+
import { jsx as k } from "react/jsx-runtime";
|
|
11
11
|
//#region src/buildmyiq/BuildmyiqRoot.tsx
|
|
12
|
-
var
|
|
12
|
+
var A = new a({ defaultOptions: { queries: {
|
|
13
13
|
staleTime: 300 * 1e3,
|
|
14
14
|
retry: 1,
|
|
15
15
|
refetchOnWindowFocus: !1
|
|
16
|
-
} } }),
|
|
17
|
-
let { registerNavItems:
|
|
18
|
-
let n =
|
|
16
|
+
} } }), j = (a) => {
|
|
17
|
+
let { registerNavItems: j, registerFooterItems: M, basePath: N = "/" } = a, { t: P } = l(), F = r((e, t) => {
|
|
18
|
+
let n = P(e);
|
|
19
19
|
return n === e ? t : n;
|
|
20
|
-
}, [
|
|
20
|
+
}, [P]);
|
|
21
21
|
return i(() => {
|
|
22
|
-
if (
|
|
22
|
+
if (j) return j([
|
|
23
23
|
{
|
|
24
24
|
id: "buildmyiq-dashboard",
|
|
25
|
-
label:
|
|
26
|
-
path: e(
|
|
27
|
-
icon: /* @__PURE__ */
|
|
25
|
+
label: F("buildmyiq.nav.dashboard", "Dashboard"),
|
|
26
|
+
path: e(N, ""),
|
|
27
|
+
icon: /* @__PURE__ */ k(g, { size: 20 }),
|
|
28
28
|
order: 0,
|
|
29
29
|
group: "products"
|
|
30
30
|
},
|
|
31
31
|
{
|
|
32
32
|
id: "buildmyiq-catalog",
|
|
33
|
-
label:
|
|
34
|
-
path: e(
|
|
35
|
-
icon: /* @__PURE__ */
|
|
33
|
+
label: F("buildmyiq.nav.catalog", "Catalog"),
|
|
34
|
+
path: e(N, "catalog"),
|
|
35
|
+
icon: /* @__PURE__ */ k(f, { size: 20 }),
|
|
36
36
|
order: 1,
|
|
37
37
|
group: "products"
|
|
38
38
|
},
|
|
39
39
|
{
|
|
40
40
|
id: "buildmyiq-learning",
|
|
41
|
-
label:
|
|
42
|
-
path: e(
|
|
43
|
-
icon: /* @__PURE__ */
|
|
41
|
+
label: F("buildmyiq.nav.learning", "My Learning"),
|
|
42
|
+
path: e(N, "learning"),
|
|
43
|
+
icon: /* @__PURE__ */ k(h, { size: 20 }),
|
|
44
44
|
order: 2,
|
|
45
45
|
group: "products"
|
|
46
46
|
},
|
|
47
47
|
{
|
|
48
48
|
id: "buildmyiq-paths",
|
|
49
|
-
label:
|
|
50
|
-
path: e(
|
|
51
|
-
icon: /* @__PURE__ */
|
|
49
|
+
label: F("buildmyiq.nav.paths", "Journeys"),
|
|
50
|
+
path: e(N, "paths"),
|
|
51
|
+
icon: /* @__PURE__ */ k(x, { size: 20 }),
|
|
52
52
|
order: 2.5,
|
|
53
53
|
group: "products"
|
|
54
54
|
},
|
|
55
55
|
{
|
|
56
56
|
id: "buildmyiq-authoring",
|
|
57
|
-
label:
|
|
58
|
-
path: e(
|
|
59
|
-
icon: /* @__PURE__ */
|
|
57
|
+
label: F("buildmyiq.nav.authoring", "Authoring"),
|
|
58
|
+
path: e(N, "authoring"),
|
|
59
|
+
icon: /* @__PURE__ */ k(y, { size: 20 }),
|
|
60
60
|
order: 3,
|
|
61
61
|
group: "products"
|
|
62
62
|
},
|
|
63
63
|
{
|
|
64
64
|
id: "buildmyiq-assessments",
|
|
65
|
-
label:
|
|
66
|
-
path: e(
|
|
67
|
-
icon: /* @__PURE__ */
|
|
65
|
+
label: F("buildmyiq.nav.assessments", "Assessments"),
|
|
66
|
+
path: e(N, "assessments"),
|
|
67
|
+
icon: /* @__PURE__ */ k(m, { size: 20 }),
|
|
68
68
|
order: 4,
|
|
69
69
|
group: "products"
|
|
70
70
|
},
|
|
71
71
|
{
|
|
72
72
|
id: "buildmyiq-submissions",
|
|
73
|
-
label:
|
|
74
|
-
path: e(
|
|
75
|
-
icon: /* @__PURE__ */
|
|
73
|
+
label: F("buildmyiq.nav.submissions", "Grading"),
|
|
74
|
+
path: e(N, "submissions"),
|
|
75
|
+
icon: /* @__PURE__ */ k(p, { size: 20 }),
|
|
76
76
|
order: 5,
|
|
77
77
|
group: "products"
|
|
78
78
|
},
|
|
79
79
|
{
|
|
80
80
|
id: "buildmyiq-proctoring",
|
|
81
|
-
label:
|
|
82
|
-
path: e(
|
|
83
|
-
icon: /* @__PURE__ */
|
|
81
|
+
label: F("buildmyiq.nav.proctoring", "Proctoring"),
|
|
82
|
+
path: e(N, "proctoring"),
|
|
83
|
+
icon: /* @__PURE__ */ k(C, { size: 20 }),
|
|
84
84
|
order: 5,
|
|
85
85
|
group: "products"
|
|
86
86
|
},
|
|
87
87
|
{
|
|
88
88
|
id: "buildmyiq-tutor-review",
|
|
89
|
-
label:
|
|
90
|
-
path: e(
|
|
91
|
-
icon: /* @__PURE__ */
|
|
89
|
+
label: F("buildmyiq.nav.tutorReview", "Tutor Review"),
|
|
90
|
+
path: e(N, "tutor-review"),
|
|
91
|
+
icon: /* @__PURE__ */ k(v, { size: 20 }),
|
|
92
92
|
order: 5.5,
|
|
93
93
|
group: "products"
|
|
94
94
|
},
|
|
95
95
|
{
|
|
96
96
|
id: "buildmyiq-cohorts",
|
|
97
|
-
label:
|
|
98
|
-
path: e(
|
|
99
|
-
icon: /* @__PURE__ */
|
|
97
|
+
label: F("buildmyiq.nav.cohorts", "Cohorts"),
|
|
98
|
+
path: e(N, "cohorts"),
|
|
99
|
+
icon: /* @__PURE__ */ k(D, { size: 20 }),
|
|
100
100
|
order: 6,
|
|
101
101
|
group: "products"
|
|
102
102
|
},
|
|
103
103
|
{
|
|
104
104
|
id: "buildmyiq-skills",
|
|
105
|
-
label:
|
|
106
|
-
path: e(
|
|
107
|
-
icon: /* @__PURE__ */
|
|
105
|
+
label: F("buildmyiq.nav.skills", "Skills"),
|
|
106
|
+
path: e(N, "skills"),
|
|
107
|
+
icon: /* @__PURE__ */ k(T, { size: 20 }),
|
|
108
108
|
order: 7,
|
|
109
109
|
group: "products"
|
|
110
110
|
},
|
|
111
111
|
{
|
|
112
112
|
id: "buildmyiq-certificates",
|
|
113
|
-
label:
|
|
114
|
-
path: e(
|
|
115
|
-
icon: /* @__PURE__ */
|
|
113
|
+
label: F("buildmyiq.nav.certificates", "Certificates"),
|
|
114
|
+
path: e(N, "certificates"),
|
|
115
|
+
icon: /* @__PURE__ */ k(d, { size: 20 }),
|
|
116
116
|
order: 8,
|
|
117
117
|
group: "products"
|
|
118
118
|
},
|
|
119
119
|
{
|
|
120
120
|
id: "buildmyiq-insights",
|
|
121
|
-
label:
|
|
122
|
-
path: e(
|
|
123
|
-
icon: /* @__PURE__ */
|
|
121
|
+
label: F("buildmyiq.nav.insights", "Insights"),
|
|
122
|
+
path: e(N, "insights"),
|
|
123
|
+
icon: /* @__PURE__ */ k(_, { size: 20 }),
|
|
124
124
|
order: 9,
|
|
125
125
|
group: "products"
|
|
126
126
|
},
|
|
127
127
|
{
|
|
128
128
|
id: "buildmyiq-admin-copilot",
|
|
129
|
-
label:
|
|
130
|
-
path: e(
|
|
131
|
-
icon: /* @__PURE__ */
|
|
129
|
+
label: F("buildmyiq.nav.adminCopilot", "Admin Copilot"),
|
|
130
|
+
path: e(N, "admin-copilot"),
|
|
131
|
+
icon: /* @__PURE__ */ k(w, { size: 20 }),
|
|
132
132
|
order: 10,
|
|
133
133
|
group: "products"
|
|
134
134
|
},
|
|
135
135
|
{
|
|
136
136
|
id: "buildmyiq-integrations",
|
|
137
|
-
label:
|
|
138
|
-
path: e(
|
|
139
|
-
icon: /* @__PURE__ */
|
|
137
|
+
label: F("buildmyiq.nav.integrations", "LMS Integrations"),
|
|
138
|
+
path: e(N, "integrations"),
|
|
139
|
+
icon: /* @__PURE__ */ k(b, { size: 20 }),
|
|
140
140
|
order: 11,
|
|
141
141
|
group: "products"
|
|
142
142
|
},
|
|
143
143
|
{
|
|
144
144
|
id: "buildmyiq-migration",
|
|
145
|
-
label:
|
|
146
|
-
path: e(
|
|
147
|
-
icon: /* @__PURE__ */
|
|
145
|
+
label: F("buildmyiq.nav.migration", "Migration"),
|
|
146
|
+
path: e(N, "migration"),
|
|
147
|
+
icon: /* @__PURE__ */ k(u, { size: 20 }),
|
|
148
148
|
order: 11.5,
|
|
149
149
|
group: "products"
|
|
150
150
|
},
|
|
151
151
|
{
|
|
152
152
|
id: "buildmyiq-automations",
|
|
153
|
-
label:
|
|
154
|
-
path: e(
|
|
155
|
-
icon: /* @__PURE__ */ O
|
|
153
|
+
label: F("buildmyiq.nav.automations", "Automations"),
|
|
154
|
+
path: e(N, "automations"),
|
|
155
|
+
icon: /* @__PURE__ */ k(O, { size: 20 }),
|
|
156
156
|
order: 12,
|
|
157
157
|
group: "products"
|
|
158
158
|
},
|
|
159
159
|
{
|
|
160
160
|
id: "buildmyiq-ai-settings",
|
|
161
|
-
label:
|
|
162
|
-
path: e(
|
|
163
|
-
icon: /* @__PURE__ */
|
|
161
|
+
label: F("buildmyiq.nav.aiSettings", "AI settings"),
|
|
162
|
+
path: e(N, "ai-settings"),
|
|
163
|
+
icon: /* @__PURE__ */ k(S, { size: 20 }),
|
|
164
164
|
order: 13,
|
|
165
165
|
group: "products"
|
|
166
|
+
},
|
|
167
|
+
{
|
|
168
|
+
id: "buildmyiq-provisioning",
|
|
169
|
+
label: F("buildmyiq.nav.provisioning", "User provisioning"),
|
|
170
|
+
path: e(N, "provisioning"),
|
|
171
|
+
icon: /* @__PURE__ */ k(E, { size: 20 }),
|
|
172
|
+
order: 14,
|
|
173
|
+
group: "products"
|
|
166
174
|
}
|
|
167
175
|
]);
|
|
168
176
|
}, [
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
177
|
+
j,
|
|
178
|
+
N,
|
|
179
|
+
F
|
|
172
180
|
]), i(() => {
|
|
173
|
-
if (
|
|
181
|
+
if (M) return M([{
|
|
174
182
|
id: "buildmyiq-status",
|
|
175
|
-
label:
|
|
183
|
+
label: F("buildmyiq.footer.ready", "BuildMyIQ Ready"),
|
|
176
184
|
type: "status",
|
|
177
185
|
section: "left",
|
|
178
186
|
order: 10
|
|
179
187
|
}]);
|
|
180
|
-
}, [
|
|
181
|
-
client:
|
|
182
|
-
children: /* @__PURE__ */
|
|
188
|
+
}, [M, F]), /* @__PURE__ */ k(o, {
|
|
189
|
+
client: A,
|
|
190
|
+
children: /* @__PURE__ */ k(s, {
|
|
183
191
|
workspaceId: null,
|
|
184
192
|
gateway: "global",
|
|
185
193
|
defaultEnabled: !0,
|
|
186
|
-
children: /* @__PURE__ */
|
|
194
|
+
children: /* @__PURE__ */ k(c, {
|
|
187
195
|
scopeId: a.workspaceId ?? null,
|
|
188
196
|
gateway: "workspace",
|
|
189
|
-
children: /* @__PURE__ */
|
|
197
|
+
children: /* @__PURE__ */ k(t, {
|
|
190
198
|
...a,
|
|
191
|
-
children: /* @__PURE__ */
|
|
199
|
+
children: /* @__PURE__ */ k(n, {})
|
|
192
200
|
})
|
|
193
201
|
})
|
|
194
202
|
})
|
|
195
203
|
});
|
|
196
204
|
};
|
|
197
205
|
//#endregion
|
|
198
|
-
export {
|
|
206
|
+
export { j as BuildmyiqRoot };
|
|
199
207
|
|
|
200
208
|
//# sourceMappingURL=BuildmyiqRoot.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"BuildmyiqRoot.js","names":[],"sources":["../../src/buildmyiq/BuildmyiqRoot.tsx"],"sourcesContent":["/**\n * Buildmyiq Root Component\n * @module buildmyiq\n *\n * Host-contract entry point. Registers the product's sidebar nav (nine sections\n * that map 1:1 to the wspace-buildmyiq-svc `bui*` backend) and mounts the routed\n * pages inside the shared QueryClient + FeatureFlag providers.\n */\n\nimport type { FC } from 'react';\nimport { useCallback, useEffect } from 'react';\nimport { QueryClient, QueryClientProvider } from '@tanstack/react-query';\nimport { FeatureFlagProvider } from '@burdenoff/fe-libs/shared/feature-flags';\nimport { PermissionProvider } from '@burdenoff/fe-libs/shared/providers/shell';\nimport { useI18n } from '@burdenoff/fe-libs/shared/providers/shell/I18nProvider';\nimport {\n LayoutDashboard,\n BookOpen,\n GraduationCap,\n PencilRuler,\n ClipboardCheck,\n CheckSquare,\n Users,\n Target,\n Award,\n LineChart,\n Route,\n Sparkles,\n Plug,\n ArrowRightLeft,\n ShieldCheck,\n Workflow,\n MessageSquareText,\n ShieldBan,\n} from 'lucide-react';\nimport { BuildmyiqProvider } from './context/BuildmyiqContext';\nimport { BuildmyiqRoutes } from './BuildmyiqRoutes';\nimport { joinPath } from './utils/navigation';\nimport type { BuildmyiqRootProps, NavItem } from './types';\n\nconst queryClient = new QueryClient({\n defaultOptions: {\n queries: {\n staleTime: 5 * 60 * 1000,\n retry: 1,\n refetchOnWindowFocus: false,\n },\n },\n});\n\nexport const BuildmyiqRoot: FC<BuildmyiqRootProps> = (props) => {\n const { registerNavItems, registerFooterItems, basePath = '/' } = props;\n const { t: translate } = useI18n();\n const t = useCallback(\n (key: string, fallback: string): string => {\n const value = translate(key);\n return value === key ? fallback : value;\n },\n [translate]\n );\n\n // Register navigation items with the shell on mount. Ids/paths/orders match\n // the app-shell static NavRegistration block so the two are a single,\n // consistent source of truth.\n useEffect(() => {\n if (!registerNavItems) return;\n\n const navItems: NavItem[] = [\n {\n id: 'buildmyiq-dashboard',\n label: t('buildmyiq.nav.dashboard', 'Dashboard'),\n path: joinPath(basePath, ''),\n icon: <LayoutDashboard size={20} />,\n order: 0,\n group: 'products',\n },\n {\n id: 'buildmyiq-catalog',\n label: t('buildmyiq.nav.catalog', 'Catalog'),\n path: joinPath(basePath, 'catalog'),\n icon: <BookOpen size={20} />,\n order: 1,\n group: 'products',\n },\n {\n id: 'buildmyiq-learning',\n label: t('buildmyiq.nav.learning', 'My Learning'),\n path: joinPath(basePath, 'learning'),\n icon: <GraduationCap size={20} />,\n order: 2,\n group: 'products',\n },\n {\n id: 'buildmyiq-paths',\n label: t('buildmyiq.nav.paths', 'Journeys'),\n path: joinPath(basePath, 'paths'),\n icon: <Route size={20} />,\n order: 2.5,\n group: 'products',\n },\n {\n id: 'buildmyiq-authoring',\n label: t('buildmyiq.nav.authoring', 'Authoring'),\n path: joinPath(basePath, 'authoring'),\n icon: <PencilRuler size={20} />,\n order: 3,\n group: 'products',\n },\n {\n id: 'buildmyiq-assessments',\n label: t('buildmyiq.nav.assessments', 'Assessments'),\n path: joinPath(basePath, 'assessments'),\n icon: <ClipboardCheck size={20} />,\n order: 4,\n group: 'products',\n },\n {\n id: 'buildmyiq-submissions',\n label: t('buildmyiq.nav.submissions', 'Grading'),\n path: joinPath(basePath, 'submissions'),\n icon: <CheckSquare size={20} />,\n order: 5,\n group: 'products',\n },\n {\n id: 'buildmyiq-proctoring',\n label: t('buildmyiq.nav.proctoring', 'Proctoring'),\n path: joinPath(basePath, 'proctoring'),\n icon: <ShieldCheck size={20} />,\n order: 5,\n group: 'products',\n },\n {\n id: 'buildmyiq-tutor-review',\n label: t('buildmyiq.nav.tutorReview', 'Tutor Review'),\n path: joinPath(basePath, 'tutor-review'),\n icon: <MessageSquareText size={20} />,\n order: 5.5,\n group: 'products',\n },\n {\n id: 'buildmyiq-cohorts',\n label: t('buildmyiq.nav.cohorts', 'Cohorts'),\n path: joinPath(basePath, 'cohorts'),\n icon: <Users size={20} />,\n order: 6,\n group: 'products',\n },\n {\n id: 'buildmyiq-skills',\n label: t('buildmyiq.nav.skills', 'Skills'),\n path: joinPath(basePath, 'skills'),\n icon: <Target size={20} />,\n order: 7,\n group: 'products',\n },\n {\n id: 'buildmyiq-certificates',\n label: t('buildmyiq.nav.certificates', 'Certificates'),\n path: joinPath(basePath, 'certificates'),\n icon: <Award size={20} />,\n order: 8,\n group: 'products',\n },\n {\n id: 'buildmyiq-insights',\n label: t('buildmyiq.nav.insights', 'Insights'),\n path: joinPath(basePath, 'insights'),\n icon: <LineChart size={20} />,\n order: 9,\n group: 'products',\n },\n {\n id: 'buildmyiq-admin-copilot',\n label: t('buildmyiq.nav.adminCopilot', 'Admin Copilot'),\n path: joinPath(basePath, 'admin-copilot'),\n icon: <Sparkles size={20} />,\n order: 10,\n group: 'products',\n },\n {\n id: 'buildmyiq-integrations',\n label: t('buildmyiq.nav.integrations', 'LMS Integrations'),\n path: joinPath(basePath, 'integrations'),\n icon: <Plug size={20} />,\n order: 11,\n group: 'products',\n },\n {\n id: 'buildmyiq-migration',\n label: t('buildmyiq.nav.migration', 'Migration'),\n path: joinPath(basePath, 'migration'),\n icon: <ArrowRightLeft size={20} />,\n order: 11.5,\n group: 'products',\n },\n {\n id: 'buildmyiq-automations',\n label: t('buildmyiq.nav.automations', 'Automations'),\n path: joinPath(basePath, 'automations'),\n icon: <Workflow size={20} />,\n order: 12,\n group: 'products',\n },\n {\n id: 'buildmyiq-ai-settings',\n label: t('buildmyiq.nav.aiSettings', 'AI settings'),\n path: joinPath(basePath, 'ai-settings'),\n icon: <ShieldBan size={20} />,\n order: 13,\n group: 'products',\n },\n ];\n\n return registerNavItems(navItems);\n }, [registerNavItems, basePath, t]);\n\n useEffect(() => {\n if (!registerFooterItems) return;\n return registerFooterItems([\n {\n id: 'buildmyiq-status',\n label: t('buildmyiq.footer.ready', 'BuildMyIQ Ready'),\n type: 'status',\n section: 'left',\n order: 10,\n },\n ]);\n }, [registerFooterItems, t]);\n\n return (\n <QueryClientProvider client={queryClient}>\n <FeatureFlagProvider workspaceId={null} gateway=\"global\" defaultEnabled={true}>\n {/*\n Workspace-scoped RBAC for UI gating. The host app shells do not mount\n PermissionProvider, so the MFE owns its own scope: `usePermissions()`\n (and therefore `useBuiPermissions` / `BuiPermissionButton`) is only\n available underneath this boundary. Backend @rbac enforcement at the\n workspace gateway is unchanged — this is defence in depth.\n */}\n <PermissionProvider scopeId={props.workspaceId ?? null} gateway=\"workspace\">\n <BuildmyiqProvider {...props}>\n <BuildmyiqRoutes />\n </BuildmyiqProvider>\n </PermissionProvider>\n </FeatureFlagProvider>\n </QueryClientProvider>\n );\n};\n"],"mappings":";;;;;;;;;;;AAwCA,IAAM,IAAc,IAAI,EAAY,EAClC,gBAAgB,EACd,SAAS;CACP,WAAW,MAAS;CACpB,OAAO;CACP,sBAAsB;AACxB,EACF,EACF,CAAC,GAEY,KAAyC,MAAU;CAC9D,IAAM,EAAE,qBAAkB,wBAAqB,cAAW,QAAQ,GAC5D,EAAE,GAAG,MAAc,EAAQ,GAC3B,IAAI,GACP,GAAa,MAA6B;EACzC,IAAM,IAAQ,EAAU,CAAG;EAC3B,OAAO,MAAU,IAAM,IAAW;CACpC,GACA,CAAC,CAAS,CACZ;CA2KA,OAtKA,QAAgB;EACT,OAqJL,OAAO,EAAiB;GAlJtB;IACE,IAAI;IACJ,OAAO,EAAE,2BAA2B,WAAW;IAC/C,MAAM,EAAS,GAAU,EAAE;IAC3B,MAAM,kBAAC,GAAD,EAAiB,MAAM,GAAK,CAAA;IAClC,OAAO;IACP,OAAO;GACT;GACA;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GAAK,CAAA;IAC3B,OAAO;IACP,OAAO;GACT;GACA;IACE,IAAI;IACJ,OAAO,EAAE,4BAA4B,aAAa;IAClD,MAAM,EAAS,GAAU,aAAa;IACtC,MAAM,kBAAC,GAAD,EAAW,MAAM,GAAK,CAAA;IAC5B,OAAO;IACP,OAAO;GACT;EAGsB,CAAQ;CAClC,GAAG;EAAC;EAAkB;EAAU;CAAC,CAAC,GAElC,QAAgB;EACT,OACL,OAAO,EAAoB,CACzB;GACE,IAAI;GACJ,OAAO,EAAE,0BAA0B,iBAAiB;GACpD,MAAM;GACN,SAAS;GACT,OAAO;EACT,CACF,CAAC;CACH,GAAG,CAAC,GAAqB,CAAC,CAAC,GAGzB,kBAAC,GAAD;EAAqB,QAAQ;YAC3B,kBAAC,GAAD;GAAqB,aAAa;GAAM,SAAQ;GAAS,gBAAgB;aAQvE,kBAAC,GAAD;IAAoB,SAAS,EAAM,eAAe;IAAM,SAAQ;cAC9D,kBAAC,GAAD;KAAmB,GAAI;eACrB,kBAAC,GAAD,CAAkB,CAAA;IACD,CAAA;GACD,CAAA;EACD,CAAA;CACF,CAAA;AAEzB"}
|
|
1
|
+
{"version":3,"file":"BuildmyiqRoot.js","names":[],"sources":["../../src/buildmyiq/BuildmyiqRoot.tsx"],"sourcesContent":["/**\n * Buildmyiq Root Component\n * @module buildmyiq\n *\n * Host-contract entry point. Registers the product's sidebar nav (nine sections\n * that map 1:1 to the wspace-buildmyiq-svc `bui*` backend) and mounts the routed\n * pages inside the shared QueryClient + FeatureFlag providers.\n */\n\nimport type { FC } from 'react';\nimport { useCallback, useEffect } from 'react';\nimport { QueryClient, QueryClientProvider } from '@tanstack/react-query';\nimport { FeatureFlagProvider } from '@burdenoff/fe-libs/shared/feature-flags';\nimport { PermissionProvider } from '@burdenoff/fe-libs/shared/providers/shell';\nimport { useI18n } from '@burdenoff/fe-libs/shared/providers/shell/I18nProvider';\nimport {\n LayoutDashboard,\n BookOpen,\n GraduationCap,\n PencilRuler,\n ClipboardCheck,\n CheckSquare,\n Users,\n Target,\n Award,\n LineChart,\n Route,\n Sparkles,\n Plug,\n ArrowRightLeft,\n ShieldCheck,\n Workflow,\n MessageSquareText,\n ShieldBan,\n UserCog,\n} from 'lucide-react';\nimport { BuildmyiqProvider } from './context/BuildmyiqContext';\nimport { BuildmyiqRoutes } from './BuildmyiqRoutes';\nimport { joinPath } from './utils/navigation';\nimport type { BuildmyiqRootProps, NavItem } from './types';\n\nconst queryClient = new QueryClient({\n defaultOptions: {\n queries: {\n staleTime: 5 * 60 * 1000,\n retry: 1,\n refetchOnWindowFocus: false,\n },\n },\n});\n\nexport const BuildmyiqRoot: FC<BuildmyiqRootProps> = (props) => {\n const { registerNavItems, registerFooterItems, basePath = '/' } = props;\n const { t: translate } = useI18n();\n const t = useCallback(\n (key: string, fallback: string): string => {\n const value = translate(key);\n return value === key ? fallback : value;\n },\n [translate]\n );\n\n // Register navigation items with the shell on mount. Ids/paths/orders match\n // the app-shell static NavRegistration block so the two are a single,\n // consistent source of truth.\n useEffect(() => {\n if (!registerNavItems) return;\n\n const navItems: NavItem[] = [\n {\n id: 'buildmyiq-dashboard',\n label: t('buildmyiq.nav.dashboard', 'Dashboard'),\n path: joinPath(basePath, ''),\n icon: <LayoutDashboard size={20} />,\n order: 0,\n group: 'products',\n },\n {\n id: 'buildmyiq-catalog',\n label: t('buildmyiq.nav.catalog', 'Catalog'),\n path: joinPath(basePath, 'catalog'),\n icon: <BookOpen size={20} />,\n order: 1,\n group: 'products',\n },\n {\n id: 'buildmyiq-learning',\n label: t('buildmyiq.nav.learning', 'My Learning'),\n path: joinPath(basePath, 'learning'),\n icon: <GraduationCap size={20} />,\n order: 2,\n group: 'products',\n },\n {\n id: 'buildmyiq-paths',\n label: t('buildmyiq.nav.paths', 'Journeys'),\n path: joinPath(basePath, 'paths'),\n icon: <Route size={20} />,\n order: 2.5,\n group: 'products',\n },\n {\n id: 'buildmyiq-authoring',\n label: t('buildmyiq.nav.authoring', 'Authoring'),\n path: joinPath(basePath, 'authoring'),\n icon: <PencilRuler size={20} />,\n order: 3,\n group: 'products',\n },\n {\n id: 'buildmyiq-assessments',\n label: t('buildmyiq.nav.assessments', 'Assessments'),\n path: joinPath(basePath, 'assessments'),\n icon: <ClipboardCheck size={20} />,\n order: 4,\n group: 'products',\n },\n {\n id: 'buildmyiq-submissions',\n label: t('buildmyiq.nav.submissions', 'Grading'),\n path: joinPath(basePath, 'submissions'),\n icon: <CheckSquare size={20} />,\n order: 5,\n group: 'products',\n },\n {\n id: 'buildmyiq-proctoring',\n label: t('buildmyiq.nav.proctoring', 'Proctoring'),\n path: joinPath(basePath, 'proctoring'),\n icon: <ShieldCheck size={20} />,\n order: 5,\n group: 'products',\n },\n {\n id: 'buildmyiq-tutor-review',\n label: t('buildmyiq.nav.tutorReview', 'Tutor Review'),\n path: joinPath(basePath, 'tutor-review'),\n icon: <MessageSquareText size={20} />,\n order: 5.5,\n group: 'products',\n },\n {\n id: 'buildmyiq-cohorts',\n label: t('buildmyiq.nav.cohorts', 'Cohorts'),\n path: joinPath(basePath, 'cohorts'),\n icon: <Users size={20} />,\n order: 6,\n group: 'products',\n },\n {\n id: 'buildmyiq-skills',\n label: t('buildmyiq.nav.skills', 'Skills'),\n path: joinPath(basePath, 'skills'),\n icon: <Target size={20} />,\n order: 7,\n group: 'products',\n },\n {\n id: 'buildmyiq-certificates',\n label: t('buildmyiq.nav.certificates', 'Certificates'),\n path: joinPath(basePath, 'certificates'),\n icon: <Award size={20} />,\n order: 8,\n group: 'products',\n },\n {\n id: 'buildmyiq-insights',\n label: t('buildmyiq.nav.insights', 'Insights'),\n path: joinPath(basePath, 'insights'),\n icon: <LineChart size={20} />,\n order: 9,\n group: 'products',\n },\n {\n id: 'buildmyiq-admin-copilot',\n label: t('buildmyiq.nav.adminCopilot', 'Admin Copilot'),\n path: joinPath(basePath, 'admin-copilot'),\n icon: <Sparkles size={20} />,\n order: 10,\n group: 'products',\n },\n {\n id: 'buildmyiq-integrations',\n label: t('buildmyiq.nav.integrations', 'LMS Integrations'),\n path: joinPath(basePath, 'integrations'),\n icon: <Plug size={20} />,\n order: 11,\n group: 'products',\n },\n {\n id: 'buildmyiq-migration',\n label: t('buildmyiq.nav.migration', 'Migration'),\n path: joinPath(basePath, 'migration'),\n icon: <ArrowRightLeft size={20} />,\n order: 11.5,\n group: 'products',\n },\n {\n id: 'buildmyiq-automations',\n label: t('buildmyiq.nav.automations', 'Automations'),\n path: joinPath(basePath, 'automations'),\n icon: <Workflow size={20} />,\n order: 12,\n group: 'products',\n },\n {\n id: 'buildmyiq-ai-settings',\n label: t('buildmyiq.nav.aiSettings', 'AI settings'),\n path: joinPath(basePath, 'ai-settings'),\n icon: <ShieldBan size={20} />,\n order: 13,\n group: 'products',\n },\n {\n id: 'buildmyiq-provisioning',\n label: t('buildmyiq.nav.provisioning', 'User provisioning'),\n path: joinPath(basePath, 'provisioning'),\n icon: <UserCog size={20} />,\n order: 14,\n group: 'products',\n },\n ];\n\n return registerNavItems(navItems);\n }, [registerNavItems, basePath, t]);\n\n useEffect(() => {\n if (!registerFooterItems) return;\n return registerFooterItems([\n {\n id: 'buildmyiq-status',\n label: t('buildmyiq.footer.ready', 'BuildMyIQ Ready'),\n type: 'status',\n section: 'left',\n order: 10,\n },\n ]);\n }, [registerFooterItems, t]);\n\n return (\n <QueryClientProvider client={queryClient}>\n <FeatureFlagProvider workspaceId={null} gateway=\"global\" defaultEnabled={true}>\n {/*\n Workspace-scoped RBAC for UI gating. The host app shells do not mount\n PermissionProvider, so the MFE owns its own scope: `usePermissions()`\n (and therefore `useBuiPermissions` / `BuiPermissionButton`) is only\n available underneath this boundary. Backend @rbac enforcement at the\n workspace gateway is unchanged — this is defence in depth.\n */}\n <PermissionProvider scopeId={props.workspaceId ?? null} gateway=\"workspace\">\n <BuildmyiqProvider {...props}>\n <BuildmyiqRoutes />\n </BuildmyiqProvider>\n </PermissionProvider>\n </FeatureFlagProvider>\n </QueryClientProvider>\n );\n};\n"],"mappings":";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,SAAQ;GAAS,gBAAgB;aAQvE,kBAAC,GAAD;IAAoB,SAAS,EAAM,eAAe;IAAM,SAAQ;cAC9D,kBAAC,GAAD;KAAmB,GAAI;eACrB,kBAAC,GAAD,CAAkB,CAAA;IACD,CAAA;GACD,CAAA;EACD,CAAA;CACF,CAAA;AAEzB"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"BuildmyiqRoutes.d.ts","sourceRoot":"","sources":["../../src/buildmyiq/BuildmyiqRoutes.tsx"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAEH,OAAc,EAAE,KAAK,EAAE,EAAkB,MAAM,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"BuildmyiqRoutes.d.ts","sourceRoot":"","sources":["../../src/buildmyiq/BuildmyiqRoutes.tsx"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAEH,OAAc,EAAE,KAAK,EAAE,EAAkB,MAAM,OAAO,CAAC;AAwJvD,eAAO,MAAM,eAAe,EAAE,EAsG7B,CAAC"}
|
|
@@ -8,130 +8,134 @@ import { Navigate as o, Route as s, Routes as c, useLocation as l } from "react-
|
|
|
8
8
|
import { jsx as u, jsxs as d } from "react/jsx-runtime";
|
|
9
9
|
import { Spinner as f } from "@burdenoff/fe-libs/ui";
|
|
10
10
|
//#region src/buildmyiq/BuildmyiqRoutes.tsx
|
|
11
|
-
var p = i(() => import("./pages/catalog/CatalogPage.js").then((e) => ({ default: e.CatalogPage }))), m = i(() => import("./pages/catalog/CourseDetailPage.js").then((e) => ({ default: e.CourseDetailPage }))), h = i(() => import("./pages/learning/MyLearningPage.js").then((e) => ({ default: e.MyLearningPage }))), g = i(() => import("./pages/learning/LessonPlayerPage.js").then((e) => ({ default: e.LessonPlayerPage }))), _ = i(() => import("./pages/authoring/AuthoringPage.js").then((e) => ({ default: e.AuthoringPage }))), v = i(() => import("./pages/authoring/CourseBuilderPage.js").then((e) => ({ default: e.CourseBuilderPage }))), y = i(() => import("./pages/assessments/AssessmentsPage.js").then((e) => ({ default: e.AssessmentsPage }))), b = i(() => import("./pages/assessments/AssessmentDetailPage.js").then((e) => ({ default: e.AssessmentDetailPage }))), x = i(() => import("./pages/assessments/TakeAssessmentPage.js").then((e) => ({ default: e.TakeAssessmentPage }))), S = i(() => import("./pages/insights/InsightsPage.js").then((e) => ({ default: e.InsightsPage }))), C = i(() => import("./pages/paths/PathsPage.js").then((e) => ({ default: e.PathsPage }))), w = i(() => import("./pages/submissions/SubmissionsPage.js").then((e) => ({ default: e.SubmissionsPage }))), T = i(() => import("./pages/submissions/BulkGradingPage.js").then((e) => ({ default: e.BulkGradingPage }))), E = i(() => import("./pages/proctoring/ProctoringReviewPage.js").then((e) => ({ default: e.ProctoringReviewPage }))), D = i(() => import("./pages/tutorReview/TutorReviewPage.js").then((e) => ({ default: e.TutorReviewPage }))), O = i(() => import("./pages/cohorts/CohortsPage.js").then((e) => ({ default: e.CohortsPage }))), k = i(() => import("./pages/skills/SkillsPage.js").then((e) => ({ default: e.SkillsPage }))), A = i(() => import("./pages/certificates/CertificatesPage.js").then((e) => ({ default: e.CertificatesPage }))), j = i(() => import("./pages/copilot/AdminCopilotPage.js").then((e) => ({ default: e.AdminCopilotPage }))), M = i(() => import("./pages/lti/LtiLaunchPage.js").then((e) => ({ default: e.LtiLaunchPage }))), N = i(() => import("./pages/integrations/LtiPlatformsPage.js").then((e) => ({ default: e.LtiPlatformsPage }))), P = i(() => import("./pages/automations/AutomationsPage.js").then((e) => ({ default: e.AutomationsPage }))), F = i(() => import("./pages/aiSettings/AiSettingsPage.js").then((e) => ({ default: e.AiSettingsPage }))), I = i(() => import("./pages/migration/MigrationCenterPage.js").then((e) => ({ default: e.MigrationCenterPage }))),
|
|
11
|
+
var p = i(() => import("./pages/catalog/CatalogPage.js").then((e) => ({ default: e.CatalogPage }))), m = i(() => import("./pages/catalog/CourseDetailPage.js").then((e) => ({ default: e.CourseDetailPage }))), h = i(() => import("./pages/learning/MyLearningPage.js").then((e) => ({ default: e.MyLearningPage }))), g = i(() => import("./pages/learning/LessonPlayerPage.js").then((e) => ({ default: e.LessonPlayerPage }))), _ = i(() => import("./pages/authoring/AuthoringPage.js").then((e) => ({ default: e.AuthoringPage }))), v = i(() => import("./pages/authoring/CourseBuilderPage.js").then((e) => ({ default: e.CourseBuilderPage }))), y = i(() => import("./pages/assessments/AssessmentsPage.js").then((e) => ({ default: e.AssessmentsPage }))), b = i(() => import("./pages/assessments/AssessmentDetailPage.js").then((e) => ({ default: e.AssessmentDetailPage }))), x = i(() => import("./pages/assessments/TakeAssessmentPage.js").then((e) => ({ default: e.TakeAssessmentPage }))), S = i(() => import("./pages/insights/InsightsPage.js").then((e) => ({ default: e.InsightsPage }))), C = i(() => import("./pages/paths/PathsPage.js").then((e) => ({ default: e.PathsPage }))), w = i(() => import("./pages/submissions/SubmissionsPage.js").then((e) => ({ default: e.SubmissionsPage }))), T = i(() => import("./pages/submissions/BulkGradingPage.js").then((e) => ({ default: e.BulkGradingPage }))), E = i(() => import("./pages/proctoring/ProctoringReviewPage.js").then((e) => ({ default: e.ProctoringReviewPage }))), D = i(() => import("./pages/tutorReview/TutorReviewPage.js").then((e) => ({ default: e.TutorReviewPage }))), O = i(() => import("./pages/cohorts/CohortsPage.js").then((e) => ({ default: e.CohortsPage }))), k = i(() => import("./pages/skills/SkillsPage.js").then((e) => ({ default: e.SkillsPage }))), A = i(() => import("./pages/certificates/CertificatesPage.js").then((e) => ({ default: e.CertificatesPage }))), j = i(() => import("./pages/copilot/AdminCopilotPage.js").then((e) => ({ default: e.AdminCopilotPage }))), M = i(() => import("./pages/lti/LtiLaunchPage.js").then((e) => ({ default: e.LtiLaunchPage }))), N = i(() => import("./pages/integrations/LtiPlatformsPage.js").then((e) => ({ default: e.LtiPlatformsPage }))), P = i(() => import("./pages/automations/AutomationsPage.js").then((e) => ({ default: e.AutomationsPage }))), F = i(() => import("./pages/aiSettings/AiSettingsPage.js").then((e) => ({ default: e.AiSettingsPage }))), I = i(() => import("./pages/provisioning/ProvisioningPage.js").then((e) => ({ default: e.ProvisioningPage }))), L = i(() => import("./pages/migration/MigrationCenterPage.js").then((e) => ({ default: e.MigrationCenterPage }))), R = () => /* @__PURE__ */ u("div", {
|
|
12
12
|
className: "flex min-h-[400px] items-center justify-center",
|
|
13
13
|
children: /* @__PURE__ */ u(f, { size: "lg" })
|
|
14
14
|
});
|
|
15
|
-
function
|
|
15
|
+
function z() {
|
|
16
16
|
return /* @__PURE__ */ u("div", {
|
|
17
17
|
className: "flex h-full min-h-[200px] items-center justify-center text-sm text-text-secondary",
|
|
18
18
|
children: t()("buildmyiq.pages.featureDisabled", "This feature is currently disabled. You can enable it from Feature Previews.")
|
|
19
19
|
});
|
|
20
20
|
}
|
|
21
|
-
function
|
|
21
|
+
function B(e, t, n = !0) {
|
|
22
22
|
return /* @__PURE__ */ u(a, {
|
|
23
23
|
flag: e,
|
|
24
24
|
defaultValue: n,
|
|
25
|
-
fallback: /* @__PURE__ */ u(
|
|
25
|
+
fallback: /* @__PURE__ */ u(z, {}),
|
|
26
26
|
children: t
|
|
27
27
|
});
|
|
28
28
|
}
|
|
29
|
-
var
|
|
29
|
+
var V = () => {
|
|
30
30
|
let { basePath: t, isStandalone: i } = e(), a = l(), f = t === "/" ? "" : (t ?? "").replace(/\/$/, "");
|
|
31
31
|
return f && !i && !(a.pathname === f || a.pathname.startsWith(f + "/")) ? null : /* @__PURE__ */ u("div", {
|
|
32
32
|
className: "flex min-h-full flex-col",
|
|
33
33
|
children: /* @__PURE__ */ u(r, {
|
|
34
|
-
fallback: /* @__PURE__ */ u(
|
|
34
|
+
fallback: /* @__PURE__ */ u(R, {}),
|
|
35
35
|
children: /* @__PURE__ */ d(c, { children: [
|
|
36
36
|
/* @__PURE__ */ u(s, {
|
|
37
37
|
index: !0,
|
|
38
|
-
element:
|
|
38
|
+
element: B("buildmyiq.overview", /* @__PURE__ */ u(n, {}))
|
|
39
39
|
}),
|
|
40
40
|
/* @__PURE__ */ u(s, {
|
|
41
41
|
path: "catalog",
|
|
42
|
-
element:
|
|
42
|
+
element: B("buildmyiq.catalog", /* @__PURE__ */ u(p, {}))
|
|
43
43
|
}),
|
|
44
44
|
/* @__PURE__ */ u(s, {
|
|
45
45
|
path: "catalog/:courseId",
|
|
46
|
-
element:
|
|
46
|
+
element: B("buildmyiq.catalog", /* @__PURE__ */ u(m, {}))
|
|
47
47
|
}),
|
|
48
48
|
/* @__PURE__ */ u(s, {
|
|
49
49
|
path: "learning",
|
|
50
|
-
element:
|
|
50
|
+
element: B("buildmyiq.learning", /* @__PURE__ */ u(h, {}))
|
|
51
51
|
}),
|
|
52
52
|
/* @__PURE__ */ u(s, {
|
|
53
53
|
path: "learning/:enrollmentId",
|
|
54
|
-
element:
|
|
54
|
+
element: B("buildmyiq.learning", /* @__PURE__ */ u(g, {}))
|
|
55
55
|
}),
|
|
56
56
|
/* @__PURE__ */ u(s, {
|
|
57
57
|
path: "paths",
|
|
58
|
-
element:
|
|
58
|
+
element: B("buildmyiq.paths", /* @__PURE__ */ u(C, {}))
|
|
59
59
|
}),
|
|
60
60
|
/* @__PURE__ */ u(s, {
|
|
61
61
|
path: "authoring",
|
|
62
|
-
element:
|
|
62
|
+
element: B("buildmyiq.authoring", /* @__PURE__ */ u(_, {}))
|
|
63
63
|
}),
|
|
64
64
|
/* @__PURE__ */ u(s, {
|
|
65
65
|
path: "authoring/:courseId",
|
|
66
|
-
element:
|
|
66
|
+
element: B("buildmyiq.authoring", /* @__PURE__ */ u(v, {}))
|
|
67
67
|
}),
|
|
68
68
|
/* @__PURE__ */ u(s, {
|
|
69
69
|
path: "assessments",
|
|
70
|
-
element:
|
|
70
|
+
element: B("buildmyiq.assessments", /* @__PURE__ */ u(y, {}))
|
|
71
71
|
}),
|
|
72
72
|
/* @__PURE__ */ u(s, {
|
|
73
73
|
path: "assessments/:assessmentId",
|
|
74
|
-
element:
|
|
74
|
+
element: B("buildmyiq.assessments", /* @__PURE__ */ u(b, {}))
|
|
75
75
|
}),
|
|
76
76
|
/* @__PURE__ */ u(s, {
|
|
77
77
|
path: "assessments/:assessmentId/take",
|
|
78
|
-
element:
|
|
78
|
+
element: B("buildmyiq.assessments", /* @__PURE__ */ u(x, {}))
|
|
79
79
|
}),
|
|
80
80
|
/* @__PURE__ */ u(s, {
|
|
81
81
|
path: "insights",
|
|
82
|
-
element:
|
|
82
|
+
element: B("buildmyiq.insights", /* @__PURE__ */ u(S, {}))
|
|
83
83
|
}),
|
|
84
84
|
/* @__PURE__ */ u(s, {
|
|
85
85
|
path: "submissions",
|
|
86
|
-
element:
|
|
86
|
+
element: B("buildmyiq.submissions", /* @__PURE__ */ u(w, {}))
|
|
87
87
|
}),
|
|
88
88
|
/* @__PURE__ */ u(s, {
|
|
89
89
|
path: "submissions/bulk",
|
|
90
|
-
element:
|
|
90
|
+
element: B("buildmyiq.submissions", /* @__PURE__ */ u(T, {}))
|
|
91
91
|
}),
|
|
92
92
|
/* @__PURE__ */ u(s, {
|
|
93
93
|
path: "submissions/:submissionId",
|
|
94
|
-
element:
|
|
94
|
+
element: B("buildmyiq.submissions", /* @__PURE__ */ u(w, {}))
|
|
95
95
|
}),
|
|
96
96
|
/* @__PURE__ */ u(s, {
|
|
97
97
|
path: "proctoring",
|
|
98
|
-
element:
|
|
98
|
+
element: B("buildmyiq.proctoring", /* @__PURE__ */ u(E, {}))
|
|
99
99
|
}),
|
|
100
100
|
/* @__PURE__ */ u(s, {
|
|
101
101
|
path: "tutor-review",
|
|
102
|
-
element:
|
|
102
|
+
element: B("buildmyiq.tutor-review", /* @__PURE__ */ u(D, {}))
|
|
103
103
|
}),
|
|
104
104
|
/* @__PURE__ */ u(s, {
|
|
105
105
|
path: "cohorts",
|
|
106
|
-
element:
|
|
106
|
+
element: B("buildmyiq.cohorts", /* @__PURE__ */ u(O, {}))
|
|
107
107
|
}),
|
|
108
108
|
/* @__PURE__ */ u(s, {
|
|
109
109
|
path: "skills",
|
|
110
|
-
element:
|
|
110
|
+
element: B("buildmyiq.skills", /* @__PURE__ */ u(k, {}))
|
|
111
111
|
}),
|
|
112
112
|
/* @__PURE__ */ u(s, {
|
|
113
113
|
path: "certificates",
|
|
114
|
-
element:
|
|
114
|
+
element: B("buildmyiq.certificates", /* @__PURE__ */ u(A, {}))
|
|
115
115
|
}),
|
|
116
116
|
/* @__PURE__ */ u(s, {
|
|
117
117
|
path: "admin-copilot",
|
|
118
|
-
element:
|
|
118
|
+
element: B("buildmyiq.admin-copilot", /* @__PURE__ */ u(j, {}))
|
|
119
119
|
}),
|
|
120
120
|
/* @__PURE__ */ u(s, {
|
|
121
121
|
path: "integrations",
|
|
122
|
-
element:
|
|
122
|
+
element: B("buildmyiq.integrations", /* @__PURE__ */ u(N, {}))
|
|
123
123
|
}),
|
|
124
124
|
/* @__PURE__ */ u(s, {
|
|
125
125
|
path: "migration",
|
|
126
|
-
element:
|
|
126
|
+
element: B("buildmyiq.migration", /* @__PURE__ */ u(L, {}))
|
|
127
127
|
}),
|
|
128
128
|
/* @__PURE__ */ u(s, {
|
|
129
129
|
path: "automations",
|
|
130
|
-
element:
|
|
130
|
+
element: B("buildmyiq.automations", /* @__PURE__ */ u(P, {}))
|
|
131
131
|
}),
|
|
132
132
|
/* @__PURE__ */ u(s, {
|
|
133
133
|
path: "ai-settings",
|
|
134
|
-
element:
|
|
134
|
+
element: B("buildmyiq.ai-settings", /* @__PURE__ */ u(F, {}))
|
|
135
|
+
}),
|
|
136
|
+
/* @__PURE__ */ u(s, {
|
|
137
|
+
path: "provisioning",
|
|
138
|
+
element: B("buildmyiq.provisioning", /* @__PURE__ */ u(I, {}))
|
|
135
139
|
}),
|
|
136
140
|
/* @__PURE__ */ u(s, {
|
|
137
141
|
path: "lti/launch/:ticketId",
|
|
@@ -149,6 +153,6 @@ var B = () => {
|
|
|
149
153
|
});
|
|
150
154
|
};
|
|
151
155
|
//#endregion
|
|
152
|
-
export {
|
|
156
|
+
export { V as BuildmyiqRoutes };
|
|
153
157
|
|
|
154
158
|
//# sourceMappingURL=BuildmyiqRoutes.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"BuildmyiqRoutes.js","names":[],"sources":["../../src/buildmyiq/BuildmyiqRoutes.tsx"],"sourcesContent":["/**\n * Buildmyiq Routes\n * @module buildmyiq\n *\n * Domain routes. The dashboard is eager-loaded (primary landing); all other\n * pages are lazy-loaded. Every route maps to a real `bui*` backend capability.\n * All product routes are gated by feature flags that default to enabled.\n */\n\nimport React, { type FC, lazy, Suspense } from 'react';\nimport { Routes, Route, Navigate, useLocation } from 'react-router';\nimport { FeatureGate } from '@burdenoff/fe-libs/shared/feature-flags';\nimport { Spinner } from '@burdenoff/fe-libs/ui';\nimport { useBuildmyiq } from './context';\nimport { useTr } from './shared/hooks/useTr';\n\n// Eager — primary landing\nimport { DashboardPage } from './pages/DashboardPage';\n\n// Catalog (learner-facing course discovery + detail + enrol)\nconst CatalogPage = lazy(() =>\n import('./pages/catalog/CatalogPage').then((m) => ({ default: m.CatalogPage }))\n);\nconst CourseDetailPage = lazy(() =>\n import('./pages/catalog/CourseDetailPage').then((m) => ({ default: m.CourseDetailPage }))\n);\n\n// My Learning (enrollments + progress + lesson player)\nconst MyLearningPage = lazy(() =>\n import('./pages/learning/MyLearningPage').then((m) => ({ default: m.MyLearningPage }))\n);\nconst LessonPlayerPage = lazy(() =>\n import('./pages/learning/LessonPlayerPage').then((m) => ({ default: m.LessonPlayerPage }))\n);\n\n// Authoring (instructor course management + builder)\nconst AuthoringPage = lazy(() =>\n import('./pages/authoring/AuthoringPage').then((m) => ({ default: m.AuthoringPage }))\n);\nconst CourseBuilderPage = lazy(() =>\n import('./pages/authoring/CourseBuilderPage').then((m) => ({ default: m.CourseBuilderPage }))\n);\n\n// Assessments (list + builder/questions/detail)\nconst AssessmentsPage = lazy(() =>\n import('./pages/assessments/AssessmentsPage').then((m) => ({ default: m.AssessmentsPage }))\n);\nconst AssessmentDetailPage = lazy(() =>\n import('./pages/assessments/AssessmentDetailPage').then((m) => ({\n default: m.AssessmentDetailPage,\n }))\n);\n// Learner-facing: take a published assessment (answer + submit)\nconst TakeAssessmentPage = lazy(() =>\n import('./pages/assessments/TakeAssessmentPage').then((m) => ({ default: m.TakeAssessmentPage }))\n);\n\n// Insights (educator analytics, derived from real data)\nconst InsightsPage = lazy(() =>\n import('./pages/insights/InsightsPage').then((m) => ({ default: m.InsightsPage }))\n);\n\n// Skill Journeys (derived guided paths)\nconst PathsPage = lazy(() =>\n import('./pages/paths/PathsPage').then((m) => ({ default: m.PathsPage }))\n);\n\n// Grading (submissions queue)\nconst SubmissionsPage = lazy(() =>\n import('./pages/submissions/SubmissionsPage').then((m) => ({ default: m.SubmissionsPage }))\n);\nconst BulkGradingPage = lazy(() =>\n import('./pages/submissions/BulkGradingPage').then((m) => ({ default: m.BulkGradingPage }))\n);\n\n// Proctoring review queue — high-stakes exam identity checks (BOFF-4431)\nconst ProctoringReviewPage = lazy(() =>\n import('./pages/proctoring/ProctoringReviewPage').then((m) => ({\n default: m.ProctoringReviewPage,\n }))\n);\n\n// Educator review of AI tutor answers (BOFF-9663)\nconst TutorReviewPage = lazy(() =>\n import('./pages/tutorReview/TutorReviewPage').then((m) => ({ default: m.TutorReviewPage }))\n);\n\n// Cohorts\nconst CohortsPage = lazy(() =>\n import('./pages/cohorts/CohortsPage').then((m) => ({ default: m.CohortsPage }))\n);\n\n// Skills taxonomy\nconst SkillsPage = lazy(() =>\n import('./pages/skills/SkillsPage').then((m) => ({ default: m.SkillsPage }))\n);\n\n// Certificates\nconst CertificatesPage = lazy(() =>\n import('./pages/certificates/CertificatesPage').then((m) => ({ default: m.CertificatesPage }))\n);\n\n// AI Admin Copilot (BOFF-4434) — read-only workspace Q&A\nconst AdminCopilotPage = lazy(() =>\n import('./pages/copilot/AdminCopilotPage').then((m) => ({ default: m.AdminCopilotPage }))\n);\n\n// LMS launch handoff — where a validated LTI 1.3 launch lands (BOFF-9680)\nconst LtiLaunchPage = lazy(() =>\n import('./pages/lti/LtiLaunchPage').then((m) => ({ default: m.LtiLaunchPage }))\n);\n// LMS integrations — LTI 1.3 Advantage platform registry (BOFF-4419)\nconst LtiPlatformsPage = lazy(() =>\n import('./pages/integrations/LtiPlatformsPage').then((m) => ({ default: m.LtiPlatformsPage }))\n);\n\n// L&D workflow automation via FluidGrids (BOFF-9688)\nconst AutomationsPage = lazy(() =>\n import('./pages/automations/AutomationsPage').then((m) => ({ default: m.AutomationsPage }))\n);\n\n// Workspace AI content controls (BOFF-9689)\nconst AiSettingsPage = lazy(() =>\n import('./pages/aiSettings/AiSettingsPage').then((m) => ({ default: m.AiSettingsPage }))\n);\n\n// Course migration — Common Cartridge import, open-standards export (BOFF-4437)\nconst MigrationCenterPage = lazy(() =>\n import('./pages/migration/MigrationCenterPage').then((m) => ({ default: m.MigrationCenterPage }))\n);\n\nconst PageLoader: FC = () => (\n <div className=\"flex min-h-[400px] items-center justify-center\">\n <Spinner size=\"lg\" />\n </div>\n);\n\nfunction FeatureDisabledFallback() {\n const tr = useTr();\n return (\n <div className=\"flex h-full min-h-[200px] items-center justify-center text-sm text-text-secondary\">\n {tr(\n 'buildmyiq.pages.featureDisabled',\n 'This feature is currently disabled. You can enable it from Feature Previews.'\n )}\n </div>\n );\n}\n\nfunction gated(flag: string, element: React.ReactNode, defaultValue = true): React.ReactElement {\n return (\n <FeatureGate flag={flag} defaultValue={defaultValue} fallback={<FeatureDisabledFallback />}>\n {element}\n </FeatureGate>\n );\n}\n\nexport const BuildmyiqRoutes: FC = () => {\n const { basePath, isStandalone } = useBuildmyiq();\n const location = useLocation();\n\n const normalizedBasePath = basePath === '/' ? '' : (basePath ?? '').replace(/\\/$/, '');\n\n // Guard: only render if the current path matches basePath (integrated mode).\n if (normalizedBasePath && !isStandalone) {\n const pathMatches =\n location.pathname === normalizedBasePath ||\n location.pathname.startsWith(normalizedBasePath + '/');\n if (!pathMatches) {\n return null;\n }\n }\n\n return (\n <div className=\"flex min-h-full flex-col\">\n <Suspense fallback={<PageLoader />}>\n <Routes>\n <Route index element={gated('buildmyiq.overview', <DashboardPage />)} />\n\n <Route path=\"catalog\" element={gated('buildmyiq.catalog', <CatalogPage />)} />\n <Route\n path=\"catalog/:courseId\"\n element={gated('buildmyiq.catalog', <CourseDetailPage />)}\n />\n\n <Route path=\"learning\" element={gated('buildmyiq.learning', <MyLearningPage />)} />\n <Route\n path=\"learning/:enrollmentId\"\n element={gated('buildmyiq.learning', <LessonPlayerPage />)}\n />\n\n <Route path=\"paths\" element={gated('buildmyiq.paths', <PathsPage />)} />\n\n <Route path=\"authoring\" element={gated('buildmyiq.authoring', <AuthoringPage />)} />\n <Route\n path=\"authoring/:courseId\"\n element={gated('buildmyiq.authoring', <CourseBuilderPage />)}\n />\n\n <Route path=\"assessments\" element={gated('buildmyiq.assessments', <AssessmentsPage />)} />\n <Route\n path=\"assessments/:assessmentId\"\n element={gated('buildmyiq.assessments', <AssessmentDetailPage />)}\n />\n <Route\n path=\"assessments/:assessmentId/take\"\n element={gated('buildmyiq.assessments', <TakeAssessmentPage />)}\n />\n\n <Route path=\"insights\" element={gated('buildmyiq.insights', <InsightsPage />)} />\n\n <Route path=\"submissions\" element={gated('buildmyiq.submissions', <SubmissionsPage />)} />\n <Route\n path=\"submissions/bulk\"\n element={gated('buildmyiq.submissions', <BulkGradingPage />)}\n />\n <Route\n path=\"submissions/:submissionId\"\n element={gated('buildmyiq.submissions', <SubmissionsPage />)}\n />\n <Route\n path=\"proctoring\"\n element={gated('buildmyiq.proctoring', <ProctoringReviewPage />)}\n />\n <Route\n path=\"tutor-review\"\n element={gated('buildmyiq.tutor-review', <TutorReviewPage />)}\n />\n <Route path=\"cohorts\" element={gated('buildmyiq.cohorts', <CohortsPage />)} />\n <Route path=\"skills\" element={gated('buildmyiq.skills', <SkillsPage />)} />\n <Route\n path=\"certificates\"\n element={gated('buildmyiq.certificates', <CertificatesPage />)}\n />\n\n <Route\n path=\"admin-copilot\"\n element={gated('buildmyiq.admin-copilot', <AdminCopilotPage />)}\n />\n <Route\n path=\"integrations\"\n element={gated('buildmyiq.integrations', <LtiPlatformsPage />)}\n />\n <Route path=\"migration\" element={gated('buildmyiq.migration', <MigrationCenterPage />)} />\n <Route path=\"automations\" element={gated('buildmyiq.automations', <AutomationsPage />)} />\n <Route path=\"ai-settings\" element={gated('buildmyiq.ai-settings', <AiSettingsPage />)} />\n {/* Not feature-gated: learners arrive here from their LMS, and the\n launch only exists because a workspace admin registered it. */}\n <Route path=\"lti/launch/:ticketId\" element={<LtiLaunchPage />} />\n\n <Route path=\"*\" element={<Navigate to={normalizedBasePath || '/'} replace />} />\n </Routes>\n </Suspense>\n </div>\n );\n};\n"],"mappings":";;;;;;;;;;AAoBA,IAAM,IAAc,QAClB,OAAO,kCAA+B,MAAM,OAAO,EAAE,SAAS,EAAE,YAAY,EAAE,CAChF,GACM,IAAmB,QACvB,OAAO,uCAAoC,MAAM,OAAO,EAAE,SAAS,EAAE,iBAAiB,EAAE,CAC1F,GAGM,IAAiB,QACrB,OAAO,sCAAmC,MAAM,OAAO,EAAE,SAAS,EAAE,eAAe,EAAE,CACvF,GACM,IAAmB,QACvB,OAAO,wCAAqC,MAAM,OAAO,EAAE,SAAS,EAAE,iBAAiB,EAAE,CAC3F,GAGM,IAAgB,QACpB,OAAO,sCAAmC,MAAM,OAAO,EAAE,SAAS,EAAE,cAAc,EAAE,CACtF,GACM,IAAoB,QACxB,OAAO,0CAAuC,MAAM,OAAO,EAAE,SAAS,EAAE,kBAAkB,EAAE,CAC9F,GAGM,IAAkB,QACtB,OAAO,0CAAuC,MAAM,OAAO,EAAE,SAAS,EAAE,gBAAgB,EAAE,CAC5F,GACM,IAAuB,QAC3B,OAAO,+CAA4C,MAAM,OAAO,EAC9D,SAAS,EAAE,qBACb,EAAE,CACJ,GAEM,IAAqB,QACzB,OAAO,6CAA0C,MAAM,OAAO,EAAE,SAAS,EAAE,mBAAmB,EAAE,CAClG,GAGM,IAAe,QACnB,OAAO,oCAAiC,MAAM,OAAO,EAAE,SAAS,EAAE,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CAAA;IAC7E,kBAAC,GAAD;KAAO,MAAK;KAAS,SAAS,EAAM,oBAAoB,kBAAC,GAAD,CAAa,CAAA,CAAC;IAAI,CAAA;IAC1E,kBAAC,GAAD;KACE,MAAK;KACL,SAAS,EAAM,0BAA0B,kBAAC,GAAD,CAAmB,CAAA,CAAC;IAC9D,CAAA;IAED,kBAAC,GAAD;KACE,MAAK;KACL,SAAS,EAAM,2BAA2B,kBAAC,GAAD,CAAmB,CAAA,CAAC;IAC/D,CAAA;IACD,kBAAC,GAAD;KACE,MAAK;KACL,SAAS,EAAM,0BAA0B,kBAAC,GAAD,CAAmB,CAAA,CAAC;IAC9D,CAAA;IACD,kBAAC,GAAD;KAAO,MAAK;KAAY,SAAS,EAAM,uBAAuB,kBAAC,GAAD,CAAsB,CAAA,CAAC;IAAI,CAAA;IACzF,kBAAC,GAAD;KAAO,MAAK;KAAc,SAAS,EAAM,yBAAyB,kBAAC,GAAD,CAAkB,CAAA,CAAC;IAAI,CAAA;IACzF,kBAAC,GAAD;KAAO,MAAK;KAAc,SAAS,EAAM,yBAAyB,kBAAC,GAAD,CAAiB,CAAA,CAAC;IAAI,CAAA;IAGxF,kBAAC,GAAD;KAAO,MAAK;KAAuB,SAAS,kBAAC,GAAD,CAAgB,CAAA;IAAI,CAAA;IAEhE,kBAAC,GAAD;KAAO,MAAK;KAAI,SAAS,kBAAC,GAAD;MAAU,IAAI,KAAsB;MAAK,SAAA;KAAS,CAAA;IAAI,CAAA;GACzE,EAAA,CAAA;EACA,CAAA;CACP,CAAA;AAET"}
|
|
1
|
+
{"version":3,"file":"BuildmyiqRoutes.js","names":[],"sources":["../../src/buildmyiq/BuildmyiqRoutes.tsx"],"sourcesContent":["/**\n * Buildmyiq Routes\n * @module buildmyiq\n *\n * Domain routes. The dashboard is eager-loaded (primary landing); all other\n * pages are lazy-loaded. Every route maps to a real `bui*` backend capability.\n * All product routes are gated by feature flags that default to enabled.\n */\n\nimport React, { type FC, lazy, Suspense } from 'react';\nimport { Routes, Route, Navigate, useLocation } from 'react-router';\nimport { FeatureGate } from '@burdenoff/fe-libs/shared/feature-flags';\nimport { Spinner } from '@burdenoff/fe-libs/ui';\nimport { useBuildmyiq } from './context';\nimport { useTr } from './shared/hooks/useTr';\n\n// Eager — primary landing\nimport { DashboardPage } from './pages/DashboardPage';\n\n// Catalog (learner-facing course discovery + detail + enrol)\nconst CatalogPage = lazy(() =>\n import('./pages/catalog/CatalogPage').then((m) => ({ default: m.CatalogPage }))\n);\nconst CourseDetailPage = lazy(() =>\n import('./pages/catalog/CourseDetailPage').then((m) => ({ default: m.CourseDetailPage }))\n);\n\n// My Learning (enrollments + progress + lesson player)\nconst MyLearningPage = lazy(() =>\n import('./pages/learning/MyLearningPage').then((m) => ({ default: m.MyLearningPage }))\n);\nconst LessonPlayerPage = lazy(() =>\n import('./pages/learning/LessonPlayerPage').then((m) => ({ default: m.LessonPlayerPage }))\n);\n\n// Authoring (instructor course management + builder)\nconst AuthoringPage = lazy(() =>\n import('./pages/authoring/AuthoringPage').then((m) => ({ default: m.AuthoringPage }))\n);\nconst CourseBuilderPage = lazy(() =>\n import('./pages/authoring/CourseBuilderPage').then((m) => ({ default: m.CourseBuilderPage }))\n);\n\n// Assessments (list + builder/questions/detail)\nconst AssessmentsPage = lazy(() =>\n import('./pages/assessments/AssessmentsPage').then((m) => ({ default: m.AssessmentsPage }))\n);\nconst AssessmentDetailPage = lazy(() =>\n import('./pages/assessments/AssessmentDetailPage').then((m) => ({\n default: m.AssessmentDetailPage,\n }))\n);\n// Learner-facing: take a published assessment (answer + submit)\nconst TakeAssessmentPage = lazy(() =>\n import('./pages/assessments/TakeAssessmentPage').then((m) => ({ default: m.TakeAssessmentPage }))\n);\n\n// Insights (educator analytics, derived from real data)\nconst InsightsPage = lazy(() =>\n import('./pages/insights/InsightsPage').then((m) => ({ default: m.InsightsPage }))\n);\n\n// Skill Journeys (derived guided paths)\nconst PathsPage = lazy(() =>\n import('./pages/paths/PathsPage').then((m) => ({ default: m.PathsPage }))\n);\n\n// Grading (submissions queue)\nconst SubmissionsPage = lazy(() =>\n import('./pages/submissions/SubmissionsPage').then((m) => ({ default: m.SubmissionsPage }))\n);\nconst BulkGradingPage = lazy(() =>\n import('./pages/submissions/BulkGradingPage').then((m) => ({ default: m.BulkGradingPage }))\n);\n\n// Proctoring review queue — high-stakes exam identity checks (BOFF-4431)\nconst ProctoringReviewPage = lazy(() =>\n import('./pages/proctoring/ProctoringReviewPage').then((m) => ({\n default: m.ProctoringReviewPage,\n }))\n);\n\n// Educator review of AI tutor answers (BOFF-9663)\nconst TutorReviewPage = lazy(() =>\n import('./pages/tutorReview/TutorReviewPage').then((m) => ({ default: m.TutorReviewPage }))\n);\n\n// Cohorts\nconst CohortsPage = lazy(() =>\n import('./pages/cohorts/CohortsPage').then((m) => ({ default: m.CohortsPage }))\n);\n\n// Skills taxonomy\nconst SkillsPage = lazy(() =>\n import('./pages/skills/SkillsPage').then((m) => ({ default: m.SkillsPage }))\n);\n\n// Certificates\nconst CertificatesPage = lazy(() =>\n import('./pages/certificates/CertificatesPage').then((m) => ({ default: m.CertificatesPage }))\n);\n\n// AI Admin Copilot (BOFF-4434) — read-only workspace Q&A\nconst AdminCopilotPage = lazy(() =>\n import('./pages/copilot/AdminCopilotPage').then((m) => ({ default: m.AdminCopilotPage }))\n);\n\n// LMS launch handoff — where a validated LTI 1.3 launch lands (BOFF-9680)\nconst LtiLaunchPage = lazy(() =>\n import('./pages/lti/LtiLaunchPage').then((m) => ({ default: m.LtiLaunchPage }))\n);\n// LMS integrations — LTI 1.3 Advantage platform registry (BOFF-4419)\nconst LtiPlatformsPage = lazy(() =>\n import('./pages/integrations/LtiPlatformsPage').then((m) => ({ default: m.LtiPlatformsPage }))\n);\n\n// L&D workflow automation via FluidGrids (BOFF-9688)\nconst AutomationsPage = lazy(() =>\n import('./pages/automations/AutomationsPage').then((m) => ({ default: m.AutomationsPage }))\n);\n\n// Workspace AI content controls (BOFF-9689)\nconst AiSettingsPage = lazy(() =>\n import('./pages/aiSettings/AiSettingsPage').then((m) => ({ default: m.AiSettingsPage }))\n);\n// Enterprise user provisioning — SCIM 2.0 tokens + IdP setup (BOFF-4438)\nconst ProvisioningPage = lazy(() =>\n import('./pages/provisioning/ProvisioningPage').then((m) => ({ default: m.ProvisioningPage }))\n);\n\n// Course migration — Common Cartridge import, open-standards export (BOFF-4437)\nconst MigrationCenterPage = lazy(() =>\n import('./pages/migration/MigrationCenterPage').then((m) => ({ default: m.MigrationCenterPage }))\n);\n\nconst PageLoader: FC = () => (\n <div className=\"flex min-h-[400px] items-center justify-center\">\n <Spinner size=\"lg\" />\n </div>\n);\n\nfunction FeatureDisabledFallback() {\n const tr = useTr();\n return (\n <div className=\"flex h-full min-h-[200px] items-center justify-center text-sm text-text-secondary\">\n {tr(\n 'buildmyiq.pages.featureDisabled',\n 'This feature is currently disabled. You can enable it from Feature Previews.'\n )}\n </div>\n );\n}\n\nfunction gated(flag: string, element: React.ReactNode, defaultValue = true): React.ReactElement {\n return (\n <FeatureGate flag={flag} defaultValue={defaultValue} fallback={<FeatureDisabledFallback />}>\n {element}\n </FeatureGate>\n );\n}\n\nexport const BuildmyiqRoutes: FC = () => {\n const { basePath, isStandalone } = useBuildmyiq();\n const location = useLocation();\n\n const normalizedBasePath = basePath === '/' ? '' : (basePath ?? '').replace(/\\/$/, '');\n\n // Guard: only render if the current path matches basePath (integrated mode).\n if (normalizedBasePath && !isStandalone) {\n const pathMatches =\n location.pathname === normalizedBasePath ||\n location.pathname.startsWith(normalizedBasePath + '/');\n if (!pathMatches) {\n return null;\n }\n }\n\n return (\n <div className=\"flex min-h-full flex-col\">\n <Suspense fallback={<PageLoader />}>\n <Routes>\n <Route index element={gated('buildmyiq.overview', <DashboardPage />)} />\n\n <Route path=\"catalog\" element={gated('buildmyiq.catalog', <CatalogPage />)} />\n <Route\n path=\"catalog/:courseId\"\n element={gated('buildmyiq.catalog', <CourseDetailPage />)}\n />\n\n <Route path=\"learning\" element={gated('buildmyiq.learning', <MyLearningPage />)} />\n <Route\n path=\"learning/:enrollmentId\"\n element={gated('buildmyiq.learning', <LessonPlayerPage />)}\n />\n\n <Route path=\"paths\" element={gated('buildmyiq.paths', <PathsPage />)} />\n\n <Route path=\"authoring\" element={gated('buildmyiq.authoring', <AuthoringPage />)} />\n <Route\n path=\"authoring/:courseId\"\n element={gated('buildmyiq.authoring', <CourseBuilderPage />)}\n />\n\n <Route path=\"assessments\" element={gated('buildmyiq.assessments', <AssessmentsPage />)} />\n <Route\n path=\"assessments/:assessmentId\"\n element={gated('buildmyiq.assessments', <AssessmentDetailPage />)}\n />\n <Route\n path=\"assessments/:assessmentId/take\"\n element={gated('buildmyiq.assessments', <TakeAssessmentPage />)}\n />\n\n <Route path=\"insights\" element={gated('buildmyiq.insights', <InsightsPage />)} />\n\n <Route path=\"submissions\" element={gated('buildmyiq.submissions', <SubmissionsPage />)} />\n <Route\n path=\"submissions/bulk\"\n element={gated('buildmyiq.submissions', <BulkGradingPage />)}\n />\n <Route\n path=\"submissions/:submissionId\"\n element={gated('buildmyiq.submissions', <SubmissionsPage />)}\n />\n <Route\n path=\"proctoring\"\n element={gated('buildmyiq.proctoring', <ProctoringReviewPage />)}\n />\n <Route\n path=\"tutor-review\"\n element={gated('buildmyiq.tutor-review', <TutorReviewPage />)}\n />\n <Route path=\"cohorts\" element={gated('buildmyiq.cohorts', <CohortsPage />)} />\n <Route path=\"skills\" element={gated('buildmyiq.skills', <SkillsPage />)} />\n <Route\n path=\"certificates\"\n element={gated('buildmyiq.certificates', <CertificatesPage />)}\n />\n\n <Route\n path=\"admin-copilot\"\n element={gated('buildmyiq.admin-copilot', <AdminCopilotPage />)}\n />\n <Route\n path=\"integrations\"\n element={gated('buildmyiq.integrations', <LtiPlatformsPage />)}\n />\n <Route path=\"migration\" element={gated('buildmyiq.migration', <MigrationCenterPage />)} />\n <Route path=\"automations\" element={gated('buildmyiq.automations', <AutomationsPage />)} />\n <Route path=\"ai-settings\" element={gated('buildmyiq.ai-settings', <AiSettingsPage />)} />\n <Route\n path=\"provisioning\"\n element={gated('buildmyiq.provisioning', <ProvisioningPage />)}\n />\n {/* Not feature-gated: learners arrive here from their LMS, and the\n launch only exists because a workspace admin registered it. */}\n <Route path=\"lti/launch/:ticketId\" element={<LtiLaunchPage />} />\n\n <Route path=\"*\" element={<Navigate to={normalizedBasePath || '/'} replace />} />\n </Routes>\n </Suspense>\n </div>\n );\n};\n"],"mappings":";;;;;;;;;;AAoBA,IAAM,IAAc,QAClB,OAAO,kCAA+B,MAAM,OAAO,EAAE,SAAS,EAAE,YAAY,EAAE,CAChF,GACM,IAAmB,QACvB,OAAO,uCAAoC,MAAM,OAAO,EAAE,SAAS,EAAE,iBAAiB,EAAE,CAC1F,GAGM,IAAiB,QACrB,OAAO,sCAAmC,MAAM,OAAO,EAAE,SAAS,EAAE,eAAe,EAAE,CACvF,GACM,IAAmB,QACvB,OAAO,wCAAqC,MAAM,OAAO,EAAE,SAAS,EAAE,iBAAiB,EAAE,CAC3F,GAGM,IAAgB,QACpB,OAAO,sCAAmC,MAAM,OAAO,EAAE,SAAS,EAAE,cAAc,EAAE,CACtF,GACM,IAAoB,QACxB,OAAO,0CAAuC,MAAM,OAAO,EAAE,SAAS,EAAE,kBAAkB,EAAE,CAC9F,GAGM,IAAkB,QACtB,OAAO,0CAAuC,MAAM,OAAO,EAAE,SAAS,EAAE,gBAAgB,EAAE,CAC5F,GACM,IAAuB,QAC3B,OAAO,+CAA4C,MAAM,OAAO,EAC9D,SAAS,EAAE,qBACb,EAAE,CACJ,GAEM,IAAqB,QACzB,OAAO,6CAA0C,MAAM,OAAO,EAAE,SAAS,EAAE,mBAAmB,EAAE,CAClG,GAGM,IAAe,QACnB,OAAO,oCAAiC,MAAM,OAAO,EAAE,SAAS,EAAE,aAAa,EAAE,CACnF,GAGM,IAAY,QAChB,OAAO,8BAA2B,MAAM,OAAO,EAAE,SAAS,EAAE,UAAU,EAAE,CAC1E,GAGM,IAAkB,QACtB,O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AK;KAAS,SAAS,EAAM,oBAAoB,kBAAC,GAAD,CAAa,CAAA,CAAC;IAAI,CAAA;IAC1E,kBAAC,GAAD;KACE,MAAK;KACL,SAAS,EAAM,0BAA0B,kBAAC,GAAD,CAAmB,CAAA,CAAC;IAC9D,CAAA;IAED,kBAAC,GAAD;KACE,MAAK;KACL,SAAS,EAAM,2BAA2B,kBAAC,GAAD,CAAmB,CAAA,CAAC;IAC/D,CAAA;IACD,kBAAC,GAAD;KACE,MAAK;KACL,SAAS,EAAM,0BAA0B,kBAAC,GAAD,CAAmB,CAAA,CAAC;IAC9D,CAAA;IACD,kBAAC,GAAD;KAAO,MAAK;KAAY,SAAS,EAAM,uBAAuB,kBAAC,GAAD,CAAsB,CAAA,CAAC;IAAI,CAAA;IACzF,kBAAC,GAAD;KAAO,MAAK;KAAc,SAAS,EAAM,yBAAyB,kBAAC,GAAD,CAAkB,CAAA,CAAC;IAAI,CAAA;IACzF,kBAAC,GAAD;KAAO,MAAK;KAAc,SAAS,EAAM,yBAAyB,kBAAC,GAAD,CAAiB,CAAA,CAAC;IAAI,CAAA;IACxF,kBAAC,GAAD;KACE,MAAK;KACL,SAAS,EAAM,0BAA0B,kBAAC,GAAD,CAAmB,CAAA,CAAC;IAC9D,CAAA;IAGD,kBAAC,GAAD;KAAO,MAAK;KAAuB,SAAS,kBAAC,GAAD,CAAgB,CAAA;IAAI,CAAA;IAEhE,kBAAC,GAAD;KAAO,MAAK;KAAI,SAAS,kBAAC,GAAD;MAAU,IAAI,KAAsB;MAAK,SAAA;KAAS,CAAA;IAAI,CAAA;GACzE,EAAA,CAAA;EACA,CAAA;CACP,CAAA;AAET"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { FC } from 'react';
|
|
2
|
+
/** Icon keys accepted by `buiCreateBadge` / `buiUpdateBadge`, in picker order. */
|
|
3
|
+
export declare const BADGE_ICON_KEYS: string[];
|
|
4
|
+
interface BadgeIconProps {
|
|
5
|
+
icon: string;
|
|
6
|
+
/** Muted treatment for archived badges and revoked awards. */
|
|
7
|
+
muted?: boolean;
|
|
8
|
+
size?: 'sm' | 'md' | 'lg';
|
|
9
|
+
className?: string;
|
|
10
|
+
}
|
|
11
|
+
export declare const BadgeIcon: FC<BadgeIconProps>;
|
|
12
|
+
export {};
|
|
13
|
+
//# sourceMappingURL=BadgeIcon.d.ts.map
|