@lssm/example.learning-journey-ui-coaching 0.0.0-canary-20251217083314 → 1.41.0
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.log +22 -24
- package/dist/TipFeed-_1oKR35X.mjs +234 -0
- package/dist/components/index.d.mts +2 -0
- package/dist/components/index.mjs +4 -0
- package/dist/components-kh0CpIG2.mjs +1 -0
- package/dist/index-Cpg19PUU.d.mts +34 -0
- package/dist/index-DAs1Z3Qp.d.mts +47 -0
- package/dist/{example.d.ts → index.d.mts} +18 -1
- package/dist/index.mjs +1698 -0
- package/dist/views/index.d.mts +2 -0
- package/dist/views/index.mjs +4 -0
- package/dist/views-BTGcWRSz.mjs +421 -0
- package/package.json +14 -27
- package/tsconfig.tsbuildinfo +1 -1
- package/tsdown.config.js +10 -14
- package/.turbo/turbo-build$colon$bundle.log +0 -403
- package/CHANGELOG.md +0 -19
- package/dist/CoachingMiniApp.d.ts +0 -16
- package/dist/CoachingMiniApp.js +0 -64
- package/dist/components/EngagementMeter.d.ts +0 -17
- package/dist/components/EngagementMeter.js +0 -107
- package/dist/components/TipCard.d.ts +0 -20
- package/dist/components/TipCard.js +0 -75
- package/dist/components/TipFeed.d.ts +0 -17
- package/dist/components/TipFeed.js +0 -65
- package/dist/components/index.d.ts +0 -4
- package/dist/components/index.js +0 -5
- package/dist/docs/index.d.ts +0 -1
- package/dist/docs/index.js +0 -1
- package/dist/docs/learning-journey-ui-coaching.docblock.d.ts +0 -1
- package/dist/docs/learning-journey-ui-coaching.docblock.js +0 -20
- package/dist/example.js +0 -34
- package/dist/examples/learning-journey-ui-shared/dist/components/BadgeDisplay.js +0 -44
- package/dist/examples/learning-journey-ui-shared/dist/components/StreakCounter.js +0 -45
- package/dist/examples/learning-journey-ui-shared/dist/components/ViewTabs.js +0 -48
- package/dist/examples/learning-journey-ui-shared/dist/components/XpBar.js +0 -46
- package/dist/examples/learning-journey-ui-shared/dist/components/index.js +0 -4
- package/dist/examples/learning-journey-ui-shared/dist/docs/index.js +0 -1
- package/dist/examples/learning-journey-ui-shared/dist/docs/learning-journey-ui-shared.docblock.js +0 -20
- package/dist/examples/learning-journey-ui-shared/dist/hooks/index.js +0 -1
- package/dist/examples/learning-journey-ui-shared/dist/hooks/useLearningProgress.js +0 -73
- package/dist/examples/learning-journey-ui-shared/dist/index.js +0 -8
- package/dist/examples/learning-journey-ui-shared/dist/libs/contracts/dist/docs/PUBLISHING.docblock.js +0 -15
- package/dist/examples/learning-journey-ui-shared/dist/libs/contracts/dist/docs/accessibility_wcag_compliance_specs.docblock.js +0 -15
- package/dist/examples/learning-journey-ui-shared/dist/libs/contracts/dist/docs/index.js +0 -28
- package/dist/examples/learning-journey-ui-shared/dist/libs/contracts/dist/docs/presentations.js +0 -71
- package/dist/examples/learning-journey-ui-shared/dist/libs/contracts/dist/docs/registry.js +0 -44
- package/dist/examples/learning-journey-ui-shared/dist/libs/contracts/dist/docs/tech/PHASE_1_QUICKSTART.docblock.js +0 -15
- package/dist/examples/learning-journey-ui-shared/dist/libs/contracts/dist/docs/tech/PHASE_2_AI_NATIVE_OPERATIONS.docblock.js +0 -15
- package/dist/examples/learning-journey-ui-shared/dist/libs/contracts/dist/docs/tech/PHASE_3_AUTO_EVOLUTION.docblock.js +0 -15
- package/dist/examples/learning-journey-ui-shared/dist/libs/contracts/dist/docs/tech/PHASE_4_PERSONALIZATION_ENGINE.docblock.js +0 -15
- package/dist/examples/learning-journey-ui-shared/dist/libs/contracts/dist/docs/tech/PHASE_5_ZERO_TOUCH_OPERATIONS.docblock.js +0 -15
- package/dist/examples/learning-journey-ui-shared/dist/libs/contracts/dist/docs/tech/auth/better-auth-nextjs.docblock.js +0 -79
- package/dist/examples/learning-journey-ui-shared/dist/libs/contracts/dist/docs/tech/contracts/openapi-export.docblock.js +0 -56
- package/dist/examples/learning-journey-ui-shared/dist/libs/contracts/dist/docs/tech/lifecycle-stage-system.docblock.js +0 -15
- package/dist/examples/learning-journey-ui-shared/dist/libs/contracts/dist/docs/tech/llm/llm-integration.docblock.js +0 -356
- package/dist/examples/learning-journey-ui-shared/dist/libs/contracts/dist/docs/tech/mcp-endpoints.docblock.js +0 -36
- package/dist/examples/learning-journey-ui-shared/dist/libs/contracts/dist/docs/tech/presentation-runtime.docblock.js +0 -15
- package/dist/examples/learning-journey-ui-shared/dist/libs/contracts/dist/docs/tech/schema/README.docblock.js +0 -19
- package/dist/examples/learning-journey-ui-shared/dist/libs/contracts/dist/docs/tech/studio/learning-events.docblock.js +0 -47
- package/dist/examples/learning-journey-ui-shared/dist/libs/contracts/dist/docs/tech/studio/learning-journeys.docblock.js +0 -78
- package/dist/examples/learning-journey-ui-shared/dist/libs/contracts/dist/docs/tech/studio/platform-admin-panel.docblock.js +0 -83
- package/dist/examples/learning-journey-ui-shared/dist/libs/contracts/dist/docs/tech/studio/project-access-teams.docblock.js +0 -44
- package/dist/examples/learning-journey-ui-shared/dist/libs/contracts/dist/docs/tech/studio/project-routing.docblock.js +0 -66
- package/dist/examples/learning-journey-ui-shared/dist/libs/contracts/dist/docs/tech/studio/sandbox-unlogged.docblock.js +0 -39
- package/dist/examples/learning-journey-ui-shared/dist/libs/contracts/dist/docs/tech/studio/team-invitations.docblock.js +0 -68
- package/dist/examples/learning-journey-ui-shared/dist/libs/contracts/dist/docs/tech/studio/workspace-ops.docblock.js +0 -46
- package/dist/examples/learning-journey-ui-shared/dist/libs/contracts/dist/docs/tech/studio/workspaces.docblock.js +0 -61
- package/dist/examples/learning-journey-ui-shared/dist/libs/contracts/dist/docs/tech/telemetry-ingest.docblock.js +0 -154
- package/dist/examples/learning-journey-ui-shared/dist/libs/contracts/dist/docs/tech/templates/runtime.docblock.js +0 -19
- package/dist/examples/learning-journey-ui-shared/dist/libs/contracts/dist/docs/tech/vscode-extension.docblock.js +0 -100
- package/dist/examples/learning-journey-ui-shared/dist/libs/contracts/dist/docs/tech/workflows/overview.docblock.js +0 -19
- package/dist/examples/learning-journey-ui-shared/dist/libs/design-system/dist/_virtual/rolldown_runtime.js +0 -5
- package/dist/examples/learning-journey-ui-shared/dist/libs/design-system/dist/components/atoms/Button.js +0 -33
- package/dist/examples/learning-journey-ui-shared/dist/libs/design-system/dist/ui-kit-web/dist/ui/button.js +0 -55
- package/dist/examples/learning-journey-ui-shared/dist/libs/design-system/dist/ui-kit-web/dist/ui-kit-core/dist/utils.js +0 -13
- package/dist/examples/learning-journey-ui-shared/dist/libs/ui-kit-web/dist/ui/progress.js +0 -23
- package/dist/examples/learning-journey-ui-shared/dist/libs/ui-kit-web/dist/ui/utils.js +0 -10
- package/dist/examples/learning-journey-ui-shared/dist/libs/ui-kit-web/dist/ui-kit-core/dist/utils.js +0 -10
- package/dist/index.d.ts +0 -12
- package/dist/index.js +0 -14
- package/dist/libs/contracts/dist/docs/PUBLISHING.docblock.js +0 -16
- package/dist/libs/contracts/dist/docs/accessibility_wcag_compliance_specs.docblock.js +0 -16
- package/dist/libs/contracts/dist/docs/index.js +0 -29
- package/dist/libs/contracts/dist/docs/presentations.js +0 -71
- package/dist/libs/contracts/dist/docs/registry.js +0 -44
- package/dist/libs/contracts/dist/docs/tech/PHASE_1_QUICKSTART.docblock.js +0 -16
- package/dist/libs/contracts/dist/docs/tech/PHASE_2_AI_NATIVE_OPERATIONS.docblock.js +0 -16
- package/dist/libs/contracts/dist/docs/tech/PHASE_3_AUTO_EVOLUTION.docblock.js +0 -16
- package/dist/libs/contracts/dist/docs/tech/PHASE_4_PERSONALIZATION_ENGINE.docblock.js +0 -16
- package/dist/libs/contracts/dist/docs/tech/PHASE_5_ZERO_TOUCH_OPERATIONS.docblock.js +0 -16
- package/dist/libs/contracts/dist/docs/tech/auth/better-auth-nextjs.docblock.js +0 -80
- package/dist/libs/contracts/dist/docs/tech/contracts/openapi-export.docblock.js +0 -57
- package/dist/libs/contracts/dist/docs/tech/lifecycle-stage-system.docblock.js +0 -16
- package/dist/libs/contracts/dist/docs/tech/llm/llm-integration.docblock.js +0 -357
- package/dist/libs/contracts/dist/docs/tech/mcp-endpoints.docblock.js +0 -37
- package/dist/libs/contracts/dist/docs/tech/presentation-runtime.docblock.js +0 -16
- package/dist/libs/contracts/dist/docs/tech/schema/README.docblock.js +0 -20
- package/dist/libs/contracts/dist/docs/tech/studio/learning-events.docblock.js +0 -48
- package/dist/libs/contracts/dist/docs/tech/studio/learning-journeys.docblock.js +0 -79
- package/dist/libs/contracts/dist/docs/tech/studio/platform-admin-panel.docblock.js +0 -84
- package/dist/libs/contracts/dist/docs/tech/studio/project-access-teams.docblock.js +0 -45
- package/dist/libs/contracts/dist/docs/tech/studio/project-routing.docblock.js +0 -67
- package/dist/libs/contracts/dist/docs/tech/studio/sandbox-unlogged.docblock.js +0 -40
- package/dist/libs/contracts/dist/docs/tech/studio/team-invitations.docblock.js +0 -69
- package/dist/libs/contracts/dist/docs/tech/studio/workspace-ops.docblock.js +0 -47
- package/dist/libs/contracts/dist/docs/tech/studio/workspaces.docblock.js +0 -62
- package/dist/libs/contracts/dist/docs/tech/telemetry-ingest.docblock.js +0 -155
- package/dist/libs/contracts/dist/docs/tech/templates/runtime.docblock.js +0 -20
- package/dist/libs/contracts/dist/docs/tech/vscode-extension.docblock.js +0 -101
- package/dist/libs/contracts/dist/docs/tech/workflows/overview.docblock.js +0 -20
- package/dist/libs/design-system/dist/_virtual/rolldown_runtime.js +0 -5
- package/dist/libs/design-system/dist/components/atoms/Button.js +0 -33
- package/dist/libs/design-system/dist/ui-kit-web/dist/ui/button.js +0 -55
- package/dist/libs/design-system/dist/ui-kit-web/dist/ui-kit-core/dist/utils.js +0 -13
- package/dist/libs/ui-kit-web/dist/ui/card.js +0 -36
- package/dist/libs/ui-kit-web/dist/ui/utils.js +0 -10
- package/dist/libs/ui-kit-web/dist/ui-kit-core/dist/utils.js +0 -10
- package/dist/views/Overview.d.ts +0 -15
- package/dist/views/Overview.js +0 -152
- package/dist/views/Progress.d.ts +0 -10
- package/dist/views/Progress.js +0 -117
- package/dist/views/Steps.d.ts +0 -11
- package/dist/views/Steps.js +0 -68
- package/dist/views/Timeline.d.ts +0 -10
- package/dist/views/Timeline.js +0 -112
- package/dist/views/index.d.ts +0 -5
- package/dist/views/index.js +0 -6
package/dist/views/Steps.js
DELETED
|
@@ -1,68 +0,0 @@
|
|
|
1
|
-
'use client';
|
|
2
|
-
|
|
3
|
-
import { TipCard } from "../components/TipCard.js";
|
|
4
|
-
import { jsx, jsxs } from "react/jsx-runtime";
|
|
5
|
-
|
|
6
|
-
//#region src/views/Steps.tsx
|
|
7
|
-
function Steps({ track, progress, onStepComplete }) {
|
|
8
|
-
const completedSteps = progress.completedStepIds.length;
|
|
9
|
-
const totalSteps = track.steps.length;
|
|
10
|
-
const sortedSteps = [...track.steps].sort((a, b) => {
|
|
11
|
-
const aCompleted = progress.completedStepIds.includes(a.id);
|
|
12
|
-
if (aCompleted === progress.completedStepIds.includes(b.id)) return 0;
|
|
13
|
-
return aCompleted ? 1 : -1;
|
|
14
|
-
});
|
|
15
|
-
const currentStepId = track.steps.find((s) => !progress.completedStepIds.includes(s.id))?.id;
|
|
16
|
-
return /* @__PURE__ */ jsxs("div", {
|
|
17
|
-
className: "space-y-6",
|
|
18
|
-
children: [
|
|
19
|
-
/* @__PURE__ */ jsxs("div", {
|
|
20
|
-
className: "text-center",
|
|
21
|
-
children: [
|
|
22
|
-
/* @__PURE__ */ jsx("h2", {
|
|
23
|
-
className: "text-xl font-bold",
|
|
24
|
-
children: "Coaching Tips"
|
|
25
|
-
}),
|
|
26
|
-
/* @__PURE__ */ jsx("p", {
|
|
27
|
-
className: "text-muted-foreground",
|
|
28
|
-
children: "Review and take action on personalized tips"
|
|
29
|
-
}),
|
|
30
|
-
/* @__PURE__ */ jsxs("p", {
|
|
31
|
-
className: "text-muted-foreground mt-2 text-sm",
|
|
32
|
-
children: [
|
|
33
|
-
completedSteps,
|
|
34
|
-
" of ",
|
|
35
|
-
totalSteps,
|
|
36
|
-
" tips actioned"
|
|
37
|
-
]
|
|
38
|
-
})
|
|
39
|
-
]
|
|
40
|
-
}),
|
|
41
|
-
/* @__PURE__ */ jsx("div", {
|
|
42
|
-
className: "space-y-3",
|
|
43
|
-
children: sortedSteps.map((step) => {
|
|
44
|
-
return /* @__PURE__ */ jsx(TipCard, {
|
|
45
|
-
step,
|
|
46
|
-
isCompleted: progress.completedStepIds.includes(step.id),
|
|
47
|
-
isCurrent: step.id === currentStepId,
|
|
48
|
-
onComplete: () => onStepComplete?.(step.id),
|
|
49
|
-
onDismiss: () => onStepComplete?.(step.id)
|
|
50
|
-
}, step.id);
|
|
51
|
-
})
|
|
52
|
-
}),
|
|
53
|
-
completedSteps === totalSteps && /* @__PURE__ */ jsxs("div", {
|
|
54
|
-
className: "text-muted-foreground text-center",
|
|
55
|
-
children: [/* @__PURE__ */ jsx("span", {
|
|
56
|
-
className: "text-2xl",
|
|
57
|
-
children: "✨"
|
|
58
|
-
}), /* @__PURE__ */ jsx("p", {
|
|
59
|
-
className: "mt-2",
|
|
60
|
-
children: "All tips have been addressed!"
|
|
61
|
-
})]
|
|
62
|
-
})
|
|
63
|
-
]
|
|
64
|
-
});
|
|
65
|
-
}
|
|
66
|
-
|
|
67
|
-
//#endregion
|
|
68
|
-
export { Steps };
|
package/dist/views/Timeline.d.ts
DELETED
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import * as react_jsx_runtime2 from "react/jsx-runtime";
|
|
2
|
-
import { LearningViewProps } from "@lssm/example.learning-journey-ui-shared";
|
|
3
|
-
|
|
4
|
-
//#region src/views/Timeline.d.ts
|
|
5
|
-
declare function Timeline({
|
|
6
|
-
track,
|
|
7
|
-
progress
|
|
8
|
-
}: LearningViewProps): react_jsx_runtime2.JSX.Element;
|
|
9
|
-
//#endregion
|
|
10
|
-
export { Timeline };
|
package/dist/views/Timeline.js
DELETED
|
@@ -1,112 +0,0 @@
|
|
|
1
|
-
'use client';
|
|
2
|
-
|
|
3
|
-
import { Card, CardContent, CardHeader, CardTitle } from "../libs/ui-kit-web/dist/ui/card.js";
|
|
4
|
-
import { TipFeed } from "../components/TipFeed.js";
|
|
5
|
-
import { jsx, jsxs } from "react/jsx-runtime";
|
|
6
|
-
|
|
7
|
-
//#region src/views/Timeline.tsx
|
|
8
|
-
function Timeline({ track, progress }) {
|
|
9
|
-
const feedItems = track.steps.map((step) => ({
|
|
10
|
-
step,
|
|
11
|
-
isCompleted: progress.completedStepIds.includes(step.id),
|
|
12
|
-
completedAt: progress.completedStepIds.includes(step.id) ? "Recently" : void 0
|
|
13
|
-
})).sort((a, b) => {
|
|
14
|
-
if (a.isCompleted && !b.isCompleted) return -1;
|
|
15
|
-
if (!a.isCompleted && b.isCompleted) return 1;
|
|
16
|
-
return 0;
|
|
17
|
-
});
|
|
18
|
-
const completedCount = feedItems.filter((f) => f.isCompleted).length;
|
|
19
|
-
const pendingCount = feedItems.length - completedCount;
|
|
20
|
-
return /* @__PURE__ */ jsxs("div", {
|
|
21
|
-
className: "space-y-6",
|
|
22
|
-
children: [
|
|
23
|
-
/* @__PURE__ */ jsxs("div", {
|
|
24
|
-
className: "text-center",
|
|
25
|
-
children: [/* @__PURE__ */ jsx("h2", {
|
|
26
|
-
className: "text-xl font-bold",
|
|
27
|
-
children: "Activity Timeline"
|
|
28
|
-
}), /* @__PURE__ */ jsx("p", {
|
|
29
|
-
className: "text-muted-foreground",
|
|
30
|
-
children: "Your coaching journey and tip history"
|
|
31
|
-
})]
|
|
32
|
-
}),
|
|
33
|
-
/* @__PURE__ */ jsxs("div", {
|
|
34
|
-
className: "grid grid-cols-2 gap-4",
|
|
35
|
-
children: [/* @__PURE__ */ jsx(Card, { children: /* @__PURE__ */ jsxs(CardContent, {
|
|
36
|
-
className: "p-4 text-center",
|
|
37
|
-
children: [/* @__PURE__ */ jsx("div", {
|
|
38
|
-
className: "text-2xl font-bold text-green-500",
|
|
39
|
-
children: completedCount
|
|
40
|
-
}), /* @__PURE__ */ jsx("div", {
|
|
41
|
-
className: "text-muted-foreground text-sm",
|
|
42
|
-
children: "Tips Actioned"
|
|
43
|
-
})]
|
|
44
|
-
}) }), /* @__PURE__ */ jsx(Card, { children: /* @__PURE__ */ jsxs(CardContent, {
|
|
45
|
-
className: "p-4 text-center",
|
|
46
|
-
children: [/* @__PURE__ */ jsx("div", {
|
|
47
|
-
className: "text-2xl font-bold text-amber-500",
|
|
48
|
-
children: pendingCount
|
|
49
|
-
}), /* @__PURE__ */ jsx("div", {
|
|
50
|
-
className: "text-muted-foreground text-sm",
|
|
51
|
-
children: "Tips Pending"
|
|
52
|
-
})]
|
|
53
|
-
}) })]
|
|
54
|
-
}),
|
|
55
|
-
/* @__PURE__ */ jsxs(Card, { children: [/* @__PURE__ */ jsx(CardHeader, { children: /* @__PURE__ */ jsxs(CardTitle, {
|
|
56
|
-
className: "flex items-center gap-2",
|
|
57
|
-
children: [/* @__PURE__ */ jsx("span", { children: "📝" }), /* @__PURE__ */ jsx("span", { children: "Coaching Feed" })]
|
|
58
|
-
}) }), /* @__PURE__ */ jsx(CardContent, { children: /* @__PURE__ */ jsx(TipFeed, { items: feedItems }) })] }),
|
|
59
|
-
/* @__PURE__ */ jsxs(Card, { children: [/* @__PURE__ */ jsx(CardHeader, { children: /* @__PURE__ */ jsxs(CardTitle, {
|
|
60
|
-
className: "flex items-center gap-2",
|
|
61
|
-
children: [/* @__PURE__ */ jsx("span", { children: "📈" }), /* @__PURE__ */ jsx("span", { children: "Journey Stats" })]
|
|
62
|
-
}) }), /* @__PURE__ */ jsx(CardContent, { children: /* @__PURE__ */ jsxs("div", {
|
|
63
|
-
className: "space-y-4",
|
|
64
|
-
children: [
|
|
65
|
-
/* @__PURE__ */ jsxs("div", {
|
|
66
|
-
className: "flex items-center justify-between",
|
|
67
|
-
children: [/* @__PURE__ */ jsx("span", {
|
|
68
|
-
className: "text-muted-foreground",
|
|
69
|
-
children: "Total Tips"
|
|
70
|
-
}), /* @__PURE__ */ jsx("span", {
|
|
71
|
-
className: "font-semibold",
|
|
72
|
-
children: track.steps.length
|
|
73
|
-
})]
|
|
74
|
-
}),
|
|
75
|
-
/* @__PURE__ */ jsxs("div", {
|
|
76
|
-
className: "flex items-center justify-between",
|
|
77
|
-
children: [/* @__PURE__ */ jsx("span", {
|
|
78
|
-
className: "text-muted-foreground",
|
|
79
|
-
children: "Completed"
|
|
80
|
-
}), /* @__PURE__ */ jsx("span", {
|
|
81
|
-
className: "font-semibold text-green-500",
|
|
82
|
-
children: completedCount
|
|
83
|
-
})]
|
|
84
|
-
}),
|
|
85
|
-
/* @__PURE__ */ jsxs("div", {
|
|
86
|
-
className: "flex items-center justify-between",
|
|
87
|
-
children: [/* @__PURE__ */ jsx("span", {
|
|
88
|
-
className: "text-muted-foreground",
|
|
89
|
-
children: "XP Earned"
|
|
90
|
-
}), /* @__PURE__ */ jsx("span", {
|
|
91
|
-
className: "font-semibold text-orange-500",
|
|
92
|
-
children: progress.xpEarned
|
|
93
|
-
})]
|
|
94
|
-
}),
|
|
95
|
-
/* @__PURE__ */ jsxs("div", {
|
|
96
|
-
className: "flex items-center justify-between",
|
|
97
|
-
children: [/* @__PURE__ */ jsx("span", {
|
|
98
|
-
className: "text-muted-foreground",
|
|
99
|
-
children: "Current Streak"
|
|
100
|
-
}), /* @__PURE__ */ jsx("span", {
|
|
101
|
-
className: "font-semibold",
|
|
102
|
-
children: progress.streakDays > 0 ? `🔥 ${progress.streakDays} days` : "Start today!"
|
|
103
|
-
})]
|
|
104
|
-
})
|
|
105
|
-
]
|
|
106
|
-
}) })] })
|
|
107
|
-
]
|
|
108
|
-
});
|
|
109
|
-
}
|
|
110
|
-
|
|
111
|
-
//#endregion
|
|
112
|
-
export { Timeline };
|
package/dist/views/index.d.ts
DELETED
package/dist/views/index.js
DELETED