@lssm/example.learning-journey-ui-onboarding 0.0.0-canary-20251217073102 → 0.0.0-canary-20251217083314
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/.turbo/turbo-build$colon$bundle.log +397 -14
- package/CHANGELOG.md +10 -10
- package/dist/OnboardingMiniApp.d.ts +16 -0
- package/dist/OnboardingMiniApp.js +64 -0
- package/dist/components/CodeSnippet.d.ts +15 -0
- package/dist/{components-OUN5S2z0.mjs → components/CodeSnippet.js} +5 -3
- package/dist/components/JourneyMap.d.ts +16 -0
- package/dist/components/JourneyMap.js +48 -0
- package/dist/components/StepChecklist.d.ts +24 -0
- package/dist/{JourneyMap-CZ47DksM.mjs → components/StepChecklist.js} +7 -48
- package/dist/components/index.d.ts +4 -0
- package/dist/components/index.js +5 -0
- package/dist/docs/index.d.ts +1 -0
- package/dist/docs/index.js +1 -0
- package/dist/docs/learning-journey-ui-onboarding.docblock.d.ts +1 -0
- package/dist/docs/learning-journey-ui-onboarding.docblock.js +20 -0
- package/dist/{index.d.mts → example.d.ts} +1 -18
- package/dist/example.js +34 -0
- package/dist/examples/learning-journey-ui-shared/dist/components/BadgeDisplay.js +44 -0
- package/dist/examples/learning-journey-ui-shared/dist/components/StreakCounter.js +4 -0
- package/dist/examples/learning-journey-ui-shared/dist/components/ViewTabs.js +48 -0
- package/dist/examples/learning-journey-ui-shared/dist/components/XpBar.js +46 -0
- package/dist/examples/learning-journey-ui-shared/dist/components/index.js +4 -0
- package/dist/examples/learning-journey-ui-shared/dist/docs/index.js +1 -0
- package/dist/examples/learning-journey-ui-shared/dist/docs/learning-journey-ui-shared.docblock.js +20 -0
- package/dist/examples/learning-journey-ui-shared/dist/hooks/index.js +1 -0
- package/dist/examples/learning-journey-ui-shared/dist/hooks/useLearningProgress.js +73 -0
- package/dist/examples/learning-journey-ui-shared/dist/index.js +8 -0
- package/dist/examples/learning-journey-ui-shared/dist/libs/contracts/dist/docs/PUBLISHING.docblock.js +15 -0
- package/dist/examples/learning-journey-ui-shared/dist/libs/contracts/dist/docs/accessibility_wcag_compliance_specs.docblock.js +15 -0
- package/dist/examples/learning-journey-ui-shared/dist/libs/contracts/dist/docs/index.js +28 -0
- package/dist/examples/learning-journey-ui-shared/dist/libs/contracts/dist/docs/presentations.js +71 -0
- package/dist/examples/learning-journey-ui-shared/dist/libs/contracts/dist/docs/registry.js +44 -0
- package/dist/examples/learning-journey-ui-shared/dist/libs/contracts/dist/docs/tech/PHASE_1_QUICKSTART.docblock.js +15 -0
- package/dist/examples/learning-journey-ui-shared/dist/libs/contracts/dist/docs/tech/PHASE_2_AI_NATIVE_OPERATIONS.docblock.js +15 -0
- package/dist/examples/learning-journey-ui-shared/dist/libs/contracts/dist/docs/tech/PHASE_3_AUTO_EVOLUTION.docblock.js +15 -0
- package/dist/examples/learning-journey-ui-shared/dist/libs/contracts/dist/docs/tech/PHASE_4_PERSONALIZATION_ENGINE.docblock.js +15 -0
- package/dist/examples/learning-journey-ui-shared/dist/libs/contracts/dist/docs/tech/PHASE_5_ZERO_TOUCH_OPERATIONS.docblock.js +15 -0
- package/dist/examples/learning-journey-ui-shared/dist/libs/contracts/dist/docs/tech/auth/better-auth-nextjs.docblock.js +79 -0
- package/dist/examples/learning-journey-ui-shared/dist/libs/contracts/dist/docs/tech/contracts/openapi-export.docblock.js +56 -0
- package/dist/examples/learning-journey-ui-shared/dist/libs/contracts/dist/docs/tech/lifecycle-stage-system.docblock.js +15 -0
- package/dist/examples/learning-journey-ui-shared/dist/libs/contracts/dist/docs/tech/llm/llm-integration.docblock.js +356 -0
- package/dist/examples/learning-journey-ui-shared/dist/libs/contracts/dist/docs/tech/mcp-endpoints.docblock.js +36 -0
- package/dist/examples/learning-journey-ui-shared/dist/libs/contracts/dist/docs/tech/presentation-runtime.docblock.js +15 -0
- package/dist/examples/learning-journey-ui-shared/dist/libs/contracts/dist/docs/tech/schema/README.docblock.js +19 -0
- package/dist/examples/learning-journey-ui-shared/dist/libs/contracts/dist/docs/tech/studio/learning-events.docblock.js +47 -0
- package/dist/examples/learning-journey-ui-shared/dist/libs/contracts/dist/docs/tech/studio/learning-journeys.docblock.js +78 -0
- package/dist/examples/learning-journey-ui-shared/dist/libs/contracts/dist/docs/tech/studio/platform-admin-panel.docblock.js +83 -0
- package/dist/examples/learning-journey-ui-shared/dist/libs/contracts/dist/docs/tech/studio/project-access-teams.docblock.js +44 -0
- package/dist/examples/learning-journey-ui-shared/dist/libs/contracts/dist/docs/tech/studio/project-routing.docblock.js +66 -0
- package/dist/examples/learning-journey-ui-shared/dist/libs/contracts/dist/docs/tech/studio/sandbox-unlogged.docblock.js +39 -0
- package/dist/examples/learning-journey-ui-shared/dist/libs/contracts/dist/docs/tech/studio/team-invitations.docblock.js +68 -0
- package/dist/examples/learning-journey-ui-shared/dist/libs/contracts/dist/docs/tech/studio/workspace-ops.docblock.js +46 -0
- package/dist/examples/learning-journey-ui-shared/dist/libs/contracts/dist/docs/tech/studio/workspaces.docblock.js +61 -0
- package/dist/examples/learning-journey-ui-shared/dist/libs/contracts/dist/docs/tech/telemetry-ingest.docblock.js +154 -0
- package/dist/examples/learning-journey-ui-shared/dist/libs/contracts/dist/docs/tech/templates/runtime.docblock.js +19 -0
- package/dist/examples/learning-journey-ui-shared/dist/libs/contracts/dist/docs/tech/vscode-extension.docblock.js +100 -0
- package/dist/examples/learning-journey-ui-shared/dist/libs/contracts/dist/docs/tech/workflows/overview.docblock.js +19 -0
- package/dist/examples/learning-journey-ui-shared/dist/libs/design-system/dist/_virtual/rolldown_runtime.js +5 -0
- package/dist/examples/learning-journey-ui-shared/dist/libs/design-system/dist/components/atoms/Button.js +33 -0
- package/dist/examples/learning-journey-ui-shared/dist/libs/design-system/dist/ui-kit-web/dist/ui/button.js +55 -0
- package/dist/examples/learning-journey-ui-shared/dist/libs/design-system/dist/ui-kit-web/dist/ui-kit-core/dist/utils.js +13 -0
- package/dist/examples/learning-journey-ui-shared/dist/libs/ui-kit-web/dist/ui/progress.js +23 -0
- package/dist/examples/learning-journey-ui-shared/dist/libs/ui-kit-web/dist/ui/utils.js +10 -0
- package/dist/examples/learning-journey-ui-shared/dist/libs/ui-kit-web/dist/ui-kit-core/dist/utils.js +10 -0
- package/dist/index.d.ts +12 -0
- package/dist/index.js +14 -0
- package/dist/libs/contracts/dist/docs/PUBLISHING.docblock.js +16 -0
- package/dist/libs/contracts/dist/docs/accessibility_wcag_compliance_specs.docblock.js +16 -0
- package/dist/libs/contracts/dist/docs/index.js +29 -0
- package/dist/libs/contracts/dist/docs/presentations.js +71 -0
- package/dist/libs/contracts/dist/docs/registry.js +44 -0
- package/dist/libs/contracts/dist/docs/tech/PHASE_1_QUICKSTART.docblock.js +16 -0
- package/dist/libs/contracts/dist/docs/tech/PHASE_2_AI_NATIVE_OPERATIONS.docblock.js +16 -0
- package/dist/libs/contracts/dist/docs/tech/PHASE_3_AUTO_EVOLUTION.docblock.js +16 -0
- package/dist/libs/contracts/dist/docs/tech/PHASE_4_PERSONALIZATION_ENGINE.docblock.js +16 -0
- package/dist/libs/contracts/dist/docs/tech/PHASE_5_ZERO_TOUCH_OPERATIONS.docblock.js +16 -0
- package/dist/libs/contracts/dist/docs/tech/auth/better-auth-nextjs.docblock.js +80 -0
- package/dist/libs/contracts/dist/docs/tech/contracts/openapi-export.docblock.js +57 -0
- package/dist/libs/contracts/dist/docs/tech/lifecycle-stage-system.docblock.js +16 -0
- package/dist/libs/contracts/dist/docs/tech/llm/llm-integration.docblock.js +357 -0
- package/dist/libs/contracts/dist/docs/tech/mcp-endpoints.docblock.js +37 -0
- package/dist/libs/contracts/dist/docs/tech/presentation-runtime.docblock.js +16 -0
- package/dist/libs/contracts/dist/docs/tech/schema/README.docblock.js +20 -0
- package/dist/libs/contracts/dist/docs/tech/studio/learning-events.docblock.js +48 -0
- package/dist/libs/contracts/dist/docs/tech/studio/learning-journeys.docblock.js +79 -0
- package/dist/libs/contracts/dist/docs/tech/studio/platform-admin-panel.docblock.js +84 -0
- package/dist/libs/contracts/dist/docs/tech/studio/project-access-teams.docblock.js +45 -0
- package/dist/libs/contracts/dist/docs/tech/studio/project-routing.docblock.js +67 -0
- package/dist/libs/contracts/dist/docs/tech/studio/sandbox-unlogged.docblock.js +40 -0
- package/dist/libs/contracts/dist/docs/tech/studio/team-invitations.docblock.js +69 -0
- package/dist/libs/contracts/dist/docs/tech/studio/workspace-ops.docblock.js +47 -0
- package/dist/libs/contracts/dist/docs/tech/studio/workspaces.docblock.js +62 -0
- package/dist/libs/contracts/dist/docs/tech/telemetry-ingest.docblock.js +155 -0
- package/dist/libs/contracts/dist/docs/tech/templates/runtime.docblock.js +20 -0
- package/dist/libs/contracts/dist/docs/tech/vscode-extension.docblock.js +101 -0
- package/dist/libs/contracts/dist/docs/tech/workflows/overview.docblock.js +20 -0
- package/dist/libs/design-system/dist/_virtual/rolldown_runtime.js +5 -0
- package/dist/libs/design-system/dist/components/atoms/Button.js +33 -0
- package/dist/libs/design-system/dist/ui-kit-web/dist/ui/button.js +55 -0
- package/dist/libs/design-system/dist/ui-kit-web/dist/ui-kit-core/dist/utils.js +13 -0
- package/dist/libs/ui-kit-core/dist/utils.js +10 -0
- package/dist/libs/ui-kit-web/dist/ui/card.js +36 -0
- package/dist/libs/ui-kit-web/dist/ui/progress.js +23 -0
- package/dist/libs/ui-kit-web/dist/ui/utils.js +10 -0
- package/dist/libs/ui-kit-web/dist/ui-kit-core/dist/utils.js +10 -0
- package/dist/views/Overview.d.ts +14 -0
- package/dist/views/Overview.js +180 -0
- package/dist/views/Progress.d.ts +10 -0
- package/dist/views/Progress.js +162 -0
- package/dist/views/Steps.d.ts +11 -0
- package/dist/views/Steps.js +91 -0
- package/dist/views/Timeline.d.ts +10 -0
- package/dist/views/Timeline.js +97 -0
- package/dist/views/index.d.ts +5 -0
- package/dist/views/index.js +6 -0
- package/package.json +26 -17
- package/tsdown.config.js +14 -10
- package/dist/components/index.d.mts +0 -2
- package/dist/components/index.mjs +0 -4
- package/dist/index-BSiowBYJ.d.mts +0 -33
- package/dist/index-DOpWREi-.d.mts +0 -48
- package/dist/index.mjs +0 -110
- package/dist/views/index.d.mts +0 -2
- package/dist/views/index.mjs +0 -4
- package/dist/views-BS9u6UnM.mjs +0 -504
package/dist/index.mjs
DELETED
|
@@ -1,110 +0,0 @@
|
|
|
1
|
-
import { i as Overview, n as ProgressView, r as Steps, t as Timeline } from "./views-BS9u6UnM.mjs";
|
|
2
|
-
import { n as StepChecklist, t as JourneyMap } from "./JourneyMap-CZ47DksM.mjs";
|
|
3
|
-
import { t as CodeSnippet } from "./components-OUN5S2z0.mjs";
|
|
4
|
-
import { useCallback, useState } from "react";
|
|
5
|
-
import { Card, CardContent } from "@lssm/lib.ui-kit-web/ui/card";
|
|
6
|
-
import { ViewTabs, useLearningProgress } from "@lssm/example.learning-journey-ui-shared";
|
|
7
|
-
import { jsx, jsxs } from "react/jsx-runtime";
|
|
8
|
-
import { registerDocBlocks } from "@lssm/lib.contracts/docs";
|
|
9
|
-
|
|
10
|
-
//#region src/OnboardingMiniApp.tsx
|
|
11
|
-
function OnboardingMiniApp({ track, progress: externalProgress, onStepComplete: externalOnStepComplete, onViewChange, initialView = "overview" }) {
|
|
12
|
-
const [currentView, setCurrentView] = useState(initialView);
|
|
13
|
-
const { progress: internalProgress, completeStep: internalCompleteStep } = useLearningProgress(track);
|
|
14
|
-
const progress = externalProgress ?? internalProgress;
|
|
15
|
-
const handleViewChange = useCallback((view) => {
|
|
16
|
-
setCurrentView(view);
|
|
17
|
-
onViewChange?.(view);
|
|
18
|
-
}, [onViewChange]);
|
|
19
|
-
const handleStepComplete = useCallback((stepId) => {
|
|
20
|
-
if (externalOnStepComplete) externalOnStepComplete(stepId);
|
|
21
|
-
else internalCompleteStep(stepId);
|
|
22
|
-
}, [externalOnStepComplete, internalCompleteStep]);
|
|
23
|
-
const handleStartFromOverview = useCallback(() => {
|
|
24
|
-
setCurrentView("steps");
|
|
25
|
-
onViewChange?.("steps");
|
|
26
|
-
}, [onViewChange]);
|
|
27
|
-
const renderView = () => {
|
|
28
|
-
const viewProps = {
|
|
29
|
-
track,
|
|
30
|
-
progress,
|
|
31
|
-
onStepComplete: handleStepComplete
|
|
32
|
-
};
|
|
33
|
-
switch (currentView) {
|
|
34
|
-
case "overview": return /* @__PURE__ */ jsx(Overview, {
|
|
35
|
-
...viewProps,
|
|
36
|
-
onStart: handleStartFromOverview
|
|
37
|
-
});
|
|
38
|
-
case "steps": return /* @__PURE__ */ jsx(Steps, { ...viewProps });
|
|
39
|
-
case "progress": return /* @__PURE__ */ jsx(ProgressView, { ...viewProps });
|
|
40
|
-
case "timeline": return /* @__PURE__ */ jsx(Timeline, { ...viewProps });
|
|
41
|
-
default: return /* @__PURE__ */ jsx(Overview, {
|
|
42
|
-
...viewProps,
|
|
43
|
-
onStart: handleStartFromOverview
|
|
44
|
-
});
|
|
45
|
-
}
|
|
46
|
-
};
|
|
47
|
-
return /* @__PURE__ */ jsxs("div", {
|
|
48
|
-
className: "space-y-6",
|
|
49
|
-
children: [/* @__PURE__ */ jsx(Card, { children: /* @__PURE__ */ jsx(CardContent, {
|
|
50
|
-
className: "p-4",
|
|
51
|
-
children: /* @__PURE__ */ jsx(ViewTabs, {
|
|
52
|
-
currentView,
|
|
53
|
-
onViewChange: handleViewChange
|
|
54
|
-
})
|
|
55
|
-
}) }), renderView()]
|
|
56
|
-
});
|
|
57
|
-
}
|
|
58
|
-
|
|
59
|
-
//#endregion
|
|
60
|
-
//#region src/example.ts
|
|
61
|
-
const example = {
|
|
62
|
-
id: "learning-journey-ui-onboarding",
|
|
63
|
-
title: "Learning Journey UI — Onboarding",
|
|
64
|
-
summary: "UI mini-app for onboarding patterns: checklists, code snippets, journey map.",
|
|
65
|
-
tags: [
|
|
66
|
-
"learning",
|
|
67
|
-
"ui",
|
|
68
|
-
"onboarding"
|
|
69
|
-
],
|
|
70
|
-
kind: "ui",
|
|
71
|
-
visibility: "public",
|
|
72
|
-
docs: { rootDocId: "docs.examples.learning-journey-ui-onboarding" },
|
|
73
|
-
entrypoints: {
|
|
74
|
-
packageName: "@lssm/example.learning-journey-ui-onboarding",
|
|
75
|
-
docs: "./docs"
|
|
76
|
-
},
|
|
77
|
-
surfaces: {
|
|
78
|
-
templates: true,
|
|
79
|
-
sandbox: {
|
|
80
|
-
enabled: true,
|
|
81
|
-
modes: ["playground", "markdown"]
|
|
82
|
-
},
|
|
83
|
-
studio: {
|
|
84
|
-
enabled: true,
|
|
85
|
-
installable: true
|
|
86
|
-
},
|
|
87
|
-
mcp: { enabled: true }
|
|
88
|
-
}
|
|
89
|
-
};
|
|
90
|
-
var example_default = example;
|
|
91
|
-
|
|
92
|
-
//#endregion
|
|
93
|
-
//#region src/docs/learning-journey-ui-onboarding.docblock.ts
|
|
94
|
-
registerDocBlocks([{
|
|
95
|
-
id: "docs.examples.learning-journey-ui-onboarding",
|
|
96
|
-
title: "Learning Journey UI — Onboarding",
|
|
97
|
-
summary: "UI mini-app components for onboarding: checklists, snippets, and journey mapping.",
|
|
98
|
-
kind: "reference",
|
|
99
|
-
visibility: "public",
|
|
100
|
-
route: "/docs/examples/learning-journey-ui-onboarding",
|
|
101
|
-
tags: [
|
|
102
|
-
"learning",
|
|
103
|
-
"ui",
|
|
104
|
-
"onboarding"
|
|
105
|
-
],
|
|
106
|
-
body: `## Includes\n- Onboarding mini-app shell\n- Views: overview, steps, progress, timeline\n- Components: step checklist, code snippet, journey map\n\n## Notes\n- Compose with design system components.\n- Ensure accessible labels and keyboard navigation.`
|
|
107
|
-
}]);
|
|
108
|
-
|
|
109
|
-
//#endregion
|
|
110
|
-
export { CodeSnippet, JourneyMap, OnboardingMiniApp, Overview, ProgressView as Progress, StepChecklist, Steps, Timeline, example_default as example };
|
package/dist/views/index.d.mts
DELETED
package/dist/views/index.mjs
DELETED
package/dist/views-BS9u6UnM.mjs
DELETED
|
@@ -1,504 +0,0 @@
|
|
|
1
|
-
import { n as StepChecklist, t as JourneyMap } from "./JourneyMap-CZ47DksM.mjs";
|
|
2
|
-
import { useState } from "react";
|
|
3
|
-
import { Card, CardContent, CardHeader, CardTitle } from "@lssm/lib.ui-kit-web/ui/card";
|
|
4
|
-
import { BadgeDisplay, XpBar } from "@lssm/example.learning-journey-ui-shared";
|
|
5
|
-
import { Button } from "@lssm/lib.design-system";
|
|
6
|
-
import { Progress } from "@lssm/lib.ui-kit-web/ui/progress";
|
|
7
|
-
import { jsx, jsxs } from "react/jsx-runtime";
|
|
8
|
-
|
|
9
|
-
//#region src/views/Overview.tsx
|
|
10
|
-
function Overview({ track, progress, onStart }) {
|
|
11
|
-
const totalSteps = track.steps.length;
|
|
12
|
-
const completedSteps = progress.completedStepIds.length;
|
|
13
|
-
const percentComplete = totalSteps > 0 ? completedSteps / totalSteps * 100 : 0;
|
|
14
|
-
const isComplete = completedSteps === totalSteps;
|
|
15
|
-
const remainingSteps = totalSteps - completedSteps;
|
|
16
|
-
const estimatedMinutes = remainingSteps * 5;
|
|
17
|
-
const totalXp = track.totalXp ?? track.steps.reduce((sum, s) => sum + (s.xpReward ?? 0), 0) + (track.completionRewards?.xpBonus ?? 0);
|
|
18
|
-
return /* @__PURE__ */ jsxs("div", {
|
|
19
|
-
className: "space-y-6",
|
|
20
|
-
children: [
|
|
21
|
-
/* @__PURE__ */ jsx(Card, {
|
|
22
|
-
className: "overflow-hidden bg-gradient-to-r from-blue-500/10 via-violet-500/10 to-purple-500/10",
|
|
23
|
-
children: /* @__PURE__ */ jsx(CardContent, {
|
|
24
|
-
className: "p-8",
|
|
25
|
-
children: /* @__PURE__ */ jsxs("div", {
|
|
26
|
-
className: "flex flex-col items-center gap-6 text-center md:flex-row md:text-left",
|
|
27
|
-
children: [
|
|
28
|
-
/* @__PURE__ */ jsx("div", {
|
|
29
|
-
className: "flex h-20 w-20 items-center justify-center rounded-2xl bg-gradient-to-br from-blue-500 to-violet-600 text-4xl shadow-lg",
|
|
30
|
-
children: isComplete ? "🎉" : "🚀"
|
|
31
|
-
}),
|
|
32
|
-
/* @__PURE__ */ jsxs("div", {
|
|
33
|
-
className: "flex-1",
|
|
34
|
-
children: [
|
|
35
|
-
/* @__PURE__ */ jsx("h1", {
|
|
36
|
-
className: "text-2xl font-bold",
|
|
37
|
-
children: track.name
|
|
38
|
-
}),
|
|
39
|
-
/* @__PURE__ */ jsx("p", {
|
|
40
|
-
className: "text-muted-foreground mt-1 max-w-2xl",
|
|
41
|
-
children: track.description
|
|
42
|
-
}),
|
|
43
|
-
!isComplete && /* @__PURE__ */ jsxs("p", {
|
|
44
|
-
className: "text-muted-foreground mt-3 text-sm",
|
|
45
|
-
children: [
|
|
46
|
-
"⏱️ Estimated time:",
|
|
47
|
-
" ",
|
|
48
|
-
estimatedMinutes > 0 ? `~${estimatedMinutes} minutes` : "Less than a minute"
|
|
49
|
-
]
|
|
50
|
-
})
|
|
51
|
-
]
|
|
52
|
-
}),
|
|
53
|
-
!isComplete && /* @__PURE__ */ jsx(Button, {
|
|
54
|
-
size: "lg",
|
|
55
|
-
onClick: onStart,
|
|
56
|
-
children: completedSteps > 0 ? "Continue" : "Get Started"
|
|
57
|
-
})
|
|
58
|
-
]
|
|
59
|
-
})
|
|
60
|
-
})
|
|
61
|
-
}),
|
|
62
|
-
/* @__PURE__ */ jsxs("div", {
|
|
63
|
-
className: "grid gap-4 md:grid-cols-3",
|
|
64
|
-
children: [
|
|
65
|
-
/* @__PURE__ */ jsxs(Card, { children: [/* @__PURE__ */ jsx(CardHeader, {
|
|
66
|
-
className: "pb-2",
|
|
67
|
-
children: /* @__PURE__ */ jsx(CardTitle, {
|
|
68
|
-
className: "text-muted-foreground text-sm font-medium",
|
|
69
|
-
children: "Progress"
|
|
70
|
-
})
|
|
71
|
-
}), /* @__PURE__ */ jsxs(CardContent, { children: [
|
|
72
|
-
/* @__PURE__ */ jsxs("div", {
|
|
73
|
-
className: "text-3xl font-bold",
|
|
74
|
-
children: [Math.round(percentComplete), "%"]
|
|
75
|
-
}),
|
|
76
|
-
/* @__PURE__ */ jsx(Progress, {
|
|
77
|
-
value: percentComplete,
|
|
78
|
-
className: "mt-2 h-2"
|
|
79
|
-
}),
|
|
80
|
-
/* @__PURE__ */ jsxs("p", {
|
|
81
|
-
className: "text-muted-foreground mt-2 text-sm",
|
|
82
|
-
children: [
|
|
83
|
-
completedSteps,
|
|
84
|
-
" of ",
|
|
85
|
-
totalSteps,
|
|
86
|
-
" steps completed"
|
|
87
|
-
]
|
|
88
|
-
})
|
|
89
|
-
] })] }),
|
|
90
|
-
/* @__PURE__ */ jsxs(Card, { children: [/* @__PURE__ */ jsx(CardHeader, {
|
|
91
|
-
className: "pb-2",
|
|
92
|
-
children: /* @__PURE__ */ jsx(CardTitle, {
|
|
93
|
-
className: "text-muted-foreground text-sm font-medium",
|
|
94
|
-
children: "XP Earned"
|
|
95
|
-
})
|
|
96
|
-
}), /* @__PURE__ */ jsxs(CardContent, { children: [/* @__PURE__ */ jsx("div", {
|
|
97
|
-
className: "text-3xl font-bold text-blue-500",
|
|
98
|
-
children: progress.xpEarned
|
|
99
|
-
}), /* @__PURE__ */ jsx(XpBar, {
|
|
100
|
-
current: progress.xpEarned,
|
|
101
|
-
max: totalXp,
|
|
102
|
-
showLabel: false,
|
|
103
|
-
size: "sm"
|
|
104
|
-
})] })] }),
|
|
105
|
-
/* @__PURE__ */ jsxs(Card, { children: [/* @__PURE__ */ jsx(CardHeader, {
|
|
106
|
-
className: "pb-2",
|
|
107
|
-
children: /* @__PURE__ */ jsx(CardTitle, {
|
|
108
|
-
className: "text-muted-foreground text-sm font-medium",
|
|
109
|
-
children: "Time Remaining"
|
|
110
|
-
})
|
|
111
|
-
}), /* @__PURE__ */ jsxs(CardContent, { children: [/* @__PURE__ */ jsx("div", {
|
|
112
|
-
className: "text-3xl font-bold",
|
|
113
|
-
children: isComplete ? "✓" : `~${estimatedMinutes}m`
|
|
114
|
-
}), /* @__PURE__ */ jsx("p", {
|
|
115
|
-
className: "text-muted-foreground mt-2 text-sm",
|
|
116
|
-
children: isComplete ? "All done!" : `${remainingSteps} steps to go`
|
|
117
|
-
})] })] })
|
|
118
|
-
]
|
|
119
|
-
}),
|
|
120
|
-
/* @__PURE__ */ jsxs(Card, { children: [/* @__PURE__ */ jsx(CardHeader, { children: /* @__PURE__ */ jsxs(CardTitle, {
|
|
121
|
-
className: "flex items-center gap-2",
|
|
122
|
-
children: [/* @__PURE__ */ jsx("span", { children: "📋" }), /* @__PURE__ */ jsx("span", { children: "Your Journey" })]
|
|
123
|
-
}) }), /* @__PURE__ */ jsx(CardContent, { children: /* @__PURE__ */ jsx("div", {
|
|
124
|
-
className: "space-y-3",
|
|
125
|
-
children: track.steps.map((step, index) => {
|
|
126
|
-
const isStepCompleted = progress.completedStepIds.includes(step.id);
|
|
127
|
-
const isCurrent = !isStepCompleted && track.steps.slice(0, index).every((s) => progress.completedStepIds.includes(s.id));
|
|
128
|
-
return /* @__PURE__ */ jsxs("div", {
|
|
129
|
-
className: "flex items-center gap-4 rounded-lg border p-3",
|
|
130
|
-
children: [
|
|
131
|
-
/* @__PURE__ */ jsx("div", {
|
|
132
|
-
className: `flex h-8 w-8 shrink-0 items-center justify-center rounded-full text-sm font-semibold ${isStepCompleted ? "bg-green-500 text-white" : isCurrent ? "bg-blue-500 text-white" : "bg-muted text-muted-foreground"}`,
|
|
133
|
-
children: isStepCompleted ? "✓" : index + 1
|
|
134
|
-
}),
|
|
135
|
-
/* @__PURE__ */ jsx("div", {
|
|
136
|
-
className: "min-w-0 flex-1",
|
|
137
|
-
children: /* @__PURE__ */ jsx("p", {
|
|
138
|
-
className: `font-medium ${isStepCompleted ? "text-green-500" : isCurrent ? "text-foreground" : "text-muted-foreground"}`,
|
|
139
|
-
children: step.title
|
|
140
|
-
})
|
|
141
|
-
}),
|
|
142
|
-
step.xpReward && /* @__PURE__ */ jsxs("span", {
|
|
143
|
-
className: "text-muted-foreground text-sm",
|
|
144
|
-
children: [
|
|
145
|
-
"+",
|
|
146
|
-
step.xpReward,
|
|
147
|
-
" XP"
|
|
148
|
-
]
|
|
149
|
-
})
|
|
150
|
-
]
|
|
151
|
-
}, step.id);
|
|
152
|
-
})
|
|
153
|
-
}) })] }),
|
|
154
|
-
isComplete && /* @__PURE__ */ jsx(Card, {
|
|
155
|
-
className: "border-green-500/50 bg-green-500/5",
|
|
156
|
-
children: /* @__PURE__ */ jsxs(CardContent, {
|
|
157
|
-
className: "flex items-center gap-4 p-6",
|
|
158
|
-
children: [/* @__PURE__ */ jsx("div", {
|
|
159
|
-
className: "text-4xl",
|
|
160
|
-
children: "🎉"
|
|
161
|
-
}), /* @__PURE__ */ jsxs("div", { children: [/* @__PURE__ */ jsx("h3", {
|
|
162
|
-
className: "text-lg font-semibold text-green-500",
|
|
163
|
-
children: "Onboarding Complete!"
|
|
164
|
-
}), /* @__PURE__ */ jsxs("p", {
|
|
165
|
-
className: "text-muted-foreground",
|
|
166
|
-
children: [
|
|
167
|
-
"You've completed all ",
|
|
168
|
-
totalSteps,
|
|
169
|
-
" steps. Welcome aboard!"
|
|
170
|
-
]
|
|
171
|
-
})] })]
|
|
172
|
-
})
|
|
173
|
-
})
|
|
174
|
-
]
|
|
175
|
-
});
|
|
176
|
-
}
|
|
177
|
-
|
|
178
|
-
//#endregion
|
|
179
|
-
//#region src/views/Steps.tsx
|
|
180
|
-
function Steps({ track, progress, onStepComplete }) {
|
|
181
|
-
const [expandedStepId, setExpandedStepId] = useState(() => {
|
|
182
|
-
return track.steps.find((s) => !progress.completedStepIds.includes(s.id))?.id ?? null;
|
|
183
|
-
});
|
|
184
|
-
const completedSteps = progress.completedStepIds.length;
|
|
185
|
-
const totalSteps = track.steps.length;
|
|
186
|
-
const percentComplete = totalSteps > 0 ? completedSteps / totalSteps * 100 : 0;
|
|
187
|
-
const currentStepIndex = track.steps.findIndex((s) => !progress.completedStepIds.includes(s.id));
|
|
188
|
-
return /* @__PURE__ */ jsxs("div", {
|
|
189
|
-
className: "space-y-6",
|
|
190
|
-
children: [
|
|
191
|
-
/* @__PURE__ */ jsxs("div", {
|
|
192
|
-
className: "space-y-2",
|
|
193
|
-
children: [/* @__PURE__ */ jsxs("div", {
|
|
194
|
-
className: "flex items-center justify-between",
|
|
195
|
-
children: [/* @__PURE__ */ jsx("h2", {
|
|
196
|
-
className: "text-xl font-bold",
|
|
197
|
-
children: "Complete Each Step"
|
|
198
|
-
}), /* @__PURE__ */ jsxs("span", {
|
|
199
|
-
className: "text-muted-foreground text-sm",
|
|
200
|
-
children: [
|
|
201
|
-
completedSteps,
|
|
202
|
-
" / ",
|
|
203
|
-
totalSteps,
|
|
204
|
-
" completed"
|
|
205
|
-
]
|
|
206
|
-
})]
|
|
207
|
-
}), /* @__PURE__ */ jsx(Progress, {
|
|
208
|
-
value: percentComplete,
|
|
209
|
-
className: "h-2"
|
|
210
|
-
})]
|
|
211
|
-
}),
|
|
212
|
-
/* @__PURE__ */ jsx("div", {
|
|
213
|
-
className: "space-y-3",
|
|
214
|
-
children: track.steps.map((step, index) => {
|
|
215
|
-
const isCompleted = progress.completedStepIds.includes(step.id);
|
|
216
|
-
const isCurrent = index === currentStepIndex;
|
|
217
|
-
return /* @__PURE__ */ jsx(StepChecklist, {
|
|
218
|
-
step,
|
|
219
|
-
stepNumber: index + 1,
|
|
220
|
-
isCompleted,
|
|
221
|
-
isCurrent,
|
|
222
|
-
isExpanded: expandedStepId === step.id,
|
|
223
|
-
onToggle: () => setExpandedStepId(expandedStepId === step.id ? null : step.id),
|
|
224
|
-
onComplete: () => {
|
|
225
|
-
onStepComplete?.(step.id);
|
|
226
|
-
const nextStep = track.steps[index + 1];
|
|
227
|
-
if (nextStep && !progress.completedStepIds.includes(nextStep.id)) setExpandedStepId(nextStep.id);
|
|
228
|
-
}
|
|
229
|
-
}, step.id);
|
|
230
|
-
})
|
|
231
|
-
}),
|
|
232
|
-
track.completionRewards && percentComplete < 100 && /* @__PURE__ */ jsx("div", {
|
|
233
|
-
className: "rounded-lg border border-blue-500/30 bg-blue-500/5 p-4",
|
|
234
|
-
children: /* @__PURE__ */ jsxs("p", {
|
|
235
|
-
className: "text-sm",
|
|
236
|
-
children: [
|
|
237
|
-
"🎁 Complete all steps to unlock:",
|
|
238
|
-
track.completionRewards.xpBonus && /* @__PURE__ */ jsxs("span", {
|
|
239
|
-
className: "ml-2 font-semibold text-blue-500",
|
|
240
|
-
children: [
|
|
241
|
-
"+",
|
|
242
|
-
track.completionRewards.xpBonus,
|
|
243
|
-
" XP bonus"
|
|
244
|
-
]
|
|
245
|
-
}),
|
|
246
|
-
track.completionRewards.badgeKey && /* @__PURE__ */ jsxs("span", {
|
|
247
|
-
className: "ml-2 font-semibold text-amber-500",
|
|
248
|
-
children: [
|
|
249
|
-
"+ \"",
|
|
250
|
-
track.completionRewards.badgeKey,
|
|
251
|
-
"\" badge"
|
|
252
|
-
]
|
|
253
|
-
})
|
|
254
|
-
]
|
|
255
|
-
})
|
|
256
|
-
})
|
|
257
|
-
]
|
|
258
|
-
});
|
|
259
|
-
}
|
|
260
|
-
|
|
261
|
-
//#endregion
|
|
262
|
-
//#region src/views/Progress.tsx
|
|
263
|
-
function ProgressView({ track, progress }) {
|
|
264
|
-
const totalSteps = track.steps.length;
|
|
265
|
-
const completedSteps = progress.completedStepIds.length;
|
|
266
|
-
const percentComplete = totalSteps > 0 ? completedSteps / totalSteps * 100 : 0;
|
|
267
|
-
const totalXp = track.totalXp ?? track.steps.reduce((sum, s) => sum + (s.xpReward ?? 0), 0) + (track.completionRewards?.xpBonus ?? 0);
|
|
268
|
-
const remainingSteps = totalSteps - completedSteps;
|
|
269
|
-
const estimatedMinutes = remainingSteps * 5;
|
|
270
|
-
return /* @__PURE__ */ jsxs("div", {
|
|
271
|
-
className: "space-y-6",
|
|
272
|
-
children: [
|
|
273
|
-
/* @__PURE__ */ jsxs(Card, { children: [/* @__PURE__ */ jsx(CardHeader, { children: /* @__PURE__ */ jsxs(CardTitle, {
|
|
274
|
-
className: "flex items-center gap-2",
|
|
275
|
-
children: [/* @__PURE__ */ jsx("span", { children: "📈" }), /* @__PURE__ */ jsx("span", { children: "Your Progress" })]
|
|
276
|
-
}) }), /* @__PURE__ */ jsxs(CardContent, {
|
|
277
|
-
className: "space-y-6",
|
|
278
|
-
children: [/* @__PURE__ */ jsx("div", {
|
|
279
|
-
className: "flex items-center justify-center",
|
|
280
|
-
children: /* @__PURE__ */ jsxs("div", {
|
|
281
|
-
className: "relative flex h-40 w-40 items-center justify-center",
|
|
282
|
-
children: [/* @__PURE__ */ jsxs("svg", {
|
|
283
|
-
className: "absolute h-full w-full -rotate-90",
|
|
284
|
-
viewBox: "0 0 100 100",
|
|
285
|
-
children: [/* @__PURE__ */ jsx("circle", {
|
|
286
|
-
cx: "50",
|
|
287
|
-
cy: "50",
|
|
288
|
-
r: "45",
|
|
289
|
-
fill: "none",
|
|
290
|
-
strokeWidth: "8",
|
|
291
|
-
className: "stroke-muted"
|
|
292
|
-
}), /* @__PURE__ */ jsx("circle", {
|
|
293
|
-
cx: "50",
|
|
294
|
-
cy: "50",
|
|
295
|
-
r: "45",
|
|
296
|
-
fill: "none",
|
|
297
|
-
strokeWidth: "8",
|
|
298
|
-
strokeLinecap: "round",
|
|
299
|
-
strokeDasharray: `${percentComplete * 2.83} 283`,
|
|
300
|
-
className: "stroke-blue-500 transition-all duration-500"
|
|
301
|
-
})]
|
|
302
|
-
}), /* @__PURE__ */ jsxs("div", {
|
|
303
|
-
className: "text-center",
|
|
304
|
-
children: [/* @__PURE__ */ jsxs("div", {
|
|
305
|
-
className: "text-3xl font-bold",
|
|
306
|
-
children: [Math.round(percentComplete), "%"]
|
|
307
|
-
}), /* @__PURE__ */ jsx("div", {
|
|
308
|
-
className: "text-muted-foreground text-sm",
|
|
309
|
-
children: "Complete"
|
|
310
|
-
})]
|
|
311
|
-
})]
|
|
312
|
-
})
|
|
313
|
-
}), /* @__PURE__ */ jsxs("div", {
|
|
314
|
-
className: "grid grid-cols-3 gap-4 text-center",
|
|
315
|
-
children: [
|
|
316
|
-
/* @__PURE__ */ jsxs("div", { children: [/* @__PURE__ */ jsx("div", {
|
|
317
|
-
className: "text-2xl font-bold text-green-500",
|
|
318
|
-
children: completedSteps
|
|
319
|
-
}), /* @__PURE__ */ jsx("div", {
|
|
320
|
-
className: "text-muted-foreground text-sm",
|
|
321
|
-
children: "Completed"
|
|
322
|
-
})] }),
|
|
323
|
-
/* @__PURE__ */ jsxs("div", { children: [/* @__PURE__ */ jsx("div", {
|
|
324
|
-
className: "text-2xl font-bold text-orange-500",
|
|
325
|
-
children: remainingSteps
|
|
326
|
-
}), /* @__PURE__ */ jsx("div", {
|
|
327
|
-
className: "text-muted-foreground text-sm",
|
|
328
|
-
children: "Remaining"
|
|
329
|
-
})] }),
|
|
330
|
-
/* @__PURE__ */ jsxs("div", { children: [/* @__PURE__ */ jsxs("div", {
|
|
331
|
-
className: "text-2xl font-bold",
|
|
332
|
-
children: [estimatedMinutes, "m"]
|
|
333
|
-
}), /* @__PURE__ */ jsx("div", {
|
|
334
|
-
className: "text-muted-foreground text-sm",
|
|
335
|
-
children: "Est. Time"
|
|
336
|
-
})] })
|
|
337
|
-
]
|
|
338
|
-
})]
|
|
339
|
-
})] }),
|
|
340
|
-
/* @__PURE__ */ jsxs(Card, { children: [/* @__PURE__ */ jsx(CardHeader, { children: /* @__PURE__ */ jsxs(CardTitle, {
|
|
341
|
-
className: "flex items-center gap-2",
|
|
342
|
-
children: [/* @__PURE__ */ jsx("span", { children: "⚡" }), /* @__PURE__ */ jsx("span", { children: "Experience Points" })]
|
|
343
|
-
}) }), /* @__PURE__ */ jsxs(CardContent, {
|
|
344
|
-
className: "space-y-4",
|
|
345
|
-
children: [/* @__PURE__ */ jsxs("div", {
|
|
346
|
-
className: "flex items-baseline gap-2",
|
|
347
|
-
children: [/* @__PURE__ */ jsx("span", {
|
|
348
|
-
className: "text-3xl font-bold text-blue-500",
|
|
349
|
-
children: progress.xpEarned
|
|
350
|
-
}), /* @__PURE__ */ jsxs("span", {
|
|
351
|
-
className: "text-muted-foreground",
|
|
352
|
-
children: [
|
|
353
|
-
"/ ",
|
|
354
|
-
totalXp,
|
|
355
|
-
" XP"
|
|
356
|
-
]
|
|
357
|
-
})]
|
|
358
|
-
}), /* @__PURE__ */ jsx(XpBar, {
|
|
359
|
-
current: progress.xpEarned,
|
|
360
|
-
max: totalXp,
|
|
361
|
-
showLabel: false,
|
|
362
|
-
size: "lg"
|
|
363
|
-
})]
|
|
364
|
-
})] }),
|
|
365
|
-
/* @__PURE__ */ jsxs(Card, { children: [/* @__PURE__ */ jsx(CardHeader, { children: /* @__PURE__ */ jsxs(CardTitle, {
|
|
366
|
-
className: "flex items-center gap-2",
|
|
367
|
-
children: [/* @__PURE__ */ jsx("span", { children: "🏅" }), /* @__PURE__ */ jsx("span", { children: "Achievements" })]
|
|
368
|
-
}) }), /* @__PURE__ */ jsxs(CardContent, { children: [/* @__PURE__ */ jsx(BadgeDisplay, {
|
|
369
|
-
badges: progress.badges,
|
|
370
|
-
size: "lg"
|
|
371
|
-
}), progress.badges.length === 0 && track.completionRewards?.badgeKey && /* @__PURE__ */ jsxs("p", {
|
|
372
|
-
className: "text-muted-foreground text-sm",
|
|
373
|
-
children: [
|
|
374
|
-
"Complete all steps to earn the \"",
|
|
375
|
-
track.completionRewards.badgeKey,
|
|
376
|
-
"\" badge!"
|
|
377
|
-
]
|
|
378
|
-
})] })] }),
|
|
379
|
-
/* @__PURE__ */ jsxs(Card, { children: [/* @__PURE__ */ jsx(CardHeader, { children: /* @__PURE__ */ jsxs(CardTitle, {
|
|
380
|
-
className: "flex items-center gap-2",
|
|
381
|
-
children: [/* @__PURE__ */ jsx("span", { children: "📋" }), /* @__PURE__ */ jsx("span", { children: "Step Details" })]
|
|
382
|
-
}) }), /* @__PURE__ */ jsx(CardContent, { children: /* @__PURE__ */ jsx("div", {
|
|
383
|
-
className: "space-y-3",
|
|
384
|
-
children: track.steps.map((step, index) => {
|
|
385
|
-
const isCompleted = progress.completedStepIds.includes(step.id);
|
|
386
|
-
const stepProgress = isCompleted ? 100 : 0;
|
|
387
|
-
return /* @__PURE__ */ jsxs("div", {
|
|
388
|
-
className: "space-y-1",
|
|
389
|
-
children: [/* @__PURE__ */ jsxs("div", {
|
|
390
|
-
className: "flex items-center justify-between text-sm",
|
|
391
|
-
children: [/* @__PURE__ */ jsxs("span", {
|
|
392
|
-
className: isCompleted ? "text-green-500" : "text-foreground",
|
|
393
|
-
children: [
|
|
394
|
-
index + 1,
|
|
395
|
-
". ",
|
|
396
|
-
step.title
|
|
397
|
-
]
|
|
398
|
-
}), /* @__PURE__ */ jsx("span", {
|
|
399
|
-
className: isCompleted ? "text-green-500" : "text-muted-foreground",
|
|
400
|
-
children: isCompleted ? "✓" : "Pending"
|
|
401
|
-
})]
|
|
402
|
-
}), /* @__PURE__ */ jsx(Progress, {
|
|
403
|
-
value: stepProgress,
|
|
404
|
-
className: "h-1"
|
|
405
|
-
})]
|
|
406
|
-
}, step.id);
|
|
407
|
-
})
|
|
408
|
-
}) })] })
|
|
409
|
-
]
|
|
410
|
-
});
|
|
411
|
-
}
|
|
412
|
-
|
|
413
|
-
//#endregion
|
|
414
|
-
//#region src/views/Timeline.tsx
|
|
415
|
-
function Timeline({ track, progress }) {
|
|
416
|
-
const currentStepId = track.steps.find((s) => !progress.completedStepIds.includes(s.id))?.id ?? null;
|
|
417
|
-
return /* @__PURE__ */ jsxs("div", {
|
|
418
|
-
className: "space-y-6",
|
|
419
|
-
children: [
|
|
420
|
-
/* @__PURE__ */ jsxs("div", {
|
|
421
|
-
className: "text-center",
|
|
422
|
-
children: [/* @__PURE__ */ jsx("h2", {
|
|
423
|
-
className: "text-xl font-bold",
|
|
424
|
-
children: "Your Learning Journey"
|
|
425
|
-
}), /* @__PURE__ */ jsx("p", {
|
|
426
|
-
className: "text-muted-foreground",
|
|
427
|
-
children: "Follow the path through each surface and feature"
|
|
428
|
-
})]
|
|
429
|
-
}),
|
|
430
|
-
/* @__PURE__ */ jsxs(Card, { children: [/* @__PURE__ */ jsx(CardHeader, { children: /* @__PURE__ */ jsxs(CardTitle, {
|
|
431
|
-
className: "flex items-center gap-2",
|
|
432
|
-
children: [/* @__PURE__ */ jsx("span", { children: "🗺️" }), /* @__PURE__ */ jsx("span", { children: "Journey Map" })]
|
|
433
|
-
}) }), /* @__PURE__ */ jsx(CardContent, { children: /* @__PURE__ */ jsx(JourneyMap, {
|
|
434
|
-
steps: track.steps,
|
|
435
|
-
completedStepIds: progress.completedStepIds,
|
|
436
|
-
currentStepId
|
|
437
|
-
}) })] }),
|
|
438
|
-
/* @__PURE__ */ jsxs(Card, { children: [/* @__PURE__ */ jsx(CardHeader, { children: /* @__PURE__ */ jsxs(CardTitle, {
|
|
439
|
-
className: "flex items-center gap-2",
|
|
440
|
-
children: [/* @__PURE__ */ jsx("span", { children: "📍" }), /* @__PURE__ */ jsx("span", { children: "Step by Step" })]
|
|
441
|
-
}) }), /* @__PURE__ */ jsx(CardContent, { children: /* @__PURE__ */ jsxs("div", {
|
|
442
|
-
className: "relative",
|
|
443
|
-
children: [/* @__PURE__ */ jsx("div", { className: "bg-border absolute top-0 left-4 h-full w-0.5" }), /* @__PURE__ */ jsx("div", {
|
|
444
|
-
className: "space-y-6",
|
|
445
|
-
children: track.steps.map((step, index) => {
|
|
446
|
-
const isCompleted = progress.completedStepIds.includes(step.id);
|
|
447
|
-
const isCurrent = step.id === currentStepId;
|
|
448
|
-
const surface = step.metadata?.surface ?? "general";
|
|
449
|
-
return /* @__PURE__ */ jsxs("div", {
|
|
450
|
-
className: "relative flex gap-4 pl-2",
|
|
451
|
-
children: [/* @__PURE__ */ jsx("div", {
|
|
452
|
-
className: `relative z-10 flex h-8 w-8 shrink-0 items-center justify-center rounded-full border-2 transition-all ${isCompleted ? "border-green-500 bg-green-500 text-white" : isCurrent ? "border-blue-500 bg-blue-500 text-white ring-4 ring-blue-500/20" : "border-border bg-background text-muted-foreground"}`,
|
|
453
|
-
children: isCompleted ? "✓" : index + 1
|
|
454
|
-
}), /* @__PURE__ */ jsx("div", {
|
|
455
|
-
className: "flex-1 pb-2",
|
|
456
|
-
children: /* @__PURE__ */ jsxs("div", {
|
|
457
|
-
className: "rounded-lg border p-4",
|
|
458
|
-
children: [/* @__PURE__ */ jsxs("div", {
|
|
459
|
-
className: "flex items-start justify-between gap-2",
|
|
460
|
-
children: [/* @__PURE__ */ jsxs("div", { children: [/* @__PURE__ */ jsxs("div", {
|
|
461
|
-
className: "flex items-center gap-2",
|
|
462
|
-
children: [/* @__PURE__ */ jsx("h4", {
|
|
463
|
-
className: `font-semibold ${isCompleted ? "text-green-500" : isCurrent ? "text-blue-500" : "text-foreground"}`,
|
|
464
|
-
children: step.title
|
|
465
|
-
}), /* @__PURE__ */ jsx("span", {
|
|
466
|
-
className: "bg-muted text-muted-foreground rounded px-2 py-0.5 text-xs",
|
|
467
|
-
children: surface
|
|
468
|
-
})]
|
|
469
|
-
}), /* @__PURE__ */ jsx("p", {
|
|
470
|
-
className: "text-muted-foreground mt-1 text-sm",
|
|
471
|
-
children: step.description
|
|
472
|
-
})] }), step.xpReward && /* @__PURE__ */ jsxs("span", {
|
|
473
|
-
className: `shrink-0 rounded-full px-2 py-1 text-xs font-semibold ${isCompleted ? "bg-green-500/10 text-green-500" : "bg-muted text-muted-foreground"}`,
|
|
474
|
-
children: [
|
|
475
|
-
"+",
|
|
476
|
-
step.xpReward,
|
|
477
|
-
" XP"
|
|
478
|
-
]
|
|
479
|
-
})]
|
|
480
|
-
}), /* @__PURE__ */ jsx("div", {
|
|
481
|
-
className: "mt-3 text-xs",
|
|
482
|
-
children: isCompleted ? /* @__PURE__ */ jsx("span", {
|
|
483
|
-
className: "text-green-500",
|
|
484
|
-
children: "✓ Completed"
|
|
485
|
-
}) : isCurrent ? /* @__PURE__ */ jsx("span", {
|
|
486
|
-
className: "text-blue-500",
|
|
487
|
-
children: "→ In Progress"
|
|
488
|
-
}) : /* @__PURE__ */ jsx("span", {
|
|
489
|
-
className: "text-muted-foreground",
|
|
490
|
-
children: "○ Not Started"
|
|
491
|
-
})
|
|
492
|
-
})]
|
|
493
|
-
})
|
|
494
|
-
})]
|
|
495
|
-
}, step.id);
|
|
496
|
-
})
|
|
497
|
-
})]
|
|
498
|
-
}) })] })
|
|
499
|
-
]
|
|
500
|
-
});
|
|
501
|
-
}
|
|
502
|
-
|
|
503
|
-
//#endregion
|
|
504
|
-
export { Overview as i, ProgressView as n, Steps as r, Timeline as t };
|