@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
|
@@ -12,13 +12,13 @@ import { useWorkspacesPageView as se } from "../hooks/useWorkspacesPageView.js";
|
|
|
12
12
|
import { downloadWorkspaceBulkInviteTemplate as ce, parseWorkspaceBulkInviteCsv as le } from "../utils/workspaceBulkInviteCsv.js";
|
|
13
13
|
import { useMemo as s, useRef as ue, useState as c } from "react";
|
|
14
14
|
import { AlertCircle as l, ArrowLeft as de, CheckCircle2 as u, Download as fe, Loader2 as d, Mail as pe, RefreshCw as me, Send as f, Upload as he, UserPlus as ge, XCircle as p } from "lucide-react";
|
|
15
|
-
import {
|
|
16
|
-
import {
|
|
17
|
-
import {
|
|
18
|
-
import { useI18n as
|
|
19
|
-
import { useNavigate as
|
|
15
|
+
import { AlertDialog as _e, AlertDialogAction as ve, AlertDialogCancel as ye, AlertDialogContent as be, AlertDialogDescription as xe, AlertDialogFooter as Se, AlertDialogHeader as Ce, AlertDialogTitle as we, Badge as m, Button as h, CardContent as g, CardHeader as _, CardTitle as v, Checkbox as y, GlassCard as b, IllustratedEmptyState as Te, Input as Ee, NextSteps as De, PagePurpose as Oe, ResponsiveTable as ke, Skeleton as x, Tabs as Ae, TabsContent as je, TabsList as Me, TabsTrigger as Ne, Tooltip as S, TooltipContent as C, TooltipProvider as w, TooltipTrigger as Pe } from "@burdenoff/fe-libs/ui";
|
|
16
|
+
import { PermissionProvider as T } from "@burdenoff/fe-libs/shared/providers/shell";
|
|
17
|
+
import { Fragment as Fe, jsx as E, jsxs as D } from "react/jsx-runtime";
|
|
18
|
+
import { useI18n as Ie } from "@burdenoff/fe-libs/shared/providers/shell/I18nProvider";
|
|
19
|
+
import { useNavigate as Le, useParams as Re } from "react-router";
|
|
20
20
|
// src/pages/WorkspaceInvitePage.tsx
|
|
21
|
-
var
|
|
21
|
+
var ze = 1048576, O = 500, Be = [
|
|
22
22
|
{
|
|
23
23
|
key: "rowNumber",
|
|
24
24
|
header: "#",
|
|
@@ -33,7 +33,7 @@ var Be = 1048576, D = 500, Ve = [
|
|
|
33
33
|
priority: "primary",
|
|
34
34
|
headerClassName: "text-xs font-semibold uppercase tracking-wide text-text-secondary",
|
|
35
35
|
cellClassName: "text-sm",
|
|
36
|
-
cell: (e) => e.email || /* @__PURE__ */
|
|
36
|
+
cell: (e) => e.email || /* @__PURE__ */ E("span", {
|
|
37
37
|
className: "italic text-text-secondary",
|
|
38
38
|
children: "(empty)"
|
|
39
39
|
})
|
|
@@ -44,34 +44,34 @@ var Be = 1048576, D = 500, Ve = [
|
|
|
44
44
|
priority: "secondary",
|
|
45
45
|
headerClassName: "text-xs font-semibold uppercase tracking-wide text-text-secondary",
|
|
46
46
|
cellClassName: "text-xs",
|
|
47
|
-
cell: (e) => e.errors.length > 0 ? /* @__PURE__ */
|
|
47
|
+
cell: (e) => e.errors.length > 0 ? /* @__PURE__ */ E("div", {
|
|
48
48
|
className: "space-y-1 text-status-error-text",
|
|
49
|
-
children: e.errors.map((t) => /* @__PURE__ */
|
|
49
|
+
children: e.errors.map((t) => /* @__PURE__ */ D("span", {
|
|
50
50
|
className: "inline-flex items-center gap-1 pr-3",
|
|
51
|
-
children: [/* @__PURE__ */
|
|
51
|
+
children: [/* @__PURE__ */ E(p, { size: 14 }), t]
|
|
52
52
|
}, `${e.rowNumber}-${t}`))
|
|
53
|
-
}) : e.status.kind === "sending" ? /* @__PURE__ */
|
|
53
|
+
}) : e.status.kind === "sending" ? /* @__PURE__ */ D("span", {
|
|
54
54
|
className: "inline-flex items-center gap-1 text-text-secondary",
|
|
55
|
-
children: [/* @__PURE__ */
|
|
55
|
+
children: [/* @__PURE__ */ E(d, {
|
|
56
56
|
size: 14,
|
|
57
57
|
className: "animate-spin"
|
|
58
58
|
}), "Sending..."]
|
|
59
|
-
}) : e.status.kind === "invited" ? /* @__PURE__ */
|
|
59
|
+
}) : e.status.kind === "invited" ? /* @__PURE__ */ D("span", {
|
|
60
60
|
className: "inline-flex items-center gap-1 text-status-success-text",
|
|
61
|
-
children: [/* @__PURE__ */
|
|
62
|
-
}) : e.status.kind === "failed" ? /* @__PURE__ */
|
|
61
|
+
children: [/* @__PURE__ */ E(u, { size: 14 }), "Invited"]
|
|
62
|
+
}) : e.status.kind === "failed" ? /* @__PURE__ */ D("span", {
|
|
63
63
|
className: "inline-flex items-center gap-1 text-status-error-text",
|
|
64
|
-
children: [/* @__PURE__ */
|
|
65
|
-
}) : /* @__PURE__ */
|
|
64
|
+
children: [/* @__PURE__ */ E(p, { size: 14 }), e.status.message]
|
|
65
|
+
}) : /* @__PURE__ */ E("span", {
|
|
66
66
|
className: "text-text-secondary",
|
|
67
67
|
children: "Ready"
|
|
68
68
|
})
|
|
69
69
|
}
|
|
70
70
|
];
|
|
71
|
-
function
|
|
71
|
+
function Ve(e) {
|
|
72
72
|
return e.type === "text/csv" || e.name.toLowerCase().endsWith(".csv");
|
|
73
73
|
}
|
|
74
|
-
function
|
|
74
|
+
function He(e) {
|
|
75
75
|
if (!e) return null;
|
|
76
76
|
let t = new Date(e);
|
|
77
77
|
return Number.isNaN(t.getTime()) ? null : t.toLocaleDateString(void 0, {
|
|
@@ -82,14 +82,14 @@ function Ue(e) {
|
|
|
82
82
|
minute: "2-digit"
|
|
83
83
|
});
|
|
84
84
|
}
|
|
85
|
-
function
|
|
85
|
+
function k(e) {
|
|
86
86
|
let t = e instanceof Error ? e.message : String(e);
|
|
87
87
|
return t.includes("CONFLICT") ? "An invite already exists for this email address." : t.includes("already a member") ? "This user is already a member of the workspace." : "Something went wrong. Please try again or contact support.";
|
|
88
88
|
}
|
|
89
|
-
function
|
|
89
|
+
function Ue(e, t, n) {
|
|
90
90
|
return e.length === 0 ? t : e.map((e) => n ? n(e) : e).join(", ");
|
|
91
91
|
}
|
|
92
|
-
function
|
|
92
|
+
function We(e, t, n, r) {
|
|
93
93
|
return {
|
|
94
94
|
email: t,
|
|
95
95
|
workspaceId: e,
|
|
@@ -100,62 +100,62 @@ function Ge(e, t, n, r) {
|
|
|
100
100
|
} } : {}
|
|
101
101
|
};
|
|
102
102
|
}
|
|
103
|
-
function
|
|
104
|
-
return /* @__PURE__ */
|
|
103
|
+
function Ge({ selectedRoleIds: e, onRoleToggle: t, selectedProjectIds: n, onProjectToggle: r, availableRoles: i, availableProjects: a, isLoadingRoles: ee, isLoadingProjects: te, disabled: o }) {
|
|
104
|
+
return /* @__PURE__ */ D("div", {
|
|
105
105
|
className: "space-y-6",
|
|
106
|
-
children: [/* @__PURE__ */
|
|
106
|
+
children: [/* @__PURE__ */ D("div", {
|
|
107
107
|
className: "space-y-3",
|
|
108
|
-
children: [/* @__PURE__ */
|
|
108
|
+
children: [/* @__PURE__ */ D("div", {
|
|
109
109
|
className: "flex flex-wrap items-center justify-between gap-2",
|
|
110
|
-
children: [/* @__PURE__ */
|
|
110
|
+
children: [/* @__PURE__ */ D("div", {
|
|
111
111
|
className: "space-y-1",
|
|
112
|
-
children: [/* @__PURE__ */
|
|
112
|
+
children: [/* @__PURE__ */ E("h3", {
|
|
113
113
|
className: "text-base font-semibold",
|
|
114
114
|
children: "Roles (Optional)"
|
|
115
|
-
}), /* @__PURE__ */
|
|
115
|
+
}), /* @__PURE__ */ E("p", {
|
|
116
116
|
className: "text-sm text-text-secondary",
|
|
117
117
|
children: "Choose roles. Hover any role to preview its full description."
|
|
118
118
|
})]
|
|
119
|
-
}), e.length > 0 ? /* @__PURE__ */
|
|
119
|
+
}), e.length > 0 ? /* @__PURE__ */ D(m, {
|
|
120
120
|
variant: "secondary",
|
|
121
121
|
children: [e.length, " selected"]
|
|
122
122
|
}) : null]
|
|
123
|
-
}), /* @__PURE__ */
|
|
123
|
+
}), /* @__PURE__ */ E(w, { children: /* @__PURE__ */ E("div", {
|
|
124
124
|
className: "grid grid-cols-1 gap-2 md:grid-cols-2 xl:grid-cols-3",
|
|
125
|
-
children: ee ? /* @__PURE__ */
|
|
125
|
+
children: ee ? /* @__PURE__ */ E("p", {
|
|
126
126
|
className: "text-sm text-text-secondary",
|
|
127
127
|
children: "Loading roles…"
|
|
128
|
-
}) : i.length === 0 ? /* @__PURE__ */
|
|
128
|
+
}) : i.length === 0 ? /* @__PURE__ */ E("p", {
|
|
129
129
|
className: "text-sm text-text-secondary",
|
|
130
130
|
children: "No assignable roles were returned for this workspace."
|
|
131
131
|
}) : i.map((n) => {
|
|
132
132
|
let r = e.includes(n.id);
|
|
133
|
-
return /* @__PURE__ */
|
|
133
|
+
return /* @__PURE__ */ D(S, { children: [/* @__PURE__ */ E(Pe, {
|
|
134
134
|
asChild: !0,
|
|
135
|
-
children: /* @__PURE__ */
|
|
135
|
+
children: /* @__PURE__ */ D("label", {
|
|
136
136
|
className: `flex cursor-pointer items-center justify-between gap-3 rounded-lg border px-3 py-3 text-left text-sm font-medium transition-colors focus-within:ring-2 focus-within:ring-[var(--color-focus-ring)] focus-within:ring-offset-2 ${r ? "border-primary bg-action-primary-bg/10 text-text-primary shadow-sm" : "border-border-subtle bg-bg-surface text-text-primary hover:bg-accent"} ${o ? "opacity-70" : ""}`,
|
|
137
|
-
children: [/* @__PURE__ */
|
|
137
|
+
children: [/* @__PURE__ */ E("span", {
|
|
138
138
|
className: "min-w-0 flex-1 truncate",
|
|
139
139
|
children: n.name
|
|
140
|
-
}), /* @__PURE__ */
|
|
140
|
+
}), /* @__PURE__ */ E(y, {
|
|
141
141
|
checked: r,
|
|
142
142
|
disabled: o,
|
|
143
143
|
onCheckedChange: (e) => t(n.id, !!e),
|
|
144
144
|
"aria-label": `Select ${n.name}`
|
|
145
145
|
})]
|
|
146
146
|
})
|
|
147
|
-
}), /* @__PURE__ */
|
|
147
|
+
}), /* @__PURE__ */ D(C, {
|
|
148
148
|
className: "max-w-xs text-sm leading-6",
|
|
149
149
|
children: [
|
|
150
|
-
/* @__PURE__ */
|
|
150
|
+
/* @__PURE__ */ E("p", {
|
|
151
151
|
className: "font-medium",
|
|
152
152
|
children: n.name
|
|
153
153
|
}),
|
|
154
|
-
/* @__PURE__ */
|
|
154
|
+
/* @__PURE__ */ E("p", {
|
|
155
155
|
className: "mt-1 text-text-secondary",
|
|
156
156
|
children: n.description || "No description available for this role."
|
|
157
157
|
}),
|
|
158
|
-
n.isSystem ? /* @__PURE__ */
|
|
158
|
+
n.isSystem ? /* @__PURE__ */ E("p", {
|
|
159
159
|
className: "mt-2 text-xs",
|
|
160
160
|
children: "System role"
|
|
161
161
|
}) : null
|
|
@@ -163,51 +163,51 @@ function Ke({ selectedRoleIds: e, onRoleToggle: t, selectedProjectIds: n, onProj
|
|
|
163
163
|
})] }, n.id);
|
|
164
164
|
})
|
|
165
165
|
}) })]
|
|
166
|
-
}), /* @__PURE__ */
|
|
166
|
+
}), /* @__PURE__ */ D("div", {
|
|
167
167
|
className: "space-y-3",
|
|
168
|
-
children: [/* @__PURE__ */
|
|
168
|
+
children: [/* @__PURE__ */ D("div", {
|
|
169
169
|
className: "flex flex-wrap items-center justify-between gap-2",
|
|
170
|
-
children: [/* @__PURE__ */
|
|
170
|
+
children: [/* @__PURE__ */ D("div", {
|
|
171
171
|
className: "space-y-1",
|
|
172
|
-
children: [/* @__PURE__ */
|
|
172
|
+
children: [/* @__PURE__ */ E("h3", {
|
|
173
173
|
className: "text-base font-semibold",
|
|
174
174
|
children: "Projects to add on acceptance (Optional)"
|
|
175
|
-
}), /* @__PURE__ */
|
|
175
|
+
}), /* @__PURE__ */ E("p", {
|
|
176
176
|
className: "text-sm text-text-secondary",
|
|
177
177
|
children: "The invited user will be added to these projects automatically after they accept."
|
|
178
178
|
})]
|
|
179
|
-
}), n.length > 0 ? /* @__PURE__ */
|
|
179
|
+
}), n.length > 0 ? /* @__PURE__ */ D(m, {
|
|
180
180
|
variant: "secondary",
|
|
181
181
|
children: [n.length, " selected"]
|
|
182
182
|
}) : null]
|
|
183
|
-
}), /* @__PURE__ */
|
|
183
|
+
}), /* @__PURE__ */ E("div", {
|
|
184
184
|
className: "grid grid-cols-1 gap-2 md:grid-cols-2 xl:grid-cols-3",
|
|
185
|
-
children: te ? /* @__PURE__ */
|
|
185
|
+
children: te ? /* @__PURE__ */ E("p", {
|
|
186
186
|
className: "text-sm text-text-secondary",
|
|
187
187
|
children: "Loading projects…"
|
|
188
|
-
}) : a.length === 0 ? /* @__PURE__ */
|
|
188
|
+
}) : a.length === 0 ? /* @__PURE__ */ E("p", {
|
|
189
189
|
className: "text-sm text-text-secondary",
|
|
190
190
|
children: "No active projects are available in this workspace yet."
|
|
191
191
|
}) : a.map((e) => {
|
|
192
192
|
let t = n.includes(e.id);
|
|
193
|
-
return /* @__PURE__ */
|
|
193
|
+
return /* @__PURE__ */ D("label", {
|
|
194
194
|
className: `flex cursor-pointer items-start justify-between gap-3 rounded-lg border px-3 py-3 transition-colors focus-within:ring-2 focus-within:ring-[var(--color-focus-ring)] focus-within:ring-offset-2 ${t ? "border-primary bg-action-primary-bg/10 text-text-primary shadow-sm" : "border-border-subtle bg-bg-surface text-text-primary hover:bg-accent"} ${o ? "opacity-70" : ""}`,
|
|
195
|
-
children: [/* @__PURE__ */
|
|
195
|
+
children: [/* @__PURE__ */ D("div", {
|
|
196
196
|
className: "min-w-0 flex-1 space-y-1",
|
|
197
|
-
children: [/* @__PURE__ */
|
|
197
|
+
children: [/* @__PURE__ */ E("p", {
|
|
198
198
|
className: "truncate text-sm font-semibold leading-tight",
|
|
199
199
|
children: e.name
|
|
200
|
-
}), /* @__PURE__ */
|
|
200
|
+
}), /* @__PURE__ */ D("div", {
|
|
201
201
|
className: "flex items-center gap-2 text-xs text-text-secondary",
|
|
202
|
-
children: [/* @__PURE__ */
|
|
202
|
+
children: [/* @__PURE__ */ E("span", {
|
|
203
203
|
className: "truncate font-mono",
|
|
204
204
|
children: e.key
|
|
205
|
-
}), /* @__PURE__ */ m
|
|
205
|
+
}), /* @__PURE__ */ E(m, {
|
|
206
206
|
variant: "outline",
|
|
207
207
|
children: e.status
|
|
208
208
|
})]
|
|
209
209
|
})]
|
|
210
|
-
}), /* @__PURE__ */
|
|
210
|
+
}), /* @__PURE__ */ E(y, {
|
|
211
211
|
checked: t,
|
|
212
212
|
disabled: o,
|
|
213
213
|
onCheckedChange: (t) => r(e.id, !!t),
|
|
@@ -219,207 +219,207 @@ function Ke({ selectedRoleIds: e, onRoleToggle: t, selectedProjectIds: n, onProj
|
|
|
219
219
|
})]
|
|
220
220
|
});
|
|
221
221
|
}
|
|
222
|
-
function
|
|
223
|
-
let { workspaceId:
|
|
224
|
-
se("workspaces.invite", { workspaceId:
|
|
225
|
-
let { canInviteMember:
|
|
226
|
-
if (!
|
|
222
|
+
function A() {
|
|
223
|
+
let { workspaceId: y } = Re(), { t: S } = Ie(), C = Le(), { basePath: w = "/workspaces", workspaceId: Pe } = i(), { withCurrentSearch: T } = r(), A = y || Pe || "";
|
|
224
|
+
se("workspaces.invite", { workspaceId: A || void 0 });
|
|
225
|
+
let { canInviteMember: Ke, isLoading: qe } = ee(), { data: Je, isLoading: Ye, error: Xe } = a(A), { data: j = [], isLoading: Ze } = te(A), { data: M, isLoading: Qe } = o({ archived: !1 }, { limit: 100 }, A), { data: $e, isLoading: et, isFetching: N, error: tt, refetch: nt } = ne(A, "PENDING", { limit: 50 }, { retry: !1 }), P = s(() => (M?.items ?? []).filter((e) => !e.archived), [M?.items]), [rt, it] = c("single"), [F, at] = c(""), [I, ot] = c([]), [L, st] = c([]), [ct, R] = c(null), [lt, ut] = c(null), [dt, z] = c(null), [ft, B] = c(null), [V, H] = c(null), [U, W] = c([]), [pt, mt] = c(null), [ht, gt] = c(!1), [G, _t] = c(!1), vt = ue(null), [K, yt] = c(null), { mutateAsync: bt, isPending: q } = ae(A), { mutateAsync: xt, isPending: St } = re(), { mutate: Ct, isPending: J } = oe(A), { mutate: wt, isPending: Y } = ie(A), [Tt, X] = c(null), Z = $e?.items ?? [], Et = q || St || G, Dt = s(() => j.filter((e) => I.includes(e.id)).map((e) => e.name), [j, I]), Ot = s(() => P.filter((e) => L.includes(e.id)).map((e) => e.name), [P, L]), Q = s(() => U.filter((e) => e.errors.length === 0 && e.status.kind !== "invited"), [U]), $ = s(() => U.filter((e) => e.errors.length > 0), [U]);
|
|
226
|
+
if (!A) return /* @__PURE__ */ E("div", {
|
|
227
227
|
className: "space-y-4 p-6",
|
|
228
|
-
children: /* @__PURE__ */
|
|
228
|
+
children: /* @__PURE__ */ D("div", {
|
|
229
229
|
className: "rounded-xl border bg-bg-surface p-8 text-center",
|
|
230
230
|
children: [
|
|
231
|
-
/* @__PURE__ */
|
|
231
|
+
/* @__PURE__ */ E("h1", {
|
|
232
232
|
className: "text-2xl font-bold",
|
|
233
|
-
children: e(
|
|
233
|
+
children: e(S, "workspaceInvite.noWorkspaceTitle", "Select a workspace first")
|
|
234
234
|
}),
|
|
235
|
-
/* @__PURE__ */
|
|
235
|
+
/* @__PURE__ */ E("p", {
|
|
236
236
|
className: "mt-2 text-text-secondary",
|
|
237
|
-
children: e(
|
|
237
|
+
children: e(S, "workspaceInvite.noWorkspaceDescription", "Choose a current workspace from the header or open a workspace detail page before inviting members.")
|
|
238
238
|
}),
|
|
239
|
-
/* @__PURE__ */
|
|
239
|
+
/* @__PURE__ */ E("div", {
|
|
240
240
|
className: "mt-4",
|
|
241
|
-
children: /* @__PURE__ */
|
|
242
|
-
onClick: () =>
|
|
241
|
+
children: /* @__PURE__ */ E(h, {
|
|
242
|
+
onClick: () => C(T(`${w}/list`)),
|
|
243
243
|
variant: "outline",
|
|
244
|
-
children: e(
|
|
244
|
+
children: e(S, "workspaceInvite.backToWorkspaces", "Back to Workspaces")
|
|
245
245
|
})
|
|
246
246
|
})
|
|
247
247
|
]
|
|
248
248
|
})
|
|
249
249
|
});
|
|
250
|
-
if (
|
|
250
|
+
if (qe || Ye) return /* @__PURE__ */ D("div", {
|
|
251
251
|
className: "space-y-6 p-6",
|
|
252
252
|
children: [
|
|
253
|
-
/* @__PURE__ */
|
|
254
|
-
/* @__PURE__ */
|
|
255
|
-
/* @__PURE__ */
|
|
253
|
+
/* @__PURE__ */ E(x, { className: "h-10 w-48" }),
|
|
254
|
+
/* @__PURE__ */ E(x, { className: "h-40 w-full" }),
|
|
255
|
+
/* @__PURE__ */ E(x, { className: "h-80 w-full" })
|
|
256
256
|
]
|
|
257
257
|
});
|
|
258
|
-
if (!
|
|
258
|
+
if (!Ke) return /* @__PURE__ */ E("div", {
|
|
259
259
|
className: "flex min-h-[400px] items-center justify-center",
|
|
260
|
-
children: /* @__PURE__ */
|
|
260
|
+
children: /* @__PURE__ */ D("div", {
|
|
261
261
|
className: "space-y-2 text-center",
|
|
262
|
-
children: [/* @__PURE__ */
|
|
262
|
+
children: [/* @__PURE__ */ E("h2", {
|
|
263
263
|
className: "text-lg font-semibold",
|
|
264
|
-
children: e(
|
|
265
|
-
}), /* @__PURE__ */
|
|
264
|
+
children: e(S, "workspaceInvite.accessDenied", "Access Denied")
|
|
265
|
+
}), /* @__PURE__ */ E("p", {
|
|
266
266
|
className: "text-sm text-text-secondary",
|
|
267
|
-
children: e(
|
|
267
|
+
children: e(S, "workspaceInvite.accessDeniedDescription", "You don't have permission to invite members into this workspace.")
|
|
268
268
|
})]
|
|
269
269
|
})
|
|
270
270
|
});
|
|
271
|
-
if (
|
|
271
|
+
if (Xe || !Je) return /* @__PURE__ */ D("div", {
|
|
272
272
|
className: "space-y-4 p-6",
|
|
273
|
-
children: [/* @__PURE__ */ h
|
|
273
|
+
children: [/* @__PURE__ */ D(h, {
|
|
274
274
|
variant: "ghost",
|
|
275
|
-
onClick: () =>
|
|
275
|
+
onClick: () => C(T(`${w}/list`)),
|
|
276
276
|
className: "gap-2",
|
|
277
|
-
children: [/* @__PURE__ */
|
|
278
|
-
}), /* @__PURE__ */
|
|
277
|
+
children: [/* @__PURE__ */ E(de, { size: 18 }), e(S, "workspaceInvite.backToWorkspaces", "Back to Workspaces")]
|
|
278
|
+
}), /* @__PURE__ */ E("div", {
|
|
279
279
|
className: "rounded-xl border bg-bg-surface p-8 text-center text-status-error-text",
|
|
280
|
-
children: e(
|
|
280
|
+
children: e(S, "workspaceInvite.workspaceLoadError", "Unable to load workspace invite details.")
|
|
281
281
|
})]
|
|
282
282
|
});
|
|
283
283
|
let kt = (e, t) => {
|
|
284
|
-
|
|
284
|
+
ot((n) => t ? [...n, e].filter((e, t, n) => n.indexOf(e) === t) : n.filter((t) => t !== e));
|
|
285
285
|
}, At = (e, t) => {
|
|
286
|
-
|
|
286
|
+
st((n) => t ? [...n, e].filter((e, t, n) => n.indexOf(e) === t) : n.filter((t) => t !== e));
|
|
287
287
|
}, jt = async (e) => {
|
|
288
|
-
if (e.preventDefault(),
|
|
288
|
+
if (e.preventDefault(), R(null), ut(null), H(null), !F.trim()) R("Email is required.");
|
|
289
289
|
else try {
|
|
290
|
-
await
|
|
290
|
+
await bt(We(A, F.trim().toLowerCase(), I, L)), at(""), ut(`Invitation sent to ${F.trim().toLowerCase()}.`);
|
|
291
291
|
} catch (e) {
|
|
292
|
-
|
|
292
|
+
R(k(e));
|
|
293
293
|
}
|
|
294
294
|
}, Mt = (e) => {
|
|
295
|
-
if (!
|
|
296
|
-
|
|
295
|
+
if (!Ve(e)) {
|
|
296
|
+
z("Please upload a .csv file.");
|
|
297
297
|
return;
|
|
298
298
|
}
|
|
299
|
-
if (e.size >
|
|
300
|
-
|
|
299
|
+
if (e.size > ze) {
|
|
300
|
+
z("CSV file is too large (max 1 MB).");
|
|
301
301
|
return;
|
|
302
302
|
}
|
|
303
303
|
let t = new FileReader();
|
|
304
304
|
t.onload = () => {
|
|
305
|
-
let n = typeof t.result == "string" ? t.result : "", r = le(n), i = r.slice(0,
|
|
306
|
-
|
|
305
|
+
let n = typeof t.result == "string" ? t.result : "", r = le(n), i = r.slice(0, O);
|
|
306
|
+
W(i.map((e) => ({
|
|
307
307
|
...e,
|
|
308
308
|
status: { kind: "idle" }
|
|
309
|
-
}))),
|
|
309
|
+
}))), mt(e.name), z(r.length > O ? `Only the first ${O} rows were loaded. Split larger CSV files into smaller batches.` : null), B(null), H(null);
|
|
310
310
|
}, t.onerror = () => {
|
|
311
|
-
|
|
311
|
+
z("Failed to read CSV file.");
|
|
312
312
|
}, t.readAsText(e);
|
|
313
313
|
}, Nt = async () => {
|
|
314
|
-
if (!(Q.length === 0 ||
|
|
315
|
-
|
|
314
|
+
if (!(Q.length === 0 || G)) {
|
|
315
|
+
z(null), B(null), H(null), _t(!0), W((e) => e.map((e) => e.errors.length === 0 && e.status.kind !== "invited" ? {
|
|
316
316
|
...e,
|
|
317
317
|
status: { kind: "sending" }
|
|
318
318
|
} : e));
|
|
319
319
|
try {
|
|
320
|
-
await
|
|
320
|
+
await xt(Q.map((e) => We(A, e.email, I, L))), W((e) => e.map((e) => e.status.kind === "sending" ? {
|
|
321
321
|
...e,
|
|
322
322
|
status: { kind: "invited" }
|
|
323
|
-
} : e)),
|
|
323
|
+
} : e)), B(`Sent ${Q.length} workspace invitation${Q.length === 1 ? "" : "s"}.`);
|
|
324
324
|
} catch (e) {
|
|
325
|
-
let t =
|
|
326
|
-
|
|
325
|
+
let t = k(e);
|
|
326
|
+
W((e) => e.map((e) => e.status.kind === "sending" ? {
|
|
327
327
|
...e,
|
|
328
328
|
status: {
|
|
329
329
|
kind: "failed",
|
|
330
330
|
message: t
|
|
331
331
|
}
|
|
332
|
-
} : e)),
|
|
332
|
+
} : e)), z(t);
|
|
333
333
|
} finally {
|
|
334
|
-
|
|
334
|
+
_t(!1);
|
|
335
335
|
}
|
|
336
336
|
}
|
|
337
337
|
}, Pt = (e) => {
|
|
338
|
-
|
|
338
|
+
H(null), X(e.id), Ct(e.id, {
|
|
339
339
|
onSuccess: () => {
|
|
340
|
-
|
|
340
|
+
H({
|
|
341
341
|
tone: "success",
|
|
342
342
|
message: `Invitation resent to ${e.email}.`
|
|
343
343
|
});
|
|
344
344
|
},
|
|
345
345
|
onError: (e) => {
|
|
346
|
-
|
|
346
|
+
H({
|
|
347
347
|
tone: "error",
|
|
348
|
-
message:
|
|
348
|
+
message: k(e)
|
|
349
349
|
});
|
|
350
350
|
},
|
|
351
351
|
onSettled: () => X(null)
|
|
352
352
|
});
|
|
353
353
|
};
|
|
354
|
-
return /* @__PURE__ */
|
|
355
|
-
open: !!
|
|
356
|
-
onOpenChange: (e) => !e &&
|
|
357
|
-
children: /* @__PURE__ */
|
|
354
|
+
return /* @__PURE__ */ D(Fe, { children: [/* @__PURE__ */ E(_e, {
|
|
355
|
+
open: !!K,
|
|
356
|
+
onOpenChange: (e) => !e && yt(null),
|
|
357
|
+
children: /* @__PURE__ */ D(be, { children: [/* @__PURE__ */ D(Ce, { children: [/* @__PURE__ */ E(we, { children: "Cancel pending invitation?" }), /* @__PURE__ */ E(xe, { children: K ? `This will revoke the pending invite for ${K.email}. They will need a new invitation to join later.` : "This will revoke the pending invitation." })] }), /* @__PURE__ */ D(Se, { children: [/* @__PURE__ */ E(ye, {
|
|
358
358
|
disabled: Y,
|
|
359
359
|
children: "Keep invitation"
|
|
360
|
-
}), /* @__PURE__ */
|
|
360
|
+
}), /* @__PURE__ */ D(ve, {
|
|
361
361
|
onClick: () => {
|
|
362
|
-
|
|
362
|
+
K && (H(null), X(K.id), wt(K.id, {
|
|
363
363
|
onSuccess: () => {
|
|
364
|
-
|
|
364
|
+
H({
|
|
365
365
|
tone: "success",
|
|
366
|
-
message: `Invitation cancelled for ${
|
|
367
|
-
}),
|
|
366
|
+
message: `Invitation cancelled for ${K.email}.`
|
|
367
|
+
}), yt(null);
|
|
368
368
|
},
|
|
369
369
|
onError: (e) => {
|
|
370
|
-
|
|
370
|
+
H({
|
|
371
371
|
tone: "error",
|
|
372
|
-
message:
|
|
372
|
+
message: k(e)
|
|
373
373
|
});
|
|
374
374
|
},
|
|
375
375
|
onSettled: () => X(null)
|
|
376
376
|
}));
|
|
377
377
|
},
|
|
378
378
|
disabled: Y,
|
|
379
|
-
children: [Y ? /* @__PURE__ */
|
|
379
|
+
children: [Y ? /* @__PURE__ */ E(d, { className: "size-4 animate-spin" }) : null, "Cancel invitation"]
|
|
380
380
|
})] })] })
|
|
381
|
-
}), /* @__PURE__ */
|
|
381
|
+
}), /* @__PURE__ */ D("div", {
|
|
382
382
|
className: "space-y-6 p-3 sm:p-6",
|
|
383
383
|
children: [
|
|
384
|
-
/* @__PURE__ */
|
|
384
|
+
/* @__PURE__ */ E("div", {
|
|
385
385
|
className: "flex flex-col gap-3 sm:flex-row sm:items-start sm:justify-between",
|
|
386
|
-
children: /* @__PURE__ */
|
|
387
|
-
/* @__PURE__ */ h
|
|
386
|
+
children: /* @__PURE__ */ D("div", { children: [
|
|
387
|
+
/* @__PURE__ */ D(h, {
|
|
388
388
|
variant: "ghost",
|
|
389
|
-
onClick: () =>
|
|
389
|
+
onClick: () => C(T(`${w}/${A}`)),
|
|
390
390
|
className: "-ml-2 mb-2 gap-2",
|
|
391
|
-
children: [/* @__PURE__ */
|
|
391
|
+
children: [/* @__PURE__ */ E(de, { size: 18 }), e(S, "workspaceInvite.backToWorkspace", "Back to Workspace")]
|
|
392
392
|
}),
|
|
393
|
-
/* @__PURE__ */
|
|
393
|
+
/* @__PURE__ */ D("div", {
|
|
394
394
|
className: "flex items-center gap-2",
|
|
395
|
-
children: [/* @__PURE__ */
|
|
395
|
+
children: [/* @__PURE__ */ E(ge, {
|
|
396
396
|
className: "text-primary",
|
|
397
397
|
size: 24
|
|
398
|
-
}), /* @__PURE__ */
|
|
398
|
+
}), /* @__PURE__ */ E("h1", {
|
|
399
399
|
className: "text-2xl font-bold sm:text-3xl",
|
|
400
|
-
children: e(
|
|
400
|
+
children: e(S, "workspaceInvite.title", "Invite Members")
|
|
401
401
|
})]
|
|
402
402
|
}),
|
|
403
|
-
/* @__PURE__ */
|
|
403
|
+
/* @__PURE__ */ D("p", {
|
|
404
404
|
className: "mt-2 text-sm text-text-secondary sm:text-base",
|
|
405
405
|
children: [
|
|
406
|
-
|
|
406
|
+
Je.name,
|
|
407
407
|
" —",
|
|
408
408
|
" ",
|
|
409
|
-
e(
|
|
409
|
+
e(S, "workspaceInvite.subtitle", "Invite people into this workspace and optionally grant project access.")
|
|
410
410
|
]
|
|
411
411
|
})
|
|
412
412
|
] })
|
|
413
413
|
}),
|
|
414
|
-
/* @__PURE__ */
|
|
415
|
-
/* @__PURE__ */
|
|
414
|
+
/* @__PURE__ */ E(Oe, { children: e(S, "workspaceInvite.purpose", "Use this page to bring new people into the workspace. First choose the roles and projects they should get the moment they accept, then send a single invitation by email or upload a CSV to invite many people at once. Invitations you have already sent appear at the bottom, where you can resend or cancel them.") }),
|
|
415
|
+
/* @__PURE__ */ E(De, {
|
|
416
416
|
storageKey: "workspaces-workspace-invite",
|
|
417
417
|
steps: [
|
|
418
418
|
{
|
|
419
419
|
id: "pick-access",
|
|
420
|
-
label: e(
|
|
421
|
-
description: e(
|
|
422
|
-
icon: /* @__PURE__ */
|
|
420
|
+
label: e(S, "workspaceInvite.stepAccess", "Pick the roles and projects to grant"),
|
|
421
|
+
description: e(S, "workspaceInvite.stepAccessDesc", "These are applied automatically when each person accepts."),
|
|
422
|
+
icon: /* @__PURE__ */ E(ge, { size: 16 }),
|
|
423
423
|
onClick: () => document.getElementById("invite-access-section")?.scrollIntoView({
|
|
424
424
|
behavior: "smooth",
|
|
425
425
|
block: "start"
|
|
@@ -427,9 +427,9 @@ function k() {
|
|
|
427
427
|
},
|
|
428
428
|
{
|
|
429
429
|
id: "send-invite",
|
|
430
|
-
label: e(
|
|
431
|
-
description: e(
|
|
432
|
-
icon: /* @__PURE__ */
|
|
430
|
+
label: e(S, "workspaceInvite.stepSend", "Send the invitation"),
|
|
431
|
+
description: e(S, "workspaceInvite.stepSendDesc", "Enter one email, or switch to the Bulk CSV tab to invite many at once."),
|
|
432
|
+
icon: /* @__PURE__ */ E(f, { size: 16 }),
|
|
433
433
|
onClick: () => document.getElementById("invite-send-section")?.scrollIntoView({
|
|
434
434
|
behavior: "smooth",
|
|
435
435
|
block: "start"
|
|
@@ -437,9 +437,9 @@ function k() {
|
|
|
437
437
|
},
|
|
438
438
|
{
|
|
439
439
|
id: "review-pending",
|
|
440
|
-
label: e(
|
|
441
|
-
description: e(
|
|
442
|
-
icon: /* @__PURE__ */
|
|
440
|
+
label: e(S, "workspaceInvite.stepPending", "Track your pending invitations"),
|
|
441
|
+
description: e(S, "workspaceInvite.stepPendingDesc", "Resend or cancel invitations that have not been accepted yet."),
|
|
442
|
+
icon: /* @__PURE__ */ E(pe, { size: 16 }),
|
|
443
443
|
onClick: () => document.getElementById("invite-pending-section")?.scrollIntoView({
|
|
444
444
|
behavior: "smooth",
|
|
445
445
|
block: "start"
|
|
@@ -447,147 +447,147 @@ function k() {
|
|
|
447
447
|
}
|
|
448
448
|
]
|
|
449
449
|
}),
|
|
450
|
-
/* @__PURE__ */
|
|
450
|
+
/* @__PURE__ */ D(b, {
|
|
451
451
|
treatment: "plain",
|
|
452
452
|
id: "invite-access-section",
|
|
453
453
|
className: "border-border-seam",
|
|
454
|
-
children: [/* @__PURE__ */
|
|
455
|
-
selectedRoleIds:
|
|
454
|
+
children: [/* @__PURE__ */ E(_, { children: /* @__PURE__ */ E(v, { children: e(S, "workspaceInvite.setupTitle", "Access to grant on acceptance") }) }), /* @__PURE__ */ E(g, { children: /* @__PURE__ */ E(Ge, {
|
|
455
|
+
selectedRoleIds: I,
|
|
456
456
|
onRoleToggle: kt,
|
|
457
|
-
selectedProjectIds:
|
|
457
|
+
selectedProjectIds: L,
|
|
458
458
|
onProjectToggle: At,
|
|
459
|
-
availableRoles:
|
|
460
|
-
availableProjects:
|
|
461
|
-
isLoadingRoles:
|
|
462
|
-
isLoadingProjects:
|
|
459
|
+
availableRoles: j,
|
|
460
|
+
availableProjects: P,
|
|
461
|
+
isLoadingRoles: Ze,
|
|
462
|
+
isLoadingProjects: Qe,
|
|
463
463
|
disabled: Et
|
|
464
464
|
}) })]
|
|
465
465
|
}),
|
|
466
|
-
/* @__PURE__ */
|
|
466
|
+
/* @__PURE__ */ D(b, {
|
|
467
467
|
treatment: "metric",
|
|
468
468
|
glow: !0,
|
|
469
469
|
className: "border-border-seam",
|
|
470
|
-
children: [/* @__PURE__ */
|
|
470
|
+
children: [/* @__PURE__ */ E(_, { children: /* @__PURE__ */ E(v, { children: "Selection summary" }) }), /* @__PURE__ */ D(g, {
|
|
471
471
|
className: "grid gap-4 md:grid-cols-2",
|
|
472
|
-
children: [/* @__PURE__ */
|
|
472
|
+
children: [/* @__PURE__ */ D("div", {
|
|
473
473
|
className: "space-y-2 rounded-lg border border-border-seam bg-bg-surface p-4",
|
|
474
|
-
children: [/* @__PURE__ */
|
|
474
|
+
children: [/* @__PURE__ */ D("div", {
|
|
475
475
|
className: "flex items-center justify-between gap-2",
|
|
476
|
-
children: [/* @__PURE__ */
|
|
476
|
+
children: [/* @__PURE__ */ E("p", {
|
|
477
477
|
className: "text-sm font-medium",
|
|
478
478
|
children: "Roles"
|
|
479
|
-
}), /* @__PURE__ */ m
|
|
479
|
+
}), /* @__PURE__ */ E(m, {
|
|
480
480
|
variant: "secondary",
|
|
481
481
|
className: "tabular-nums",
|
|
482
482
|
children: Dt.length
|
|
483
483
|
})]
|
|
484
|
-
}), /* @__PURE__ */
|
|
484
|
+
}), /* @__PURE__ */ E("p", {
|
|
485
485
|
className: "text-sm text-text-muted",
|
|
486
|
-
children:
|
|
486
|
+
children: Ue(Dt, "No roles selected")
|
|
487
487
|
})]
|
|
488
|
-
}), /* @__PURE__ */
|
|
488
|
+
}), /* @__PURE__ */ D("div", {
|
|
489
489
|
className: "space-y-2 rounded-lg border border-border-seam bg-bg-surface p-4",
|
|
490
|
-
children: [/* @__PURE__ */
|
|
490
|
+
children: [/* @__PURE__ */ D("div", {
|
|
491
491
|
className: "flex items-center justify-between gap-2",
|
|
492
|
-
children: [/* @__PURE__ */
|
|
492
|
+
children: [/* @__PURE__ */ E("p", {
|
|
493
493
|
className: "text-sm font-medium",
|
|
494
494
|
children: "Projects"
|
|
495
|
-
}), /* @__PURE__ */ m
|
|
495
|
+
}), /* @__PURE__ */ E(m, {
|
|
496
496
|
variant: "secondary",
|
|
497
497
|
className: "tabular-nums",
|
|
498
498
|
children: Ot.length
|
|
499
499
|
})]
|
|
500
|
-
}), /* @__PURE__ */
|
|
500
|
+
}), /* @__PURE__ */ E("p", {
|
|
501
501
|
className: "text-sm text-text-muted",
|
|
502
|
-
children:
|
|
502
|
+
children: Ue(Ot, "No project access will be granted automatically")
|
|
503
503
|
})]
|
|
504
504
|
})]
|
|
505
505
|
})]
|
|
506
506
|
}),
|
|
507
|
-
/* @__PURE__ */
|
|
507
|
+
/* @__PURE__ */ D(b, {
|
|
508
508
|
treatment: "plain",
|
|
509
509
|
id: "invite-send-section",
|
|
510
510
|
className: "border-border-seam",
|
|
511
|
-
children: [/* @__PURE__ */
|
|
512
|
-
value:
|
|
513
|
-
onValueChange: (e) =>
|
|
511
|
+
children: [/* @__PURE__ */ E(_, { children: /* @__PURE__ */ E(v, { children: e(S, "workspaceInvite.sendTitle", "Send invitations") }) }), /* @__PURE__ */ E(g, { children: /* @__PURE__ */ D(Ae, {
|
|
512
|
+
value: rt,
|
|
513
|
+
onValueChange: (e) => it(e),
|
|
514
514
|
className: "space-y-5",
|
|
515
515
|
children: [
|
|
516
|
-
/* @__PURE__ */
|
|
516
|
+
/* @__PURE__ */ D(Me, { children: [/* @__PURE__ */ E(Ne, {
|
|
517
517
|
value: "single",
|
|
518
|
-
children: e(
|
|
519
|
-
}), /* @__PURE__ */
|
|
518
|
+
children: e(S, "workspaceInvite.modeSingle", "Single")
|
|
519
|
+
}), /* @__PURE__ */ E(Ne, {
|
|
520
520
|
value: "bulk",
|
|
521
|
-
children: e(
|
|
521
|
+
children: e(S, "workspaceInvite.modeBulk", "Bulk CSV")
|
|
522
522
|
})] }),
|
|
523
|
-
/* @__PURE__ */
|
|
523
|
+
/* @__PURE__ */ D(je, {
|
|
524
524
|
value: "single",
|
|
525
525
|
className: "space-y-4",
|
|
526
526
|
children: [
|
|
527
|
-
|
|
527
|
+
ct ? /* @__PURE__ */ D("div", {
|
|
528
528
|
className: "flex items-center gap-2 rounded-md border border-status-error-border/20 bg-status-error-bg/10 p-3 text-sm text-status-error-text",
|
|
529
|
-
children: [/* @__PURE__ */
|
|
529
|
+
children: [/* @__PURE__ */ E(l, { className: "size-4 shrink-0" }), /* @__PURE__ */ E("span", { children: ct })]
|
|
530
530
|
}) : null,
|
|
531
|
-
|
|
531
|
+
lt ? /* @__PURE__ */ D("div", {
|
|
532
532
|
className: "flex items-center gap-2 rounded-md border border-status-success/30 bg-status-success/10 p-3 text-sm text-status-success-text",
|
|
533
|
-
children: [/* @__PURE__ */
|
|
533
|
+
children: [/* @__PURE__ */ E(u, { className: "size-4 shrink-0" }), /* @__PURE__ */ E("span", { children: lt })]
|
|
534
534
|
}) : null,
|
|
535
|
-
/* @__PURE__ */
|
|
535
|
+
/* @__PURE__ */ D("form", {
|
|
536
536
|
onSubmit: jt,
|
|
537
537
|
className: "space-y-4",
|
|
538
|
-
children: [/* @__PURE__ */
|
|
538
|
+
children: [/* @__PURE__ */ D("div", {
|
|
539
539
|
className: "space-y-2",
|
|
540
|
-
children: [/* @__PURE__ */
|
|
540
|
+
children: [/* @__PURE__ */ E("label", {
|
|
541
541
|
htmlFor: "workspace-invite-email",
|
|
542
542
|
className: "text-sm font-medium",
|
|
543
|
-
children: e(
|
|
544
|
-
}), /* @__PURE__ */
|
|
543
|
+
children: e(S, "workspaceInvite.emailLabel", "Email Address")
|
|
544
|
+
}), /* @__PURE__ */ E(Ee, {
|
|
545
545
|
id: "workspace-invite-email",
|
|
546
546
|
type: "email",
|
|
547
|
-
placeholder: e(
|
|
548
|
-
value:
|
|
549
|
-
onChange: (e) =>
|
|
550
|
-
disabled:
|
|
547
|
+
placeholder: e(S, "workspaceInvite.emailPlaceholder", "member@example.com"),
|
|
548
|
+
value: F,
|
|
549
|
+
onChange: (e) => at(e.target.value),
|
|
550
|
+
disabled: q
|
|
551
551
|
})]
|
|
552
|
-
}), /* @__PURE__ */
|
|
552
|
+
}), /* @__PURE__ */ E("div", {
|
|
553
553
|
className: "flex justify-end",
|
|
554
|
-
children: /* @__PURE__ */ h
|
|
554
|
+
children: /* @__PURE__ */ D(h, {
|
|
555
555
|
type: "submit",
|
|
556
|
-
disabled:
|
|
556
|
+
disabled: q,
|
|
557
557
|
className: "gap-2",
|
|
558
|
-
children: [
|
|
558
|
+
children: [q ? /* @__PURE__ */ E(d, { className: "size-4 animate-spin" }) : /* @__PURE__ */ E(f, { className: "size-4" }), e(S, "workspaceInvite.sendSingleButton", "Send Invitation")]
|
|
559
559
|
})
|
|
560
560
|
})]
|
|
561
561
|
})
|
|
562
562
|
]
|
|
563
563
|
}),
|
|
564
|
-
/* @__PURE__ */
|
|
564
|
+
/* @__PURE__ */ D(je, {
|
|
565
565
|
value: "bulk",
|
|
566
566
|
className: "space-y-5",
|
|
567
567
|
children: [
|
|
568
|
-
|
|
568
|
+
dt ? /* @__PURE__ */ D("div", {
|
|
569
569
|
className: "flex items-center gap-2 rounded-md border border-status-error-border/20 bg-status-error-bg/10 p-3 text-sm text-status-error-text",
|
|
570
|
-
children: [/* @__PURE__ */
|
|
570
|
+
children: [/* @__PURE__ */ E(l, { className: "size-4 shrink-0" }), /* @__PURE__ */ E("span", { children: dt })]
|
|
571
571
|
}) : null,
|
|
572
|
-
|
|
572
|
+
ft ? /* @__PURE__ */ D("div", {
|
|
573
573
|
className: "flex items-center gap-2 rounded-md border border-status-success/30 bg-status-success/10 p-3 text-sm text-status-success-text",
|
|
574
|
-
children: [/* @__PURE__ */
|
|
574
|
+
children: [/* @__PURE__ */ E(u, { className: "size-4 shrink-0" }), /* @__PURE__ */ E("span", { children: ft })]
|
|
575
575
|
}) : null,
|
|
576
|
-
/* @__PURE__ */
|
|
576
|
+
/* @__PURE__ */ D("div", {
|
|
577
577
|
className: "flex flex-col gap-3 sm:flex-row sm:items-center sm:justify-between",
|
|
578
|
-
children: [/* @__PURE__ */
|
|
578
|
+
children: [/* @__PURE__ */ D("div", {
|
|
579
579
|
className: "space-y-1",
|
|
580
580
|
children: [
|
|
581
|
-
/* @__PURE__ */
|
|
581
|
+
/* @__PURE__ */ E("p", {
|
|
582
582
|
className: "text-sm text-text-secondary",
|
|
583
|
-
children: e(
|
|
583
|
+
children: e(S, "workspaceInvite.bulkDescription", "Upload a CSV with one email column. All valid rows will receive the currently selected roles and projects.")
|
|
584
584
|
}),
|
|
585
|
-
/* @__PURE__ */
|
|
585
|
+
/* @__PURE__ */ D("div", {
|
|
586
586
|
className: "rounded-md border bg-bg-sunken/30 px-3 py-2 text-xs text-text-secondary",
|
|
587
|
-
children: [/* @__PURE__ */
|
|
587
|
+
children: [/* @__PURE__ */ E("p", {
|
|
588
588
|
className: "font-medium text-text-primary",
|
|
589
589
|
children: "Sample format"
|
|
590
|
-
}), /* @__PURE__ */
|
|
590
|
+
}), /* @__PURE__ */ D("pre", {
|
|
591
591
|
className: "mt-1 whitespace-pre-wrap",
|
|
592
592
|
children: [
|
|
593
593
|
"email",
|
|
@@ -598,51 +598,51 @@ function k() {
|
|
|
598
598
|
]
|
|
599
599
|
})]
|
|
600
600
|
}),
|
|
601
|
-
(
|
|
601
|
+
(M?.total ?? 0) > P.length ? /* @__PURE__ */ D("p", {
|
|
602
602
|
className: "text-xs text-text-secondary",
|
|
603
603
|
children: [
|
|
604
604
|
"Showing the first ",
|
|
605
|
-
|
|
605
|
+
P.length,
|
|
606
606
|
" active projects. Narrow the workspace project list if you need to invite into more."
|
|
607
607
|
]
|
|
608
608
|
}) : null
|
|
609
609
|
]
|
|
610
|
-
}), /* @__PURE__ */ h
|
|
610
|
+
}), /* @__PURE__ */ D(h, {
|
|
611
611
|
type: "button",
|
|
612
612
|
variant: "outline",
|
|
613
613
|
onClick: ce,
|
|
614
614
|
className: "gap-2",
|
|
615
|
-
children: [/* @__PURE__ */
|
|
615
|
+
children: [/* @__PURE__ */ E(fe, { size: 16 }), e(S, "workspaceInvite.downloadTemplate", "Download template")]
|
|
616
616
|
})]
|
|
617
617
|
}),
|
|
618
|
-
/* @__PURE__ */
|
|
618
|
+
/* @__PURE__ */ D("div", {
|
|
619
619
|
onDragOver: (e) => {
|
|
620
|
-
e.preventDefault(),
|
|
620
|
+
e.preventDefault(), gt(!0);
|
|
621
621
|
},
|
|
622
|
-
onDragLeave: () =>
|
|
622
|
+
onDragLeave: () => gt(!1),
|
|
623
623
|
onDrop: (e) => {
|
|
624
|
-
e.preventDefault(),
|
|
624
|
+
e.preventDefault(), gt(!1);
|
|
625
625
|
let t = e.dataTransfer.files?.[0];
|
|
626
|
-
t ? Mt(t) :
|
|
626
|
+
t ? Mt(t) : z("Please upload a .csv file.");
|
|
627
627
|
},
|
|
628
|
-
className: `flex flex-col items-center justify-center gap-3 rounded-xl border-2 border-dashed p-8 transition-colors ${
|
|
628
|
+
className: `flex flex-col items-center justify-center gap-3 rounded-xl border-2 border-dashed p-8 transition-colors ${ht ? "border-primary bg-action-primary-bg/5" : "border-border-subtle bg-bg-surface"}`,
|
|
629
629
|
children: [
|
|
630
|
-
/* @__PURE__ */
|
|
630
|
+
/* @__PURE__ */ E(he, {
|
|
631
631
|
size: 28,
|
|
632
632
|
className: "text-text-secondary"
|
|
633
633
|
}),
|
|
634
|
-
/* @__PURE__ */
|
|
634
|
+
/* @__PURE__ */ D("div", {
|
|
635
635
|
className: "text-center",
|
|
636
|
-
children: [/* @__PURE__ */
|
|
636
|
+
children: [/* @__PURE__ */ E("p", {
|
|
637
637
|
className: "text-sm font-medium",
|
|
638
|
-
children:
|
|
639
|
-
}), /* @__PURE__ */
|
|
638
|
+
children: pt || "Drop a CSV file here or click to browse"
|
|
639
|
+
}), /* @__PURE__ */ E("p", {
|
|
640
640
|
className: "mt-1 text-xs text-text-secondary",
|
|
641
641
|
children: "CSV files only. Required column: email."
|
|
642
642
|
})]
|
|
643
643
|
}),
|
|
644
|
-
/* @__PURE__ */
|
|
645
|
-
ref:
|
|
644
|
+
/* @__PURE__ */ E("input", {
|
|
645
|
+
ref: vt,
|
|
646
646
|
type: "file",
|
|
647
647
|
accept: ".csv,text/csv",
|
|
648
648
|
onChange: (e) => {
|
|
@@ -650,29 +650,29 @@ function k() {
|
|
|
650
650
|
t && Mt(t), e.target.value = "";
|
|
651
651
|
},
|
|
652
652
|
className: "hidden",
|
|
653
|
-
"aria-label": e(
|
|
653
|
+
"aria-label": e(S, "workspaceInvite.chooseCsvFileAriaLabel", "Choose CSV file")
|
|
654
654
|
}),
|
|
655
|
-
/* @__PURE__ */
|
|
655
|
+
/* @__PURE__ */ E(h, {
|
|
656
656
|
type: "button",
|
|
657
|
-
onClick: () =>
|
|
658
|
-
children: e(
|
|
657
|
+
onClick: () => vt.current?.click(),
|
|
658
|
+
children: e(S, "workspaceInvite.chooseFile", "Choose file")
|
|
659
659
|
})
|
|
660
660
|
]
|
|
661
661
|
}),
|
|
662
|
-
|
|
663
|
-
/* @__PURE__ */
|
|
662
|
+
U.length > 0 ? /* @__PURE__ */ D(Fe, { children: [
|
|
663
|
+
/* @__PURE__ */ D("div", {
|
|
664
664
|
className: "flex flex-wrap gap-4 text-xs text-text-secondary",
|
|
665
665
|
children: [
|
|
666
|
-
/* @__PURE__ */
|
|
667
|
-
/* @__PURE__ */
|
|
668
|
-
/* @__PURE__ */
|
|
669
|
-
$.length > 0 ? /* @__PURE__ */ m
|
|
666
|
+
/* @__PURE__ */ D("span", { children: ["Total rows: ", U.length] }),
|
|
667
|
+
/* @__PURE__ */ D("span", { children: ["Ready: ", Q.length] }),
|
|
668
|
+
/* @__PURE__ */ D("span", { children: ["With errors: ", $.length] }),
|
|
669
|
+
$.length > 0 ? /* @__PURE__ */ E(m, {
|
|
670
670
|
variant: "destructive",
|
|
671
671
|
children: "Invalid rows will be skipped"
|
|
672
672
|
}) : null
|
|
673
673
|
]
|
|
674
674
|
}),
|
|
675
|
-
$.length > 0 ? /* @__PURE__ */
|
|
675
|
+
$.length > 0 ? /* @__PURE__ */ D("div", {
|
|
676
676
|
className: "rounded-md border border-status-error-border/20 bg-status-error-bg/10 px-3 py-2 text-sm text-status-error-text",
|
|
677
677
|
children: [
|
|
678
678
|
$.length,
|
|
@@ -681,26 +681,26 @@ function k() {
|
|
|
681
681
|
" need attention. Only valid rows can be invited."
|
|
682
682
|
]
|
|
683
683
|
}) : null,
|
|
684
|
-
/* @__PURE__ */
|
|
684
|
+
/* @__PURE__ */ E("div", {
|
|
685
685
|
className: "overflow-hidden rounded-xl border",
|
|
686
|
-
children: /* @__PURE__ */
|
|
687
|
-
columns:
|
|
688
|
-
data:
|
|
686
|
+
children: /* @__PURE__ */ E(ke, {
|
|
687
|
+
columns: Be,
|
|
688
|
+
data: U,
|
|
689
689
|
rowKey: (e) => `${e.rowNumber}-${e.email}`
|
|
690
690
|
})
|
|
691
691
|
})
|
|
692
|
-
] }) : /* @__PURE__ */
|
|
692
|
+
] }) : /* @__PURE__ */ E("div", {
|
|
693
693
|
className: "rounded-xl border border-dashed p-6 text-center text-sm text-text-secondary",
|
|
694
694
|
children: "Upload a CSV to preview invite rows here before sending."
|
|
695
695
|
}),
|
|
696
|
-
/* @__PURE__ */
|
|
696
|
+
/* @__PURE__ */ E("div", {
|
|
697
697
|
className: "flex justify-end",
|
|
698
|
-
children: /* @__PURE__ */ h
|
|
698
|
+
children: /* @__PURE__ */ D(h, {
|
|
699
699
|
type: "button",
|
|
700
700
|
onClick: Nt,
|
|
701
|
-
disabled: Q.length === 0 ||
|
|
701
|
+
disabled: Q.length === 0 || St || G,
|
|
702
702
|
className: "gap-2",
|
|
703
|
-
children: [
|
|
703
|
+
children: [St || G ? /* @__PURE__ */ E(d, { className: "size-4 animate-spin" }) : /* @__PURE__ */ E(f, { className: "size-4" }), e(S, "workspaceInvite.sendBulkButton", "Send Bulk Invites")]
|
|
704
704
|
})
|
|
705
705
|
})
|
|
706
706
|
]
|
|
@@ -708,133 +708,133 @@ function k() {
|
|
|
708
708
|
]
|
|
709
709
|
}) })]
|
|
710
710
|
}),
|
|
711
|
-
/* @__PURE__ */
|
|
711
|
+
/* @__PURE__ */ D(b, {
|
|
712
712
|
treatment: "plain",
|
|
713
713
|
id: "invite-pending-section",
|
|
714
714
|
className: "border-border-seam",
|
|
715
|
-
children: [/* @__PURE__ */
|
|
715
|
+
children: [/* @__PURE__ */ E(_, { children: /* @__PURE__ */ D(v, {
|
|
716
716
|
className: "flex items-center gap-2",
|
|
717
717
|
children: [
|
|
718
|
-
/* @__PURE__ */
|
|
719
|
-
e(
|
|
720
|
-
/* @__PURE__ */ m
|
|
718
|
+
/* @__PURE__ */ E(pe, { className: "size-5 text-primary" }),
|
|
719
|
+
e(S, "workspaceInvite.pendingTitle", "Pending Invitations"),
|
|
720
|
+
/* @__PURE__ */ E(m, {
|
|
721
721
|
variant: "secondary",
|
|
722
722
|
className: "tabular-nums",
|
|
723
723
|
children: Z.length
|
|
724
724
|
})
|
|
725
725
|
]
|
|
726
|
-
}) }), /* @__PURE__ */
|
|
727
|
-
className: `mb-4 flex items-center gap-2 rounded-md border p-3 text-sm ${
|
|
728
|
-
children: [
|
|
729
|
-
}) : null,
|
|
726
|
+
}) }), /* @__PURE__ */ D(g, { children: [V ? /* @__PURE__ */ D("div", {
|
|
727
|
+
className: `mb-4 flex items-center gap-2 rounded-md border p-3 text-sm ${V.tone === "success" ? "border-status-success/30 bg-status-success/10 text-status-success-text" : "border-status-error-border/20 bg-status-error-bg/10 text-status-error-text"}`,
|
|
728
|
+
children: [V.tone === "success" ? /* @__PURE__ */ E(u, { className: "size-4 shrink-0" }) : /* @__PURE__ */ E(l, { className: "size-4 shrink-0" }), /* @__PURE__ */ E("span", { children: V.message })]
|
|
729
|
+
}) : null, et ? /* @__PURE__ */ D("div", {
|
|
730
730
|
className: "space-y-3",
|
|
731
|
-
children: [/* @__PURE__ */
|
|
732
|
-
}) :
|
|
731
|
+
children: [/* @__PURE__ */ E(x, { className: "h-20 w-full" }), /* @__PURE__ */ E(x, { className: "h-20 w-full" })]
|
|
732
|
+
}) : tt && Z.length === 0 ? /* @__PURE__ */ D("div", {
|
|
733
733
|
role: "alert",
|
|
734
734
|
className: "space-y-3 rounded-md border border-status-error-border/20 bg-status-error-bg/10 p-3 text-sm text-status-error-text",
|
|
735
|
-
children: [/* @__PURE__ */
|
|
735
|
+
children: [/* @__PURE__ */ E("p", { children: e(S, "workspaceInvite.pendingLoadFailed", "Failed to load pending invitations for this workspace.") }), /* @__PURE__ */ E(h, {
|
|
736
736
|
type: "button",
|
|
737
737
|
variant: "outline",
|
|
738
738
|
size: "sm",
|
|
739
739
|
className: "w-fit",
|
|
740
|
-
disabled:
|
|
740
|
+
disabled: N,
|
|
741
741
|
onClick: () => {
|
|
742
|
-
|
|
742
|
+
nt();
|
|
743
743
|
},
|
|
744
|
-
children:
|
|
744
|
+
children: N ? e(S, "workspaceInvite.retrying", "Retrying…") : e(S, "workspaceInvite.tryAgain", "Try again")
|
|
745
745
|
})]
|
|
746
|
-
}) : Z.length === 0 ? /* @__PURE__ */
|
|
746
|
+
}) : Z.length === 0 ? /* @__PURE__ */ E(Te, {
|
|
747
747
|
illustration: "empty-notifications",
|
|
748
|
-
title: e(
|
|
749
|
-
description: e(
|
|
750
|
-
}) : /* @__PURE__ */
|
|
748
|
+
title: e(S, "workspaceInvite.pendingEmptyTitle", "No pending invitations"),
|
|
749
|
+
description: e(S, "workspaceInvite.pendingEmpty", "Invitations you send for this workspace will show up here until they are accepted, so you can resend or cancel them.")
|
|
750
|
+
}) : /* @__PURE__ */ D("div", {
|
|
751
751
|
className: "space-y-3",
|
|
752
|
-
children: [
|
|
752
|
+
children: [tt ? /* @__PURE__ */ D("div", {
|
|
753
753
|
role: "alert",
|
|
754
754
|
className: "flex flex-wrap items-center justify-between gap-3 rounded-md border border-status-error-border/20 bg-status-error-bg/10 p-3 text-sm text-status-error-text",
|
|
755
|
-
children: [/* @__PURE__ */
|
|
755
|
+
children: [/* @__PURE__ */ E("span", { children: e(S, "workspaceInvite.pendingStaleWarning", "Pending invitations may be outdated. Try again to refresh this list.") }), /* @__PURE__ */ E(h, {
|
|
756
756
|
type: "button",
|
|
757
757
|
variant: "outline",
|
|
758
758
|
size: "sm",
|
|
759
759
|
className: "w-fit",
|
|
760
|
-
disabled:
|
|
760
|
+
disabled: N,
|
|
761
761
|
onClick: () => {
|
|
762
|
-
|
|
762
|
+
nt();
|
|
763
763
|
},
|
|
764
|
-
children:
|
|
764
|
+
children: N ? e(S, "workspaceInvite.retrying", "Retrying…") : e(S, "workspaceInvite.tryAgain", "Try again")
|
|
765
765
|
})]
|
|
766
766
|
}) : null, Z.map((e) => {
|
|
767
767
|
let r = n(e), i = t(e), a = Tt === e.id && (J || Y);
|
|
768
|
-
return /* @__PURE__ */
|
|
768
|
+
return /* @__PURE__ */ E("div", {
|
|
769
769
|
className: "rounded-lg border p-4",
|
|
770
|
-
children: /* @__PURE__ */
|
|
770
|
+
children: /* @__PURE__ */ D("div", {
|
|
771
771
|
className: "flex flex-col gap-4 lg:flex-row lg:items-start lg:justify-between",
|
|
772
|
-
children: [/* @__PURE__ */
|
|
772
|
+
children: [/* @__PURE__ */ D("div", {
|
|
773
773
|
className: "space-y-3",
|
|
774
774
|
children: [
|
|
775
|
-
/* @__PURE__ */
|
|
775
|
+
/* @__PURE__ */ D("div", {
|
|
776
776
|
className: "flex flex-wrap items-center gap-2",
|
|
777
|
-
children: [/* @__PURE__ */
|
|
777
|
+
children: [/* @__PURE__ */ E("p", {
|
|
778
778
|
className: "font-semibold",
|
|
779
779
|
children: e.email
|
|
780
|
-
}), /* @__PURE__ */ m
|
|
780
|
+
}), /* @__PURE__ */ E(m, {
|
|
781
781
|
variant: "outline",
|
|
782
782
|
children: e.status
|
|
783
783
|
})]
|
|
784
784
|
}),
|
|
785
|
-
/* @__PURE__ */
|
|
785
|
+
/* @__PURE__ */ D("div", {
|
|
786
786
|
className: "grid gap-3 text-sm text-text-secondary sm:grid-cols-2",
|
|
787
|
-
children: [/* @__PURE__ */
|
|
787
|
+
children: [/* @__PURE__ */ D("div", { children: [/* @__PURE__ */ E("p", {
|
|
788
788
|
className: "font-medium text-text-primary",
|
|
789
789
|
children: "Received"
|
|
790
|
-
}), /* @__PURE__ */
|
|
790
|
+
}), /* @__PURE__ */ E("p", { children: He(e.createdAt) ?? "—" })] }), /* @__PURE__ */ D("div", { children: [/* @__PURE__ */ E("p", {
|
|
791
791
|
className: "font-medium text-text-primary",
|
|
792
792
|
children: "Expires"
|
|
793
|
-
}), /* @__PURE__ */
|
|
793
|
+
}), /* @__PURE__ */ E("p", { children: He(e.expiresAt) ?? "—" })] })]
|
|
794
794
|
}),
|
|
795
|
-
/* @__PURE__ */
|
|
795
|
+
/* @__PURE__ */ D("div", { children: [/* @__PURE__ */ E("p", {
|
|
796
796
|
className: "mb-2 text-sm font-medium text-text-primary",
|
|
797
797
|
children: "Roles"
|
|
798
|
-
}), /* @__PURE__ */
|
|
798
|
+
}), /* @__PURE__ */ E("div", {
|
|
799
799
|
className: "flex flex-wrap gap-2",
|
|
800
|
-
children: r.length > 0 ? r.map((t, n) => /* @__PURE__ */ m
|
|
800
|
+
children: r.length > 0 ? r.map((t, n) => /* @__PURE__ */ E(m, {
|
|
801
801
|
variant: "outline",
|
|
802
802
|
children: t
|
|
803
|
-
}, `${e.id}-${e.roleIds[n] ?? t}`)) : /* @__PURE__ */
|
|
803
|
+
}, `${e.id}-${e.roleIds[n] ?? t}`)) : /* @__PURE__ */ E("span", {
|
|
804
804
|
className: "text-sm text-text-secondary",
|
|
805
805
|
children: "No roles selected"
|
|
806
806
|
})
|
|
807
807
|
})] }),
|
|
808
|
-
/* @__PURE__ */
|
|
808
|
+
/* @__PURE__ */ D("div", { children: [/* @__PURE__ */ E("p", {
|
|
809
809
|
className: "mb-2 text-sm font-medium text-text-primary",
|
|
810
810
|
children: "Projects"
|
|
811
|
-
}), /* @__PURE__ */
|
|
811
|
+
}), /* @__PURE__ */ E("div", {
|
|
812
812
|
className: "flex flex-wrap gap-2",
|
|
813
|
-
children: i.length > 0 ? i.map((t, n) => /* @__PURE__ */ m
|
|
813
|
+
children: i.length > 0 ? i.map((t, n) => /* @__PURE__ */ E(m, {
|
|
814
814
|
variant: "secondary",
|
|
815
815
|
children: t
|
|
816
|
-
}, `${e.id}-project-${t}-${n}`)) : /* @__PURE__ */
|
|
816
|
+
}, `${e.id}-project-${t}-${n}`)) : /* @__PURE__ */ E("span", {
|
|
817
817
|
className: "text-sm text-text-secondary",
|
|
818
818
|
children: "No project access will be granted automatically"
|
|
819
819
|
})
|
|
820
820
|
})] })
|
|
821
821
|
]
|
|
822
|
-
}), /* @__PURE__ */
|
|
822
|
+
}), /* @__PURE__ */ D("div", {
|
|
823
823
|
className: "flex gap-2",
|
|
824
|
-
children: [/* @__PURE__ */ h
|
|
824
|
+
children: [/* @__PURE__ */ D(h, {
|
|
825
825
|
type: "button",
|
|
826
826
|
variant: "outline",
|
|
827
827
|
disabled: J || Y,
|
|
828
828
|
onClick: () => Pt(e),
|
|
829
829
|
className: "gap-2",
|
|
830
|
-
children: [a && J ? /* @__PURE__ */
|
|
831
|
-
}), /* @__PURE__ */ h
|
|
830
|
+
children: [a && J ? /* @__PURE__ */ E(me, { className: "size-4 animate-spin" }) : /* @__PURE__ */ E(me, { className: "size-4" }), "Resend"]
|
|
831
|
+
}), /* @__PURE__ */ D(h, {
|
|
832
832
|
type: "button",
|
|
833
833
|
variant: "outline",
|
|
834
834
|
disabled: J || Y,
|
|
835
|
-
onClick: () =>
|
|
835
|
+
onClick: () => yt(e),
|
|
836
836
|
className: "gap-2",
|
|
837
|
-
children: [a && Y ? /* @__PURE__ */
|
|
837
|
+
children: [a && Y ? /* @__PURE__ */ E(d, { className: "size-4 animate-spin" }) : /* @__PURE__ */ E(p, { className: "size-4" }), "Cancel"]
|
|
838
838
|
})]
|
|
839
839
|
})]
|
|
840
840
|
})
|
|
@@ -845,13 +845,13 @@ function k() {
|
|
|
845
845
|
]
|
|
846
846
|
})] });
|
|
847
847
|
}
|
|
848
|
-
function
|
|
849
|
-
let { workspaceId: e } =
|
|
850
|
-
return /* @__PURE__ */
|
|
848
|
+
function Ke() {
|
|
849
|
+
let { workspaceId: e } = Re(), { workspaceId: t } = i();
|
|
850
|
+
return /* @__PURE__ */ E(T, {
|
|
851
851
|
scopeId: e || t || null,
|
|
852
852
|
gateway: "workspace",
|
|
853
853
|
debug: !1,
|
|
854
|
-
children: /* @__PURE__ */
|
|
854
|
+
children: /* @__PURE__ */ E(A, {})
|
|
855
855
|
});
|
|
856
856
|
}
|
|
857
|
-
export {
|
|
857
|
+
export { Ke as WorkspaceInvitePage };
|