@burdenoff/microfe-workspaces 2026.1113.1 → 2026.1114.2
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/WorkspacesRoot.js +31 -25
- package/dist/WorkspacesRoutes.js +56 -55
- package/dist/components/CreateProjectDialog.js +81 -78
- package/dist/components/CreateWorkspaceDialog.js +41 -41
- package/dist/components/InviteMemberDialog.js +54 -54
- package/dist/components/MemberListItem.js +53 -53
- package/dist/components/PendingInvitesRoute.d.ts +7 -0
- package/dist/components/PendingInvitesRoute.js +15 -0
- package/dist/components/ProjectCard.js +82 -82
- package/dist/components/ProjectMemberPickerDialog.js +46 -46
- package/dist/components/RenameProjectDialog.js +16 -16
- package/dist/components/WorkspaceCard.js +18 -18
- package/dist/components/WorkspacesErrorBoundary.js +25 -25
- package/dist/components/tags/ProjectTagsWidget.js +50 -50
- package/dist/components/tags/WorkspaceTagsEditor.js +9 -9
- package/dist/constants/navigationV2.d.ts +12 -0
- package/dist/constants/navigationV2.js +3 -0
- package/dist/hooks/useNavigationV2.d.ts +6 -0
- package/dist/hooks/useNavigationV2.js +6 -0
- package/dist/index.d.ts +2 -2
- package/dist/index.js +15 -14
- package/dist/pages/ActivityListPage.js +30 -30
- package/dist/pages/CreateWorkspacePage.js +205 -173
- package/dist/pages/InviteAcceptancePage.js +210 -200
- package/dist/pages/MembersListPage.js +165 -164
- package/dist/pages/PendingInvitesPage.js +67 -67
- package/dist/pages/ProjectDetailPage.js +297 -272
- package/dist/pages/ProjectMembersPage.js +59 -59
- package/dist/pages/ProjectsListPage.js +275 -244
- package/dist/pages/WorkspaceDetailPage.js +175 -172
- package/dist/pages/WorkspaceInvitePage.js +606 -503
- package/dist/pages/WorkspaceSettingsPage.js +48 -48
- package/dist/pages/WorkspacesListPage.js +55 -55
- package/dist/pages/dashboard/DashboardCustomizer.js +27 -27
- package/dist/pages/dashboard/DashboardPage.js +35 -35
- package/dist/pages/dashboard/WidgetWrapper.js +21 -21
- package/dist/pages/dashboard/widgets/AgentsWidget.js +25 -25
- package/dist/pages/dashboard/widgets/GroupsWidget.js +14 -14
- package/dist/pages/dashboard/widgets/MembersWidget.js +15 -15
- package/dist/pages/dashboard/widgets/ProjectsWidget.js +20 -20
- package/dist/pages/dashboard/widgets/QuickActionsWidget.js +7 -7
- package/dist/pages/dashboard/widgets/RecentActivityWidget.js +16 -16
- package/dist/pages/dashboard/widgets/SessionsWidget.js +15 -15
- package/dist/pages/dashboard/widgets/TagCloudWidget.js +11 -11
- package/dist/pages/dashboard/widgets/UpcomingEventsWidget.js +16 -16
- package/dist/pages/dashboard/widgets/VibesWidget.js +13 -13
- package/dist/pages/dashboard/widgets/WelcomeWidget.js +23 -23
- package/dist/pages/dashboard/widgets/WorkflowRunsWidget.js +26 -26
- package/dist/pages/dashboard/widgets/WorkflowStatsWidget.js +21 -21
- package/dist/pages/dashboard/widgets/WorkflowsOverviewWidget.js +22 -22
- package/dist/pages/dashboard/widgets/WorkspacesWidget.js +16 -16
- package/dist/providers/WorkspacesProvider.d.ts +5 -0
- package/dist/providers/WorkspacesProvider.js +2 -2
- package/dist/types/index.d.ts +11 -1
- package/dist/utils/createForms.d.ts +21 -0
- package/dist/utils/createForms.js +20 -0
- package/dist/utils/index.d.ts +1 -0
- package/dist/utils/invitationPayload.d.ts +18 -0
- package/dist/utils/invitationPayload.js +13 -0
- package/package.json +2 -2
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { WidgetWrapper as e } from "../WidgetWrapper.js";
|
|
2
2
|
import { tWithFallback as t } from "../../../utils/i18n.js";
|
|
3
3
|
import { Bot as n, Calendar as r, Cog as i, FileText as a, FolderKanban as o, GitBranch as s, LayoutTemplate as c, PlayCircle as l, Plus as u, Sparkles as d, Tags as f, Terminal as p, Upload as m, UserPlus as h, Zap as g } from "lucide-react";
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
4
|
+
import { Button as _ } from "@burdenoff/fe-libs/ui";
|
|
5
|
+
import { jsx as v, jsxs as y } from "react/jsx-runtime";
|
|
6
6
|
import { useI18n as b } from "@burdenoff/fe-libs/shared/providers/shell/I18nProvider";
|
|
7
7
|
// src/pages/dashboard/widgets/QuickActionsWidget.tsx
|
|
8
8
|
function x(e) {
|
|
@@ -162,18 +162,18 @@ function w(e, t) {
|
|
|
162
162
|
}
|
|
163
163
|
function T({ navigate: n, isLoading: r, productId: i }) {
|
|
164
164
|
let { t: a } = b(), o = w(a, i);
|
|
165
|
-
return /* @__PURE__ */
|
|
165
|
+
return /* @__PURE__ */ v(e, {
|
|
166
166
|
title: t(a, "dashboard.quickActions.title", "Quick Actions"),
|
|
167
|
-
icon: /* @__PURE__ */
|
|
167
|
+
icon: /* @__PURE__ */ v(g, { className: "size-4" }),
|
|
168
168
|
size: "medium",
|
|
169
169
|
isLoading: r,
|
|
170
|
-
children: /* @__PURE__ */
|
|
170
|
+
children: /* @__PURE__ */ v("div", {
|
|
171
171
|
className: "grid grid-cols-2 sm:grid-cols-3 lg:grid-cols-4 gap-2",
|
|
172
|
-
children: o.map((e) => /* @__PURE__ */
|
|
172
|
+
children: o.map((e) => /* @__PURE__ */ y(_, {
|
|
173
173
|
variant: "outline",
|
|
174
174
|
className: "flex flex-col items-center gap-1.5 h-auto py-3 px-2 text-xs hover:bg-accent/5 transition-colors",
|
|
175
175
|
onClick: () => n(e.path),
|
|
176
|
-
children: [/* @__PURE__ */
|
|
176
|
+
children: [/* @__PURE__ */ v(e.icon, { className: `size-5 ${e.color}` }), /* @__PURE__ */ v("span", {
|
|
177
177
|
className: "text-text-secondary font-medium",
|
|
178
178
|
children: e.label
|
|
179
179
|
})]
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { WidgetWrapper as e } from "../WidgetWrapper.js";
|
|
2
2
|
import { tWithFallback as t } from "../../../utils/i18n.js";
|
|
3
3
|
import { Activity as n, ArrowRight as r } from "lucide-react";
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
4
|
+
import { Button as i, IllustratedEmptyState as a } from "@burdenoff/fe-libs/ui";
|
|
5
|
+
import { jsx as o, jsxs as s } from "react/jsx-runtime";
|
|
6
6
|
import { useI18n as c } from "@burdenoff/fe-libs/shared/providers/shell/I18nProvider";
|
|
7
7
|
import { formatRelativeTime as l } from "@burdenoff/fe-libs/shared/utils";
|
|
8
8
|
// src/pages/dashboard/widgets/RecentActivityWidget.tsx
|
|
@@ -35,13 +35,13 @@ var d = {
|
|
|
35
35
|
};
|
|
36
36
|
function f({ workspaceData: f, isLoading: p, navigate: m }) {
|
|
37
37
|
let { t: h } = c(), g = f?.recentActivities ?? [];
|
|
38
|
-
return /* @__PURE__ */
|
|
38
|
+
return /* @__PURE__ */ o(e, {
|
|
39
39
|
title: t(h, "dashboard.recentActivity.title", "Recent Activity"),
|
|
40
|
-
icon: /* @__PURE__ */
|
|
40
|
+
icon: /* @__PURE__ */ o(n, { className: "size-4" }),
|
|
41
41
|
size: "large",
|
|
42
42
|
isLoading: p,
|
|
43
43
|
unavailable: !f,
|
|
44
|
-
headerAction: /* @__PURE__ */
|
|
44
|
+
headerAction: /* @__PURE__ */ s(i, {
|
|
45
45
|
variant: "ghost",
|
|
46
46
|
size: "sm",
|
|
47
47
|
className: "text-xs",
|
|
@@ -49,31 +49,31 @@ function f({ workspaceData: f, isLoading: p, navigate: m }) {
|
|
|
49
49
|
children: [
|
|
50
50
|
t(h, "dashboard.recentActivity.viewAll", "View all"),
|
|
51
51
|
" ",
|
|
52
|
-
/* @__PURE__ */
|
|
52
|
+
/* @__PURE__ */ o(r, { className: "ml-1 size-3" })
|
|
53
53
|
]
|
|
54
54
|
}),
|
|
55
|
-
children: g.length === 0 ? /* @__PURE__ */
|
|
55
|
+
children: g.length === 0 ? /* @__PURE__ */ o(a, {
|
|
56
56
|
illustration: "empty-data",
|
|
57
57
|
title: t(h, "dashboard.recentActivity.emptyTitle", "No recent activity"),
|
|
58
58
|
description: t(h, "dashboard.recentActivity.emptyDescription", "Activity will appear here as you use the platform"),
|
|
59
59
|
className: "py-6"
|
|
60
|
-
}) : /* @__PURE__ */
|
|
60
|
+
}) : /* @__PURE__ */ o("div", {
|
|
61
61
|
className: "space-y-1",
|
|
62
62
|
children: g.map((e, t) => {
|
|
63
|
-
let n = e.resourceType || "workspace", r = d[n] || "bg-bg-sunken text-text-secondary",
|
|
64
|
-
return /* @__PURE__ */
|
|
63
|
+
let n = e.resourceType || "workspace", r = d[n] || "bg-bg-sunken text-text-secondary", i = l(new Date(e.timestamp)), a = u(h, e.action);
|
|
64
|
+
return /* @__PURE__ */ s("div", {
|
|
65
65
|
className: "flex items-start gap-3 p-2 rounded-md hover:bg-accent/5 transition-colors",
|
|
66
|
-
children: [/* @__PURE__ */
|
|
66
|
+
children: [/* @__PURE__ */ o("div", {
|
|
67
67
|
className: `rounded-full size-7 flex items-center justify-center text-xs font-bold shrink-0 ${r}`,
|
|
68
68
|
children: n.charAt(0).toUpperCase()
|
|
69
|
-
}), /* @__PURE__ */
|
|
69
|
+
}), /* @__PURE__ */ s("div", {
|
|
70
70
|
className: "min-w-0 flex-1",
|
|
71
|
-
children: [/* @__PURE__ */
|
|
71
|
+
children: [/* @__PURE__ */ o("p", {
|
|
72
72
|
className: "text-sm text-text-primary truncate",
|
|
73
|
-
children: e.description ||
|
|
74
|
-
}), /* @__PURE__ */
|
|
73
|
+
children: e.description || a || e.action
|
|
74
|
+
}), /* @__PURE__ */ o("p", {
|
|
75
75
|
className: "text-xs text-text-secondary",
|
|
76
|
-
children:
|
|
76
|
+
children: i
|
|
77
77
|
})]
|
|
78
78
|
})]
|
|
79
79
|
}, e.id || t);
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { WidgetWrapper as e } from "../WidgetWrapper.js";
|
|
2
2
|
import { tWithFallback as t } from "../../../utils/i18n.js";
|
|
3
3
|
import { ArrowRight as n, Terminal as r } from "lucide-react";
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
4
|
+
import { Badge as i, Button as a, IllustratedEmptyState as o } from "@burdenoff/fe-libs/ui";
|
|
5
|
+
import { jsx as s, jsxs as c } from "react/jsx-runtime";
|
|
6
6
|
import { useI18n as l } from "@burdenoff/fe-libs/shared/providers/shell/I18nProvider";
|
|
7
7
|
// src/pages/dashboard/widgets/SessionsWidget.tsx
|
|
8
8
|
var u = {
|
|
@@ -35,13 +35,13 @@ function p(e, n) {
|
|
|
35
35
|
}
|
|
36
36
|
function m({ workspaceData: m, isLoading: h, navigate: g }) {
|
|
37
37
|
let { t: _ } = l(), v = m?.activeSessions ?? [];
|
|
38
|
-
return /* @__PURE__ */
|
|
38
|
+
return /* @__PURE__ */ s(e, {
|
|
39
39
|
title: t(_, "dashboard.sessions.title", "Active Sessions"),
|
|
40
|
-
icon: /* @__PURE__ */
|
|
40
|
+
icon: /* @__PURE__ */ s(r, { className: "size-4" }),
|
|
41
41
|
size: "medium",
|
|
42
42
|
isLoading: h,
|
|
43
43
|
unavailable: !m,
|
|
44
|
-
headerAction: /* @__PURE__ */ a
|
|
44
|
+
headerAction: /* @__PURE__ */ c(a, {
|
|
45
45
|
variant: "ghost",
|
|
46
46
|
size: "sm",
|
|
47
47
|
className: "text-xs",
|
|
@@ -49,35 +49,35 @@ function m({ workspaceData: m, isLoading: h, navigate: g }) {
|
|
|
49
49
|
children: [
|
|
50
50
|
t(_, "dashboard.sessions.viewAll", "View all"),
|
|
51
51
|
" ",
|
|
52
|
-
/* @__PURE__ */
|
|
52
|
+
/* @__PURE__ */ s(n, { className: "ml-1 size-3" })
|
|
53
53
|
]
|
|
54
54
|
}),
|
|
55
|
-
children: v.length === 0 ? /* @__PURE__ */
|
|
55
|
+
children: v.length === 0 ? /* @__PURE__ */ s(o, {
|
|
56
56
|
illustration: "empty-sessions",
|
|
57
57
|
title: t(_, "dashboard.sessions.emptyTitle", "No active sessions"),
|
|
58
58
|
className: "py-6"
|
|
59
|
-
}) : /* @__PURE__ */
|
|
59
|
+
}) : /* @__PURE__ */ s("ul", {
|
|
60
60
|
className: "space-y-1.5",
|
|
61
|
-
children: v.slice(0, 5).map((e) => /* @__PURE__ */
|
|
61
|
+
children: v.slice(0, 5).map((e) => /* @__PURE__ */ s("li", { children: /* @__PURE__ */ c("button", {
|
|
62
62
|
type: "button",
|
|
63
63
|
onClick: () => g(`/vibecontrols/sessions/${e.id}`),
|
|
64
64
|
className: "flex w-full items-center justify-between gap-2 rounded-md p-2 text-left transition-colors hover:bg-accent/5",
|
|
65
|
-
children: [/* @__PURE__ */
|
|
65
|
+
children: [/* @__PURE__ */ c("div", {
|
|
66
66
|
className: "min-w-0 flex-1",
|
|
67
|
-
children: [/* @__PURE__ */
|
|
67
|
+
children: [/* @__PURE__ */ s("p", {
|
|
68
68
|
className: "truncate text-sm font-medium text-text-primary",
|
|
69
69
|
children: e.name || t(_, "dashboard.sessions.unnamedSession", "Session {id}", { id: e.id.slice(0, 8) })
|
|
70
|
-
}), e.agent?.name ? /* @__PURE__ */
|
|
70
|
+
}), e.agent?.name ? /* @__PURE__ */ s("p", {
|
|
71
71
|
className: "truncate text-[11px] text-text-secondary",
|
|
72
72
|
children: e.agent.name
|
|
73
73
|
}) : null]
|
|
74
|
-
}), /* @__PURE__ */
|
|
74
|
+
}), /* @__PURE__ */ c("div", {
|
|
75
75
|
className: "flex flex-col items-end gap-1",
|
|
76
|
-
children: [/* @__PURE__ */ i
|
|
76
|
+
children: [/* @__PURE__ */ s(i, {
|
|
77
77
|
variant: "outline",
|
|
78
78
|
className: `text-[10px] ${u[e.status] ?? ""} ${d.has(e.status) ? "motion-safe:animate-vc-glow-pulse" : ""}`,
|
|
79
79
|
children: f(_, e.status)
|
|
80
|
-
}), e.startedAt ? /* @__PURE__ */
|
|
80
|
+
}), e.startedAt ? /* @__PURE__ */ s("span", {
|
|
81
81
|
className: "text-[10px] text-text-secondary",
|
|
82
82
|
children: p(_, e.startedAt)
|
|
83
83
|
}) : null]
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { WidgetWrapper as e } from "../WidgetWrapper.js";
|
|
2
2
|
import { tWithFallback as t } from "../../../utils/i18n.js";
|
|
3
3
|
import { ArrowRight as n, Tags as r } from "lucide-react";
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
4
|
+
import { Badge as i, Button as a, IllustratedEmptyState as o } from "@burdenoff/fe-libs/ui";
|
|
5
|
+
import { jsx as s, jsxs as c } from "react/jsx-runtime";
|
|
6
6
|
import { useI18n as l } from "@burdenoff/fe-libs/shared/providers/shell/I18nProvider";
|
|
7
7
|
// src/pages/dashboard/widgets/TagCloudWidget.tsx
|
|
8
8
|
var u = [
|
|
@@ -17,39 +17,39 @@ var u = [
|
|
|
17
17
|
];
|
|
18
18
|
function d({ workspaceData: d, isLoading: f, navigate: p }) {
|
|
19
19
|
let { t: m } = l(), h = d?.tags.items ?? [], g = d?.tags.total ?? 0;
|
|
20
|
-
return /* @__PURE__ */
|
|
20
|
+
return /* @__PURE__ */ s(e, {
|
|
21
21
|
title: t(m, "dashboard.tagCloud.title", "Tags"),
|
|
22
|
-
icon: /* @__PURE__ */
|
|
22
|
+
icon: /* @__PURE__ */ s(r, { className: "size-4" }),
|
|
23
23
|
size: "small",
|
|
24
24
|
isLoading: f,
|
|
25
25
|
unavailable: !d,
|
|
26
|
-
headerAction: /* @__PURE__ */
|
|
26
|
+
headerAction: /* @__PURE__ */ s(a, {
|
|
27
27
|
variant: "ghost",
|
|
28
28
|
size: "sm",
|
|
29
29
|
className: "text-xs",
|
|
30
30
|
"aria-label": t(m, "dashboard.tagCloud.open", "Open tags"),
|
|
31
31
|
onClick: () => p("/tags"),
|
|
32
|
-
children: /* @__PURE__ */
|
|
32
|
+
children: /* @__PURE__ */ s(n, {
|
|
33
33
|
className: "size-3",
|
|
34
34
|
"aria-hidden": "true"
|
|
35
35
|
})
|
|
36
36
|
}),
|
|
37
|
-
children: h.length === 0 ? /* @__PURE__ */
|
|
37
|
+
children: h.length === 0 ? /* @__PURE__ */ s(o, {
|
|
38
38
|
illustration: "empty-generic",
|
|
39
39
|
title: t(m, "dashboard.tagCloud.emptyTitle", "No tags created yet"),
|
|
40
40
|
description: t(m, "dashboard.tagCloud.emptyDescription", "Tags help you label and filter projects and content across the workspace."),
|
|
41
41
|
className: "py-4"
|
|
42
|
-
}) : /* @__PURE__ */
|
|
42
|
+
}) : /* @__PURE__ */ c("div", {
|
|
43
43
|
className: "space-y-2",
|
|
44
|
-
children: [/* @__PURE__ */
|
|
44
|
+
children: [/* @__PURE__ */ s("div", {
|
|
45
45
|
className: "flex flex-wrap gap-1.5",
|
|
46
|
-
children: h.slice(0, 12).map((e, t) => /* @__PURE__ */ i
|
|
46
|
+
children: h.slice(0, 12).map((e, t) => /* @__PURE__ */ s(i, {
|
|
47
47
|
variant: "outline",
|
|
48
48
|
className: `text-[11px] cursor-pointer hover:opacity-80 transition-opacity ${u[t % u.length]}`,
|
|
49
49
|
onClick: () => p("/tags"),
|
|
50
50
|
children: e.label
|
|
51
51
|
}, e.id))
|
|
52
|
-
}), g > 12 && /* @__PURE__ */
|
|
52
|
+
}), g > 12 && /* @__PURE__ */ s("p", {
|
|
53
53
|
className: "text-[11px] text-text-secondary text-center",
|
|
54
54
|
children: t(m, "dashboard.tagCloud.more", "+{count} more tags", { count: g - 12 })
|
|
55
55
|
})]
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { WidgetWrapper as e } from "../WidgetWrapper.js";
|
|
2
2
|
import { tWithFallback as t } from "../../../utils/i18n.js";
|
|
3
3
|
import { ArrowRight as n, Calendar as r, Clock as i } from "lucide-react";
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
4
|
+
import { Badge as a, Button as o, IllustratedEmptyState as s } from "@burdenoff/fe-libs/ui";
|
|
5
|
+
import { jsx as c, jsxs as l } from "react/jsx-runtime";
|
|
6
6
|
import { useI18n as u } from "@burdenoff/fe-libs/shared/providers/shell/I18nProvider";
|
|
7
7
|
// src/pages/dashboard/widgets/UpcomingEventsWidget.tsx
|
|
8
8
|
function d(e, n) {
|
|
@@ -24,13 +24,13 @@ function d(e, n) {
|
|
|
24
24
|
}
|
|
25
25
|
function f({ workspaceData: f, isLoading: p, navigate: m }) {
|
|
26
26
|
let { t: h } = u(), g = f?.upcomingEvents ?? [];
|
|
27
|
-
return /* @__PURE__ */
|
|
27
|
+
return /* @__PURE__ */ c(e, {
|
|
28
28
|
title: t(h, "dashboard.upcomingEvents.title", "Upcoming Events"),
|
|
29
|
-
icon: /* @__PURE__ */
|
|
29
|
+
icon: /* @__PURE__ */ c(r, { className: "size-4" }),
|
|
30
30
|
size: "medium",
|
|
31
31
|
isLoading: p,
|
|
32
32
|
unavailable: !f,
|
|
33
|
-
headerAction: /* @__PURE__ */ o
|
|
33
|
+
headerAction: /* @__PURE__ */ l(o, {
|
|
34
34
|
variant: "ghost",
|
|
35
35
|
size: "sm",
|
|
36
36
|
className: "text-xs",
|
|
@@ -38,41 +38,41 @@ function f({ workspaceData: f, isLoading: p, navigate: m }) {
|
|
|
38
38
|
children: [
|
|
39
39
|
t(h, "dashboard.upcomingEvents.viewAll", "View all"),
|
|
40
40
|
" ",
|
|
41
|
-
/* @__PURE__ */
|
|
41
|
+
/* @__PURE__ */ c(n, { className: "ml-1 size-3" })
|
|
42
42
|
]
|
|
43
43
|
}),
|
|
44
|
-
children: g.length === 0 ? /* @__PURE__ */
|
|
44
|
+
children: g.length === 0 ? /* @__PURE__ */ c(s, {
|
|
45
45
|
illustration: "empty-data",
|
|
46
46
|
title: t(h, "dashboard.upcomingEvents.emptyTitle", "No upcoming events"),
|
|
47
47
|
className: "py-4",
|
|
48
|
-
action: /* @__PURE__ */
|
|
48
|
+
action: /* @__PURE__ */ c(o, {
|
|
49
49
|
variant: "outline",
|
|
50
50
|
size: "sm",
|
|
51
51
|
onClick: () => m("/calendar"),
|
|
52
52
|
children: t(h, "dashboard.upcomingEvents.emptyAction", "Schedule an event")
|
|
53
53
|
})
|
|
54
|
-
}) : /* @__PURE__ */
|
|
54
|
+
}) : /* @__PURE__ */ c("div", {
|
|
55
55
|
className: "space-y-2",
|
|
56
|
-
children: g.map((e) => /* @__PURE__ */
|
|
56
|
+
children: g.map((e) => /* @__PURE__ */ l("button", {
|
|
57
57
|
type: "button",
|
|
58
58
|
className: "w-full flex items-start gap-3 p-2 rounded-md hover:bg-accent/5 cursor-pointer transition-colors text-left",
|
|
59
59
|
onClick: () => m("/calendar"),
|
|
60
60
|
children: [
|
|
61
|
-
/* @__PURE__ */
|
|
61
|
+
/* @__PURE__ */ c("div", {
|
|
62
62
|
className: "rounded-md bg-accent-pink-subtle text-accent-pink p-1.5 shrink-0",
|
|
63
|
-
children: /* @__PURE__ */
|
|
63
|
+
children: /* @__PURE__ */ c(i, { className: "size-3.5" })
|
|
64
64
|
}),
|
|
65
|
-
/* @__PURE__ */
|
|
65
|
+
/* @__PURE__ */ l("div", {
|
|
66
66
|
className: "min-w-0 flex-1",
|
|
67
|
-
children: [/* @__PURE__ */
|
|
67
|
+
children: [/* @__PURE__ */ c("p", {
|
|
68
68
|
className: "text-sm font-medium text-text-primary truncate",
|
|
69
69
|
children: e.title
|
|
70
|
-
}), /* @__PURE__ */
|
|
70
|
+
}), /* @__PURE__ */ c("p", {
|
|
71
71
|
className: "text-xs text-text-secondary",
|
|
72
72
|
children: d(h, e.startTime)
|
|
73
73
|
})]
|
|
74
74
|
}),
|
|
75
|
-
e.allDay && /* @__PURE__ */ a
|
|
75
|
+
e.allDay && /* @__PURE__ */ c(a, {
|
|
76
76
|
variant: "secondary",
|
|
77
77
|
className: "text-[10px] shrink-0",
|
|
78
78
|
children: t(h, "dashboard.upcomingEvents.allDay", "All day")
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { WidgetWrapper as e } from "../WidgetWrapper.js";
|
|
2
2
|
import { tWithFallback as t } from "../../../utils/i18n.js";
|
|
3
3
|
import { ArrowRight as n, Plus as r, Sparkles as i } from "lucide-react";
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
4
|
+
import { Button as a, IllustratedEmptyState as o } from "@burdenoff/fe-libs/ui";
|
|
5
|
+
import { jsx as s, jsxs as c } from "react/jsx-runtime";
|
|
6
6
|
import { useI18n as l } from "@burdenoff/fe-libs/shared/providers/shell/I18nProvider";
|
|
7
7
|
// src/pages/dashboard/widgets/VibesWidget.tsx
|
|
8
8
|
function u(e, n) {
|
|
@@ -19,13 +19,13 @@ function u(e, n) {
|
|
|
19
19
|
}
|
|
20
20
|
function d({ workspaceData: d, isLoading: f, navigate: p }) {
|
|
21
21
|
let { t: m } = l(), h = d?.recentVibes ?? [];
|
|
22
|
-
return /* @__PURE__ */
|
|
22
|
+
return /* @__PURE__ */ s(e, {
|
|
23
23
|
title: t(m, "dashboard.vibes.title", "Recent Vibes"),
|
|
24
|
-
icon: /* @__PURE__ */
|
|
24
|
+
icon: /* @__PURE__ */ s(i, { className: "size-4" }),
|
|
25
25
|
size: "medium",
|
|
26
26
|
isLoading: f,
|
|
27
27
|
unavailable: !d,
|
|
28
|
-
headerAction: /* @__PURE__ */
|
|
28
|
+
headerAction: /* @__PURE__ */ c(a, {
|
|
29
29
|
variant: "ghost",
|
|
30
30
|
size: "sm",
|
|
31
31
|
className: "text-xs",
|
|
@@ -33,33 +33,33 @@ function d({ workspaceData: d, isLoading: f, navigate: p }) {
|
|
|
33
33
|
children: [
|
|
34
34
|
t(m, "dashboard.vibes.viewAll", "View all"),
|
|
35
35
|
" ",
|
|
36
|
-
/* @__PURE__ */
|
|
36
|
+
/* @__PURE__ */ s(n, { className: "ml-1 size-3" })
|
|
37
37
|
]
|
|
38
38
|
}),
|
|
39
|
-
children: h.length === 0 ? /* @__PURE__ */
|
|
39
|
+
children: h.length === 0 ? /* @__PURE__ */ s(o, {
|
|
40
40
|
illustration: "empty-vibes",
|
|
41
41
|
title: t(m, "dashboard.vibes.emptyTitle", "No vibes yet"),
|
|
42
42
|
className: "py-4",
|
|
43
|
-
action: /* @__PURE__ */
|
|
43
|
+
action: /* @__PURE__ */ c(a, {
|
|
44
44
|
variant: "outline",
|
|
45
45
|
size: "sm",
|
|
46
46
|
onClick: () => p("/vibecontrols/vibes/new"),
|
|
47
47
|
children: [
|
|
48
|
-
/* @__PURE__ */
|
|
48
|
+
/* @__PURE__ */ s(r, { className: "mr-1.5 size-3.5" }),
|
|
49
49
|
" ",
|
|
50
50
|
t(m, "dashboard.vibes.emptyAction", "Create your first vibe")
|
|
51
51
|
]
|
|
52
52
|
})
|
|
53
|
-
}) : /* @__PURE__ */
|
|
53
|
+
}) : /* @__PURE__ */ s("ul", {
|
|
54
54
|
className: "space-y-1.5",
|
|
55
|
-
children: h.slice(0, 5).map((e) => /* @__PURE__ */
|
|
55
|
+
children: h.slice(0, 5).map((e) => /* @__PURE__ */ s("li", { children: /* @__PURE__ */ c("button", {
|
|
56
56
|
type: "button",
|
|
57
57
|
onClick: () => p(`/vibecontrols/vibes/${e.id}`),
|
|
58
58
|
className: "flex w-full items-center justify-between gap-2 rounded-md p-2 text-left transition-colors hover:bg-accent/5",
|
|
59
|
-
children: [/* @__PURE__ */
|
|
59
|
+
children: [/* @__PURE__ */ s("span", {
|
|
60
60
|
className: "truncate text-sm font-medium text-text-primary",
|
|
61
61
|
children: e.name
|
|
62
|
-
}), /* @__PURE__ */
|
|
62
|
+
}), /* @__PURE__ */ s("span", {
|
|
63
63
|
className: "shrink-0 text-[11px] text-text-secondary",
|
|
64
64
|
children: u(m, e.updatedAt)
|
|
65
65
|
})]
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { WidgetWrapper as e } from "../WidgetWrapper.js";
|
|
2
2
|
import { tWithFallback as t } from "../../../utils/i18n.js";
|
|
3
3
|
import { Activity as n, Building2 as r, FolderKanban as i, LayoutDashboard as a, Users as o } from "lucide-react";
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
4
|
+
import { GlassCard as s, GradientText as c } from "@burdenoff/fe-libs/ui";
|
|
5
|
+
import { jsx as l, jsxs as u } from "react/jsx-runtime";
|
|
6
6
|
import { useI18n as d } from "@burdenoff/fe-libs/shared/providers/shell/I18nProvider";
|
|
7
7
|
// src/pages/dashboard/widgets/WelcomeWidget.tsx
|
|
8
8
|
function f({ icon: e, label: t, value: n, onClick: r }) {
|
|
9
|
-
return /* @__PURE__ */ s
|
|
9
|
+
return /* @__PURE__ */ l(s, {
|
|
10
10
|
treatment: "metric",
|
|
11
11
|
className: `p-3${r ? " cursor-pointer hover:shadow-[var(--shadow-pop-hover)] hover:border-border-strong focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-[var(--color-focus-ring)]" : ""}`,
|
|
12
12
|
onClick: r,
|
|
@@ -15,15 +15,15 @@ function f({ icon: e, label: t, value: n, onClick: r }) {
|
|
|
15
15
|
} : void 0,
|
|
16
16
|
role: r ? "button" : void 0,
|
|
17
17
|
tabIndex: r ? 0 : void 0,
|
|
18
|
-
children: /* @__PURE__ */
|
|
18
|
+
children: /* @__PURE__ */ u("div", {
|
|
19
19
|
className: "flex items-center gap-3",
|
|
20
|
-
children: [/* @__PURE__ */
|
|
20
|
+
children: [/* @__PURE__ */ l("div", {
|
|
21
21
|
className: "rounded-md bg-action-primary-bg/10 p-2 text-primary",
|
|
22
22
|
children: e
|
|
23
|
-
}), /* @__PURE__ */
|
|
23
|
+
}), /* @__PURE__ */ u("div", { children: [/* @__PURE__ */ l("p", {
|
|
24
24
|
className: "text-2xl font-bold text-text-primary tabular-nums",
|
|
25
25
|
children: n
|
|
26
|
-
}), /* @__PURE__ */
|
|
26
|
+
}), /* @__PURE__ */ l("p", {
|
|
27
27
|
className: "text-xs text-text-muted",
|
|
28
28
|
children: t
|
|
29
29
|
})] })]
|
|
@@ -32,52 +32,52 @@ function f({ icon: e, label: t, value: n, onClick: r }) {
|
|
|
32
32
|
}
|
|
33
33
|
function p({ workspaceData: p, globalData: m, isLoading: h, navigate: g }) {
|
|
34
34
|
let { t: _ } = d(), v = m?.currentUser, y = v?.firstName || v?.name?.split(" ")[0] || t(_, "dashboard.welcome.fallbackName", "there"), b = (/* @__PURE__ */ new Date()).getHours(), x = b < 12 ? t(_, "dashboard.welcome.greetingMorning", "Good morning") : b < 18 ? t(_, "dashboard.welcome.greetingAfternoon", "Good afternoon") : t(_, "dashboard.welcome.greetingEvening", "Good evening"), S = p?.workspaces.total ?? 0, C = p?.projects.total ?? 0, w = p?.groups.totalCount ?? 0, T = p?.recentActivities.length ?? 0;
|
|
35
|
-
return /* @__PURE__ */
|
|
35
|
+
return /* @__PURE__ */ l(e, {
|
|
36
36
|
title: t(_, "dashboard.welcome.title", "Dashboard"),
|
|
37
|
-
icon: /* @__PURE__ */
|
|
37
|
+
icon: /* @__PURE__ */ l(a, { className: "size-4" }),
|
|
38
38
|
size: "large",
|
|
39
39
|
isLoading: h,
|
|
40
|
-
children: /* @__PURE__ */
|
|
40
|
+
children: /* @__PURE__ */ u("div", {
|
|
41
41
|
className: "space-y-4",
|
|
42
|
-
children: [/* @__PURE__ */
|
|
42
|
+
children: [/* @__PURE__ */ u(s, {
|
|
43
43
|
treatment: "glass",
|
|
44
44
|
glow: !0,
|
|
45
45
|
className: "relative overflow-hidden p-4",
|
|
46
|
-
children: [/* @__PURE__ */
|
|
46
|
+
children: [/* @__PURE__ */ u("h3", {
|
|
47
47
|
className: "text-xl font-bold text-text-primary",
|
|
48
48
|
children: [
|
|
49
49
|
x,
|
|
50
50
|
", ",
|
|
51
|
-
/* @__PURE__ */
|
|
51
|
+
/* @__PURE__ */ l(c, { children: y }),
|
|
52
52
|
"!"
|
|
53
53
|
]
|
|
54
|
-
}), /* @__PURE__ */
|
|
54
|
+
}), /* @__PURE__ */ l("p", {
|
|
55
55
|
className: "text-sm text-text-secondary mt-1",
|
|
56
56
|
children: t(_, "dashboard.welcome.subtitle", "Here's what's happening across your workspaces today.")
|
|
57
57
|
})]
|
|
58
|
-
}), /* @__PURE__ */
|
|
58
|
+
}), /* @__PURE__ */ u("div", {
|
|
59
59
|
className: "grid grid-cols-2 sm:grid-cols-4 gap-3",
|
|
60
60
|
children: [
|
|
61
|
-
/* @__PURE__ */
|
|
62
|
-
icon: /* @__PURE__ */
|
|
61
|
+
/* @__PURE__ */ l(f, {
|
|
62
|
+
icon: /* @__PURE__ */ l(r, { className: "size-4" }),
|
|
63
63
|
label: t(_, "dashboard.welcome.statWorkspaces", "Workspaces"),
|
|
64
64
|
value: S,
|
|
65
65
|
onClick: () => g("/workspaces/list")
|
|
66
66
|
}),
|
|
67
|
-
/* @__PURE__ */
|
|
68
|
-
icon: /* @__PURE__ */
|
|
67
|
+
/* @__PURE__ */ l(f, {
|
|
68
|
+
icon: /* @__PURE__ */ l(i, { className: "size-4" }),
|
|
69
69
|
label: t(_, "dashboard.welcome.statProjects", "Projects"),
|
|
70
70
|
value: C,
|
|
71
71
|
onClick: () => g("/workspaces/projects")
|
|
72
72
|
}),
|
|
73
|
-
/* @__PURE__ */
|
|
74
|
-
icon: /* @__PURE__ */
|
|
73
|
+
/* @__PURE__ */ l(f, {
|
|
74
|
+
icon: /* @__PURE__ */ l(o, { className: "size-4" }),
|
|
75
75
|
label: t(_, "dashboard.welcome.statGroups", "Groups"),
|
|
76
76
|
value: w,
|
|
77
77
|
onClick: () => g("/groups")
|
|
78
78
|
}),
|
|
79
|
-
/* @__PURE__ */
|
|
80
|
-
icon: /* @__PURE__ */
|
|
79
|
+
/* @__PURE__ */ l(f, {
|
|
80
|
+
icon: /* @__PURE__ */ l(n, { className: "size-4" }),
|
|
81
81
|
label: t(_, "dashboard.welcome.statRecentActivity", "Recent Activity"),
|
|
82
82
|
value: T,
|
|
83
83
|
onClick: () => g("/workspaces/activity")
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { WidgetWrapper as e } from "../WidgetWrapper.js";
|
|
2
2
|
import { tWithFallback as t } from "../../../utils/i18n.js";
|
|
3
3
|
import { Activity as n, ArrowRight as r, CheckCircle2 as i, Clock as a, Play as o, XCircle as s } from "lucide-react";
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
4
|
+
import { Badge as c, Button as l, IllustratedEmptyState as u } from "@burdenoff/fe-libs/ui";
|
|
5
|
+
import { jsx as d, jsxs as f } from "react/jsx-runtime";
|
|
6
6
|
import { useI18n as p } from "@burdenoff/fe-libs/shared/providers/shell/I18nProvider";
|
|
7
7
|
// src/pages/dashboard/widgets/WorkflowRunsWidget.tsx
|
|
8
8
|
var m = {
|
|
@@ -47,13 +47,13 @@ function h(e, n) {
|
|
|
47
47
|
}
|
|
48
48
|
function g({ workspaceData: i, isLoading: a, navigate: o }) {
|
|
49
49
|
let { t: s } = p(), g = i?.workflowStats, _ = g?.recentRuns ?? [], v = g?.workflowSuccessRate;
|
|
50
|
-
return /* @__PURE__ */
|
|
50
|
+
return /* @__PURE__ */ d(e, {
|
|
51
51
|
title: t(s, "dashboard.workflowRuns.title", "Workflow Runs"),
|
|
52
|
-
icon: /* @__PURE__ */
|
|
52
|
+
icon: /* @__PURE__ */ d(n, { className: "size-4" }),
|
|
53
53
|
size: "medium",
|
|
54
54
|
isLoading: a,
|
|
55
55
|
unavailable: !i,
|
|
56
|
-
headerAction: /* @__PURE__ */ l
|
|
56
|
+
headerAction: /* @__PURE__ */ f(l, {
|
|
57
57
|
variant: "ghost",
|
|
58
58
|
size: "sm",
|
|
59
59
|
className: "text-xs",
|
|
@@ -61,69 +61,69 @@ function g({ workspaceData: i, isLoading: a, navigate: o }) {
|
|
|
61
61
|
children: [
|
|
62
62
|
t(s, "dashboard.workflowRuns.viewAll", "View all"),
|
|
63
63
|
" ",
|
|
64
|
-
/* @__PURE__ */
|
|
64
|
+
/* @__PURE__ */ d(r, { className: "ml-1 size-3" })
|
|
65
65
|
]
|
|
66
66
|
}),
|
|
67
|
-
children: g ? /* @__PURE__ */
|
|
67
|
+
children: g ? /* @__PURE__ */ f("div", {
|
|
68
68
|
className: "space-y-3",
|
|
69
|
-
children: [/* @__PURE__ */
|
|
69
|
+
children: [/* @__PURE__ */ f("div", {
|
|
70
70
|
className: "grid grid-cols-3 gap-2",
|
|
71
71
|
children: [
|
|
72
|
-
/* @__PURE__ */
|
|
72
|
+
/* @__PURE__ */ f("div", {
|
|
73
73
|
className: "rounded-lg bg-bg-canvas p-2.5 border border-border-default text-center",
|
|
74
|
-
children: [/* @__PURE__ */
|
|
74
|
+
children: [/* @__PURE__ */ d("p", {
|
|
75
75
|
className: "text-xl font-bold text-text-primary tabular-nums",
|
|
76
76
|
children: g.runsRunningCount ?? 0
|
|
77
|
-
}), /* @__PURE__ */
|
|
77
|
+
}), /* @__PURE__ */ d("p", {
|
|
78
78
|
className: "text-[11px] text-text-secondary",
|
|
79
79
|
children: t(s, "dashboard.workflowRuns.statRunning", "Running")
|
|
80
80
|
})]
|
|
81
81
|
}),
|
|
82
|
-
/* @__PURE__ */
|
|
82
|
+
/* @__PURE__ */ f("div", {
|
|
83
83
|
className: "rounded-lg bg-bg-canvas p-2.5 border border-border-default text-center",
|
|
84
|
-
children: [/* @__PURE__ */
|
|
84
|
+
children: [/* @__PURE__ */ d("p", {
|
|
85
85
|
className: "text-xl font-bold text-status-error-text tabular-nums",
|
|
86
86
|
children: g.runsFailedLast24h ?? 0
|
|
87
|
-
}), /* @__PURE__ */
|
|
87
|
+
}), /* @__PURE__ */ d("p", {
|
|
88
88
|
className: "text-[11px] text-text-secondary",
|
|
89
89
|
children: t(s, "dashboard.workflowRuns.statFailed24h", "Failed (24h)")
|
|
90
90
|
})]
|
|
91
91
|
}),
|
|
92
|
-
/* @__PURE__ */
|
|
92
|
+
/* @__PURE__ */ f("div", {
|
|
93
93
|
className: "rounded-lg bg-bg-canvas p-2.5 border border-border-default text-center",
|
|
94
|
-
children: [/* @__PURE__ */
|
|
94
|
+
children: [/* @__PURE__ */ d("p", {
|
|
95
95
|
className: "text-xl font-bold text-status-success-text tabular-nums",
|
|
96
96
|
children: v == null ? "—" : `${Math.round(v)}%`
|
|
97
|
-
}), /* @__PURE__ */
|
|
97
|
+
}), /* @__PURE__ */ d("p", {
|
|
98
98
|
className: "text-[11px] text-text-secondary",
|
|
99
99
|
children: t(s, "dashboard.workflowRuns.statSuccessRate", "Success rate")
|
|
100
100
|
})]
|
|
101
101
|
})
|
|
102
102
|
]
|
|
103
|
-
}), _.length > 0 && /* @__PURE__ */
|
|
103
|
+
}), _.length > 0 && /* @__PURE__ */ f("div", {
|
|
104
104
|
className: "space-y-1.5",
|
|
105
|
-
children: [/* @__PURE__ */
|
|
105
|
+
children: [/* @__PURE__ */ d("p", {
|
|
106
106
|
className: "text-xs font-medium text-text-secondary uppercase tracking-wider",
|
|
107
107
|
children: t(s, "dashboard.workflowRuns.recentRunsHeading", "Recent Runs")
|
|
108
108
|
}), _.slice(0, 4).map((e) => {
|
|
109
109
|
let t = m[e.status] ?? m.RUNNING, n = t.icon;
|
|
110
|
-
return /* @__PURE__ */
|
|
110
|
+
return /* @__PURE__ */ f("button", {
|
|
111
111
|
type: "button",
|
|
112
112
|
onClick: () => o(`/workflows/runs/${e.id}`),
|
|
113
113
|
className: "flex w-full items-center justify-between gap-2 rounded-md p-1.5 text-left transition-colors hover:bg-accent/5",
|
|
114
|
-
children: [/* @__PURE__ */
|
|
114
|
+
children: [/* @__PURE__ */ f("div", {
|
|
115
115
|
className: "flex items-center gap-2 min-w-0",
|
|
116
|
-
children: [/* @__PURE__ */
|
|
116
|
+
children: [/* @__PURE__ */ d(n, { className: `size-3.5 shrink-0 ${t.color}` }), /* @__PURE__ */ d("span", {
|
|
117
117
|
className: "truncate text-sm text-text-primary",
|
|
118
118
|
children: e.workflowKey
|
|
119
119
|
})]
|
|
120
|
-
}), /* @__PURE__ */
|
|
120
|
+
}), /* @__PURE__ */ f("div", {
|
|
121
121
|
className: "flex items-center gap-2 shrink-0",
|
|
122
|
-
children: [/* @__PURE__ */ c
|
|
122
|
+
children: [/* @__PURE__ */ d(c, {
|
|
123
123
|
variant: "outline",
|
|
124
124
|
className: "text-[10px]",
|
|
125
125
|
children: e.status.toLowerCase()
|
|
126
|
-
}), /* @__PURE__ */
|
|
126
|
+
}), /* @__PURE__ */ d("span", {
|
|
127
127
|
className: "text-[11px] text-text-secondary",
|
|
128
128
|
children: h(s, e.startedAt)
|
|
129
129
|
})]
|
|
@@ -131,7 +131,7 @@ function g({ workspaceData: i, isLoading: a, navigate: o }) {
|
|
|
131
131
|
}, e.id);
|
|
132
132
|
})]
|
|
133
133
|
})]
|
|
134
|
-
}) : /* @__PURE__ */
|
|
134
|
+
}) : /* @__PURE__ */ d(u, {
|
|
135
135
|
illustration: "empty-data",
|
|
136
136
|
title: t(s, "dashboard.workflowRuns.emptyTitle", "No runs yet"),
|
|
137
137
|
description: t(s, "dashboard.workflowRuns.emptyDescription", "Trigger a workflow to see its execution history here."),
|