@burdenoff/microfe-workspaces 2026.1110.2 → 2026.1114.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 +31 -25
- 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/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/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 +201 -201
- 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 +298 -298
- 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/package.json +4 -4
|
@@ -6,8 +6,8 @@ import { useMyPendingInvitations as s } from "../hooks/usePendingInvitations.js"
|
|
|
6
6
|
import { useWorkspacesPageView as c } from "../hooks/useWorkspacesPageView.js";
|
|
7
7
|
import { useMemo as l, useState as u } from "react";
|
|
8
8
|
import { AlertTriangle as d, CheckCircle as f, Home as p, Mail as m, RefreshCw as h, XCircle as g } from "lucide-react";
|
|
9
|
-
import {
|
|
10
|
-
import {
|
|
9
|
+
import { Badge as _, Button as v, GlassCard as y, IllustratedEmptyState as b, PageContainer as x, PagePurpose as S, Skeleton as C } from "@burdenoff/fe-libs/ui";
|
|
10
|
+
import { jsx as w, jsxs as T } from "react/jsx-runtime";
|
|
11
11
|
import { useI18n as E } from "@burdenoff/fe-libs/shared/providers/shell/I18nProvider";
|
|
12
12
|
import { useNavigate as D } from "react-router";
|
|
13
13
|
import { ActorIdentity as O, useActorProfiles as k } from "@burdenoff/fe-libs/shared";
|
|
@@ -53,189 +53,189 @@ function j() {
|
|
|
53
53
|
}
|
|
54
54
|
});
|
|
55
55
|
};
|
|
56
|
-
return !P || !N?.email ? /* @__PURE__ */
|
|
56
|
+
return !P || !N?.email ? /* @__PURE__ */ w(x, {
|
|
57
57
|
padded: !1,
|
|
58
|
-
children: /* @__PURE__ */
|
|
58
|
+
children: /* @__PURE__ */ w("div", {
|
|
59
59
|
className: "space-y-4 sm:space-y-6 p-3 sm:p-6",
|
|
60
|
-
children: /* @__PURE__ */
|
|
60
|
+
children: /* @__PURE__ */ T("div", {
|
|
61
61
|
className: "rounded-lg border border-border-seam bg-bg-surface p-6 text-center",
|
|
62
62
|
children: [
|
|
63
|
-
/* @__PURE__ */
|
|
64
|
-
/* @__PURE__ */
|
|
63
|
+
/* @__PURE__ */ w(d, { className: "mx-auto mb-3 size-10 text-text-secondary" }),
|
|
64
|
+
/* @__PURE__ */ w("h1", {
|
|
65
65
|
className: "text-2xl font-bold",
|
|
66
66
|
children: e(j, "pendingInvites.signInTitle", "Sign in to view your pending invites")
|
|
67
67
|
}),
|
|
68
|
-
/* @__PURE__ */
|
|
68
|
+
/* @__PURE__ */ w("p", {
|
|
69
69
|
className: "mt-2 text-text-secondary",
|
|
70
70
|
children: e(j, "pendingInvites.signInDescription", "You need an authenticated account before you can review or respond to workspace invitations.")
|
|
71
71
|
}),
|
|
72
|
-
/* @__PURE__ */
|
|
72
|
+
/* @__PURE__ */ w("div", {
|
|
73
73
|
className: "mt-4 flex justify-center",
|
|
74
|
-
children: /* @__PURE__ */ v
|
|
74
|
+
children: /* @__PURE__ */ T(v, {
|
|
75
75
|
onClick: $,
|
|
76
76
|
variant: "outline",
|
|
77
|
-
children: [/* @__PURE__ */
|
|
77
|
+
children: [/* @__PURE__ */ w(p, { className: "mr-2 size-4" }), e(j, "pendingInvites.backToWorkspaces", "Back to Workspaces")]
|
|
78
78
|
})
|
|
79
79
|
})
|
|
80
80
|
]
|
|
81
81
|
})
|
|
82
82
|
})
|
|
83
|
-
}) : /* @__PURE__ */
|
|
83
|
+
}) : /* @__PURE__ */ w(x, {
|
|
84
84
|
padded: !1,
|
|
85
|
-
children: /* @__PURE__ */
|
|
85
|
+
children: /* @__PURE__ */ T("div", {
|
|
86
86
|
className: "space-y-4 sm:space-y-6 p-3 sm:p-6",
|
|
87
87
|
children: [
|
|
88
|
-
/* @__PURE__ */
|
|
88
|
+
/* @__PURE__ */ T("div", {
|
|
89
89
|
className: "flex flex-col gap-4 sm:flex-row sm:items-center sm:justify-between",
|
|
90
|
-
children: [/* @__PURE__ */
|
|
90
|
+
children: [/* @__PURE__ */ T("div", { children: [/* @__PURE__ */ w("h1", {
|
|
91
91
|
className: "text-2xl sm:text-3xl font-bold",
|
|
92
92
|
children: e(j, "pendingInvites.pageTitle", "Pending Invites")
|
|
93
|
-
}), /* @__PURE__ */
|
|
93
|
+
}), /* @__PURE__ */ w("p", {
|
|
94
94
|
className: "text-sm sm:text-base text-text-secondary",
|
|
95
95
|
children: e(j, "pendingInvites.pageSubtitle", "Review and respond to workspace invitations sent to your account.")
|
|
96
|
-
})] }), /* @__PURE__ */
|
|
96
|
+
})] }), /* @__PURE__ */ T("div", {
|
|
97
97
|
className: "flex items-center gap-2",
|
|
98
|
-
children: [/* @__PURE__ */ _
|
|
98
|
+
children: [/* @__PURE__ */ w(_, {
|
|
99
99
|
variant: "secondary",
|
|
100
100
|
children: G.length
|
|
101
|
-
}), /* @__PURE__ */ v
|
|
101
|
+
}), /* @__PURE__ */ T(v, {
|
|
102
102
|
variant: "outline",
|
|
103
103
|
onClick: $,
|
|
104
|
-
children: [/* @__PURE__ */
|
|
104
|
+
children: [/* @__PURE__ */ w(p, { className: "mr-2 size-4" }), e(j, "pendingInvites.viewWorkspaces", "View Workspaces")]
|
|
105
105
|
})]
|
|
106
106
|
})]
|
|
107
107
|
}),
|
|
108
|
-
/* @__PURE__ */
|
|
109
|
-
B ? /* @__PURE__ */
|
|
108
|
+
/* @__PURE__ */ w(S, { children: e(j, "pendingInvites.purpose", "These are workspace invitations sent to your email but not yet answered. Accepting one adds you to that workspace (with the roles and project access shown); rejecting declines it. Invitations expire, so respond to the ones you want before their expiry date.") }),
|
|
109
|
+
B ? /* @__PURE__ */ T("div", {
|
|
110
110
|
className: "flex items-start gap-2 rounded-lg border border-status-error-border/30 bg-status-error-bg/10 p-4 text-sm text-status-error-text",
|
|
111
|
-
children: [/* @__PURE__ */
|
|
111
|
+
children: [/* @__PURE__ */ w(d, { className: "mt-0.5 size-4 shrink-0" }), /* @__PURE__ */ w("span", { children: B })]
|
|
112
112
|
}) : null,
|
|
113
|
-
W ? /* @__PURE__ */
|
|
113
|
+
W ? /* @__PURE__ */ w("div", {
|
|
114
114
|
className: "rounded-lg border border-status-error-border/30 bg-status-error-bg/10 p-4 text-sm text-status-error-text",
|
|
115
115
|
children: W instanceof Error ? W.message : e(j, "pendingInvites.loadError", "Failed to load pending invitations")
|
|
116
116
|
}) : null,
|
|
117
|
-
U ? /* @__PURE__ */
|
|
117
|
+
U ? /* @__PURE__ */ w("div", {
|
|
118
118
|
className: "space-y-4",
|
|
119
|
-
children: Array.from({ length: 3 }).map((e, t) => /* @__PURE__ */
|
|
119
|
+
children: Array.from({ length: 3 }).map((e, t) => /* @__PURE__ */ T("div", {
|
|
120
120
|
className: "rounded-lg border border-border-seam bg-bg-surface p-5 space-y-3",
|
|
121
121
|
children: [
|
|
122
|
-
/* @__PURE__ */
|
|
123
|
-
/* @__PURE__ */
|
|
124
|
-
/* @__PURE__ */
|
|
125
|
-
/* @__PURE__ */
|
|
122
|
+
/* @__PURE__ */ w(C, { className: "h-5 w-40" }),
|
|
123
|
+
/* @__PURE__ */ w(C, { className: "h-4 w-64" }),
|
|
124
|
+
/* @__PURE__ */ w(C, { className: "h-4 w-52" }),
|
|
125
|
+
/* @__PURE__ */ T("div", {
|
|
126
126
|
className: "flex gap-2 pt-2",
|
|
127
|
-
children: [/* @__PURE__ */
|
|
127
|
+
children: [/* @__PURE__ */ w(C, { className: "h-10 w-36" }), /* @__PURE__ */ w(C, { className: "h-10 w-28" })]
|
|
128
128
|
})
|
|
129
129
|
]
|
|
130
130
|
}, t))
|
|
131
|
-
}) : G.length === 0 ? /* @__PURE__ */
|
|
131
|
+
}) : G.length === 0 ? /* @__PURE__ */ w(b, {
|
|
132
132
|
illustration: "empty-notifications",
|
|
133
133
|
title: e(j, "pendingInvites.emptyTitle", "No pending invites"),
|
|
134
134
|
description: e(j, "pendingInvites.emptyDescription", "When someone invites you to a workspace, it will appear here.")
|
|
135
|
-
}) : /* @__PURE__ */
|
|
135
|
+
}) : /* @__PURE__ */ w("div", {
|
|
136
136
|
className: "space-y-4",
|
|
137
137
|
children: G.map((i, a) => {
|
|
138
|
-
let o = i.invitedById ? q[i.invitedById] : void 0, s = o?.displayName || o?.email || i.invitedById || "—", c = A(i.expiresAt), l = A(i.createdAt), u = r(i), d = n(i), p = t(i),
|
|
139
|
-
return /* @__PURE__ */
|
|
138
|
+
let o = i.invitedById ? q[i.invitedById] : void 0, s = o?.displayName || o?.email || i.invitedById || "—", c = A(i.expiresAt), l = A(i.createdAt), u = r(i), d = n(i), p = t(i), b = R === i.id && Q;
|
|
139
|
+
return /* @__PURE__ */ w(y, {
|
|
140
140
|
treatment: "insight",
|
|
141
141
|
glow: a === 0,
|
|
142
142
|
className: "border-border-seam p-5",
|
|
143
|
-
children: /* @__PURE__ */
|
|
143
|
+
children: /* @__PURE__ */ T("div", {
|
|
144
144
|
className: "flex flex-col gap-4 lg:flex-row lg:items-start lg:justify-between",
|
|
145
|
-
children: [/* @__PURE__ */
|
|
145
|
+
children: [/* @__PURE__ */ T("div", {
|
|
146
146
|
className: "space-y-3 min-w-0",
|
|
147
147
|
children: [
|
|
148
|
-
/* @__PURE__ */
|
|
148
|
+
/* @__PURE__ */ T("div", {
|
|
149
149
|
className: "flex flex-wrap items-center gap-2",
|
|
150
|
-
children: [/* @__PURE__ */
|
|
150
|
+
children: [/* @__PURE__ */ T("div", {
|
|
151
151
|
className: "flex items-center gap-2 font-semibold text-lg",
|
|
152
|
-
children: [/* @__PURE__ */
|
|
153
|
-
}), /* @__PURE__ */ _
|
|
152
|
+
children: [/* @__PURE__ */ w(m, { className: "size-4 text-primary" }), /* @__PURE__ */ w("span", { children: i.email })]
|
|
153
|
+
}), /* @__PURE__ */ w(_, {
|
|
154
154
|
variant: "secondary",
|
|
155
155
|
children: i.status
|
|
156
156
|
})]
|
|
157
157
|
}),
|
|
158
|
-
/* @__PURE__ */
|
|
158
|
+
/* @__PURE__ */ T("dl", {
|
|
159
159
|
className: "grid gap-2 text-sm text-text-secondary sm:grid-cols-2",
|
|
160
160
|
children: [
|
|
161
|
-
/* @__PURE__ */
|
|
162
|
-
/* @__PURE__ */
|
|
161
|
+
/* @__PURE__ */ T("div", { children: [
|
|
162
|
+
/* @__PURE__ */ w("dt", {
|
|
163
163
|
className: "font-medium text-text-primary",
|
|
164
164
|
children: e(j, "pendingInvites.workspaceLabel", "Workspace")
|
|
165
165
|
}),
|
|
166
|
-
/* @__PURE__ */
|
|
166
|
+
/* @__PURE__ */ w("dd", {
|
|
167
167
|
className: "break-words font-medium text-text-primary",
|
|
168
168
|
children: u
|
|
169
169
|
}),
|
|
170
|
-
i.workspaceId ? /* @__PURE__ */
|
|
170
|
+
i.workspaceId ? /* @__PURE__ */ w("dd", {
|
|
171
171
|
className: "mt-1 break-all font-mono text-xs text-text-secondary",
|
|
172
172
|
children: i.workspaceId
|
|
173
173
|
}) : null
|
|
174
174
|
] }),
|
|
175
|
-
/* @__PURE__ */
|
|
175
|
+
/* @__PURE__ */ T("div", { children: [/* @__PURE__ */ w("dt", {
|
|
176
176
|
className: "font-medium text-text-primary",
|
|
177
177
|
children: e(j, "pendingInvites.invitedByLabel", "Invited by")
|
|
178
|
-
}), /* @__PURE__ */
|
|
178
|
+
}), /* @__PURE__ */ w("dd", {
|
|
179
179
|
className: "break-all",
|
|
180
|
-
children: o ? /* @__PURE__ */
|
|
180
|
+
children: o ? /* @__PURE__ */ w(O, {
|
|
181
181
|
profile: o,
|
|
182
182
|
variant: "inline",
|
|
183
183
|
hideIdDrilldown: !0
|
|
184
|
-
}) : /* @__PURE__ */
|
|
184
|
+
}) : /* @__PURE__ */ w("span", {
|
|
185
185
|
className: "font-medium text-text-primary",
|
|
186
186
|
children: s
|
|
187
187
|
})
|
|
188
188
|
})] }),
|
|
189
|
-
/* @__PURE__ */
|
|
189
|
+
/* @__PURE__ */ T("div", { children: [/* @__PURE__ */ w("dt", {
|
|
190
190
|
className: "font-medium text-text-primary",
|
|
191
191
|
children: e(j, "pendingInvites.receivedLabel", "Received")
|
|
192
|
-
}), /* @__PURE__ */
|
|
193
|
-
/* @__PURE__ */
|
|
192
|
+
}), /* @__PURE__ */ w("dd", { children: l ?? "—" })] }),
|
|
193
|
+
/* @__PURE__ */ T("div", { children: [/* @__PURE__ */ w("dt", {
|
|
194
194
|
className: "font-medium text-text-primary",
|
|
195
195
|
children: e(j, "pendingInvites.expiresLabel", "Expires")
|
|
196
|
-
}), /* @__PURE__ */
|
|
196
|
+
}), /* @__PURE__ */ w("dd", { children: c ?? "—" })] })
|
|
197
197
|
]
|
|
198
198
|
}),
|
|
199
|
-
/* @__PURE__ */
|
|
199
|
+
/* @__PURE__ */ T("div", { children: [/* @__PURE__ */ w("p", {
|
|
200
200
|
className: "text-sm font-medium text-text-primary mb-2",
|
|
201
201
|
children: e(j, "pendingInvites.rolesLabel", "Roles")
|
|
202
|
-
}), /* @__PURE__ */
|
|
202
|
+
}), /* @__PURE__ */ w("div", {
|
|
203
203
|
className: "flex flex-wrap gap-2",
|
|
204
|
-
children: d.length > 0 ? d.map((e, t) => /* @__PURE__ */ _
|
|
204
|
+
children: d.length > 0 ? d.map((e, t) => /* @__PURE__ */ w(_, {
|
|
205
205
|
variant: "outline",
|
|
206
206
|
children: e
|
|
207
|
-
}, `${i.id}-${i.roleIds[t] ?? e}`)) : /* @__PURE__ */
|
|
207
|
+
}, `${i.id}-${i.roleIds[t] ?? e}`)) : /* @__PURE__ */ w("span", {
|
|
208
208
|
className: "text-sm text-text-secondary",
|
|
209
209
|
children: e(j, "pendingInvites.noRoles", "No explicit roles assigned")
|
|
210
210
|
})
|
|
211
211
|
})] }),
|
|
212
|
-
/* @__PURE__ */
|
|
212
|
+
/* @__PURE__ */ T("div", { children: [/* @__PURE__ */ w("p", {
|
|
213
213
|
className: "text-sm font-medium text-text-primary mb-2",
|
|
214
214
|
children: e(j, "pendingInvites.projectsLabel", "Projects")
|
|
215
|
-
}), /* @__PURE__ */
|
|
215
|
+
}), /* @__PURE__ */ w("div", {
|
|
216
216
|
className: "flex flex-wrap gap-2",
|
|
217
|
-
children: p.length > 0 ? p.map((e, t) => /* @__PURE__ */ _
|
|
217
|
+
children: p.length > 0 ? p.map((e, t) => /* @__PURE__ */ w(_, {
|
|
218
218
|
variant: "secondary",
|
|
219
219
|
children: e
|
|
220
|
-
}, `${i.id}-project-${e}-${t}`)) : /* @__PURE__ */
|
|
220
|
+
}, `${i.id}-project-${e}-${t}`)) : /* @__PURE__ */ w("span", {
|
|
221
221
|
className: "text-sm text-text-secondary",
|
|
222
222
|
children: e(j, "pendingInvites.noProjects", "No project access will be granted automatically")
|
|
223
223
|
})
|
|
224
224
|
})] })
|
|
225
225
|
]
|
|
226
|
-
}), /* @__PURE__ */
|
|
226
|
+
}), /* @__PURE__ */ T("div", {
|
|
227
227
|
className: "flex flex-col gap-2 sm:flex-row lg:flex-col lg:min-w-44",
|
|
228
|
-
children: [/* @__PURE__ */ v
|
|
228
|
+
children: [/* @__PURE__ */ T(v, {
|
|
229
229
|
onClick: () => ee(i.id),
|
|
230
230
|
disabled: Q,
|
|
231
231
|
className: "w-full",
|
|
232
|
-
children: [
|
|
233
|
-
}), /* @__PURE__ */ v
|
|
232
|
+
children: [b && Y ? /* @__PURE__ */ w(h, { className: "mr-2 size-4 animate-spin" }) : /* @__PURE__ */ w(f, { className: "mr-2 size-4" }), e(j, "pendingInvites.acceptButton", "Accept")]
|
|
233
|
+
}), /* @__PURE__ */ T(v, {
|
|
234
234
|
variant: "outline",
|
|
235
235
|
onClick: () => te(i.id),
|
|
236
236
|
disabled: Q,
|
|
237
237
|
className: "w-full",
|
|
238
|
-
children: [
|
|
238
|
+
children: [b && Z ? /* @__PURE__ */ w(h, { className: "mr-2 size-4 animate-spin" }) : /* @__PURE__ */ w(g, { className: "mr-2 size-4" }), e(j, "pendingInvites.rejectButton", "Reject")]
|
|
239
239
|
})]
|
|
240
240
|
})]
|
|
241
241
|
})
|