@burdenoff/microfe-buildmyiq 2026.1027.3 → 2026.1027.4
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 +70 -62
- package/dist/buildmyiq/BuildmyiqRoot.js.map +1 -1
- package/dist/buildmyiq/BuildmyiqRoutes.d.ts.map +1 -1
- package/dist/buildmyiq/BuildmyiqRoutes.js +32 -28
- package/dist/buildmyiq/BuildmyiqRoutes.js.map +1 -1
- package/dist/buildmyiq/components/StatusBadge.d.ts.map +1 -1
- package/dist/buildmyiq/components/StatusBadge.js +5 -1
- package/dist/buildmyiq/components/StatusBadge.js.map +1 -1
- package/dist/buildmyiq/hooks/useBuiPermissions.d.ts +2 -2
- package/dist/buildmyiq/hooks/useBuiPermissions.d.ts.map +1 -1
- package/dist/buildmyiq/hooks/useBuiPermissions.js +34 -2
- package/dist/buildmyiq/hooks/useBuiPermissions.js.map +1 -0
- package/dist/buildmyiq/hooks/useBuildmyiqApi.d.ts +21 -1
- package/dist/buildmyiq/hooks/useBuildmyiqApi.d.ts.map +1 -1
- package/dist/buildmyiq/hooks/useBuildmyiqApi.js +132 -87
- package/dist/buildmyiq/hooks/useBuildmyiqApi.js.map +1 -1
- package/dist/buildmyiq/pages/automations/AutomationsPage.d.ts +3 -0
- package/dist/buildmyiq/pages/automations/AutomationsPage.d.ts.map +1 -0
- package/dist/buildmyiq/pages/automations/AutomationsPage.js +561 -0
- package/dist/buildmyiq/pages/automations/AutomationsPage.js.map +1 -0
- package/dist/buildmyiq/pages/automations/automationModel.d.ts +31 -0
- package/dist/buildmyiq/pages/automations/automationModel.d.ts.map +1 -0
- package/dist/buildmyiq/pages/automations/automationModel.js +96 -0
- package/dist/buildmyiq/pages/automations/automationModel.js.map +1 -0
- package/dist/buildmyiq/pages/learning/MyLearningPage.d.ts.map +1 -1
- package/dist/buildmyiq/pages/learning/MyLearningPage.js +150 -145
- package/dist/buildmyiq/pages/learning/MyLearningPage.js.map +1 -1
- package/dist/buildmyiq/types/index.d.ts +59 -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;AA0BhC,OAAO,KAAK,EAAE,kBAAkB,EAAW,MAAM,SAAS,CAAC;AAY3D,eAAO,MAAM,aAAa,EAAE,EAAE,CAAC,kBAAkB,CA8KhD,CAAC"}
|
|
@@ -6,163 +6,171 @@ 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 { Award as u, BookOpen as d, CheckSquare as f, ClipboardCheck as p, GraduationCap as m, LayoutDashboard as h, LineChart as g, PencilRuler as _, Plug as v, Route as y, ShieldCheck as b, Sparkles as x, Target as S, Users as C } from "lucide-react";
|
|
10
|
-
import { jsx as
|
|
9
|
+
import { Award as u, BookOpen as d, CheckSquare as f, ClipboardCheck as p, GraduationCap as m, LayoutDashboard as h, LineChart as g, PencilRuler as _, Plug as v, Route as y, ShieldCheck as b, Sparkles as x, Target as S, Users as C, Workflow as w } from "lucide-react";
|
|
10
|
+
import { jsx as T } from "react/jsx-runtime";
|
|
11
11
|
//#region src/buildmyiq/BuildmyiqRoot.tsx
|
|
12
|
-
var
|
|
12
|
+
var E = 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
|
+
} } }), D = (a) => {
|
|
17
|
+
let { registerNavItems: D, registerFooterItems: O, basePath: k = "/" } = a, { t: A } = l(), j = r((e, t) => {
|
|
18
|
+
let n = A(e);
|
|
19
19
|
return n === e ? t : n;
|
|
20
|
-
}, [
|
|
20
|
+
}, [A]);
|
|
21
21
|
return i(() => {
|
|
22
|
-
if (
|
|
22
|
+
if (D) return D([
|
|
23
23
|
{
|
|
24
24
|
id: "buildmyiq-dashboard",
|
|
25
|
-
label:
|
|
26
|
-
path: e(
|
|
27
|
-
icon: /* @__PURE__ */
|
|
25
|
+
label: j("buildmyiq.nav.dashboard", "Dashboard"),
|
|
26
|
+
path: e(k, ""),
|
|
27
|
+
icon: /* @__PURE__ */ T(h, { 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: j("buildmyiq.nav.catalog", "Catalog"),
|
|
34
|
+
path: e(k, "catalog"),
|
|
35
|
+
icon: /* @__PURE__ */ T(d, { 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: j("buildmyiq.nav.learning", "My Learning"),
|
|
42
|
+
path: e(k, "learning"),
|
|
43
|
+
icon: /* @__PURE__ */ T(m, { 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: j("buildmyiq.nav.paths", "Journeys"),
|
|
50
|
+
path: e(k, "paths"),
|
|
51
|
+
icon: /* @__PURE__ */ T(y, { 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: j("buildmyiq.nav.authoring", "Authoring"),
|
|
58
|
+
path: e(k, "authoring"),
|
|
59
|
+
icon: /* @__PURE__ */ T(_, { 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: j("buildmyiq.nav.assessments", "Assessments"),
|
|
66
|
+
path: e(k, "assessments"),
|
|
67
|
+
icon: /* @__PURE__ */ T(p, { 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: j("buildmyiq.nav.submissions", "Grading"),
|
|
74
|
+
path: e(k, "submissions"),
|
|
75
|
+
icon: /* @__PURE__ */ T(f, { 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: j("buildmyiq.nav.proctoring", "Proctoring"),
|
|
82
|
+
path: e(k, "proctoring"),
|
|
83
|
+
icon: /* @__PURE__ */ T(b, { size: 20 }),
|
|
84
84
|
order: 5,
|
|
85
85
|
group: "products"
|
|
86
86
|
},
|
|
87
87
|
{
|
|
88
88
|
id: "buildmyiq-cohorts",
|
|
89
|
-
label:
|
|
90
|
-
path: e(
|
|
91
|
-
icon: /* @__PURE__ */
|
|
89
|
+
label: j("buildmyiq.nav.cohorts", "Cohorts"),
|
|
90
|
+
path: e(k, "cohorts"),
|
|
91
|
+
icon: /* @__PURE__ */ T(C, { size: 20 }),
|
|
92
92
|
order: 6,
|
|
93
93
|
group: "products"
|
|
94
94
|
},
|
|
95
95
|
{
|
|
96
96
|
id: "buildmyiq-skills",
|
|
97
|
-
label:
|
|
98
|
-
path: e(
|
|
99
|
-
icon: /* @__PURE__ */
|
|
97
|
+
label: j("buildmyiq.nav.skills", "Skills"),
|
|
98
|
+
path: e(k, "skills"),
|
|
99
|
+
icon: /* @__PURE__ */ T(S, { size: 20 }),
|
|
100
100
|
order: 7,
|
|
101
101
|
group: "products"
|
|
102
102
|
},
|
|
103
103
|
{
|
|
104
104
|
id: "buildmyiq-certificates",
|
|
105
|
-
label:
|
|
106
|
-
path: e(
|
|
107
|
-
icon: /* @__PURE__ */
|
|
105
|
+
label: j("buildmyiq.nav.certificates", "Certificates"),
|
|
106
|
+
path: e(k, "certificates"),
|
|
107
|
+
icon: /* @__PURE__ */ T(u, { size: 20 }),
|
|
108
108
|
order: 8,
|
|
109
109
|
group: "products"
|
|
110
110
|
},
|
|
111
111
|
{
|
|
112
112
|
id: "buildmyiq-insights",
|
|
113
|
-
label:
|
|
114
|
-
path: e(
|
|
115
|
-
icon: /* @__PURE__ */
|
|
113
|
+
label: j("buildmyiq.nav.insights", "Insights"),
|
|
114
|
+
path: e(k, "insights"),
|
|
115
|
+
icon: /* @__PURE__ */ T(g, { size: 20 }),
|
|
116
116
|
order: 9,
|
|
117
117
|
group: "products"
|
|
118
118
|
},
|
|
119
119
|
{
|
|
120
120
|
id: "buildmyiq-admin-copilot",
|
|
121
|
-
label:
|
|
122
|
-
path: e(
|
|
123
|
-
icon: /* @__PURE__ */
|
|
121
|
+
label: j("buildmyiq.nav.adminCopilot", "Admin Copilot"),
|
|
122
|
+
path: e(k, "admin-copilot"),
|
|
123
|
+
icon: /* @__PURE__ */ T(x, { size: 20 }),
|
|
124
124
|
order: 10,
|
|
125
125
|
group: "products"
|
|
126
126
|
},
|
|
127
127
|
{
|
|
128
128
|
id: "buildmyiq-integrations",
|
|
129
|
-
label:
|
|
130
|
-
path: e(
|
|
131
|
-
icon: /* @__PURE__ */
|
|
129
|
+
label: j("buildmyiq.nav.integrations", "LMS Integrations"),
|
|
130
|
+
path: e(k, "integrations"),
|
|
131
|
+
icon: /* @__PURE__ */ T(v, { size: 20 }),
|
|
132
132
|
order: 11,
|
|
133
133
|
group: "products"
|
|
134
|
+
},
|
|
135
|
+
{
|
|
136
|
+
id: "buildmyiq-automations",
|
|
137
|
+
label: j("buildmyiq.nav.automations", "Automations"),
|
|
138
|
+
path: e(k, "automations"),
|
|
139
|
+
icon: /* @__PURE__ */ T(w, { size: 20 }),
|
|
140
|
+
order: 12,
|
|
141
|
+
group: "products"
|
|
134
142
|
}
|
|
135
143
|
]);
|
|
136
144
|
}, [
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
145
|
+
D,
|
|
146
|
+
k,
|
|
147
|
+
j
|
|
140
148
|
]), i(() => {
|
|
141
|
-
if (
|
|
149
|
+
if (O) return O([{
|
|
142
150
|
id: "buildmyiq-status",
|
|
143
|
-
label:
|
|
151
|
+
label: j("buildmyiq.footer.ready", "BuildMyIQ Ready"),
|
|
144
152
|
type: "status",
|
|
145
153
|
section: "left",
|
|
146
154
|
order: 10
|
|
147
155
|
}]);
|
|
148
|
-
}, [
|
|
149
|
-
client:
|
|
150
|
-
children: /* @__PURE__ */
|
|
156
|
+
}, [O, j]), /* @__PURE__ */ T(o, {
|
|
157
|
+
client: E,
|
|
158
|
+
children: /* @__PURE__ */ T(s, {
|
|
151
159
|
workspaceId: null,
|
|
152
160
|
gateway: "global",
|
|
153
161
|
defaultEnabled: !0,
|
|
154
|
-
children: /* @__PURE__ */
|
|
162
|
+
children: /* @__PURE__ */ T(c, {
|
|
155
163
|
scopeId: a.workspaceId ?? null,
|
|
156
164
|
gateway: "workspace",
|
|
157
|
-
children: /* @__PURE__ */
|
|
165
|
+
children: /* @__PURE__ */ T(t, {
|
|
158
166
|
...a,
|
|
159
|
-
children: /* @__PURE__ */
|
|
167
|
+
children: /* @__PURE__ */ T(n, {})
|
|
160
168
|
})
|
|
161
169
|
})
|
|
162
170
|
})
|
|
163
171
|
});
|
|
164
172
|
};
|
|
165
173
|
//#endregion
|
|
166
|
-
export {
|
|
174
|
+
export { D as BuildmyiqRoot };
|
|
167
175
|
|
|
168
176
|
//# 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 ShieldCheck,\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-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\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":";;;;;;;;;;;
|
|
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 ShieldCheck,\n Workflow,\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-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-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\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":";;;;;;;;;;;AAqCA,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;CAmJA,OA9IA,QAAgB;EACT,OA6HL,OAAO,EAAiB;GA1HtB;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;IACE,IAAI;IACJ,OAAO,EAAE,yBAAyB,SAAS;IAC3C,MAAM,EAAS,GAAU,SAAS;IAClC,MAAM,kBAAC,GAAD,EA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AM,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;AAqIvD,eAAO,MAAM,eAAe,EAAE,EA4F7B,CAAC"}
|
|
@@ -8,114 +8,118 @@ 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/cohorts/CohortsPage.js").then((e) => ({ default: e.CohortsPage }))), O = i(() => import("./pages/skills/SkillsPage.js").then((e) => ({ default: e.SkillsPage }))), k = i(() => import("./pages/certificates/CertificatesPage.js").then((e) => ({ default: e.CertificatesPage }))), A = i(() => import("./pages/copilot/AdminCopilotPage.js").then((e) => ({ default: e.AdminCopilotPage }))), j = i(() => import("./pages/lti/LtiLaunchPage.js").then((e) => ({ default: e.LtiLaunchPage }))), M = i(() => import("./pages/integrations/LtiPlatformsPage.js").then((e) => ({ default: e.LtiPlatformsPage }))), N = () => /* @__PURE__ */ u("div", {
|
|
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/cohorts/CohortsPage.js").then((e) => ({ default: e.CohortsPage }))), O = i(() => import("./pages/skills/SkillsPage.js").then((e) => ({ default: e.SkillsPage }))), k = i(() => import("./pages/certificates/CertificatesPage.js").then((e) => ({ default: e.CertificatesPage }))), A = i(() => import("./pages/copilot/AdminCopilotPage.js").then((e) => ({ default: e.AdminCopilotPage }))), j = i(() => import("./pages/lti/LtiLaunchPage.js").then((e) => ({ default: e.LtiLaunchPage }))), M = i(() => import("./pages/integrations/LtiPlatformsPage.js").then((e) => ({ default: e.LtiPlatformsPage }))), N = i(() => import("./pages/automations/AutomationsPage.js").then((e) => ({ default: e.AutomationsPage }))), P = () => /* @__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 F() {
|
|
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 I(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(F, {}),
|
|
26
26
|
children: t
|
|
27
27
|
});
|
|
28
28
|
}
|
|
29
|
-
var
|
|
29
|
+
var L = () => {
|
|
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(P, {}),
|
|
35
35
|
children: /* @__PURE__ */ d(c, { children: [
|
|
36
36
|
/* @__PURE__ */ u(s, {
|
|
37
37
|
index: !0,
|
|
38
|
-
element:
|
|
38
|
+
element: I("buildmyiq.overview", /* @__PURE__ */ u(n, {}))
|
|
39
39
|
}),
|
|
40
40
|
/* @__PURE__ */ u(s, {
|
|
41
41
|
path: "catalog",
|
|
42
|
-
element:
|
|
42
|
+
element: I("buildmyiq.catalog", /* @__PURE__ */ u(p, {}))
|
|
43
43
|
}),
|
|
44
44
|
/* @__PURE__ */ u(s, {
|
|
45
45
|
path: "catalog/:courseId",
|
|
46
|
-
element:
|
|
46
|
+
element: I("buildmyiq.catalog", /* @__PURE__ */ u(m, {}))
|
|
47
47
|
}),
|
|
48
48
|
/* @__PURE__ */ u(s, {
|
|
49
49
|
path: "learning",
|
|
50
|
-
element:
|
|
50
|
+
element: I("buildmyiq.learning", /* @__PURE__ */ u(h, {}))
|
|
51
51
|
}),
|
|
52
52
|
/* @__PURE__ */ u(s, {
|
|
53
53
|
path: "learning/:enrollmentId",
|
|
54
|
-
element:
|
|
54
|
+
element: I("buildmyiq.learning", /* @__PURE__ */ u(g, {}))
|
|
55
55
|
}),
|
|
56
56
|
/* @__PURE__ */ u(s, {
|
|
57
57
|
path: "paths",
|
|
58
|
-
element:
|
|
58
|
+
element: I("buildmyiq.paths", /* @__PURE__ */ u(C, {}))
|
|
59
59
|
}),
|
|
60
60
|
/* @__PURE__ */ u(s, {
|
|
61
61
|
path: "authoring",
|
|
62
|
-
element:
|
|
62
|
+
element: I("buildmyiq.authoring", /* @__PURE__ */ u(_, {}))
|
|
63
63
|
}),
|
|
64
64
|
/* @__PURE__ */ u(s, {
|
|
65
65
|
path: "authoring/:courseId",
|
|
66
|
-
element:
|
|
66
|
+
element: I("buildmyiq.authoring", /* @__PURE__ */ u(v, {}))
|
|
67
67
|
}),
|
|
68
68
|
/* @__PURE__ */ u(s, {
|
|
69
69
|
path: "assessments",
|
|
70
|
-
element:
|
|
70
|
+
element: I("buildmyiq.assessments", /* @__PURE__ */ u(y, {}))
|
|
71
71
|
}),
|
|
72
72
|
/* @__PURE__ */ u(s, {
|
|
73
73
|
path: "assessments/:assessmentId",
|
|
74
|
-
element:
|
|
74
|
+
element: I("buildmyiq.assessments", /* @__PURE__ */ u(b, {}))
|
|
75
75
|
}),
|
|
76
76
|
/* @__PURE__ */ u(s, {
|
|
77
77
|
path: "assessments/:assessmentId/take",
|
|
78
|
-
element:
|
|
78
|
+
element: I("buildmyiq.assessments", /* @__PURE__ */ u(x, {}))
|
|
79
79
|
}),
|
|
80
80
|
/* @__PURE__ */ u(s, {
|
|
81
81
|
path: "insights",
|
|
82
|
-
element:
|
|
82
|
+
element: I("buildmyiq.insights", /* @__PURE__ */ u(S, {}))
|
|
83
83
|
}),
|
|
84
84
|
/* @__PURE__ */ u(s, {
|
|
85
85
|
path: "submissions",
|
|
86
|
-
element:
|
|
86
|
+
element: I("buildmyiq.submissions", /* @__PURE__ */ u(w, {}))
|
|
87
87
|
}),
|
|
88
88
|
/* @__PURE__ */ u(s, {
|
|
89
89
|
path: "submissions/bulk",
|
|
90
|
-
element:
|
|
90
|
+
element: I("buildmyiq.submissions", /* @__PURE__ */ u(T, {}))
|
|
91
91
|
}),
|
|
92
92
|
/* @__PURE__ */ u(s, {
|
|
93
93
|
path: "submissions/:submissionId",
|
|
94
|
-
element:
|
|
94
|
+
element: I("buildmyiq.submissions", /* @__PURE__ */ u(w, {}))
|
|
95
95
|
}),
|
|
96
96
|
/* @__PURE__ */ u(s, {
|
|
97
97
|
path: "proctoring",
|
|
98
|
-
element:
|
|
98
|
+
element: I("buildmyiq.proctoring", /* @__PURE__ */ u(E, {}))
|
|
99
99
|
}),
|
|
100
100
|
/* @__PURE__ */ u(s, {
|
|
101
101
|
path: "cohorts",
|
|
102
|
-
element:
|
|
102
|
+
element: I("buildmyiq.cohorts", /* @__PURE__ */ u(D, {}))
|
|
103
103
|
}),
|
|
104
104
|
/* @__PURE__ */ u(s, {
|
|
105
105
|
path: "skills",
|
|
106
|
-
element:
|
|
106
|
+
element: I("buildmyiq.skills", /* @__PURE__ */ u(O, {}))
|
|
107
107
|
}),
|
|
108
108
|
/* @__PURE__ */ u(s, {
|
|
109
109
|
path: "certificates",
|
|
110
|
-
element:
|
|
110
|
+
element: I("buildmyiq.certificates", /* @__PURE__ */ u(k, {}))
|
|
111
111
|
}),
|
|
112
112
|
/* @__PURE__ */ u(s, {
|
|
113
113
|
path: "admin-copilot",
|
|
114
|
-
element:
|
|
114
|
+
element: I("buildmyiq.adminCopilot", /* @__PURE__ */ u(A, {}))
|
|
115
115
|
}),
|
|
116
116
|
/* @__PURE__ */ u(s, {
|
|
117
117
|
path: "integrations",
|
|
118
|
-
element:
|
|
118
|
+
element: I("buildmyiq.integrations", /* @__PURE__ */ u(M, {}))
|
|
119
|
+
}),
|
|
120
|
+
/* @__PURE__ */ u(s, {
|
|
121
|
+
path: "automations",
|
|
122
|
+
element: I("buildmyiq.automations", /* @__PURE__ */ u(N, {}))
|
|
119
123
|
}),
|
|
120
124
|
/* @__PURE__ */ u(s, {
|
|
121
125
|
path: "lti/launch/:ticketId",
|
|
@@ -133,6 +137,6 @@ var I = () => {
|
|
|
133
137
|
});
|
|
134
138
|
};
|
|
135
139
|
//#endregion
|
|
136
|
-
export {
|
|
140
|
+
export { L as BuildmyiqRoutes };
|
|
137
141
|
|
|
138
142
|
//# 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// 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\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 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.adminCopilot', <AdminCopilotPage />)}\n />\n <Route\n path=\"integrations\"\n element={gated('buildmyiq.integrations', <LtiPlatformsPage />)}\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,OA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EAAM,yBAAyB,kBAAC,GAAD,CAAkB,CAAA,CAAC;IAC5D,CAAA;IACD,kBAAC,GAAD;KACE,MAAK;KACL,SAAS,EAAM,wBAAwB,kBAAC,GAAD,CAAuB,CAAA,CAAC;IAChE,CAAA;IACD,kBAAC,GAAD;KAAO,MAAK;KAAU,SAAS,EAAM,qBAAqB,kBAAC,GAAD,CAAc,CAAA,CAAC;IAAI,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,0BAA0B,kBAAC,GAAD,CAAmB,CAAA,CAAC;IAC9D,CAAA;IACD,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"}
|
|
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// 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\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 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.adminCopilot', <AdminCopilotPage />)}\n />\n <Route\n path=\"integrations\"\n element={gated('buildmyiq.integrations', <LtiPlatformsPage />)}\n />\n <Route path=\"automations\" element={gated('buildmyiq.automations', <AutomationsPage />)} />\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,EAA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AAA;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,0BAA0B,kBAAC,GAAD,CAAmB,CAAA,CAAC;IAC9D,CAAA;IACD,kBAAC,GAAD;KACE,MAAK;KACL,SAAS,EAAM,0BAA0B,kBAAC,GAAD,CAAmB,CAAA,CAAC;IAC9D,CAAA;IACD,kBAAC,GAAD;KAAO,MAAK;KAAc,SAAS,EAAM,yBAAyB,kBAAC,GAAD,CAAkB,CAAA,CAAC;IAAI,CAAA;IAGzF,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 +1 @@
|
|
|
1
|
-
{"version":3,"file":"StatusBadge.d.ts","sourceRoot":"","sources":["../../../src/buildmyiq/components/StatusBadge.tsx"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AAEH,OAAO,KAAK,EAAE,EAAE,EAAE,MAAM,OAAO,CAAC;AAIhC,UAAU,gBAAgB;IACxB,MAAM,EAAE,MAAM,CAAC;IACf,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;
|
|
1
|
+
{"version":3,"file":"StatusBadge.d.ts","sourceRoot":"","sources":["../../../src/buildmyiq/components/StatusBadge.tsx"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AAEH,OAAO,KAAK,EAAE,EAAE,EAAE,MAAM,OAAO,CAAC;AAIhC,UAAU,gBAAgB;IACxB,MAAM,EAAE,MAAM,CAAC;IACf,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAoFD,eAAO,MAAM,WAAW,EAAE,EAAE,CAAC,gBAAgB,CAsB5C,CAAC"}
|
|
@@ -13,7 +13,8 @@ var i = {
|
|
|
13
13
|
"IN_PROGRESS",
|
|
14
14
|
"ACTIVE",
|
|
15
15
|
"GRADING",
|
|
16
|
-
"EXECUTING"
|
|
16
|
+
"EXECUTING",
|
|
17
|
+
"APPLYING"
|
|
17
18
|
]), o = {
|
|
18
19
|
DRAFT: "secondary",
|
|
19
20
|
IN_REVIEW: "warning",
|
|
@@ -45,6 +46,9 @@ var i = {
|
|
|
45
46
|
EXECUTED: "success",
|
|
46
47
|
FAILED: "destructive",
|
|
47
48
|
DISMISSED: "outline",
|
|
49
|
+
APPLYING: "info",
|
|
50
|
+
APPLIED: "success",
|
|
51
|
+
SKIPPED: "outline",
|
|
48
52
|
BEGINNER: "success",
|
|
49
53
|
INTERMEDIATE: "info",
|
|
50
54
|
ADVANCED: "warning",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"StatusBadge.js","names":[],"sources":["../../../src/buildmyiq/components/StatusBadge.tsx"],"sourcesContent":["/**\n * Status Badge Component\n * @module buildmyiq/components\n *\n * A colored badge for Buildmyiq domain statuses (course status, enrollment\n * status, assessment status, submission status, cohort status, certificate\n * status, lesson-progress status) plus course levels and skill categories, with\n * semantic color mapping. Accepts the raw server enum value.\n */\n\nimport type { FC } from 'react';\nimport { cn } from '../utils/cn';\nimport { formatEnumLabel } from '../utils/formatters';\n\ninterface StatusBadgeProps {\n status: string;\n className?: string;\n}\n\ntype BadgeVariant = 'success' | 'warning' | 'destructive' | 'secondary' | 'info' | 'outline';\n\nconst variantStyles: Record<BadgeVariant, string> = {\n success: 'bg-status-success-bg-subtle text-status-success-text',\n warning: 'bg-status-warning-bg-subtle text-status-warning-text',\n destructive: 'bg-status-error-bg-subtle text-status-error-text',\n secondary: 'bg-bg-sunken text-text-secondary',\n info: 'bg-[var(--color-accent-soft)] text-text-primary',\n outline: 'border border-border-seam text-text-primary',\n};\n\n// Statuses that represent a \"live\" / in-progress condition get a subtle,\n// opacity-only glow pulse (reduced-motion safe via motion-safe:).\nconst liveStatuses = new Set(['IN_PROGRESS', 'ACTIVE', 'GRADING', 'EXECUTING']);\n\nconst statusVariantMap: Record<string, BadgeVariant> = {\n // Authoring lifecycle (course + assessment)\n DRAFT: 'secondary',\n IN_REVIEW: 'warning',\n PUBLISHED: 'success',\n ARCHIVED: 'outline',\n\n // Enrollment status\n ENROLLED: 'info',\n IN_PROGRESS: 'info',\n COMPLETED: 'success',\n DROPPED: 'destructive',\n EXPIRED: 'outline',\n\n // Lesson-progress status\n NOT_STARTED: 'secondary',\n\n // Submission status\n SUBMITTED: 'info',\n GRADING: 'warning',\n GRADED: 'success',\n RETURNED: 'warning',\n\n // Cohort status\n SCHEDULED: 'secondary',\n ENROLLING: 'info',\n ACTIVE: 'success',\n CANCELLED: 'destructive',\n\n // Certificate status\n ISSUED: 'success',\n REVOKED: 'destructive',\n\n // Proctoring session status\n PENDING: 'secondary',\n IDENTITY_SUBMITTED: 'info',\n UNDER_REVIEW: 'warning',\n APPROVED: 'success',\n REJECTED: 'destructive',\n\n // Admin copilot action status (BOFF-9687)\n PROPOSED: 'warning',\n EXECUTING: 'info',\n EXECUTED: 'success',\n FAILED: 'destructive',\n DISMISSED: 'outline',\n\n // Course level\n BEGINNER: 'success',\n INTERMEDIATE: 'info',\n ADVANCED: 'warning',\n EXPERT: 'destructive',\n\n // Skill category (neutral badges)\n TECHNICAL: 'outline',\n BUSINESS: 'outline',\n CREATIVE: 'outline',\n COGNITIVE: 'outline',\n SOCIAL: 'outline',\n LANGUAGE: 'outline',\n};\n\nexport const StatusBadge: FC<StatusBadgeProps> = ({ status, className }) => {\n const key = status.toUpperCase();\n const variant = statusVariantMap[key] ?? 'secondary';\n const isLive = liveStatuses.has(key);\n\n return (\n <span\n className={cn(\n 'inline-flex items-center gap-1.5 rounded-full px-2.5 py-0.5 text-xs font-medium',\n variantStyles[variant],\n className\n )}\n >\n {isLive && (\n <span\n aria-hidden=\"true\"\n className=\"size-1.5 rounded-full bg-current motion-safe:animate-vc-glow-pulse\"\n />\n )}\n {formatEnumLabel(status)}\n </span>\n );\n};\n"],"mappings":";;;;AAqBA,IAAM,IAA8C;CAClD,SAAS;CACT,SAAS;CACT,aAAa;CACb,WAAW;CACX,MAAM;CACN,SAAS;AACX,GAIM,IAAe,IAAI,IAAI;CAAC;CAAe;CAAU;CAAW;
|
|
1
|
+
{"version":3,"file":"StatusBadge.js","names":[],"sources":["../../../src/buildmyiq/components/StatusBadge.tsx"],"sourcesContent":["/**\n * Status Badge Component\n * @module buildmyiq/components\n *\n * A colored badge for Buildmyiq domain statuses (course status, enrollment\n * status, assessment status, submission status, cohort status, certificate\n * status, lesson-progress status) plus course levels and skill categories, with\n * semantic color mapping. Accepts the raw server enum value.\n */\n\nimport type { FC } from 'react';\nimport { cn } from '../utils/cn';\nimport { formatEnumLabel } from '../utils/formatters';\n\ninterface StatusBadgeProps {\n status: string;\n className?: string;\n}\n\ntype BadgeVariant = 'success' | 'warning' | 'destructive' | 'secondary' | 'info' | 'outline';\n\nconst variantStyles: Record<BadgeVariant, string> = {\n success: 'bg-status-success-bg-subtle text-status-success-text',\n warning: 'bg-status-warning-bg-subtle text-status-warning-text',\n destructive: 'bg-status-error-bg-subtle text-status-error-text',\n secondary: 'bg-bg-sunken text-text-secondary',\n info: 'bg-[var(--color-accent-soft)] text-text-primary',\n outline: 'border border-border-seam text-text-primary',\n};\n\n// Statuses that represent a \"live\" / in-progress condition get a subtle,\n// opacity-only glow pulse (reduced-motion safe via motion-safe:).\nconst liveStatuses = new Set(['IN_PROGRESS', 'ACTIVE', 'GRADING', 'EXECUTING', 'APPLYING']);\n\nconst statusVariantMap: Record<string, BadgeVariant> = {\n // Authoring lifecycle (course + assessment)\n DRAFT: 'secondary',\n IN_REVIEW: 'warning',\n PUBLISHED: 'success',\n ARCHIVED: 'outline',\n\n // Enrollment status\n ENROLLED: 'info',\n IN_PROGRESS: 'info',\n COMPLETED: 'success',\n DROPPED: 'destructive',\n EXPIRED: 'outline',\n\n // Lesson-progress status\n NOT_STARTED: 'secondary',\n\n // Submission status\n SUBMITTED: 'info',\n GRADING: 'warning',\n GRADED: 'success',\n RETURNED: 'warning',\n\n // Cohort status\n SCHEDULED: 'secondary',\n ENROLLING: 'info',\n ACTIVE: 'success',\n CANCELLED: 'destructive',\n\n // Certificate status\n ISSUED: 'success',\n REVOKED: 'destructive',\n\n // Proctoring session status\n PENDING: 'secondary',\n IDENTITY_SUBMITTED: 'info',\n UNDER_REVIEW: 'warning',\n APPROVED: 'success',\n REJECTED: 'destructive',\n\n // Admin copilot action status (BOFF-9687)\n PROPOSED: 'warning',\n EXECUTING: 'info',\n EXECUTED: 'success',\n FAILED: 'destructive',\n DISMISSED: 'outline',\n\n // Automation run status (BOFF-9688)\n APPLYING: 'info',\n APPLIED: 'success',\n SKIPPED: 'outline',\n\n // Course level\n BEGINNER: 'success',\n INTERMEDIATE: 'info',\n ADVANCED: 'warning',\n EXPERT: 'destructive',\n\n // Skill category (neutral badges)\n TECHNICAL: 'outline',\n BUSINESS: 'outline',\n CREATIVE: 'outline',\n COGNITIVE: 'outline',\n SOCIAL: 'outline',\n LANGUAGE: 'outline',\n};\n\nexport const StatusBadge: FC<StatusBadgeProps> = ({ status, className }) => {\n const key = status.toUpperCase();\n const variant = statusVariantMap[key] ?? 'secondary';\n const isLive = liveStatuses.has(key);\n\n return (\n <span\n className={cn(\n 'inline-flex items-center gap-1.5 rounded-full px-2.5 py-0.5 text-xs font-medium',\n variantStyles[variant],\n className\n )}\n >\n {isLive && (\n <span\n aria-hidden=\"true\"\n className=\"size-1.5 rounded-full bg-current motion-safe:animate-vc-glow-pulse\"\n />\n )}\n {formatEnumLabel(status)}\n </span>\n );\n};\n"],"mappings":";;;;AAqBA,IAAM,IAA8C;CAClD,SAAS;CACT,SAAS;CACT,aAAa;CACb,WAAW;CACX,MAAM;CACN,SAAS;AACX,GAIM,IAAe,IAAI,IAAI;CAAC;CAAe;CAAU;CAAW;CAAa;AAAU,CAAC,GAEpF,IAAiD;CAErD,OAAO;CACP,WAAW;CACX,WAAW;CACX,UAAU;CAGV,UAAU;CACV,aAAa;CACb,WAAW;CACX,SAAS;CACT,SAAS;CAGT,aAAa;CAGb,WAAW;CACX,SAAS;CACT,QAAQ;CACR,UAAU;CAGV,WAAW;CACX,WAAW;CACX,QAAQ;CACR,WAAW;CAGX,QAAQ;CACR,SAAS;CAGT,SAAS;CACT,oBAAoB;CACpB,cAAc;CACd,UAAU;CACV,UAAU;CAGV,UAAU;CACV,WAAW;CACX,UAAU;CACV,QAAQ;CACR,WAAW;CAGX,UAAU;CACV,SAAS;CACT,SAAS;CAGT,UAAU;CACV,cAAc;CACd,UAAU;CACV,QAAQ;CAGR,WAAW;CACX,UAAU;CACV,UAAU;CACV,WAAW;CACX,QAAQ;CACR,UAAU;AACZ,GAEa,KAAqC,EAAE,WAAQ,mBAAgB;CAC1E,IAAM,IAAM,EAAO,YAAY,GACzB,IAAU,EAAiB,MAAQ,aACnC,IAAS,EAAa,IAAI,CAAG;CAEnC,OACE,kBAAC,QAAD;EACE,WAAW,EACT,mFACA,EAAc,IACd,CACF;YALF,CAOG,KACC,kBAAC,QAAD;GACE,eAAY;GACZ,WAAU;EACX,CAAA,GAEF,EAAgB,CAAM,CACnB;;AAEV"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/** Every resource the BuildMyIQ subgraph declares an `@rbac` directive for. */
|
|
2
|
-
export type BuiResource = 'buildmyiq-course' | 'buildmyiq-module' | 'buildmyiq-lesson' | 'buildmyiq-skill' | 'buildmyiq-enrollment' | 'buildmyiq-cohort' | 'buildmyiq-certificate' | 'buildmyiq-assessment' | 'buildmyiq-question' | 'buildmyiq-submission' | 'buildmyiq-proctoring' | 'buildmyiq-lti-platform' | 'buildmyiq-lti-grade-sync' | 'buildmyiq-lti-roster';
|
|
2
|
+
export type BuiResource = 'buildmyiq-course' | 'buildmyiq-module' | 'buildmyiq-lesson' | 'buildmyiq-skill' | 'buildmyiq-enrollment' | 'buildmyiq-cohort' | 'buildmyiq-certificate' | 'buildmyiq-assessment' | 'buildmyiq-question' | 'buildmyiq-submission' | 'buildmyiq-proctoring' | 'buildmyiq-lti-platform' | 'buildmyiq-lti-grade-sync' | 'buildmyiq-lti-roster' | 'buildmyiq-automation';
|
|
3
3
|
/** Actions used by the BuildMyIQ `@rbac` directives. */
|
|
4
|
-
export type BuiAction = 'create' | 'read' | 'update' | 'delete' | 'list';
|
|
4
|
+
export type BuiAction = 'create' | 'read' | 'update' | 'delete' | 'list' | 'execute';
|
|
5
5
|
export interface UseBuiPermissionsResult {
|
|
6
6
|
/** Raw check against a `resource` × `action` pair. */
|
|
7
7
|
can: (resource: BuiResource, action: BuiAction) => boolean;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useBuiPermissions.d.ts","sourceRoot":"","sources":["../../../src/buildmyiq/hooks/useBuiPermissions.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"useBuiPermissions.d.ts","sourceRoot":"","sources":["../../../src/buildmyiq/hooks/useBuiPermissions.ts"],"names":[],"mappings":"AAkCA,+EAA+E;AAC/E,MAAM,MAAM,WAAW,GACnB,kBAAkB,GAClB,kBAAkB,GAClB,kBAAkB,GAClB,iBAAiB,GACjB,sBAAsB,GACtB,kBAAkB,GAClB,uBAAuB,GACvB,sBAAsB,GACtB,oBAAoB,GACpB,sBAAsB,GACtB,sBAAsB,GACtB,wBAAwB,GACxB,0BAA0B,GAC1B,sBAAsB,GACtB,sBAAsB,CAAC;AAE3B,wDAAwD;AACxD,MAAM,MAAM,SAAS,GAAG,QAAQ,GAAG,MAAM,GAAG,QAAQ,GAAG,QAAQ,GAAG,MAAM,GAAG,SAAS,CAAC;AAWrF,MAAM,WAAW,uBAAuB;I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