@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.
Files changed (102) hide show
  1. package/dist/WorkspacesRoot.js +10 -9
  2. package/dist/WorkspacesRoutes.js +1 -2
  3. package/dist/components/CreateProjectDialog.js +22 -22
  4. package/dist/components/CreateWorkspaceDialog.js +8 -9
  5. package/dist/components/InviteMemberDialog.js +18 -23
  6. package/dist/components/MemberListItem.js +16 -17
  7. package/dist/components/ProjectCard.js +14 -15
  8. package/dist/components/ProjectMemberPickerDialog.js +92 -93
  9. package/dist/components/RenameProjectDialog.js +12 -17
  10. package/dist/components/WorkspaceCard.js +6 -7
  11. package/dist/components/WorkspaceContextPathSync.js +4 -5
  12. package/dist/components/WorkspacesErrorBoundary.js +6 -11
  13. package/dist/components/index.js +8 -7
  14. package/dist/components/tags/ProjectTagsWidget.js +56 -57
  15. package/dist/components/tags/WorkspaceTagsEditor.js +2 -3
  16. package/dist/constants/permissions.js +1 -2
  17. package/dist/generated/global-operations.js +1 -2
  18. package/dist/generated/wspace-operations.js +1 -2
  19. package/dist/hooks/index.js +9 -8
  20. package/dist/hooks/useMemberMutations.js +165 -166
  21. package/dist/hooks/useOpenWorkspace.js +1 -2
  22. package/dist/hooks/useOrgsWithPermission.js +2 -3
  23. package/dist/hooks/usePendingInvitations.d.ts +1 -1
  24. package/dist/hooks/usePendingInvitations.js +2 -3
  25. package/dist/hooks/useProjectMemberMutations.js +23 -24
  26. package/dist/hooks/useProjectMembers.d.ts +2 -2
  27. package/dist/hooks/useProjectMembers.js +2 -3
  28. package/dist/hooks/useProjectMutations.js +68 -69
  29. package/dist/hooks/useProjects.d.ts +3 -3
  30. package/dist/hooks/useProjects.js +5 -6
  31. package/dist/hooks/useScopedNavigation.js +1 -2
  32. package/dist/hooks/useTenants.d.ts +2 -2
  33. package/dist/hooks/useTenants.js +3 -4
  34. package/dist/hooks/useTr.js +1 -2
  35. package/dist/hooks/useWorkspaceActivity.d.ts +1 -1
  36. package/dist/hooks/useWorkspaceActivity.js +2 -3
  37. package/dist/hooks/useWorkspaceMembers.d.ts +5 -5
  38. package/dist/hooks/useWorkspaceMembers.js +7 -8
  39. package/dist/hooks/useWorkspaceMutations.js +70 -71
  40. package/dist/hooks/useWorkspacePermissions.js +1 -2
  41. package/dist/hooks/useWorkspaceRoles.d.ts +1 -1
  42. package/dist/hooks/useWorkspaceRoles.js +3 -4
  43. package/dist/hooks/useWorkspaces.d.ts +3 -3
  44. package/dist/hooks/useWorkspaces.js +4 -5
  45. package/dist/hooks/useWorkspacesEventEmitter.js +1 -2
  46. package/dist/hooks/useWorkspacesPageView.js +1 -2
  47. package/dist/index.js +15 -15
  48. package/dist/pages/ActivityListPage.js +28 -29
  49. package/dist/pages/CreateWorkspacePage.js +137 -138
  50. package/dist/pages/InviteAcceptancePage.js +65 -66
  51. package/dist/pages/MembersListPage.js +203 -204
  52. package/dist/pages/PendingInvitesPage.js +63 -64
  53. package/dist/pages/ProjectDetailPage.js +71 -72
  54. package/dist/pages/ProjectMembersPage.js +116 -117
  55. package/dist/pages/ProjectsListPage.js +62 -67
  56. package/dist/pages/WorkspaceDetailPage.js +153 -154
  57. package/dist/pages/WorkspaceInvitePage.js +88 -92
  58. package/dist/pages/WorkspaceSettingsPage.js +32 -33
  59. package/dist/pages/WorkspacesListPage.js +40 -41
  60. package/dist/pages/dashboard/DashboardCustomizer.js +98 -94
  61. package/dist/pages/dashboard/DashboardGrid.js +1 -2
  62. package/dist/pages/dashboard/DashboardPage.js +12 -13
  63. package/dist/pages/dashboard/WidgetWrapper.js +21 -21
  64. package/dist/pages/dashboard/config.js +3 -4
  65. package/dist/pages/dashboard/hooks/useDashboardData.d.ts +5 -5
  66. package/dist/pages/dashboard/hooks/useDashboardData.js +9 -10
  67. package/dist/pages/dashboard/hooks/useDashboardPreferences.js +7 -8
  68. package/dist/pages/dashboard/reorder.js +11 -14
  69. package/dist/pages/dashboard/widgets/AgentsWidget.js +13 -14
  70. package/dist/pages/dashboard/widgets/GroupsWidget.js +9 -10
  71. package/dist/pages/dashboard/widgets/MembersWidget.js +10 -11
  72. package/dist/pages/dashboard/widgets/ProjectsWidget.js +11 -12
  73. package/dist/pages/dashboard/widgets/QuickActionsWidget.js +28 -29
  74. package/dist/pages/dashboard/widgets/RecentActivityWidget.js +22 -23
  75. package/dist/pages/dashboard/widgets/SessionsWidget.js +28 -29
  76. package/dist/pages/dashboard/widgets/StorageWidget.js +19 -20
  77. package/dist/pages/dashboard/widgets/TagCloudWidget.js +9 -10
  78. package/dist/pages/dashboard/widgets/TipsWidget.js +5 -6
  79. package/dist/pages/dashboard/widgets/UpcomingEventsWidget.js +17 -18
  80. package/dist/pages/dashboard/widgets/VibesWidget.js +13 -14
  81. package/dist/pages/dashboard/widgets/WelcomeWidget.js +12 -13
  82. package/dist/pages/dashboard/widgets/WorkflowRunsWidget.js +16 -17
  83. package/dist/pages/dashboard/widgets/WorkflowStatsWidget.js +11 -12
  84. package/dist/pages/dashboard/widgets/WorkflowsOverviewWidget.js +17 -18
  85. package/dist/pages/dashboard/widgets/WorkspacesWidget.js +7 -8
  86. package/dist/pages/dashboard/widgets/tipsCatalog.js +1 -2
  87. package/dist/providers/WorkspacesProvider.js +1 -2
  88. package/dist/store/workspacesStore.d.ts +1 -1
  89. package/dist/store/workspacesStore.js +1 -2
  90. package/dist/test/happydom.d.ts +1 -0
  91. package/dist/translations/en.js +1 -2
  92. package/dist/utils/formatters.js +1 -2
  93. package/dist/utils/i18n.js +1 -2
  94. package/dist/utils/invitationDisplay.js +1 -2
  95. package/dist/utils/nativeBridge.js +1 -2
  96. package/dist/utils/pinnedRequest.js +2 -3
  97. package/dist/utils/projectTags.js +2 -3
  98. package/dist/utils/slug.js +1 -2
  99. package/dist/utils/telemetryError.js +13 -16
  100. package/dist/utils/tokenHelpers.js +1 -2
  101. package/dist/utils/workspaceBulkInviteCsv.js +3 -8
  102. package/package.json +72 -55
@@ -1,18 +1,18 @@
1
- import { useWorkspacesContext as e } from "../providers/WorkspacesProvider.js";
2
- import { tWithFallback as t } from "../utils/i18n.js";
3
- import { useWorkspacesPageView as n } from "../hooks/useWorkspacesPageView.js";
4
- import { useInvitation as r } from "../hooks/useWorkspaceMembers.js";
5
- import { useAcceptInvitation as i, useRejectInvitation as a } from "../hooks/useMemberMutations.js";
1
+ import { tWithFallback as e } from "../utils/i18n.js";
2
+ import { useInvitation as t } from "../hooks/useWorkspaceMembers.js";
3
+ import { useAcceptInvitation as n, useRejectInvitation as r } from "../hooks/useMemberMutations.js";
4
+ import { useWorkspacesPageView as i } from "../hooks/useWorkspacesPageView.js";
5
+ import { useWorkspacesContext as a } from "../providers/WorkspacesProvider.js";
6
6
  import { getProjectDisplayNames as o, getRoleDisplayNames as s, getWorkspaceDisplayName as c } from "../utils/invitationDisplay.js";
7
7
  import { AlertTriangle as l, Ban as u, CheckCircle as d, Clock as f, Home as p, Mail as m, RefreshCw as h, XCircle as g } from "lucide-react";
8
8
  import { Fragment as _, jsx as v, jsxs as y } from "react/jsx-runtime";
9
9
  import { Badge as b, Button as x, CardContent as S, CardDescription as C, CardHeader as w, CardTitle as T, GlassCard as E, PagePurpose as D, Skeleton as O } from "@burdenoff/fe-libs/ui";
10
10
  import { useI18n as k } from "@burdenoff/fe-libs/shared/providers/shell/I18nProvider";
11
11
  import { useLocation as A, useNavigate as j, useParams as M } from "react-router";
12
- //#region src/pages/InviteAcceptancePage.tsx
12
+ // src/pages/InviteAcceptancePage.tsx
13
13
  function N() {
14
- n("workspaces.invite");
15
- let { t: l } = k(), { invitationId: u } = M(), O = A(), N = j(), { authToken: V } = e(), H = u || O.pathname.split("/").filter(Boolean).at(-1) || "", U = !!V, W = H ? `/auth/login?returnTo=${encodeURIComponent(`/workspaces/invite/${H}`)}` : "/auth/login?returnTo=%2Fworkspaces%2Flist", { data: G, isLoading: K, error: q, refetch: J } = r(H || "", U), { mutate: Y, isPending: X } = i(), { mutate: ee, isPending: Z } = a(), te = G ? c(G) : null, Q = G ? s(G) : [], $ = G ? o(G) : [], ne = () => {
14
+ i("workspaces.invite");
15
+ let { t: l } = k(), { invitationId: u } = M(), O = A(), N = j(), { authToken: V } = a(), H = u || O.pathname.split("/").filter(Boolean).at(-1) || "", U = !!V, W = H ? `/auth/login?returnTo=${encodeURIComponent(`/workspaces/invite/${H}`)}` : "/auth/login?returnTo=%2Fworkspaces%2Flist", { data: G, isLoading: K, error: q, refetch: J } = t(H || "", U), { mutate: Y, isPending: X } = n(), { mutate: ee, isPending: Z } = r(), te = G ? c(G) : null, Q = G ? s(G) : [], $ = G ? o(G) : [], ne = () => {
16
16
  H && Y(H, {
17
17
  onSuccess: (e) => {
18
18
  let t = e.workspaceId || G?.workspaceId;
@@ -36,24 +36,24 @@ function N() {
36
36
  className: "text-primary",
37
37
  size: 24
38
38
  })
39
- }), /* @__PURE__ */ y("div", { children: [/* @__PURE__ */ v(T, { children: t(l, "inviteAcceptance.signInRequired", "Sign in to view your invitation") }), /* @__PURE__ */ v(C, { children: t(l, "inviteAcceptance.signInDescription", "Workspace invitations require an authenticated Burdenoff account before you can review or accept them.") })] })]
39
+ }), /* @__PURE__ */ y("div", { children: [/* @__PURE__ */ v(T, { children: e(l, "inviteAcceptance.signInRequired", "Sign in to view your invitation") }), /* @__PURE__ */ v(C, { children: e(l, "inviteAcceptance.signInDescription", "Workspace invitations require an authenticated Burdenoff account before you can review or accept them.") })] })]
40
40
  }) }), /* @__PURE__ */ y(S, {
41
41
  className: "space-y-4",
42
42
  children: [/* @__PURE__ */ v("p", {
43
43
  className: "text-sm text-text-secondary",
44
- children: t(l, "inviteAcceptance.signInHint", "Use the same email address that received the invitation, then come back here to accept or reject it.")
44
+ children: e(l, "inviteAcceptance.signInHint", "Use the same email address that received the invitation, then come back here to accept or reject it.")
45
45
  }), /* @__PURE__ */ y("div", {
46
46
  className: "flex flex-col gap-3 sm:flex-row",
47
47
  children: [/* @__PURE__ */ v(x, {
48
48
  asChild: !0,
49
49
  children: /* @__PURE__ */ v("a", {
50
50
  href: W,
51
- children: t(l, "inviteAcceptance.signInButton", "Sign In")
51
+ children: e(l, "inviteAcceptance.signInButton", "Sign In")
52
52
  })
53
53
  }), /* @__PURE__ */ y(x, {
54
54
  variant: "outline",
55
55
  onClick: () => N("/workspaces/list"),
56
- children: [/* @__PURE__ */ v(p, { className: "mr-2 size-4" }), t(l, "inviteAcceptance.backToWorkspaces", "Back to Workspaces")]
56
+ children: [/* @__PURE__ */ v(p, { className: "mr-2 size-4" }), e(l, "inviteAcceptance.backToWorkspaces", "Back to Workspaces")]
57
57
  })]
58
58
  })]
59
59
  })]
@@ -96,18 +96,18 @@ function N() {
96
96
  })
97
97
  }), /* @__PURE__ */ y("div", {
98
98
  className: "flex-1",
99
- children: [/* @__PURE__ */ v(T, { children: t(l, "inviteAcceptance.pageTitle", "Workspace Invitation") }), /* @__PURE__ */ v(C, { children: t(l, "inviteAcceptance.pageSubtitle", "You've been invited to join a workspace") })]
99
+ children: [/* @__PURE__ */ v(T, { children: e(l, "inviteAcceptance.pageTitle", "Workspace Invitation") }), /* @__PURE__ */ v(C, { children: e(l, "inviteAcceptance.pageSubtitle", "You've been invited to join a workspace") })]
100
100
  })]
101
101
  }) }), /* @__PURE__ */ y(S, {
102
102
  className: "space-y-6",
103
103
  children: [
104
- /* @__PURE__ */ v(D, { children: t(l, "inviteAcceptance.purpose", "Someone has invited you to join their workspace. Review the details below — which workspace it is, the roles and projects you would receive, and when the invite expires — then accept to become a member or reject to decline.") }),
104
+ /* @__PURE__ */ v(D, { children: e(l, "inviteAcceptance.purpose", "Someone has invited you to join their workspace. Review the details below — which workspace it is, the roles and projects you would receive, and when the invite expires — then accept to become a member or reject to decline.") }),
105
105
  /* @__PURE__ */ y("div", {
106
106
  className: "space-y-4 p-4 rounded-lg bg-bg-sunken/50",
107
107
  children: [
108
108
  /* @__PURE__ */ y("div", { children: [/* @__PURE__ */ v("p", {
109
109
  className: "text-sm font-medium text-text-secondary",
110
- children: t(l, "inviteAcceptance.emailAddressLabel", "Email Address")
110
+ children: e(l, "inviteAcceptance.emailAddressLabel", "Email Address")
111
111
  }), /* @__PURE__ */ v("p", {
112
112
  className: "text-lg font-medium mt-1",
113
113
  children: G.email
@@ -115,7 +115,7 @@ function N() {
115
115
  /* @__PURE__ */ y("div", { children: [
116
116
  /* @__PURE__ */ v("p", {
117
117
  className: "text-sm font-medium text-text-secondary",
118
- children: t(l, "inviteAcceptance.workspaceLabel", "Workspace")
118
+ children: e(l, "inviteAcceptance.workspaceLabel", "Workspace")
119
119
  }),
120
120
  /* @__PURE__ */ v("p", {
121
121
  className: "text-lg font-medium mt-1 break-words",
@@ -128,7 +128,7 @@ function N() {
128
128
  ] }),
129
129
  G.expiresAt && /* @__PURE__ */ y("div", { children: [/* @__PURE__ */ v("p", {
130
130
  className: "text-sm font-medium text-text-secondary",
131
- children: t(l, "inviteAcceptance.expiresLabel", "Expires")
131
+ children: e(l, "inviteAcceptance.expiresLabel", "Expires")
132
132
  }), /* @__PURE__ */ y("p", {
133
133
  className: "text-lg font-medium mt-1 flex items-center gap-2",
134
134
  children: [/* @__PURE__ */ v(f, {
@@ -144,7 +144,7 @@ function N() {
144
144
  })] }),
145
145
  Q.length > 0 && /* @__PURE__ */ y("div", { children: [/* @__PURE__ */ v("p", {
146
146
  className: "text-sm font-medium text-text-secondary mb-2",
147
- children: t(l, "inviteAcceptance.rolesLabel", "Roles")
147
+ children: e(l, "inviteAcceptance.rolesLabel", "Roles")
148
148
  }), /* @__PURE__ */ v("div", {
149
149
  className: "flex flex-wrap gap-2",
150
150
  children: Q.map((e, t) => /* @__PURE__ */ v(b, {
@@ -154,7 +154,7 @@ function N() {
154
154
  })] }),
155
155
  /* @__PURE__ */ y("div", { children: [/* @__PURE__ */ v("p", {
156
156
  className: "text-sm font-medium text-text-secondary mb-2",
157
- children: t(l, "inviteAcceptance.projectsLabel", "Projects")
157
+ children: e(l, "inviteAcceptance.projectsLabel", "Projects")
158
158
  }), /* @__PURE__ */ v("div", {
159
159
  className: "flex flex-wrap gap-2",
160
160
  children: $.length > 0 ? $.map((e, t) => /* @__PURE__ */ v(b, {
@@ -162,12 +162,12 @@ function N() {
162
162
  children: e
163
163
  }, `${G.id}-project-${e}-${t}`)) : /* @__PURE__ */ v("p", {
164
164
  className: "text-sm text-text-secondary",
165
- children: t(l, "inviteAcceptance.noProjects", "No project memberships will be granted automatically with this invitation.")
165
+ children: e(l, "inviteAcceptance.noProjects", "No project memberships will be granted automatically with this invitation.")
166
166
  })
167
167
  })] }),
168
168
  /* @__PURE__ */ y("div", { children: [/* @__PURE__ */ v("p", {
169
169
  className: "text-sm font-medium text-text-secondary",
170
- children: t(l, "inviteAcceptance.invitationIdLabel", "Invitation ID")
170
+ children: e(l, "inviteAcceptance.invitationIdLabel", "Invitation ID")
171
171
  }), /* @__PURE__ */ v("p", {
172
172
  className: "text-sm font-mono mt-1 text-text-secondary",
173
173
  children: G.id
@@ -181,14 +181,14 @@ function N() {
181
181
  disabled: X || Z,
182
182
  className: "flex-1",
183
183
  size: "lg",
184
- children: X ? /* @__PURE__ */ y(_, { children: [/* @__PURE__ */ v(h, { className: "mr-2 size-4 animate-spin" }), t(l, "inviteAcceptance.accepting", "Accepting...")] }) : /* @__PURE__ */ y(_, { children: [/* @__PURE__ */ v(d, { className: "mr-2 size-4" }), t(l, "inviteAcceptance.acceptButton", "Accept Invitation")] })
184
+ children: X ? /* @__PURE__ */ y(_, { children: [/* @__PURE__ */ v(h, { className: "mr-2 size-4 animate-spin" }), e(l, "inviteAcceptance.accepting", "Accepting...")] }) : /* @__PURE__ */ y(_, { children: [/* @__PURE__ */ v(d, { className: "mr-2 size-4" }), e(l, "inviteAcceptance.acceptButton", "Accept Invitation")] })
185
185
  }), /* @__PURE__ */ v(x, {
186
186
  variant: "outline",
187
187
  onClick: re,
188
188
  disabled: X || Z,
189
189
  className: "flex-1",
190
190
  size: "lg",
191
- children: Z ? /* @__PURE__ */ y(_, { children: [/* @__PURE__ */ v(h, { className: "mr-2 size-4 animate-spin" }), t(l, "inviteAcceptance.rejecting", "Rejecting...")] }) : /* @__PURE__ */ y(_, { children: [/* @__PURE__ */ v(g, { className: "mr-2 size-4" }), t(l, "inviteAcceptance.rejectButton", "Reject")] })
191
+ children: Z ? /* @__PURE__ */ y(_, { children: [/* @__PURE__ */ v(h, { className: "mr-2 size-4 animate-spin" }), e(l, "inviteAcceptance.rejecting", "Rejecting...")] }) : /* @__PURE__ */ y(_, { children: [/* @__PURE__ */ v(g, { className: "mr-2 size-4" }), e(l, "inviteAcceptance.rejectButton", "Reject")] })
192
192
  })]
193
193
  })
194
194
  ]
@@ -229,7 +229,7 @@ function P() {
229
229
  })
230
230
  });
231
231
  }
232
- function F({ error: e, onRetry: n }) {
232
+ function F({ error: t, onRetry: n }) {
233
233
  let { t: r } = k(), i = j();
234
234
  return /* @__PURE__ */ v("div", {
235
235
  className: "min-h-screen flex items-center justify-center p-4 bg-bg-sunken/30",
@@ -246,7 +246,7 @@ function F({ error: e, onRetry: n }) {
246
246
  })
247
247
  }), /* @__PURE__ */ y("div", {
248
248
  className: "flex-1",
249
- children: [/* @__PURE__ */ v(T, { children: t(r, "inviteAcceptance.errorTitle", "Error Loading Invitation") }), /* @__PURE__ */ v(C, { children: t(r, "inviteAcceptance.errorDescription", "We couldn't load this invitation. Please try again.") })]
249
+ children: [/* @__PURE__ */ v(T, { children: e(r, "inviteAcceptance.errorTitle", "Error Loading Invitation") }), /* @__PURE__ */ v(C, { children: e(r, "inviteAcceptance.errorDescription", "We couldn't load this invitation. Please try again.") })]
250
250
  })]
251
251
  }) }), /* @__PURE__ */ y(S, {
252
252
  className: "space-y-4",
@@ -254,22 +254,22 @@ function F({ error: e, onRetry: n }) {
254
254
  className: "flex gap-3 p-4 rounded-lg border border-status-error-border/50 bg-status-error-bg/10",
255
255
  children: [/* @__PURE__ */ v(l, { className: "size-5 text-status-error-text flex-shrink-0 mt-0.5" }), /* @__PURE__ */ y("div", { children: [/* @__PURE__ */ v("p", {
256
256
  className: "font-medium text-status-error-text",
257
- children: t(r, "inviteAcceptance.errorDetailsLabel", "Error Details")
257
+ children: e(r, "inviteAcceptance.errorDetailsLabel", "Error Details")
258
258
  }), /* @__PURE__ */ v("p", {
259
259
  className: "text-sm mt-1 text-status-error-text/90",
260
- children: e.message
260
+ children: t.message
261
261
  })] })]
262
262
  }), /* @__PURE__ */ y("div", {
263
263
  className: "flex gap-3",
264
264
  children: [/* @__PURE__ */ y(x, {
265
265
  onClick: n,
266
266
  className: "flex-1",
267
- children: [/* @__PURE__ */ v(h, { className: "mr-2 size-4" }), t(r, "inviteAcceptance.tryAgain", "Try Again")]
267
+ children: [/* @__PURE__ */ v(h, { className: "mr-2 size-4" }), e(r, "inviteAcceptance.tryAgain", "Try Again")]
268
268
  }), /* @__PURE__ */ y(x, {
269
269
  variant: "outline",
270
270
  onClick: () => i("/workspaces/list"),
271
271
  className: "flex-1",
272
- children: [/* @__PURE__ */ v(p, { className: "mr-2 size-4" }), t(r, "inviteAcceptance.goToWorkspaces", "Go to Workspaces")]
272
+ children: [/* @__PURE__ */ v(p, { className: "mr-2 size-4" }), e(r, "inviteAcceptance.goToWorkspaces", "Go to Workspaces")]
273
273
  })]
274
274
  })]
275
275
  })]
@@ -277,7 +277,7 @@ function F({ error: e, onRetry: n }) {
277
277
  });
278
278
  }
279
279
  function I() {
280
- let { t: e } = k(), n = j();
280
+ let { t } = k(), n = j();
281
281
  return /* @__PURE__ */ v("div", {
282
282
  className: "min-h-screen flex items-center justify-center p-4 bg-bg-sunken/30",
283
283
  children: /* @__PURE__ */ y(E, {
@@ -293,7 +293,7 @@ function I() {
293
293
  })
294
294
  }), /* @__PURE__ */ y("div", {
295
295
  className: "flex-1",
296
- children: [/* @__PURE__ */ v(T, { children: t(e, "inviteAcceptance.notFoundTitle", "Invitation Not Found") }), /* @__PURE__ */ v(C, { children: t(e, "inviteAcceptance.notFoundDescription", "This invitation link is invalid or has been removed") })]
296
+ children: [/* @__PURE__ */ v(T, { children: e(t, "inviteAcceptance.notFoundTitle", "Invitation Not Found") }), /* @__PURE__ */ v(C, { children: e(t, "inviteAcceptance.notFoundDescription", "This invitation link is invalid or has been removed") })]
297
297
  })]
298
298
  }) }), /* @__PURE__ */ y(S, {
299
299
  className: "space-y-4",
@@ -301,21 +301,21 @@ function I() {
301
301
  className: "flex gap-3 p-4 rounded-lg border border-border-subtle bg-bg-sunken/50",
302
302
  children: [/* @__PURE__ */ v(l, { className: "size-5 text-text-secondary flex-shrink-0 mt-0.5" }), /* @__PURE__ */ y("div", { children: [/* @__PURE__ */ v("p", {
303
303
  className: "font-medium",
304
- children: t(e, "inviteAcceptance.invalidLinkHeading", "Invalid Invitation Link")
304
+ children: e(t, "inviteAcceptance.invalidLinkHeading", "Invalid Invitation Link")
305
305
  }), /* @__PURE__ */ v("p", {
306
306
  className: "text-sm mt-1 text-text-secondary",
307
- children: t(e, "inviteAcceptance.invalidLinkBody", "The invitation you're trying to access doesn't exist. It may have been deleted or the link is incorrect.")
307
+ children: e(t, "inviteAcceptance.invalidLinkBody", "The invitation you're trying to access doesn't exist. It may have been deleted or the link is incorrect.")
308
308
  })] })]
309
309
  }), /* @__PURE__ */ y(x, {
310
310
  onClick: () => n("/workspaces/list"),
311
311
  className: "w-full",
312
- children: [/* @__PURE__ */ v(p, { className: "mr-2 size-4" }), t(e, "inviteAcceptance.goToWorkspaces", "Go to Workspaces")]
312
+ children: [/* @__PURE__ */ v(p, { className: "mr-2 size-4" }), e(t, "inviteAcceptance.goToWorkspaces", "Go to Workspaces")]
313
313
  })]
314
314
  })]
315
315
  })
316
316
  });
317
317
  }
318
- function L({ invitation: e }) {
318
+ function L({ invitation: t }) {
319
319
  let { t: n } = k(), r = j();
320
320
  return /* @__PURE__ */ v("div", {
321
321
  className: "min-h-screen flex items-center justify-center p-4 bg-bg-sunken/30",
@@ -332,7 +332,7 @@ function L({ invitation: e }) {
332
332
  })
333
333
  }), /* @__PURE__ */ y("div", {
334
334
  className: "flex-1",
335
- children: [/* @__PURE__ */ v(T, { children: t(n, "inviteAcceptance.alreadyAcceptedTitle", "Invitation Already Accepted") }), /* @__PURE__ */ v(C, { children: t(n, "inviteAcceptance.alreadyAcceptedDescription", "This invitation has already been accepted") })]
335
+ children: [/* @__PURE__ */ v(T, { children: e(n, "inviteAcceptance.alreadyAcceptedTitle", "Invitation Already Accepted") }), /* @__PURE__ */ v(C, { children: e(n, "inviteAcceptance.alreadyAcceptedDescription", "This invitation has already been accepted") })]
336
336
  })]
337
337
  }) }), /* @__PURE__ */ y(S, {
338
338
  className: "space-y-4",
@@ -340,28 +340,28 @@ function L({ invitation: e }) {
340
340
  className: "flex gap-3 p-4 rounded-lg border border-status-success/30 bg-status-success/10 transition-colors",
341
341
  children: [/* @__PURE__ */ v(d, { className: "size-5 text-status-success flex-shrink-0 mt-0.5" }), /* @__PURE__ */ y("div", { children: [/* @__PURE__ */ v("p", {
342
342
  className: "font-medium text-status-success",
343
- children: t(n, "inviteAcceptance.alreadyMember", "You're already a member")
343
+ children: e(n, "inviteAcceptance.alreadyMember", "You're already a member")
344
344
  }), /* @__PURE__ */ y("p", {
345
345
  className: "text-sm mt-1 text-status-success/80",
346
346
  children: [
347
- t(n, "inviteAcceptance.alreadyAcceptedPrefix", "This invitation to "),
347
+ e(n, "inviteAcceptance.alreadyAcceptedPrefix", "This invitation to "),
348
348
  /* @__PURE__ */ v("span", {
349
349
  className: "font-medium",
350
- children: e.email
350
+ children: t.email
351
351
  }),
352
- t(n, "inviteAcceptance.alreadyAcceptedSuffix", " has already been accepted.")
352
+ e(n, "inviteAcceptance.alreadyAcceptedSuffix", " has already been accepted.")
353
353
  ]
354
354
  })] })]
355
355
  }), /* @__PURE__ */ v(x, {
356
- onClick: () => r(`/workspaces/${e.workspaceId}/members`),
356
+ onClick: () => r(`/workspaces/${t.workspaceId}/members`),
357
357
  className: "w-full",
358
- children: t(n, "inviteAcceptance.goToWorkspace", "Go to Workspace")
358
+ children: e(n, "inviteAcceptance.goToWorkspace", "Go to Workspace")
359
359
  })]
360
360
  })]
361
361
  })
362
362
  });
363
363
  }
364
- function R({ invitation: e }) {
364
+ function R({ invitation: t }) {
365
365
  let { t: n } = k(), r = j();
366
366
  return /* @__PURE__ */ v("div", {
367
367
  className: "min-h-screen flex items-center justify-center p-4 bg-bg-sunken/30",
@@ -378,7 +378,7 @@ function R({ invitation: e }) {
378
378
  })
379
379
  }), /* @__PURE__ */ y("div", {
380
380
  className: "flex-1",
381
- children: [/* @__PURE__ */ v(T, { children: t(n, "inviteAcceptance.rejectedTitle", "Invitation Rejected") }), /* @__PURE__ */ v(C, { children: t(n, "inviteAcceptance.rejectedDescription", "You've already declined this invitation") })]
381
+ children: [/* @__PURE__ */ v(T, { children: e(n, "inviteAcceptance.rejectedTitle", "Invitation Rejected") }), /* @__PURE__ */ v(C, { children: e(n, "inviteAcceptance.rejectedDescription", "You've already declined this invitation") })]
382
382
  })]
383
383
  }) }), /* @__PURE__ */ y(S, {
384
384
  className: "space-y-4",
@@ -386,28 +386,28 @@ function R({ invitation: e }) {
386
386
  className: "flex gap-3 p-4 rounded-lg border border-border-subtle bg-bg-sunken/50",
387
387
  children: [/* @__PURE__ */ v(g, { className: "size-5 text-text-secondary flex-shrink-0 mt-0.5" }), /* @__PURE__ */ y("div", { children: [/* @__PURE__ */ v("p", {
388
388
  className: "font-medium",
389
- children: t(n, "inviteAcceptance.invitationDeclined", "Invitation Declined")
389
+ children: e(n, "inviteAcceptance.invitationDeclined", "Invitation Declined")
390
390
  }), /* @__PURE__ */ y("p", {
391
391
  className: "text-sm mt-1 text-text-secondary",
392
392
  children: [
393
- t(n, "inviteAcceptance.rejectedPrefix", "This invitation to "),
393
+ e(n, "inviteAcceptance.rejectedPrefix", "This invitation to "),
394
394
  /* @__PURE__ */ v("span", {
395
395
  className: "font-medium",
396
- children: e.email
396
+ children: t.email
397
397
  }),
398
- t(n, "inviteAcceptance.rejectedSuffix", " was previously rejected.")
398
+ e(n, "inviteAcceptance.rejectedSuffix", " was previously rejected.")
399
399
  ]
400
400
  })] })]
401
401
  }), /* @__PURE__ */ y(x, {
402
402
  onClick: () => r("/workspaces/list"),
403
403
  className: "w-full",
404
- children: [/* @__PURE__ */ v(p, { className: "mr-2 size-4" }), t(n, "inviteAcceptance.goToWorkspaces", "Go to Workspaces")]
404
+ children: [/* @__PURE__ */ v(p, { className: "mr-2 size-4" }), e(n, "inviteAcceptance.goToWorkspaces", "Go to Workspaces")]
405
405
  })]
406
406
  })]
407
407
  })
408
408
  });
409
409
  }
410
- function z({ invitation: e }) {
410
+ function z({ invitation: t }) {
411
411
  let { t: n } = k(), r = j();
412
412
  return /* @__PURE__ */ v("div", {
413
413
  className: "min-h-screen flex items-center justify-center p-4 bg-bg-sunken/30",
@@ -424,7 +424,7 @@ function z({ invitation: e }) {
424
424
  })
425
425
  }), /* @__PURE__ */ y("div", {
426
426
  className: "flex-1",
427
- children: [/* @__PURE__ */ v(T, { children: t(n, "inviteAcceptance.expiredTitle", "Invitation Expired") }), /* @__PURE__ */ v(C, { children: t(n, "inviteAcceptance.expiredDescription", "This invitation has expired") })]
427
+ children: [/* @__PURE__ */ v(T, { children: e(n, "inviteAcceptance.expiredTitle", "Invitation Expired") }), /* @__PURE__ */ v(C, { children: e(n, "inviteAcceptance.expiredDescription", "This invitation has expired") })]
428
428
  })]
429
429
  }) }), /* @__PURE__ */ y(S, {
430
430
  className: "space-y-4",
@@ -433,18 +433,18 @@ function z({ invitation: e }) {
433
433
  children: [/* @__PURE__ */ v(f, { className: "size-5 text-status-warning flex-shrink-0 mt-0.5" }), /* @__PURE__ */ y("div", { children: [
434
434
  /* @__PURE__ */ v("p", {
435
435
  className: "font-medium text-status-warning",
436
- children: t(n, "inviteAcceptance.expiredHeading", "Invitation No Longer Valid")
436
+ children: e(n, "inviteAcceptance.expiredHeading", "Invitation No Longer Valid")
437
437
  }),
438
438
  /* @__PURE__ */ y("p", {
439
439
  className: "text-sm mt-1 text-status-warning/80",
440
440
  children: [
441
- t(n, "inviteAcceptance.expiredPrefix", "This invitation to "),
441
+ e(n, "inviteAcceptance.expiredPrefix", "This invitation to "),
442
442
  /* @__PURE__ */ v("span", {
443
443
  className: "font-medium",
444
- children: e.email
444
+ children: t.email
445
445
  }),
446
- t(n, "inviteAcceptance.expiredMiddle", " expired on "),
447
- e.expiresAt && new Date(e.expiresAt).toLocaleDateString("en-US", {
446
+ e(n, "inviteAcceptance.expiredMiddle", " expired on "),
447
+ t.expiresAt && new Date(t.expiresAt).toLocaleDateString("en-US", {
448
448
  year: "numeric",
449
449
  month: "long",
450
450
  day: "numeric"
@@ -454,19 +454,19 @@ function z({ invitation: e }) {
454
454
  }),
455
455
  /* @__PURE__ */ v("p", {
456
456
  className: "text-sm mt-2 text-status-warning/80",
457
- children: t(n, "inviteAcceptance.expiredContactAdmin", "Please contact the workspace admin to request a new invitation.")
457
+ children: e(n, "inviteAcceptance.expiredContactAdmin", "Please contact the workspace admin to request a new invitation.")
458
458
  })
459
459
  ] })]
460
460
  }), /* @__PURE__ */ y(x, {
461
461
  onClick: () => r("/workspaces/list"),
462
462
  className: "w-full",
463
- children: [/* @__PURE__ */ v(p, { className: "mr-2 size-4" }), t(n, "inviteAcceptance.goToWorkspaces", "Go to Workspaces")]
463
+ children: [/* @__PURE__ */ v(p, { className: "mr-2 size-4" }), e(n, "inviteAcceptance.goToWorkspaces", "Go to Workspaces")]
464
464
  })]
465
465
  })]
466
466
  })
467
467
  });
468
468
  }
469
- function B({ invitation: e }) {
469
+ function B({ invitation: t }) {
470
470
  let { t: n } = k(), r = j();
471
471
  return /* @__PURE__ */ v("div", {
472
472
  className: "min-h-screen flex items-center justify-center p-4 bg-bg-sunken/30",
@@ -483,7 +483,7 @@ function B({ invitation: e }) {
483
483
  })
484
484
  }), /* @__PURE__ */ y("div", {
485
485
  className: "flex-1",
486
- children: [/* @__PURE__ */ v(T, { children: t(n, "inviteAcceptance.cancelledTitle", "Invitation Cancelled") }), /* @__PURE__ */ v(C, { children: t(n, "inviteAcceptance.cancelledDescription", "This invitation has been cancelled by the sender") })]
486
+ children: [/* @__PURE__ */ v(T, { children: e(n, "inviteAcceptance.cancelledTitle", "Invitation Cancelled") }), /* @__PURE__ */ v(C, { children: e(n, "inviteAcceptance.cancelledDescription", "This invitation has been cancelled by the sender") })]
487
487
  })]
488
488
  }) }), /* @__PURE__ */ y(S, {
489
489
  className: "space-y-4",
@@ -491,26 +491,25 @@ function B({ invitation: e }) {
491
491
  className: "flex gap-3 p-4 rounded-lg border border-status-error-border/50 bg-status-error-bg/10",
492
492
  children: [/* @__PURE__ */ v(u, { className: "size-5 text-status-error-text flex-shrink-0 mt-0.5" }), /* @__PURE__ */ y("div", { children: [/* @__PURE__ */ v("p", {
493
493
  className: "font-medium text-status-error-text",
494
- children: t(n, "inviteAcceptance.cancelledHeading", "Invitation No Longer Available")
494
+ children: e(n, "inviteAcceptance.cancelledHeading", "Invitation No Longer Available")
495
495
  }), /* @__PURE__ */ y("p", {
496
496
  className: "text-sm mt-1 text-status-error-text/90",
497
497
  children: [
498
- t(n, "inviteAcceptance.cancelledPrefix", "This invitation to "),
498
+ e(n, "inviteAcceptance.cancelledPrefix", "This invitation to "),
499
499
  /* @__PURE__ */ v("span", {
500
500
  className: "font-medium",
501
- children: e.email
501
+ children: t.email
502
502
  }),
503
- t(n, "inviteAcceptance.cancelledSuffix", " was cancelled by the workspace admin and is no longer valid.")
503
+ e(n, "inviteAcceptance.cancelledSuffix", " was cancelled by the workspace admin and is no longer valid.")
504
504
  ]
505
505
  })] })]
506
506
  }), /* @__PURE__ */ y(x, {
507
507
  onClick: () => r("/workspaces/list"),
508
508
  className: "w-full",
509
- children: [/* @__PURE__ */ v(p, { className: "mr-2 size-4" }), t(n, "inviteAcceptance.goToWorkspaces", "Go to Workspaces")]
509
+ children: [/* @__PURE__ */ v(p, { className: "mr-2 size-4" }), e(n, "inviteAcceptance.goToWorkspaces", "Go to Workspaces")]
510
510
  })]
511
511
  })]
512
512
  })
513
513
  });
514
514
  }
515
- //#endregion
516
515
  export { N as InviteAcceptancePage };