@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,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, CheckCircle2 as r, GitBranch as i, Pause as a, Play as o, XCircle as s } from "lucide-react";
|
|
4
4
|
import { jsx as c, jsxs as l } from "react/jsx-runtime";
|
|
5
5
|
import { Badge as u, Button as d, IllustratedEmptyState as f } from "@burdenoff/fe-libs/ui";
|
|
6
6
|
import { useI18n as p } from "@burdenoff/fe-libs/shared/providers/shell/I18nProvider";
|
|
7
|
-
|
|
7
|
+
// src/pages/dashboard/widgets/WorkflowStatsWidget.tsx
|
|
8
8
|
var m = {
|
|
9
9
|
RUNNING: {
|
|
10
10
|
icon: o,
|
|
@@ -25,8 +25,8 @@ var m = {
|
|
|
25
25
|
};
|
|
26
26
|
function h({ workspaceData: r, isLoading: a, navigate: o }) {
|
|
27
27
|
let { t: s } = p(), h = r?.workflowStats;
|
|
28
|
-
return /* @__PURE__ */ c(
|
|
29
|
-
title:
|
|
28
|
+
return /* @__PURE__ */ c(e, {
|
|
29
|
+
title: t(s, "dashboard.workflowStats.title", "Workflows"),
|
|
30
30
|
icon: /* @__PURE__ */ c(i, { className: "size-4" }),
|
|
31
31
|
size: "medium",
|
|
32
32
|
isLoading: a,
|
|
@@ -37,7 +37,7 @@ function h({ workspaceData: r, isLoading: a, navigate: o }) {
|
|
|
37
37
|
className: "text-xs",
|
|
38
38
|
onClick: () => o("/workflows"),
|
|
39
39
|
children: [
|
|
40
|
-
|
|
40
|
+
t(s, "dashboard.workflowStats.viewAll", "View all"),
|
|
41
41
|
" ",
|
|
42
42
|
/* @__PURE__ */ c(n, { className: "ml-1 size-3" })
|
|
43
43
|
]
|
|
@@ -53,7 +53,7 @@ function h({ workspaceData: r, isLoading: a, navigate: o }) {
|
|
|
53
53
|
children: h.activeWorkflowsCount
|
|
54
54
|
}), /* @__PURE__ */ c("p", {
|
|
55
55
|
className: "text-xs text-text-secondary",
|
|
56
|
-
children:
|
|
56
|
+
children: t(s, "dashboard.workflowStats.statActive", "Active")
|
|
57
57
|
})]
|
|
58
58
|
}), /* @__PURE__ */ l("div", {
|
|
59
59
|
className: "rounded-lg bg-bg-canvas p-3 border border-border-default text-center",
|
|
@@ -62,14 +62,14 @@ function h({ workspaceData: r, isLoading: a, navigate: o }) {
|
|
|
62
62
|
children: h.archivedWorkflowsCount
|
|
63
63
|
}), /* @__PURE__ */ c("p", {
|
|
64
64
|
className: "text-xs text-text-secondary",
|
|
65
|
-
children:
|
|
65
|
+
children: t(s, "dashboard.workflowStats.statArchived", "Archived")
|
|
66
66
|
})]
|
|
67
67
|
})]
|
|
68
68
|
}), h.recentRuns.length > 0 && /* @__PURE__ */ l("div", {
|
|
69
69
|
className: "space-y-1.5",
|
|
70
70
|
children: [/* @__PURE__ */ c("p", {
|
|
71
71
|
className: "text-xs font-medium text-text-secondary uppercase tracking-wider",
|
|
72
|
-
children:
|
|
72
|
+
children: t(s, "dashboard.workflowStats.recentRunsHeading", "Recent Runs")
|
|
73
73
|
}), h.recentRuns.slice(0, 3).map((e) => {
|
|
74
74
|
let t = m[e.status] || m.RUNNING, n = t.icon;
|
|
75
75
|
return /* @__PURE__ */ l("div", {
|
|
@@ -90,11 +90,10 @@ function h({ workspaceData: r, isLoading: a, navigate: o }) {
|
|
|
90
90
|
})]
|
|
91
91
|
}) : /* @__PURE__ */ c(f, {
|
|
92
92
|
illustration: "empty-data",
|
|
93
|
-
title:
|
|
94
|
-
description:
|
|
93
|
+
title: t(s, "dashboard.workflowStats.emptyTitle", "No workflow data available"),
|
|
94
|
+
description: t(s, "dashboard.workflowStats.emptyDescription", "Once you run automations, their status and counts will appear here."),
|
|
95
95
|
className: "py-4"
|
|
96
96
|
})
|
|
97
97
|
});
|
|
98
98
|
}
|
|
99
|
-
//#endregion
|
|
100
99
|
export { h as WorkflowStatsWidget };
|
|
@@ -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 { ArrowRight as n, GitBranch as r, Plus as i } from "lucide-react";
|
|
4
4
|
import { jsx as a, jsxs as o } from "react/jsx-runtime";
|
|
5
5
|
import { Button as s, IllustratedEmptyState as c } from "@burdenoff/fe-libs/ui";
|
|
6
6
|
import { useI18n as l } from "@burdenoff/fe-libs/shared/providers/shell/I18nProvider";
|
|
7
|
-
|
|
8
|
-
function u(
|
|
7
|
+
// src/pages/dashboard/widgets/WorkflowsOverviewWidget.tsx
|
|
8
|
+
function u(e, n) {
|
|
9
9
|
let r = Date.now() - new Date(n).getTime(), i = Math.floor(r / 6e4);
|
|
10
|
-
if (i < 1) return e
|
|
11
|
-
if (i < 60) return e
|
|
10
|
+
if (i < 1) return t(e, "dashboard.workflowsOverview.justNow", "just now");
|
|
11
|
+
if (i < 60) return t(e, "dashboard.workflowsOverview.minutesAgo", "{count}m ago", { count: i });
|
|
12
12
|
let a = Math.floor(i / 60);
|
|
13
|
-
if (a < 24) return e
|
|
13
|
+
if (a < 24) return t(e, "dashboard.workflowsOverview.hoursAgo", "{count}h ago", { count: a });
|
|
14
14
|
let o = Math.floor(a / 24);
|
|
15
|
-
return o < 7 ? e
|
|
15
|
+
return o < 7 ? t(e, "dashboard.workflowsOverview.daysAgo", "{count}d ago", { count: o }) : new Date(n).toLocaleDateString(void 0, {
|
|
16
16
|
month: "short",
|
|
17
17
|
day: "numeric"
|
|
18
18
|
});
|
|
19
19
|
}
|
|
20
20
|
function d({ workspaceData: d, isLoading: f, navigate: p }) {
|
|
21
21
|
let { t: m } = l(), h = d?.workflowStats, g = h?.recentWorkflows ?? [];
|
|
22
|
-
return /* @__PURE__ */ a(
|
|
23
|
-
title:
|
|
22
|
+
return /* @__PURE__ */ a(e, {
|
|
23
|
+
title: t(m, "dashboard.workflowsOverview.title", "Workflows"),
|
|
24
24
|
icon: /* @__PURE__ */ a(r, { className: "size-4" }),
|
|
25
25
|
size: "medium",
|
|
26
26
|
isLoading: f,
|
|
@@ -31,7 +31,7 @@ function d({ workspaceData: d, isLoading: f, navigate: p }) {
|
|
|
31
31
|
className: "text-xs",
|
|
32
32
|
onClick: () => p("/workflows/list"),
|
|
33
33
|
children: [
|
|
34
|
-
|
|
34
|
+
t(m, "dashboard.workflowsOverview.viewAll", "View all"),
|
|
35
35
|
" ",
|
|
36
36
|
/* @__PURE__ */ a(n, { className: "ml-1 size-3" })
|
|
37
37
|
]
|
|
@@ -47,7 +47,7 @@ function d({ workspaceData: d, isLoading: f, navigate: p }) {
|
|
|
47
47
|
children: h.activeWorkflowsCount
|
|
48
48
|
}), /* @__PURE__ */ a("p", {
|
|
49
49
|
className: "text-xs text-text-secondary",
|
|
50
|
-
children:
|
|
50
|
+
children: t(m, "dashboard.workflowsOverview.statActive", "Active")
|
|
51
51
|
})]
|
|
52
52
|
}), /* @__PURE__ */ o("div", {
|
|
53
53
|
className: "rounded-lg bg-bg-canvas p-3 border border-border-default text-center",
|
|
@@ -56,14 +56,14 @@ function d({ workspaceData: d, isLoading: f, navigate: p }) {
|
|
|
56
56
|
children: h.archivedWorkflowsCount
|
|
57
57
|
}), /* @__PURE__ */ a("p", {
|
|
58
58
|
className: "text-xs text-text-secondary",
|
|
59
|
-
children:
|
|
59
|
+
children: t(m, "dashboard.workflowsOverview.statArchived", "Archived")
|
|
60
60
|
})]
|
|
61
61
|
})]
|
|
62
62
|
}), g.length > 0 && /* @__PURE__ */ o("div", {
|
|
63
63
|
className: "space-y-1.5",
|
|
64
64
|
children: [/* @__PURE__ */ a("p", {
|
|
65
65
|
className: "text-xs font-medium text-text-secondary uppercase tracking-wider",
|
|
66
|
-
children:
|
|
66
|
+
children: t(m, "dashboard.workflowsOverview.recentlyUpdatedHeading", "Recently Updated")
|
|
67
67
|
}), g.slice(0, 4).map((e) => /* @__PURE__ */ o("button", {
|
|
68
68
|
type: "button",
|
|
69
69
|
onClick: () => p(`/workflows/workflow/${e.workflowKey}/${e.version}`),
|
|
@@ -79,8 +79,8 @@ function d({ workspaceData: d, isLoading: f, navigate: p }) {
|
|
|
79
79
|
})]
|
|
80
80
|
}) : /* @__PURE__ */ a(c, {
|
|
81
81
|
illustration: "empty-data",
|
|
82
|
-
title:
|
|
83
|
-
description:
|
|
82
|
+
title: t(m, "dashboard.workflowsOverview.emptyTitle", "No workflows yet"),
|
|
83
|
+
description: t(m, "dashboard.workflowsOverview.emptyDescription", "Build your first workflow to automate a process."),
|
|
84
84
|
className: "py-4",
|
|
85
85
|
action: /* @__PURE__ */ o(s, {
|
|
86
86
|
variant: "outline",
|
|
@@ -89,11 +89,10 @@ function d({ workspaceData: d, isLoading: f, navigate: p }) {
|
|
|
89
89
|
children: [
|
|
90
90
|
/* @__PURE__ */ a(i, { className: "mr-1.5 size-3.5" }),
|
|
91
91
|
" ",
|
|
92
|
-
|
|
92
|
+
t(m, "dashboard.workflowsOverview.emptyAction", "New Workflow")
|
|
93
93
|
]
|
|
94
94
|
})
|
|
95
95
|
})
|
|
96
96
|
});
|
|
97
97
|
}
|
|
98
|
-
//#endregion
|
|
99
98
|
export { d as WorkflowsOverviewWidget };
|
|
@@ -1,27 +1,27 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { WidgetWrapper as e } from "../WidgetWrapper.js";
|
|
2
2
|
import { tWithFallback as t } from "../../../utils/i18n.js";
|
|
3
|
-
import {
|
|
3
|
+
import { commitWorkspaceSelection as n } from "../../../hooks/useOpenWorkspace.js";
|
|
4
4
|
import { ArrowRight as r, Building2 as i, Circle as a } from "lucide-react";
|
|
5
5
|
import { useActiveContext as o } from "@burdenoff/fe-libs/shared/providers/shell";
|
|
6
6
|
import { jsx as s, jsxs as c } from "react/jsx-runtime";
|
|
7
7
|
import { Badge as l, Button as u, IllustratedEmptyState as d } from "@burdenoff/fe-libs/ui";
|
|
8
8
|
import { useI18n as f } from "@burdenoff/fe-libs/shared/providers/shell/I18nProvider";
|
|
9
|
-
|
|
9
|
+
// src/pages/dashboard/widgets/WorkspacesWidget.tsx
|
|
10
10
|
var p = {
|
|
11
11
|
ACTIVE: "bg-status-success-bg",
|
|
12
12
|
SUSPENDED: "bg-status-warning-bg",
|
|
13
13
|
ARCHIVED: "bg-text-tertiary"
|
|
14
14
|
};
|
|
15
15
|
function m({ workspaceData: m, isLoading: h, navigate: g }) {
|
|
16
|
-
let { t: _ } = f(), v = m?.workspaces.items ?? [], y = m?.workspaces.total ?? 0, { setOrganization: b, setWorkspace: x, setProject: S, setTenant: C } = o(), w = (
|
|
17
|
-
|
|
16
|
+
let { t: _ } = f(), v = m?.workspaces.items ?? [], y = m?.workspaces.total ?? 0, { setOrganization: b, setWorkspace: x, setProject: S, setTenant: C } = o(), w = (e) => {
|
|
17
|
+
n({
|
|
18
18
|
setOrganization: b,
|
|
19
19
|
setWorkspace: x,
|
|
20
20
|
setProject: S,
|
|
21
21
|
setTenant: C
|
|
22
|
-
},
|
|
22
|
+
}, e), g(`/workspaces/${e.id}`);
|
|
23
23
|
};
|
|
24
|
-
return /* @__PURE__ */ s(
|
|
24
|
+
return /* @__PURE__ */ s(e, {
|
|
25
25
|
title: t(_, "dashboard.workspaces.title", "Workspaces"),
|
|
26
26
|
icon: /* @__PURE__ */ s(i, { className: "size-4" }),
|
|
27
27
|
size: "medium",
|
|
@@ -72,5 +72,4 @@ function m({ workspaceData: m, isLoading: h, navigate: g }) {
|
|
|
72
72
|
})
|
|
73
73
|
});
|
|
74
74
|
}
|
|
75
|
-
//#endregion
|
|
76
75
|
export { m as WorkspacesWidget };
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { tWithFallback as e } from "../../../utils/i18n.js";
|
|
2
2
|
import { BookOpen as t, GitBranch as n, LayoutTemplate as r, Newspaper as i, Puzzle as a, Rocket as o, ScrollText as s, Shield as c, Sparkles as l, Users as u, Workflow as d } from "lucide-react";
|
|
3
3
|
import { buildProductDocsUrl as f } from "@burdenoff/fe-libs/shared/config";
|
|
4
|
-
|
|
4
|
+
// src/pages/dashboard/widgets/tipsCatalog.ts
|
|
5
5
|
function p(e, t, n) {
|
|
6
6
|
return f(e, "", { environment: n.docsEnvironment }) ?? t;
|
|
7
7
|
}
|
|
@@ -123,5 +123,4 @@ function g(i, a) {
|
|
|
123
123
|
function _(e, t, n = {}) {
|
|
124
124
|
return t === "vibecontrols" ? m(e, n) : t === "fluidgrids" ? g(e, n) : h(e);
|
|
125
125
|
}
|
|
126
|
-
//#endregion
|
|
127
126
|
export { _ as pickTips };
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { createContext as e, use as t } from "react";
|
|
2
2
|
import { PermissionProvider as n } from "@burdenoff/fe-libs/shared/providers/shell";
|
|
3
3
|
import { jsx as r } from "react/jsx-runtime";
|
|
4
|
-
|
|
4
|
+
// src/providers/WorkspacesProvider.tsx
|
|
5
5
|
var i = e(null), a = () => {
|
|
6
6
|
let e = t(i);
|
|
7
7
|
if (!e) throw Error("useWorkspacesContext must be used within WorkspacesProvider");
|
|
@@ -18,5 +18,4 @@ var i = e(null), a = () => {
|
|
|
18
18
|
})
|
|
19
19
|
});
|
|
20
20
|
};
|
|
21
|
-
//#endregion
|
|
22
21
|
export { o as WorkspacesProvider, a as useWorkspacesContext };
|
|
@@ -70,7 +70,7 @@ export declare const useWorkspacesStore: import('zustand').UseBoundStore<Omit<Om
|
|
|
70
70
|
persist: {
|
|
71
71
|
setOptions: (options: Partial<import('zustand/middleware').PersistOptions<WorkspacesState, unknown, unknown>>) => void;
|
|
72
72
|
clearStorage: () => void;
|
|
73
|
-
rehydrate: () => Promise<void
|
|
73
|
+
rehydrate: () => Promise<void>;
|
|
74
74
|
hasHydrated: () => boolean;
|
|
75
75
|
onHydrate: (fn: (state: WorkspacesState) => void) => () => void;
|
|
76
76
|
onFinishHydration: (fn: (state: WorkspacesState) => void) => () => void;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { create as e } from "zustand";
|
|
2
2
|
import { devtools as t, persist as n } from "zustand/middleware";
|
|
3
3
|
import { createProfileScopedStorage as r } from "@burdenoff/fe-libs/shared/utils";
|
|
4
|
-
|
|
4
|
+
// src/store/workspacesStore.ts
|
|
5
5
|
var i = {
|
|
6
6
|
viewMode: "grid",
|
|
7
7
|
sortBy: "name",
|
|
@@ -86,5 +86,4 @@ var i = {
|
|
|
86
86
|
name: "Workspaces Store",
|
|
87
87
|
enabled: process.env.NODE_ENV === "development"
|
|
88
88
|
}));
|
|
89
|
-
//#endregion
|
|
90
89
|
export { a as useWorkspacesStore };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
package/dist/translations/en.js
CHANGED
package/dist/utils/formatters.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
// src/utils/formatters.ts
|
|
2
2
|
var e = {
|
|
3
3
|
year: "numeric",
|
|
4
4
|
month: "short",
|
|
@@ -60,5 +60,4 @@ function d(e) {
|
|
|
60
60
|
], r = Math.floor(Math.log(e) / Math.log(t));
|
|
61
61
|
return `${parseFloat((e / t ** r).toFixed(2))} ${n[r]}`;
|
|
62
62
|
}
|
|
63
|
-
//#endregion
|
|
64
63
|
export { r as formatDate, a as formatDateTime, d as formatFileSize, l as formatProjectStatus, i as formatRelativeTime, c as formatWorkspaceStatus, u as getInitials, s as toTitleCase, o as truncate };
|
package/dist/utils/i18n.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
// src/utils/i18n.ts
|
|
2
2
|
function e(e, t, n, r) {
|
|
3
3
|
let i = e(t, r);
|
|
4
4
|
return i === t ? r ? n.replace(/\{(\w+)\}/g, (e, t) => {
|
|
@@ -6,5 +6,4 @@ function e(e, t, n, r) {
|
|
|
6
6
|
return n === void 0 ? e : String(n);
|
|
7
7
|
}) : n : i;
|
|
8
8
|
}
|
|
9
|
-
//#endregion
|
|
10
9
|
export { e as tWithFallback };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
// src/utils/invitationDisplay.ts
|
|
2
2
|
function e(e) {
|
|
3
3
|
if (e.workspaceName) return e.workspaceName;
|
|
4
4
|
let t = e.context?.metadata?.workspaceName;
|
|
@@ -19,5 +19,4 @@ function n(e) {
|
|
|
19
19
|
], i = new Set(r).size;
|
|
20
20
|
return i === 0 ? [] : [`${i} project${i === 1 ? "" : "s"} selected`];
|
|
21
21
|
}
|
|
22
|
-
//#endregion
|
|
23
22
|
export { n as getProjectDisplayNames, t as getRoleDisplayNames, e as getWorkspaceDisplayName };
|
|
@@ -1,2 +1 @@
|
|
|
1
|
-
|
|
2
|
-
export { e as nativeConfirm, t as nativeImpact, n as nativeNotify };
|
|
1
|
+
export { nativeConfirm, nativeImpact, nativeNotify } from "@burdenoff/fe-libs/shared/native";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { getActiveUser as e } from "@burdenoff/fe-libs/shared/providers/shell";
|
|
2
2
|
import { clearGraphqlFetchResponseCache as t, getStoredAuthToken as n, getStoredWorkspaceId as r, graphqlFetchPinned as i, prepareWorkspaceRequest as a, resolveGatewayUrl as o } from "@burdenoff/fe-libs/shared/graphql";
|
|
3
3
|
import { getStoredTenantId as s } from "@burdenoff/fe-libs/shared/graphql/fetch";
|
|
4
|
-
|
|
4
|
+
// src/utils/pinnedRequest.ts
|
|
5
5
|
var c = "Your session has ended. Sign in again, then retry this action.", l = "The active account changed before this action was sent. Review it and try again.";
|
|
6
6
|
function u(t) {
|
|
7
7
|
let r = e()?.id || null, i = t.currentUser?.id || r;
|
|
@@ -49,5 +49,4 @@ async function p(e, n) {
|
|
|
49
49
|
});
|
|
50
50
|
return f(l) && !h.errors?.length && t(), h;
|
|
51
51
|
}
|
|
52
|
-
|
|
53
|
-
export { u as captureRequestActor, p as pinnedFetch };
|
|
52
|
+
export { l as ACTOR_CHANGED_MESSAGE, c as SIGN_IN_REQUIRED_MESSAGE, u as captureRequestActor, p as pinnedFetch };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
// src/utils/projectTags.ts
|
|
2
2
|
function e(e) {
|
|
3
3
|
return typeof e == "object" && !!e && !Array.isArray(e);
|
|
4
4
|
}
|
|
@@ -69,5 +69,4 @@ function a(e) {
|
|
|
69
69
|
metadata: null
|
|
70
70
|
};
|
|
71
71
|
}
|
|
72
|
-
|
|
73
|
-
export { i as getProjectDisplayTags, a as toProjectTag };
|
|
72
|
+
export { i as getProjectDisplayTags, r as normalizeProjectTagAssignments, n as normalizeProjectTags, a as toProjectTag };
|
package/dist/utils/slug.js
CHANGED
|
@@ -1,26 +1,23 @@
|
|
|
1
|
-
|
|
2
|
-
var e = 200;
|
|
3
|
-
function t(e) {
|
|
1
|
+
function e(e) {
|
|
4
2
|
if (typeof e != "object" || !e) return !1;
|
|
5
3
|
let t = e;
|
|
6
4
|
if (typeof t.message != "string") return !1;
|
|
7
5
|
let n = Array.isArray(t.graphQLErrors), r = t.networkError instanceof Error;
|
|
8
6
|
return n || r;
|
|
9
7
|
}
|
|
10
|
-
function
|
|
11
|
-
if (
|
|
12
|
-
if (t
|
|
13
|
-
if (
|
|
14
|
-
let
|
|
15
|
-
if (
|
|
8
|
+
function t(t) {
|
|
9
|
+
if (t == null) return "An unknown error occurred";
|
|
10
|
+
if (e(t)) {
|
|
11
|
+
if (t.graphQLErrors && t.graphQLErrors.length > 0) {
|
|
12
|
+
let e = t.graphQLErrors.flatMap((e) => typeof e?.message == "string" && e.message.length > 0 ? [e.message] : []);
|
|
13
|
+
if (e.length > 0) return e.join(", ");
|
|
16
14
|
}
|
|
17
|
-
return
|
|
15
|
+
return t.networkError ? "Network error. Please check your connection." : t.message;
|
|
18
16
|
}
|
|
19
|
-
return
|
|
17
|
+
return t instanceof Error ? t.message : typeof t == "string" ? t : String(t);
|
|
20
18
|
}
|
|
21
|
-
function
|
|
22
|
-
let
|
|
23
|
-
return
|
|
19
|
+
function n(e) {
|
|
20
|
+
let n = t(e);
|
|
21
|
+
return n.length <= 200 ? n : `${n.slice(0, 199)}…`;
|
|
24
22
|
}
|
|
25
|
-
|
|
26
|
-
export { r as safeTelemetryError };
|
|
23
|
+
export { n as safeTelemetryError };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
// src/utils/tokenHelpers.ts
|
|
2
2
|
function e(e) {
|
|
3
3
|
let t = {
|
|
4
4
|
ACTIVE: "bg-workspace-active-bgSubtle text-workspace-active-text border-workspace-active-border",
|
|
@@ -74,5 +74,4 @@ function c(e) {
|
|
|
74
74
|
guest: "Guest"
|
|
75
75
|
}[e] || e;
|
|
76
76
|
}
|
|
77
|
-
//#endregion
|
|
78
77
|
export { n as getMemberRoleClasses, c as getMemberRoleLabel, t as getProjectStatusClasses, i as getProjectStatusIconClass, s as getProjectStatusLabel, a as getWorkspaceStatusBgClass, e as getWorkspaceStatusClasses, r as getWorkspaceStatusIconClass, o as getWorkspaceStatusLabel };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
// src/utils/workspaceBulkInviteCsv.ts
|
|
2
2
|
var e = /^[^\s@]+@[^\s@]+\.[^\s@]+$/;
|
|
3
3
|
function t(e) {
|
|
4
4
|
let t = [], n = "", r = !1;
|
|
@@ -27,14 +27,9 @@ function n(n) {
|
|
|
27
27
|
};
|
|
28
28
|
});
|
|
29
29
|
}
|
|
30
|
-
var r = "workspace-invite-template.csv", i =
|
|
31
|
-
"email",
|
|
32
|
-
"alice@example.com",
|
|
33
|
-
"bob@example.com"
|
|
34
|
-
].join("\n");
|
|
30
|
+
var r = "workspace-invite-template.csv", i = "email\nalice@example.com\nbob@example.com";
|
|
35
31
|
function a() {
|
|
36
32
|
let e = new Blob([i], { type: "text/csv;charset=utf-8" }), t = URL.createObjectURL(e), n = document.createElement("a");
|
|
37
33
|
n.href = t, n.download = r, document.body.appendChild(n), n.click(), document.body.removeChild(n), URL.revokeObjectURL(t);
|
|
38
34
|
}
|
|
39
|
-
|
|
40
|
-
export { a as downloadWorkspaceBulkInviteTemplate, n as parseWorkspaceBulkInviteCsv };
|
|
35
|
+
export { i as WORKSPACE_BULK_INVITE_TEMPLATE_CONTENT, r as WORKSPACE_BULK_INVITE_TEMPLATE_FILENAME, a as downloadWorkspaceBulkInviteTemplate, n as parseWorkspaceBulkInviteCsv };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@burdenoff/microfe-workspaces",
|
|
3
|
-
"version": "2026.
|
|
3
|
+
"version": "2026.1110.1",
|
|
4
4
|
"description": "Workspaces microfrontend for Burdenoff products",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"files": [
|
|
@@ -24,73 +24,73 @@
|
|
|
24
24
|
"types": "./dist/index.d.ts",
|
|
25
25
|
"scripts": {
|
|
26
26
|
"dev": "vite",
|
|
27
|
-
"build": "
|
|
28
|
-
"
|
|
29
|
-
"
|
|
30
|
-
"format": "prettier --write \"src/**/*.{ts,tsx}\"",
|
|
31
|
-
"format:check": "prettier --check \"src/**/*.{ts,tsx}\"",
|
|
32
|
-
"type:check": "bash scripts/build-limits.sh bash scripts/typecheck.sh",
|
|
33
|
-
"test": "bash scripts/build-limits.sh vitest run",
|
|
34
|
-
"test:watch": "vitest",
|
|
35
|
-
"test:coverage": "bash scripts/build-limits.sh vitest run --coverage",
|
|
36
|
-
"sanity": "bash scripts/build-limits.sh --gate bash -c 'bun run codegen && bun run check:codegen && bun run test:codegen && bun run lint:sanity && bun run format && bun run type:check && bun run build && bash scripts/verify-package-contents.sh && bun run test'",
|
|
37
|
-
"schema:pull": "node scripts/codegen.ts --project schema-wspace && node scripts/codegen.ts --project schema-global",
|
|
27
|
+
"build": "boff gate -- vite build && bun run check:package-types && bun scripts/verify-dts.ts",
|
|
28
|
+
"build:fast": "MFE_DTS=0 boff gate -- vite build",
|
|
29
|
+
"verify:dts": "bun scripts/verify-dts.ts",
|
|
38
30
|
"codegen": "node scripts/codegen.ts --project wspace && node scripts/codegen.ts --project global",
|
|
39
31
|
"codegen:all": "bun run schema:pull && bun run codegen",
|
|
40
|
-
"
|
|
41
|
-
"
|
|
42
|
-
"
|
|
43
|
-
"
|
|
44
|
-
"
|
|
45
|
-
"
|
|
32
|
+
"schema:pull": "node scripts/codegen.ts --project schema-wspace && node scripts/codegen.ts --project schema-global",
|
|
33
|
+
"lint": "eslint .",
|
|
34
|
+
"format": "bun fmt src",
|
|
35
|
+
"format:check": "bun fmt --check src",
|
|
36
|
+
"type:check": "boff gate -- bun check --no-pretty -b",
|
|
37
|
+
"test": "bun test",
|
|
38
|
+
"test:watch": "bun test --watch",
|
|
39
|
+
"test:coverage": "bun test --coverage",
|
|
40
|
+
"sanity": "boff sanity",
|
|
41
|
+
"sanity:force": "boff sanity --force",
|
|
42
|
+
"audit": "bun audit --audit-level=high",
|
|
46
43
|
"check:codegen": "tsc --noEmit -p tsconfig.node.json",
|
|
44
|
+
"check:package-types": "node scripts/check-package-types.mjs",
|
|
45
|
+
"check:verify-package-contents": "bash scripts/verify-package-contents.sh",
|
|
46
|
+
"prepare": "lefthook install || true",
|
|
47
|
+
"switch:check": "boff deps-mode check",
|
|
48
|
+
"switch:local": "boff deps-mode local",
|
|
49
|
+
"switch:remote": "boff deps-mode remote",
|
|
50
|
+
"switch:status": "boff deps-mode status",
|
|
47
51
|
"test:codegen": "node --test scripts/codegen.test.ts"
|
|
48
52
|
},
|
|
49
53
|
"dependencies": {
|
|
50
|
-
"@apollo/client": "^4.
|
|
54
|
+
"@apollo/client": "^4.3.7",
|
|
51
55
|
"@burdenoff/fe-libs": "2026.1102.4",
|
|
52
56
|
"@radix-ui/react-icons": "^1.3.2",
|
|
53
|
-
"@tanstack/react-query": "^5.
|
|
54
|
-
"axios": "^1.
|
|
55
|
-
"graphql": "^16.
|
|
56
|
-
"graphql-ws": "^5.16.
|
|
57
|
-
"immer": "^11.
|
|
57
|
+
"@tanstack/react-query": "^5.107.1",
|
|
58
|
+
"axios": "^1.21.0",
|
|
59
|
+
"graphql": "^16.15.0",
|
|
60
|
+
"graphql-ws": "^5.16.2",
|
|
61
|
+
"immer": "^11.2.9",
|
|
58
62
|
"lucide-react": "^0.468.0",
|
|
59
|
-
"nanoid": "^5.1.
|
|
60
|
-
"react": "^19.
|
|
61
|
-
"react-dom": "^19.
|
|
62
|
-
"react-hook-form": "^7.
|
|
63
|
-
"react-router": "^8.
|
|
64
|
-
"sonner": "^2.0.
|
|
65
|
-
"zustand": "^5.0
|
|
63
|
+
"nanoid": "^5.1.16",
|
|
64
|
+
"react": "^19.3.1",
|
|
65
|
+
"react-dom": "^19.3.1",
|
|
66
|
+
"react-hook-form": "^7.91.0",
|
|
67
|
+
"react-router": "^8.5.1",
|
|
68
|
+
"sonner": "^2.0.8",
|
|
69
|
+
"zustand": "^5.1.0"
|
|
66
70
|
},
|
|
67
71
|
"devDependencies": {
|
|
68
|
-
"@
|
|
72
|
+
"@burdenoff/toolchain": "2026.1107.14",
|
|
73
|
+
"@graphql-codegen/core": "6.2.2",
|
|
69
74
|
"@graphql-codegen/schema-ast": "6.1.1",
|
|
75
|
+
"@graphql-codegen/typed-document-node": "7.1.1",
|
|
70
76
|
"@graphql-codegen/typescript": "6.1.2",
|
|
71
77
|
"@graphql-codegen/typescript-operations": "6.1.10",
|
|
72
|
-
"@types/node": "^24.5.2",
|
|
73
|
-
"@types/react": "^19.0.2",
|
|
74
|
-
"@types/react-dom": "^19.0.2",
|
|
75
|
-
"@vitejs/plugin-react": "5.2.0",
|
|
76
|
-
"autoprefixer": "^10.4.20",
|
|
77
|
-
"eslint": "^9.18.0",
|
|
78
|
-
"eslint-plugin-react": "^7.37.5",
|
|
79
|
-
"eslint-plugin-react-hooks": "^7.0.1",
|
|
80
|
-
"lefthook": "^2.1.1",
|
|
81
|
-
"postcss": "8.5.23",
|
|
82
|
-
"prettier": "^3.4.2",
|
|
83
|
-
"tailwindcss": "^4.0.0",
|
|
84
|
-
"typescript": "^5.9.0",
|
|
85
|
-
"typescript-eslint": "^8.46.0",
|
|
86
|
-
"vite": "8.0.16",
|
|
87
|
-
"vite-plugin-dts": "5.1.1",
|
|
88
|
-
"vitest": "4.1.12",
|
|
89
|
-
"@vitest/coverage-v8": "4.1.12",
|
|
90
|
-
"@graphql-codegen/typed-document-node": "7.1.1",
|
|
91
|
-
"@graphql-codegen/core": "6.2.2",
|
|
92
78
|
"@graphql-tools/load": "8.1.21",
|
|
93
|
-
"@graphql-tools/url-loader": "9.1.14"
|
|
79
|
+
"@graphql-tools/url-loader": "9.1.14",
|
|
80
|
+
"@happy-dom/global-registrator": "^21.0.4",
|
|
81
|
+
"@types/bun": "^1.4.4",
|
|
82
|
+
"@types/node": "^24.19.2",
|
|
83
|
+
"@types/react": "^19.3.0",
|
|
84
|
+
"@types/react-dom": "^19.3.0",
|
|
85
|
+
"@vitejs/plugin-react": "^6.2.1",
|
|
86
|
+
"autoprefixer": "^10.6.2",
|
|
87
|
+
"eslint": "^9.39.5",
|
|
88
|
+
"lefthook": "^2.2.2",
|
|
89
|
+
"postcss": "8.5.23",
|
|
90
|
+
"tailwindcss": "^4.3.5",
|
|
91
|
+
"typescript": "6.0.3",
|
|
92
|
+
"unplugin-dts": "1.1.2",
|
|
93
|
+
"vite": "8.3.5"
|
|
94
94
|
},
|
|
95
95
|
"peerDependencies": {
|
|
96
96
|
"@apollo/client": "^4.0.11",
|
|
@@ -127,8 +127,25 @@
|
|
|
127
127
|
"js-yaml": "4.3.2",
|
|
128
128
|
"source-map-js": "1.2.2",
|
|
129
129
|
"postcss": "8.5.23",
|
|
130
|
-
"vite": "8.
|
|
130
|
+
"vite": "8.3.5",
|
|
131
131
|
"@graphql-tools/wrap": "11.2.1"
|
|
132
132
|
},
|
|
133
|
-
"schemaDriftAdapter": "codegen-core-v1"
|
|
133
|
+
"schemaDriftAdapter": "codegen-core-v1",
|
|
134
|
+
"packageManager": "bun@1.4.4",
|
|
135
|
+
"engines": {
|
|
136
|
+
"bun": ">=1.4.4"
|
|
137
|
+
},
|
|
138
|
+
"boff": {
|
|
139
|
+
"type": "mfe",
|
|
140
|
+
"sanity": {
|
|
141
|
+
"formatPaths": [
|
|
142
|
+
"src"
|
|
143
|
+
],
|
|
144
|
+
"extra": [
|
|
145
|
+
"check:codegen",
|
|
146
|
+
"test:codegen",
|
|
147
|
+
"check:verify-package-contents"
|
|
148
|
+
]
|
|
149
|
+
}
|
|
150
|
+
}
|
|
134
151
|
}
|