@burdenoff/microfe-workspaces 2026.1108.1 → 2026.1110.1
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 +10 -9
- package/dist/WorkspacesRoutes.js +1 -2
- package/dist/components/CreateProjectDialog.js +22 -22
- package/dist/components/CreateWorkspaceDialog.js +8 -9
- package/dist/components/InviteMemberDialog.js +18 -23
- package/dist/components/MemberListItem.js +16 -17
- package/dist/components/ProjectCard.js +14 -15
- package/dist/components/ProjectMemberPickerDialog.js +92 -93
- package/dist/components/RenameProjectDialog.js +12 -17
- package/dist/components/WorkspaceCard.js +6 -7
- package/dist/components/WorkspaceContextPathSync.js +4 -5
- package/dist/components/WorkspacesErrorBoundary.js +6 -11
- package/dist/components/index.js +8 -7
- package/dist/components/tags/ProjectTagsWidget.js +56 -57
- package/dist/components/tags/WorkspaceTagsEditor.js +2 -3
- package/dist/constants/permissions.js +1 -2
- package/dist/generated/global-operations.js +1 -2
- package/dist/generated/wspace-operations.js +1 -2
- package/dist/hooks/index.js +9 -8
- package/dist/hooks/useMemberMutations.js +165 -166
- package/dist/hooks/useOpenWorkspace.js +1 -2
- package/dist/hooks/useOrgsWithPermission.js +2 -3
- package/dist/hooks/usePendingInvitations.d.ts +1 -1
- package/dist/hooks/usePendingInvitations.js +2 -3
- package/dist/hooks/useProjectMemberMutations.js +23 -24
- package/dist/hooks/useProjectMembers.d.ts +2 -2
- package/dist/hooks/useProjectMembers.js +2 -3
- package/dist/hooks/useProjectMutations.js +68 -69
- package/dist/hooks/useProjects.d.ts +3 -3
- package/dist/hooks/useProjects.js +5 -6
- package/dist/hooks/useScopedNavigation.js +1 -2
- package/dist/hooks/useTenants.d.ts +2 -2
- package/dist/hooks/useTenants.js +3 -4
- package/dist/hooks/useTr.js +1 -2
- package/dist/hooks/useWorkspaceActivity.d.ts +1 -1
- package/dist/hooks/useWorkspaceActivity.js +2 -3
- package/dist/hooks/useWorkspaceMembers.d.ts +5 -5
- package/dist/hooks/useWorkspaceMembers.js +7 -8
- package/dist/hooks/useWorkspaceMutations.js +70 -71
- package/dist/hooks/useWorkspacePermissions.js +1 -2
- package/dist/hooks/useWorkspaceRoles.d.ts +1 -1
- package/dist/hooks/useWorkspaceRoles.js +3 -4
- package/dist/hooks/useWorkspaces.d.ts +3 -3
- package/dist/hooks/useWorkspaces.js +4 -5
- package/dist/hooks/useWorkspacesEventEmitter.js +1 -2
- package/dist/hooks/useWorkspacesPageView.js +1 -2
- package/dist/index.js +15 -15
- package/dist/pages/ActivityListPage.js +28 -29
- package/dist/pages/CreateWorkspacePage.js +137 -138
- package/dist/pages/InviteAcceptancePage.js +65 -66
- package/dist/pages/MembersListPage.js +203 -204
- package/dist/pages/PendingInvitesPage.js +63 -64
- package/dist/pages/ProjectDetailPage.js +71 -72
- package/dist/pages/ProjectMembersPage.js +116 -117
- package/dist/pages/ProjectsListPage.js +62 -67
- package/dist/pages/WorkspaceDetailPage.js +153 -154
- package/dist/pages/WorkspaceInvitePage.js +88 -92
- package/dist/pages/WorkspaceSettingsPage.js +32 -33
- package/dist/pages/WorkspacesListPage.js +40 -41
- package/dist/pages/dashboard/DashboardCustomizer.js +98 -94
- package/dist/pages/dashboard/DashboardGrid.js +1 -2
- package/dist/pages/dashboard/DashboardPage.js +12 -13
- package/dist/pages/dashboard/WidgetWrapper.js +21 -21
- package/dist/pages/dashboard/config.js +3 -4
- package/dist/pages/dashboard/hooks/useDashboardData.d.ts +5 -5
- package/dist/pages/dashboard/hooks/useDashboardData.js +9 -10
- package/dist/pages/dashboard/hooks/useDashboardPreferences.js +7 -8
- package/dist/pages/dashboard/reorder.js +11 -14
- package/dist/pages/dashboard/widgets/AgentsWidget.js +13 -14
- package/dist/pages/dashboard/widgets/GroupsWidget.js +9 -10
- package/dist/pages/dashboard/widgets/MembersWidget.js +10 -11
- package/dist/pages/dashboard/widgets/ProjectsWidget.js +11 -12
- package/dist/pages/dashboard/widgets/QuickActionsWidget.js +28 -29
- package/dist/pages/dashboard/widgets/RecentActivityWidget.js +22 -23
- package/dist/pages/dashboard/widgets/SessionsWidget.js +28 -29
- package/dist/pages/dashboard/widgets/StorageWidget.js +19 -20
- package/dist/pages/dashboard/widgets/TagCloudWidget.js +9 -10
- package/dist/pages/dashboard/widgets/TipsWidget.js +5 -6
- package/dist/pages/dashboard/widgets/UpcomingEventsWidget.js +17 -18
- package/dist/pages/dashboard/widgets/VibesWidget.js +13 -14
- package/dist/pages/dashboard/widgets/WelcomeWidget.js +12 -13
- package/dist/pages/dashboard/widgets/WorkflowRunsWidget.js +16 -17
- package/dist/pages/dashboard/widgets/WorkflowStatsWidget.js +11 -12
- package/dist/pages/dashboard/widgets/WorkflowsOverviewWidget.js +17 -18
- package/dist/pages/dashboard/widgets/WorkspacesWidget.js +7 -8
- package/dist/pages/dashboard/widgets/tipsCatalog.js +1 -2
- package/dist/providers/WorkspacesProvider.js +1 -2
- package/dist/store/workspacesStore.d.ts +1 -1
- package/dist/store/workspacesStore.js +1 -2
- package/dist/test/happydom.d.ts +1 -0
- package/dist/translations/en.js +1 -2
- package/dist/utils/formatters.js +1 -2
- package/dist/utils/i18n.js +1 -2
- package/dist/utils/invitationDisplay.js +1 -2
- package/dist/utils/nativeBridge.js +1 -2
- package/dist/utils/pinnedRequest.js +2 -3
- package/dist/utils/projectTags.js +2 -3
- package/dist/utils/slug.js +1 -2
- package/dist/utils/telemetryError.js +13 -16
- package/dist/utils/tokenHelpers.js +1 -2
- package/dist/utils/workspaceBulkInviteCsv.js +3 -8
- package/package.json +72 -55
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
1
|
+
import { WidgetWrapper as e } from "../WidgetWrapper.js";
|
|
2
|
+
import { tWithFallback as t } from "../../../utils/i18n.js";
|
|
3
3
|
import { AlertTriangle as n, ArrowRight as r, Bot as i, Wifi as a, WifiOff as o } from "lucide-react";
|
|
4
4
|
import { jsx as s, jsxs as c } from "react/jsx-runtime";
|
|
5
5
|
import { Button as l, IllustratedEmptyState as u } from "@burdenoff/fe-libs/ui";
|
|
6
6
|
import { useI18n as d } from "@burdenoff/fe-libs/shared/providers/shell/I18nProvider";
|
|
7
|
-
|
|
7
|
+
// src/pages/dashboard/widgets/AgentsWidget.tsx
|
|
8
8
|
function f({ workspaceData: f, isLoading: p, navigate: m }) {
|
|
9
9
|
let { t: h } = d(), g = f?.agentFleet ?? null, _ = g?.total ?? 0;
|
|
10
|
-
return /* @__PURE__ */ s(
|
|
11
|
-
title:
|
|
10
|
+
return /* @__PURE__ */ s(e, {
|
|
11
|
+
title: t(h, "dashboard.agents.title", "Agent Fleet"),
|
|
12
12
|
icon: /* @__PURE__ */ s(i, { className: "size-4" }),
|
|
13
13
|
size: "small",
|
|
14
14
|
isLoading: p,
|
|
@@ -19,20 +19,20 @@ function f({ workspaceData: f, isLoading: p, navigate: m }) {
|
|
|
19
19
|
className: "text-xs",
|
|
20
20
|
onClick: () => m("/vibecontrols/agents"),
|
|
21
21
|
children: [
|
|
22
|
-
|
|
22
|
+
t(h, "dashboard.agents.open", "Open"),
|
|
23
23
|
" ",
|
|
24
24
|
/* @__PURE__ */ s(r, { className: "ml-1 size-3" })
|
|
25
25
|
]
|
|
26
26
|
}),
|
|
27
27
|
children: !g || _ === 0 ? /* @__PURE__ */ s(u, {
|
|
28
28
|
illustration: "empty-agents",
|
|
29
|
-
title:
|
|
29
|
+
title: t(h, "dashboard.agents.emptyTitle", "No agents connected"),
|
|
30
30
|
className: "py-4",
|
|
31
31
|
action: /* @__PURE__ */ s(l, {
|
|
32
32
|
variant: "outline",
|
|
33
33
|
size: "sm",
|
|
34
34
|
onClick: () => m("/vibecontrols/agents/new"),
|
|
35
|
-
children:
|
|
35
|
+
children: t(h, "dashboard.agents.connectAgent", "Connect agent")
|
|
36
36
|
})
|
|
37
37
|
}) : /* @__PURE__ */ c("div", {
|
|
38
38
|
className: "space-y-3",
|
|
@@ -41,7 +41,7 @@ function f({ workspaceData: f, isLoading: p, navigate: m }) {
|
|
|
41
41
|
className: "text-2xl font-semibold text-text-primary",
|
|
42
42
|
children: [_, /* @__PURE__ */ s("span", {
|
|
43
43
|
className: "ml-1 text-xs font-normal text-text-secondary",
|
|
44
|
-
children:
|
|
44
|
+
children: t(h, "dashboard.agents.total", "total")
|
|
45
45
|
})]
|
|
46
46
|
}),
|
|
47
47
|
/* @__PURE__ */ c("div", {
|
|
@@ -57,7 +57,7 @@ function f({ workspaceData: f, isLoading: p, navigate: m }) {
|
|
|
57
57
|
}),
|
|
58
58
|
/* @__PURE__ */ s("p", {
|
|
59
59
|
className: "text-[10px] text-text-secondary",
|
|
60
|
-
children:
|
|
60
|
+
children: t(h, "dashboard.agents.online", "online")
|
|
61
61
|
})
|
|
62
62
|
]
|
|
63
63
|
}),
|
|
@@ -71,7 +71,7 @@ function f({ workspaceData: f, isLoading: p, navigate: m }) {
|
|
|
71
71
|
}),
|
|
72
72
|
/* @__PURE__ */ s("p", {
|
|
73
73
|
className: "text-[10px] text-text-secondary",
|
|
74
|
-
children:
|
|
74
|
+
children: t(h, "dashboard.agents.degraded", "degraded")
|
|
75
75
|
})
|
|
76
76
|
]
|
|
77
77
|
}),
|
|
@@ -85,7 +85,7 @@ function f({ workspaceData: f, isLoading: p, navigate: m }) {
|
|
|
85
85
|
}),
|
|
86
86
|
/* @__PURE__ */ s("p", {
|
|
87
87
|
className: "text-[10px] text-text-secondary",
|
|
88
|
-
children:
|
|
88
|
+
children: t(h, "dashboard.agents.offline", "offline")
|
|
89
89
|
})
|
|
90
90
|
]
|
|
91
91
|
})
|
|
@@ -93,7 +93,7 @@ function f({ workspaceData: f, isLoading: p, navigate: m }) {
|
|
|
93
93
|
}),
|
|
94
94
|
g.lastSeenAt ? /* @__PURE__ */ s("p", {
|
|
95
95
|
className: "text-[11px] text-text-secondary text-center",
|
|
96
|
-
children:
|
|
96
|
+
children: t(h, "dashboard.agents.lastSeen", "Last seen {time}", { time: new Date(g.lastSeenAt).toLocaleString(void 0, {
|
|
97
97
|
hour: "2-digit",
|
|
98
98
|
minute: "2-digit",
|
|
99
99
|
month: "short",
|
|
@@ -104,5 +104,4 @@ function f({ workspaceData: f, isLoading: p, navigate: m }) {
|
|
|
104
104
|
})
|
|
105
105
|
});
|
|
106
106
|
}
|
|
107
|
-
//#endregion
|
|
108
107
|
export { f as AgentsWidget };
|
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
1
|
+
import { WidgetWrapper as e } from "../WidgetWrapper.js";
|
|
2
|
+
import { tWithFallback as t } from "../../../utils/i18n.js";
|
|
3
3
|
import { ArrowRight as n, Users as r } from "lucide-react";
|
|
4
4
|
import { jsx as i, jsxs as a } from "react/jsx-runtime";
|
|
5
5
|
import { Button as o, IllustratedEmptyState as s } from "@burdenoff/fe-libs/ui";
|
|
6
6
|
import { useI18n as c } from "@burdenoff/fe-libs/shared/providers/shell/I18nProvider";
|
|
7
|
-
|
|
7
|
+
// src/pages/dashboard/widgets/GroupsWidget.tsx
|
|
8
8
|
function l({ workspaceData: l, isLoading: u, navigate: d }) {
|
|
9
9
|
let { t: f } = c(), p = l?.groups.items ?? [], m = l?.groups.totalCount ?? 0;
|
|
10
|
-
return /* @__PURE__ */ i(
|
|
11
|
-
title:
|
|
10
|
+
return /* @__PURE__ */ i(e, {
|
|
11
|
+
title: t(f, "dashboard.groups.title", "Groups"),
|
|
12
12
|
icon: /* @__PURE__ */ i(r, { className: "size-4" }),
|
|
13
13
|
size: "small",
|
|
14
14
|
isLoading: u,
|
|
@@ -17,7 +17,7 @@ function l({ workspaceData: l, isLoading: u, navigate: d }) {
|
|
|
17
17
|
variant: "ghost",
|
|
18
18
|
size: "sm",
|
|
19
19
|
className: "text-xs",
|
|
20
|
-
"aria-label":
|
|
20
|
+
"aria-label": t(f, "dashboard.groups.open", "Open groups"),
|
|
21
21
|
onClick: () => d("/groups"),
|
|
22
22
|
children: /* @__PURE__ */ i(n, {
|
|
23
23
|
className: "size-3",
|
|
@@ -26,8 +26,8 @@ function l({ workspaceData: l, isLoading: u, navigate: d }) {
|
|
|
26
26
|
}),
|
|
27
27
|
children: p.length === 0 ? /* @__PURE__ */ i(s, {
|
|
28
28
|
illustration: "empty-people",
|
|
29
|
-
title:
|
|
30
|
-
description:
|
|
29
|
+
title: t(f, "dashboard.groups.emptyTitle", "No groups yet"),
|
|
30
|
+
description: t(f, "dashboard.groups.emptyDescription", "Groups bundle members together so you can manage and mention them as one."),
|
|
31
31
|
className: "py-4"
|
|
32
32
|
}) : /* @__PURE__ */ a("div", {
|
|
33
33
|
className: "space-y-1.5",
|
|
@@ -50,10 +50,9 @@ function l({ workspaceData: l, isLoading: u, navigate: d }) {
|
|
|
50
50
|
})]
|
|
51
51
|
}, e.id)), m > 4 && /* @__PURE__ */ i("p", {
|
|
52
52
|
className: "text-[11px] text-text-secondary text-center",
|
|
53
|
-
children:
|
|
53
|
+
children: t(f, "dashboard.groups.more", "+{count} more groups", { count: m - 4 })
|
|
54
54
|
})]
|
|
55
55
|
})
|
|
56
56
|
});
|
|
57
57
|
}
|
|
58
|
-
//#endregion
|
|
59
58
|
export { l as GroupsWidget };
|
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
1
|
+
import { WidgetWrapper as e } from "../WidgetWrapper.js";
|
|
2
|
+
import { tWithFallback as t } from "../../../utils/i18n.js";
|
|
3
3
|
import { ArrowRight as n, UserPlus as r, Users as i } from "lucide-react";
|
|
4
4
|
import { jsx as a, jsxs as o } from "react/jsx-runtime";
|
|
5
5
|
import { Button as s } from "@burdenoff/fe-libs/ui";
|
|
6
6
|
import { useI18n as c } from "@burdenoff/fe-libs/shared/providers/shell/I18nProvider";
|
|
7
|
-
|
|
7
|
+
// src/pages/dashboard/widgets/MembersWidget.tsx
|
|
8
8
|
function l({ workspaceData: l, globalData: u, isLoading: d, navigate: f }) {
|
|
9
9
|
let { t: p } = c(), m = u?.workspaces?.items ?? l?.workspaces.items ?? [], h = m.reduce((e, t) => e + (t.memberCount ?? 0), 0), g = u?.workspaces?.total ?? l?.workspaces.total ?? 0;
|
|
10
|
-
return /* @__PURE__ */ a(
|
|
11
|
-
title:
|
|
10
|
+
return /* @__PURE__ */ a(e, {
|
|
11
|
+
title: t(p, "dashboard.members.title", "Members"),
|
|
12
12
|
icon: /* @__PURE__ */ a(i, { className: "size-4" }),
|
|
13
13
|
size: "small",
|
|
14
14
|
isLoading: d,
|
|
@@ -17,7 +17,7 @@ function l({ workspaceData: l, globalData: u, isLoading: d, navigate: f }) {
|
|
|
17
17
|
variant: "ghost",
|
|
18
18
|
size: "sm",
|
|
19
19
|
className: "text-xs",
|
|
20
|
-
"aria-label":
|
|
20
|
+
"aria-label": t(p, "dashboard.members.open", "Open members"),
|
|
21
21
|
onClick: () => f("/workspaces/members"),
|
|
22
22
|
children: /* @__PURE__ */ a(n, {
|
|
23
23
|
className: "size-3",
|
|
@@ -34,10 +34,10 @@ function l({ workspaceData: l, globalData: u, isLoading: d, navigate: f }) {
|
|
|
34
34
|
children: h
|
|
35
35
|
}), /* @__PURE__ */ a("p", {
|
|
36
36
|
className: "text-xs text-text-secondary",
|
|
37
|
-
children:
|
|
38
|
-
memberLabel: h === 1 ?
|
|
37
|
+
children: t(p, "dashboard.members.summary", "{memberLabel} across {count} {workspaceLabel}", {
|
|
38
|
+
memberLabel: h === 1 ? t(p, "dashboard.members.memberSingular", "Member") : t(p, "dashboard.members.memberPlural", "Members"),
|
|
39
39
|
count: g,
|
|
40
|
-
workspaceLabel: g === 1 ?
|
|
40
|
+
workspaceLabel: g === 1 ? t(p, "dashboard.members.workspaceSingular", "workspace") : t(p, "dashboard.members.workspacePlural", "workspaces")
|
|
41
41
|
})
|
|
42
42
|
})]
|
|
43
43
|
}),
|
|
@@ -46,7 +46,7 @@ function l({ workspaceData: l, globalData: u, isLoading: d, navigate: f }) {
|
|
|
46
46
|
size: "sm",
|
|
47
47
|
className: "w-full text-xs",
|
|
48
48
|
onClick: () => f("/workspaces/members?invite=true"),
|
|
49
|
-
children: [/* @__PURE__ */ a(r, { className: "size-3 mr-1.5" }),
|
|
49
|
+
children: [/* @__PURE__ */ a(r, { className: "size-3 mr-1.5" }), t(p, "dashboard.members.invite", "Invite a member")]
|
|
50
50
|
}),
|
|
51
51
|
m.length > 0 && /* @__PURE__ */ o("div", {
|
|
52
52
|
className: "flex -space-x-2 justify-center",
|
|
@@ -63,5 +63,4 @@ function l({ workspaceData: l, globalData: u, isLoading: d, navigate: f }) {
|
|
|
63
63
|
})
|
|
64
64
|
});
|
|
65
65
|
}
|
|
66
|
-
//#endregion
|
|
67
66
|
export { l as MembersWidget };
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
1
|
+
import { WidgetWrapper as e } from "../WidgetWrapper.js";
|
|
2
|
+
import { tWithFallback as t } from "../../../utils/i18n.js";
|
|
3
3
|
import { ArrowRight as n, Circle as r, FolderKanban as i } from "lucide-react";
|
|
4
4
|
import { jsx as a, jsxs as o } from "react/jsx-runtime";
|
|
5
5
|
import { Badge as s, Button as c, IllustratedEmptyState as l } from "@burdenoff/fe-libs/ui";
|
|
6
6
|
import { useI18n as u } from "@burdenoff/fe-libs/shared/providers/shell/I18nProvider";
|
|
7
|
-
|
|
7
|
+
// src/pages/dashboard/widgets/ProjectsWidget.tsx
|
|
8
8
|
var d = {
|
|
9
9
|
ACTIVE: "bg-status-success-bg",
|
|
10
10
|
INACTIVE: "bg-text-tertiary",
|
|
@@ -16,8 +16,8 @@ var d = {
|
|
|
16
16
|
};
|
|
17
17
|
function p({ workspaceData: p, isLoading: m, navigate: h }) {
|
|
18
18
|
let { t: g } = u(), _ = p?.projects.items ?? [], v = p?.projects.total ?? 0, y = _.filter((e) => e.status === "ACTIVE").length, b = _.filter((e) => e.status === "INACTIVE").length;
|
|
19
|
-
return /* @__PURE__ */ a(
|
|
20
|
-
title:
|
|
19
|
+
return /* @__PURE__ */ a(e, {
|
|
20
|
+
title: t(g, "dashboard.projects.title", "Projects"),
|
|
21
21
|
icon: /* @__PURE__ */ a(i, { className: "size-4" }),
|
|
22
22
|
size: "medium",
|
|
23
23
|
isLoading: m,
|
|
@@ -28,20 +28,20 @@ function p({ workspaceData: p, isLoading: m, navigate: h }) {
|
|
|
28
28
|
className: "text-xs",
|
|
29
29
|
onClick: () => h("/workspaces/projects"),
|
|
30
30
|
children: [
|
|
31
|
-
|
|
31
|
+
t(g, "dashboard.projects.viewAll", "View all"),
|
|
32
32
|
" ",
|
|
33
33
|
/* @__PURE__ */ a(n, { className: "ml-1 size-3" })
|
|
34
34
|
]
|
|
35
35
|
}),
|
|
36
36
|
children: _.length === 0 ? /* @__PURE__ */ a(l, {
|
|
37
37
|
illustration: "empty-data",
|
|
38
|
-
title:
|
|
38
|
+
title: t(g, "dashboard.projects.emptyTitle", "No projects yet"),
|
|
39
39
|
className: "py-4",
|
|
40
40
|
action: /* @__PURE__ */ a(c, {
|
|
41
41
|
variant: "outline",
|
|
42
42
|
size: "sm",
|
|
43
43
|
onClick: () => h("/workspaces/projects"),
|
|
44
|
-
children:
|
|
44
|
+
children: t(g, "dashboard.projects.createProject", "Create a project")
|
|
45
45
|
})
|
|
46
46
|
}) : /* @__PURE__ */ o("div", {
|
|
47
47
|
className: "space-y-3",
|
|
@@ -50,15 +50,15 @@ function p({ workspaceData: p, isLoading: m, navigate: h }) {
|
|
|
50
50
|
children: [
|
|
51
51
|
/* @__PURE__ */ o("span", {
|
|
52
52
|
className: "flex items-center gap-1",
|
|
53
|
-
children: [/* @__PURE__ */ a(r, { className: `size-2 fill-status-success-bg text-status-success-bg ${y > 0 ? "motion-safe:animate-vc-glow-pulse" : ""}` }),
|
|
53
|
+
children: [/* @__PURE__ */ a(r, { className: `size-2 fill-status-success-bg text-status-success-bg ${y > 0 ? "motion-safe:animate-vc-glow-pulse" : ""}` }), t(g, "dashboard.projects.activeCount", "{count} active", { count: y })]
|
|
54
54
|
}),
|
|
55
55
|
b > 0 && /* @__PURE__ */ o("span", {
|
|
56
56
|
className: "flex items-center gap-1",
|
|
57
|
-
children: [/* @__PURE__ */ a(r, { className: "size-2 fill-text-tertiary text-text-tertiary" }),
|
|
57
|
+
children: [/* @__PURE__ */ a(r, { className: "size-2 fill-text-tertiary text-text-tertiary" }), t(g, "dashboard.projects.inactiveCount", "{count} inactive", { count: b })]
|
|
58
58
|
}),
|
|
59
59
|
/* @__PURE__ */ a("span", {
|
|
60
60
|
className: "ml-auto font-medium",
|
|
61
|
-
children:
|
|
61
|
+
children: t(g, "dashboard.projects.totalCount", "{count} total", { count: v })
|
|
62
62
|
})
|
|
63
63
|
]
|
|
64
64
|
}), /* @__PURE__ */ a("div", {
|
|
@@ -83,5 +83,4 @@ function p({ workspaceData: p, isLoading: m, navigate: h }) {
|
|
|
83
83
|
})
|
|
84
84
|
});
|
|
85
85
|
}
|
|
86
|
-
//#endregion
|
|
87
86
|
export { p as ProjectsWidget };
|
|
@@ -1,156 +1,156 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
1
|
+
import { WidgetWrapper as e } from "../WidgetWrapper.js";
|
|
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
4
|
import { jsx as _, jsxs as v } from "react/jsx-runtime";
|
|
5
5
|
import { Button as y } from "@burdenoff/fe-libs/ui";
|
|
6
6
|
import { useI18n as b } from "@burdenoff/fe-libs/shared/providers/shell/I18nProvider";
|
|
7
|
-
|
|
8
|
-
function x(
|
|
7
|
+
// src/pages/dashboard/widgets/QuickActionsWidget.tsx
|
|
8
|
+
function x(e) {
|
|
9
9
|
return [
|
|
10
10
|
{
|
|
11
11
|
id: "create-workspace",
|
|
12
|
-
label: e
|
|
12
|
+
label: t(e, "dashboard.quickActions.newWorkspace", "New Workspace"),
|
|
13
13
|
icon: u,
|
|
14
14
|
path: "/workspaces/list",
|
|
15
15
|
color: "text-accent-blue"
|
|
16
16
|
},
|
|
17
17
|
{
|
|
18
18
|
id: "create-project",
|
|
19
|
-
label: e
|
|
19
|
+
label: t(e, "dashboard.quickActions.newProject", "New Project"),
|
|
20
20
|
icon: o,
|
|
21
21
|
path: "/workspaces/projects",
|
|
22
22
|
color: "text-status-success-text"
|
|
23
23
|
},
|
|
24
24
|
{
|
|
25
25
|
id: "invite-member",
|
|
26
|
-
label: e
|
|
26
|
+
label: t(e, "dashboard.quickActions.inviteMember", "Invite Member"),
|
|
27
27
|
icon: h,
|
|
28
28
|
path: "/workspaces/members",
|
|
29
29
|
color: "text-accent-purple"
|
|
30
30
|
},
|
|
31
31
|
{
|
|
32
32
|
id: "upload-file",
|
|
33
|
-
label: e
|
|
33
|
+
label: t(e, "dashboard.quickActions.uploadFile", "Upload File"),
|
|
34
34
|
icon: m,
|
|
35
35
|
path: "/files",
|
|
36
36
|
color: "text-status-warning-text"
|
|
37
37
|
},
|
|
38
38
|
{
|
|
39
39
|
id: "new-event",
|
|
40
|
-
label: e
|
|
40
|
+
label: t(e, "dashboard.quickActions.newEvent", "New Event"),
|
|
41
41
|
icon: r,
|
|
42
42
|
path: "/calendar",
|
|
43
43
|
color: "text-accent-pink"
|
|
44
44
|
},
|
|
45
45
|
{
|
|
46
46
|
id: "manage-tags",
|
|
47
|
-
label: e
|
|
47
|
+
label: t(e, "dashboard.quickActions.manageTags", "Manage Tags"),
|
|
48
48
|
icon: f,
|
|
49
49
|
path: "/tags",
|
|
50
50
|
color: "text-accent-cyan"
|
|
51
51
|
},
|
|
52
52
|
{
|
|
53
53
|
id: "view-workflows",
|
|
54
|
-
label: e
|
|
54
|
+
label: t(e, "dashboard.quickActions.workflows", "Workflows"),
|
|
55
55
|
icon: a,
|
|
56
56
|
path: "/workflows",
|
|
57
57
|
color: "text-accent-orange"
|
|
58
58
|
},
|
|
59
59
|
{
|
|
60
60
|
id: "settings",
|
|
61
|
-
label: e
|
|
61
|
+
label: t(e, "dashboard.quickActions.settings", "Settings"),
|
|
62
62
|
icon: i,
|
|
63
63
|
path: "/settings",
|
|
64
64
|
color: "text-text-secondary"
|
|
65
65
|
}
|
|
66
66
|
];
|
|
67
67
|
}
|
|
68
|
-
function S(
|
|
68
|
+
function S(e) {
|
|
69
69
|
return [
|
|
70
70
|
{
|
|
71
71
|
id: "new-vibe",
|
|
72
|
-
label: e
|
|
72
|
+
label: t(e, "dashboard.quickActions.newVibe", "New Vibe"),
|
|
73
73
|
icon: d,
|
|
74
74
|
path: "/vibecontrols/vibes/new",
|
|
75
75
|
color: "text-accent-blue"
|
|
76
76
|
},
|
|
77
77
|
{
|
|
78
78
|
id: "view-sessions",
|
|
79
|
-
label: e
|
|
79
|
+
label: t(e, "dashboard.quickActions.sessions", "Sessions"),
|
|
80
80
|
icon: p,
|
|
81
81
|
path: "/vibecontrols/sessions",
|
|
82
82
|
color: "text-status-success-text"
|
|
83
83
|
},
|
|
84
84
|
{
|
|
85
85
|
id: "connect-agent",
|
|
86
|
-
label: e
|
|
86
|
+
label: t(e, "dashboard.quickActions.connectAgent", "Connect Agent"),
|
|
87
87
|
icon: n,
|
|
88
88
|
path: "/vibecontrols/agents/new",
|
|
89
89
|
color: "text-accent-purple"
|
|
90
90
|
},
|
|
91
91
|
{
|
|
92
92
|
id: "invite-member",
|
|
93
|
-
label: e
|
|
93
|
+
label: t(e, "dashboard.quickActions.inviteMember", "Invite Member"),
|
|
94
94
|
icon: h,
|
|
95
95
|
path: "/workspaces/members",
|
|
96
96
|
color: "text-accent-pink"
|
|
97
97
|
},
|
|
98
98
|
{
|
|
99
99
|
id: "upload-file",
|
|
100
|
-
label: e
|
|
100
|
+
label: t(e, "dashboard.quickActions.uploadFile", "Upload File"),
|
|
101
101
|
icon: m,
|
|
102
102
|
path: "/files",
|
|
103
103
|
color: "text-status-warning-text"
|
|
104
104
|
},
|
|
105
105
|
{
|
|
106
106
|
id: "settings",
|
|
107
|
-
label: e
|
|
107
|
+
label: t(e, "dashboard.quickActions.settings", "Settings"),
|
|
108
108
|
icon: i,
|
|
109
109
|
path: "/settings",
|
|
110
110
|
color: "text-accent-cyan"
|
|
111
111
|
}
|
|
112
112
|
];
|
|
113
113
|
}
|
|
114
|
-
function C(
|
|
114
|
+
function C(e) {
|
|
115
115
|
return [
|
|
116
116
|
{
|
|
117
117
|
id: "new-workflow",
|
|
118
|
-
label: e
|
|
118
|
+
label: t(e, "dashboard.quickActions.newWorkflow", "New Workflow"),
|
|
119
119
|
icon: s,
|
|
120
120
|
path: "/workflows/new",
|
|
121
121
|
color: "text-accent-blue"
|
|
122
122
|
},
|
|
123
123
|
{
|
|
124
124
|
id: "view-runs",
|
|
125
|
-
label: e
|
|
125
|
+
label: t(e, "dashboard.quickActions.viewRuns", "View Runs"),
|
|
126
126
|
icon: l,
|
|
127
127
|
path: "/workflows/runs",
|
|
128
128
|
color: "text-status-success-text"
|
|
129
129
|
},
|
|
130
130
|
{
|
|
131
131
|
id: "browse-templates",
|
|
132
|
-
label: e
|
|
132
|
+
label: t(e, "dashboard.quickActions.templates", "Templates"),
|
|
133
133
|
icon: c,
|
|
134
134
|
path: "/workflows/templates",
|
|
135
135
|
color: "text-accent-purple"
|
|
136
136
|
},
|
|
137
137
|
{
|
|
138
138
|
id: "invite-member",
|
|
139
|
-
label: e
|
|
139
|
+
label: t(e, "dashboard.quickActions.inviteMember", "Invite Member"),
|
|
140
140
|
icon: h,
|
|
141
141
|
path: "/workspaces/members",
|
|
142
142
|
color: "text-accent-pink"
|
|
143
143
|
},
|
|
144
144
|
{
|
|
145
145
|
id: "upload-file",
|
|
146
|
-
label: e
|
|
146
|
+
label: t(e, "dashboard.quickActions.uploadFile", "Upload File"),
|
|
147
147
|
icon: m,
|
|
148
148
|
path: "/files",
|
|
149
149
|
color: "text-status-warning-text"
|
|
150
150
|
},
|
|
151
151
|
{
|
|
152
152
|
id: "settings",
|
|
153
|
-
label: e
|
|
153
|
+
label: t(e, "dashboard.quickActions.settings", "Settings"),
|
|
154
154
|
icon: i,
|
|
155
155
|
path: "/settings",
|
|
156
156
|
color: "text-accent-cyan"
|
|
@@ -162,8 +162,8 @@ 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__ */ _(
|
|
166
|
-
title:
|
|
165
|
+
return /* @__PURE__ */ _(e, {
|
|
166
|
+
title: t(a, "dashboard.quickActions.title", "Quick Actions"),
|
|
167
167
|
icon: /* @__PURE__ */ _(g, { className: "size-4" }),
|
|
168
168
|
size: "medium",
|
|
169
169
|
isLoading: r,
|
|
@@ -181,5 +181,4 @@ function T({ navigate: n, isLoading: r, productId: i }) {
|
|
|
181
181
|
})
|
|
182
182
|
});
|
|
183
183
|
}
|
|
184
|
-
//#endregion
|
|
185
184
|
export { T as QuickActionsWidget };
|
|
@@ -1,26 +1,26 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
1
|
+
import { WidgetWrapper as e } from "../WidgetWrapper.js";
|
|
2
|
+
import { tWithFallback as t } from "../../../utils/i18n.js";
|
|
3
3
|
import { Activity as n, ArrowRight as r } from "lucide-react";
|
|
4
4
|
import { jsx as i, jsxs as a } from "react/jsx-runtime";
|
|
5
5
|
import { Button as o, IllustratedEmptyState as s } from "@burdenoff/fe-libs/ui";
|
|
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
|
-
|
|
9
|
-
function u(
|
|
8
|
+
// src/pages/dashboard/widgets/RecentActivityWidget.tsx
|
|
9
|
+
function u(e, n) {
|
|
10
10
|
switch (n) {
|
|
11
|
-
case "workspace.created": return e
|
|
12
|
-
case "workspace.updated": return e
|
|
13
|
-
case "project.created": return e
|
|
14
|
-
case "project.updated": return e
|
|
15
|
-
case "member.added": return e
|
|
16
|
-
case "member.removed": return e
|
|
17
|
-
case "file.uploaded": return e
|
|
18
|
-
case "tag.created": return e
|
|
19
|
-
case "tag.assigned": return e
|
|
20
|
-
case "workflow.started": return e
|
|
21
|
-
case "workflow.completed": return e
|
|
22
|
-
case "event.created": return e
|
|
23
|
-
case "comment.added": return e
|
|
11
|
+
case "workspace.created": return t(e, "dashboard.recentActivity.workspaceCreated", "Created workspace");
|
|
12
|
+
case "workspace.updated": return t(e, "dashboard.recentActivity.workspaceUpdated", "Updated workspace");
|
|
13
|
+
case "project.created": return t(e, "dashboard.recentActivity.projectCreated", "Created project");
|
|
14
|
+
case "project.updated": return t(e, "dashboard.recentActivity.projectUpdated", "Updated project");
|
|
15
|
+
case "member.added": return t(e, "dashboard.recentActivity.memberAdded", "Added member");
|
|
16
|
+
case "member.removed": return t(e, "dashboard.recentActivity.memberRemoved", "Removed member");
|
|
17
|
+
case "file.uploaded": return t(e, "dashboard.recentActivity.fileUploaded", "Uploaded file");
|
|
18
|
+
case "tag.created": return t(e, "dashboard.recentActivity.tagCreated", "Created tag");
|
|
19
|
+
case "tag.assigned": return t(e, "dashboard.recentActivity.tagAssigned", "Assigned tag");
|
|
20
|
+
case "workflow.started": return t(e, "dashboard.recentActivity.workflowStarted", "Started workflow");
|
|
21
|
+
case "workflow.completed": return t(e, "dashboard.recentActivity.workflowCompleted", "Completed workflow");
|
|
22
|
+
case "event.created": return t(e, "dashboard.recentActivity.eventCreated", "Created event");
|
|
23
|
+
case "comment.added": return t(e, "dashboard.recentActivity.commentAdded", "Added comment");
|
|
24
24
|
default: return;
|
|
25
25
|
}
|
|
26
26
|
}
|
|
@@ -35,8 +35,8 @@ 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__ */ i(
|
|
39
|
-
title:
|
|
38
|
+
return /* @__PURE__ */ i(e, {
|
|
39
|
+
title: t(h, "dashboard.recentActivity.title", "Recent Activity"),
|
|
40
40
|
icon: /* @__PURE__ */ i(n, { className: "size-4" }),
|
|
41
41
|
size: "large",
|
|
42
42
|
isLoading: p,
|
|
@@ -47,15 +47,15 @@ function f({ workspaceData: f, isLoading: p, navigate: m }) {
|
|
|
47
47
|
className: "text-xs",
|
|
48
48
|
onClick: () => m("/workspaces/activity"),
|
|
49
49
|
children: [
|
|
50
|
-
|
|
50
|
+
t(h, "dashboard.recentActivity.viewAll", "View all"),
|
|
51
51
|
" ",
|
|
52
52
|
/* @__PURE__ */ i(r, { className: "ml-1 size-3" })
|
|
53
53
|
]
|
|
54
54
|
}),
|
|
55
55
|
children: g.length === 0 ? /* @__PURE__ */ i(s, {
|
|
56
56
|
illustration: "empty-data",
|
|
57
|
-
title:
|
|
58
|
-
description:
|
|
57
|
+
title: t(h, "dashboard.recentActivity.emptyTitle", "No recent activity"),
|
|
58
|
+
description: t(h, "dashboard.recentActivity.emptyDescription", "Activity will appear here as you use the platform"),
|
|
59
59
|
className: "py-6"
|
|
60
60
|
}) : /* @__PURE__ */ i("div", {
|
|
61
61
|
className: "space-y-1",
|
|
@@ -81,5 +81,4 @@ function f({ workspaceData: f, isLoading: p, navigate: m }) {
|
|
|
81
81
|
})
|
|
82
82
|
});
|
|
83
83
|
}
|
|
84
|
-
//#endregion
|
|
85
84
|
export { f as RecentActivityWidget };
|