@burdenoff/microfe-organization 2026.1026.1 → 2026.1101.2
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/generated/global-operations.js +57 -58
- package/dist/generated/global-operations.js.map +1 -1
- package/dist/generated/global-types.js +1 -2
- package/dist/generated/global-types.js.map +1 -1
- package/dist/node_modules/sonner/dist/index.js +2 -3
- package/dist/node_modules/sonner/dist/index.js.map +1 -1
- package/dist/node_modules/zod/v4/classic/errors.js +44 -0
- package/dist/node_modules/zod/v4/classic/errors.js.map +1 -0
- package/dist/node_modules/zod/v4/classic/parse.js +7 -0
- package/dist/node_modules/zod/v4/classic/parse.js.map +1 -0
- package/dist/node_modules/zod/v4/classic/schemas.js +652 -0
- package/dist/node_modules/zod/v4/classic/schemas.js.map +1 -0
- package/dist/node_modules/zod/v4/core/api.js +429 -0
- package/dist/node_modules/zod/v4/core/api.js.map +1 -0
- package/dist/node_modules/zod/v4/core/checks.js +143 -0
- package/dist/node_modules/zod/v4/core/checks.js.map +1 -0
- package/dist/node_modules/zod/v4/core/core.js +84 -0
- package/dist/node_modules/zod/v4/core/core.js.map +1 -0
- package/dist/node_modules/zod/v4/core/doc.js +29 -0
- package/dist/node_modules/zod/v4/core/doc.js.map +1 -0
- package/dist/node_modules/zod/v4/core/errors.js +90 -0
- package/dist/node_modules/zod/v4/core/errors.js.map +1 -0
- package/dist/node_modules/zod/v4/core/json-schema-processors.js +285 -0
- package/dist/node_modules/zod/v4/core/json-schema-processors.js.map +1 -0
- package/dist/node_modules/zod/v4/core/memoizer.js +188 -0
- package/dist/node_modules/zod/v4/core/memoizer.js.map +1 -0
- package/dist/node_modules/zod/v4/core/parse.js +159 -0
- package/dist/node_modules/zod/v4/core/parse.js.map +1 -0
- package/dist/node_modules/zod/v4/core/regexes.js +34 -0
- package/dist/node_modules/zod/v4/core/regexes.js.map +1 -0
- package/dist/node_modules/zod/v4/core/registries.js +41 -0
- package/dist/node_modules/zod/v4/core/registries.js.map +1 -0
- package/dist/node_modules/zod/v4/core/schemas.js +979 -0
- package/dist/node_modules/zod/v4/core/schemas.js.map +1 -0
- package/dist/node_modules/zod/v4/core/to-json-schema.js +330 -0
- package/dist/node_modules/zod/v4/core/to-json-schema.js.map +1 -0
- package/dist/node_modules/zod/v4/core/util.js +417 -0
- package/dist/node_modules/zod/v4/core/util.js.map +1 -0
- package/dist/node_modules/zod/v4/core/versions.js +9 -0
- package/dist/node_modules/zod/v4/core/versions.js.map +1 -0
- package/dist/node_modules/zod/v4/locales/en.js +96 -0
- package/dist/node_modules/zod/v4/locales/en.js.map +1 -0
- package/dist/organization-management/AdminOrganizationRoot.js +13 -10
- package/dist/organization-management/AdminOrganizationRoot.js.map +1 -1
- package/dist/organization-management/AdminOrganizationRoutes.js +8 -9
- package/dist/organization-management/AdminOrganizationRoutes.js.map +1 -1
- package/dist/organization-management/UserOrganizationRoot.js +13 -10
- package/dist/organization-management/UserOrganizationRoot.js.map +1 -1
- package/dist/organization-management/UserOrganizationRoutes.js +1 -2
- package/dist/organization-management/UserOrganizationRoutes.js.map +1 -1
- package/dist/organization-management/constants/permissions.js +1 -2
- package/dist/organization-management/constants/permissions.js.map +1 -1
- package/dist/organization-management/hooks/useOrganizationEventEmitter.js +1 -2
- package/dist/organization-management/hooks/useOrganizationEventEmitter.js.map +1 -1
- package/dist/organization-management/hooks/useOrganizationPageView.js +1 -2
- package/dist/organization-management/hooks/useOrganizationPageView.js.map +1 -1
- package/dist/organization-management/modules/members/components/BulkInviteForm.js +3 -3
- package/dist/organization-management/modules/members/components/BulkInviteForm.js.map +1 -1
- package/dist/organization-management/modules/members/components/InviteMemberForm.js +1 -2
- package/dist/organization-management/modules/members/components/InviteMemberForm.js.map +1 -1
- package/dist/organization-management/modules/members/components/InviteStatusBadge.js +1 -2
- package/dist/organization-management/modules/members/components/InviteStatusBadge.js.map +1 -1
- package/dist/organization-management/modules/members/components/MemberRoleBadge.js +1 -2
- package/dist/organization-management/modules/members/components/MemberRoleBadge.js.map +1 -1
- package/dist/organization-management/modules/members/components/MyInviteCard.js +5 -6
- package/dist/organization-management/modules/members/components/MyInviteCard.js.map +1 -1
- package/dist/organization-management/modules/members/components/PendingInvitesList.js +8 -9
- package/dist/organization-management/modules/members/components/PendingInvitesList.js.map +1 -1
- package/dist/organization-management/modules/members/hooks/useInvites.js +2 -3
- package/dist/organization-management/modules/members/hooks/useInvites.js.map +1 -1
- package/dist/organization-management/modules/members/hooks/useMembers.js +1 -2
- package/dist/organization-management/modules/members/hooks/useMembers.js.map +1 -1
- package/dist/organization-management/modules/members/hooks/useWorkspaceInvites.js +1 -2
- package/dist/organization-management/modules/members/hooks/useWorkspaceInvites.js.map +1 -1
- package/dist/organization-management/modules/members/pages/InviteMemberPage.js +16 -17
- package/dist/organization-management/modules/members/pages/InviteMemberPage.js.map +1 -1
- package/dist/organization-management/modules/members/pages/InvitePeoplePage.js +14 -15
- package/dist/organization-management/modules/members/pages/InvitePeoplePage.js.map +1 -1
- package/dist/organization-management/modules/members/pages/MemberDetailPage.js +18 -19
- package/dist/organization-management/modules/members/pages/MemberDetailPage.js.map +1 -1
- package/dist/organization-management/modules/members/pages/MembersListPage.js +142 -143
- package/dist/organization-management/modules/members/pages/MembersListPage.js.map +1 -1
- package/dist/organization-management/modules/members/pages/MyInvitesPage.js +168 -169
- package/dist/organization-management/modules/members/pages/MyInvitesPage.js.map +1 -1
- package/dist/organization-management/modules/members/pages/OrganizationInviteAcceptancePage.js +13 -14
- package/dist/organization-management/modules/members/pages/OrganizationInviteAcceptancePage.js.map +1 -1
- package/dist/organization-management/modules/members/utils/bulkInviteCsv.js +4 -10
- package/dist/organization-management/modules/members/utils/bulkInviteCsv.js.map +1 -1
- package/dist/organization-management/modules/members/utils/workspaceInvitationDisplay.js +1 -2
- package/dist/organization-management/modules/members/utils/workspaceInvitationDisplay.js.map +1 -1
- package/dist/organization-management/modules/organizations/components/OrganizationForm.js +14 -15
- package/dist/organization-management/modules/organizations/components/OrganizationForm.js.map +1 -1
- package/dist/organization-management/modules/organizations/components/OrganizationStatusBadge.js +1 -2
- package/dist/organization-management/modules/organizations/components/OrganizationStatusBadge.js.map +1 -1
- package/dist/organization-management/modules/organizations/hooks/useOrganizations.js +2 -3
- package/dist/organization-management/modules/organizations/hooks/useOrganizations.js.map +1 -1
- package/dist/organization-management/modules/organizations/hooks/useOrgsWithPermission.js +22 -21
- package/dist/organization-management/modules/organizations/hooks/useOrgsWithPermission.js.map +1 -1
- package/dist/organization-management/modules/organizations/pages/OrganizationCreatePage.js +18 -19
- package/dist/organization-management/modules/organizations/pages/OrganizationCreatePage.js.map +1 -1
- package/dist/organization-management/modules/organizations/pages/OrganizationDetailPage.js +29 -30
- package/dist/organization-management/modules/organizations/pages/OrganizationDetailPage.js.map +1 -1
- package/dist/organization-management/modules/organizations/pages/OrganizationEditPage.js +14 -15
- package/dist/organization-management/modules/organizations/pages/OrganizationEditPage.js.map +1 -1
- package/dist/organization-management/modules/organizations/pages/OrganizationsListPage.js +33 -34
- package/dist/organization-management/modules/organizations/pages/OrganizationsListPage.js.map +1 -1
- package/dist/organization-management/modules/organizations/schemas/index.js +11 -12
- package/dist/organization-management/modules/organizations/schemas/index.js.map +1 -1
- package/dist/organization-management/modules/workspaces/components/AddWorkspaceMemberDialog.js +16 -24
- package/dist/organization-management/modules/workspaces/components/AddWorkspaceMemberDialog.js.map +1 -1
- package/dist/organization-management/modules/workspaces/components/WorkspaceCard.js +5 -6
- package/dist/organization-management/modules/workspaces/components/WorkspaceCard.js.map +1 -1
- package/dist/organization-management/modules/workspaces/components/WorkspaceForm.js +31 -32
- package/dist/organization-management/modules/workspaces/components/WorkspaceForm.js.map +1 -1
- package/dist/organization-management/modules/workspaces/components/WorkspaceStatusBadge.js +1 -2
- package/dist/organization-management/modules/workspaces/components/WorkspaceStatusBadge.js.map +1 -1
- package/dist/organization-management/modules/workspaces/hooks/useWorkspaceMembers.js +1 -2
- package/dist/organization-management/modules/workspaces/hooks/useWorkspaceMembers.js.map +1 -1
- package/dist/organization-management/modules/workspaces/hooks/useWorkspaces.js +11 -12
- package/dist/organization-management/modules/workspaces/hooks/useWorkspaces.js.map +1 -1
- package/dist/organization-management/modules/workspaces/pages/WorkspaceCreatePage.js +18 -19
- package/dist/organization-management/modules/workspaces/pages/WorkspaceCreatePage.js.map +1 -1
- package/dist/organization-management/modules/workspaces/pages/WorkspaceDetailPage.js +43 -44
- package/dist/organization-management/modules/workspaces/pages/WorkspaceDetailPage.js.map +1 -1
- package/dist/organization-management/modules/workspaces/pages/WorkspaceEditPage.js +19 -20
- package/dist/organization-management/modules/workspaces/pages/WorkspaceEditPage.js.map +1 -1
- package/dist/organization-management/modules/workspaces/pages/WorkspacesListPage.js +240 -241
- package/dist/organization-management/modules/workspaces/pages/WorkspacesListPage.js.map +1 -1
- package/dist/organization-management/modules/workspaces/schemas/index.js +6 -7
- package/dist/organization-management/modules/workspaces/schemas/index.js.map +1 -1
- package/dist/organization-management/providers/OrgConsoleProvider.js +1 -2
- package/dist/organization-management/providers/OrgConsoleProvider.js.map +1 -1
- package/dist/organization-management/providers/OrgScopedPermissions.js +1 -2
- package/dist/organization-management/providers/OrgScopedPermissions.js.map +1 -1
- package/dist/organization-management/shared/components/dialog/ConfirmDialog.js +1 -2
- package/dist/organization-management/shared/components/dialog/ConfirmDialog.js.map +1 -1
- package/dist/organization-management/shared/components/dialog/ConfirmDialogView.js +1 -2
- package/dist/organization-management/shared/components/dialog/ConfirmDialogView.js.map +1 -1
- package/dist/organization-management/shared/components/feedback/ErrorState.js +1 -2
- package/dist/organization-management/shared/components/feedback/ErrorState.js.map +1 -1
- package/dist/organization-management/shared/components/feedback/LoadingState.js +1 -2
- package/dist/organization-management/shared/components/feedback/LoadingState.js.map +1 -1
- package/dist/organization-management/shared/components/input/SearchInput.js +1 -2
- package/dist/organization-management/shared/components/input/SearchInput.js.map +1 -1
- package/dist/organization-management/shared/components/input/SelectionCheckbox.js +1 -2
- package/dist/organization-management/shared/components/input/SelectionCheckbox.js.map +1 -1
- package/dist/organization-management/shared/hooks/useDebouncedValue.js +1 -2
- package/dist/organization-management/shared/hooks/useDebouncedValue.js.map +1 -1
- package/dist/organization-management/shared/hooks/useTr.js +1 -2
- package/dist/organization-management/shared/hooks/useTr.js.map +1 -1
- package/dist/organization-management/shared/logger.js +1 -2
- package/dist/organization-management/shared/logger.js.map +1 -1
- package/dist/organization-management/shared/recaptcha.js +1 -2
- package/dist/organization-management/shared/recaptcha.js.map +1 -1
- package/dist/organization-management/shared/types/graphql.js +1 -2
- package/dist/organization-management/shared/types/graphql.js.map +1 -1
- package/dist/utils/nativeBridge.js +1 -2
- package/package.json +8 -6
- package/dist/node_modules/zod/v3/ZodError.js +0 -82
- package/dist/node_modules/zod/v3/ZodError.js.map +0 -1
- package/dist/node_modules/zod/v3/errors.js +0 -10
- package/dist/node_modules/zod/v3/errors.js.map +0 -1
- package/dist/node_modules/zod/v3/helpers/errorUtil.js +0 -9
- package/dist/node_modules/zod/v3/helpers/errorUtil.js.map +0 -1
- package/dist/node_modules/zod/v3/helpers/parseUtil.js +0 -93
- package/dist/node_modules/zod/v3/helpers/parseUtil.js.map +0 -1
- package/dist/node_modules/zod/v3/helpers/util.js +0 -76
- package/dist/node_modules/zod/v3/helpers/util.js.map +0 -1
- package/dist/node_modules/zod/v3/locales/en.js +0 -62
- package/dist/node_modules/zod/v3/locales/en.js.map +0 -1
- package/dist/node_modules/zod/v3/types.js +0 -2441
- package/dist/node_modules/zod/v3/types.js.map +0 -1
|
@@ -1,21 +1,21 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
9
|
-
import { getProjectDisplayNames as
|
|
10
|
-
import { useMemo as
|
|
11
|
-
import { AlertCircle as
|
|
12
|
-
import { Badge as
|
|
13
|
-
import { usePermissions as
|
|
14
|
-
import { jsx as
|
|
15
|
-
import { NavLink as
|
|
16
|
-
import { ActorIdentity as
|
|
17
|
-
|
|
18
|
-
function
|
|
1
|
+
import { useAcceptInvite as e, useMyInvites as t, useRejectInvite as n } from "../hooks/useInvites.js";
|
|
2
|
+
import { useAcceptWorkspaceInvite as r, useMyWorkspaceInvites as i, useRejectWorkspaceInvite as a } from "../hooks/useWorkspaceInvites.js";
|
|
3
|
+
import { MyInviteCard as o } from "../components/MyInviteCard.js";
|
|
4
|
+
import { LoadingState as s } from "../../../shared/components/feedback/LoadingState.js";
|
|
5
|
+
import { InviteStatus as ee } from "../../../../generated/global-types.js";
|
|
6
|
+
import { useTr as c } from "../../../shared/hooks/useTr.js";
|
|
7
|
+
import { useOrganizationPageView as l } from "../../../hooks/useOrganizationPageView.js";
|
|
8
|
+
import { useOrgConsole as u } from "../../../providers/OrgConsoleProvider.js";
|
|
9
|
+
import { getProjectDisplayNames as d, getRoleDisplayNames as te, getWorkspaceDisplayName as f } from "../utils/workspaceInvitationDisplay.js";
|
|
10
|
+
import { useMemo as p, useState as m } from "react";
|
|
11
|
+
import { AlertCircle as ne, BriefcaseBusiness as re, Loader2 as h, Mail as g } from "lucide-react";
|
|
12
|
+
import { Badge as _, GlassCard as v, IllustratedEmptyState as y, PagePurpose as ie } from "@burdenoff/fe-libs/ui";
|
|
13
|
+
import { usePermissions as b } from "@burdenoff/fe-libs/shared/providers/shell";
|
|
14
|
+
import { jsx as x, jsxs as S } from "react/jsx-runtime";
|
|
15
|
+
import { NavLink as C } from "react-router";
|
|
16
|
+
import { ActorIdentity as ae, useActorProfiles as w } from "@burdenoff/fe-libs/shared";
|
|
17
|
+
// src/organization-management/modules/members/pages/MyInvitesPage.tsx
|
|
18
|
+
function T(e) {
|
|
19
19
|
if (!e) return null;
|
|
20
20
|
let t = new Date(e);
|
|
21
21
|
return Number.isNaN(t.getTime()) ? null : t.toLocaleDateString(void 0, {
|
|
@@ -26,329 +26,329 @@ function E(e) {
|
|
|
26
26
|
minute: "2-digit"
|
|
27
27
|
});
|
|
28
28
|
}
|
|
29
|
-
function
|
|
29
|
+
function E(e, t) {
|
|
30
30
|
return (e.endsWith("/") ? e.slice(0, -1) : e) + (t.startsWith("/") ? t : `/${t}`);
|
|
31
31
|
}
|
|
32
|
-
function
|
|
32
|
+
function D({ activeTab: e, basePath: t, tr: n }) {
|
|
33
33
|
let r = (e) => ["border-b-2 px-4 py-2 text-sm font-medium transition-colors", e ? "border-[var(--color-border-focus)] text-[var(--color-text-primary)]" : "border-transparent text-[var(--color-text-muted)] hover:text-[var(--color-text-primary)]"].join(" ");
|
|
34
|
-
return /* @__PURE__ */
|
|
34
|
+
return /* @__PURE__ */ S("div", {
|
|
35
35
|
className: "mb-6 flex gap-2 border-b border-[var(--color-border-default)]",
|
|
36
|
-
children: [/* @__PURE__ */
|
|
37
|
-
to:
|
|
36
|
+
children: [/* @__PURE__ */ x(C, {
|
|
37
|
+
to: E(t, "/invites"),
|
|
38
38
|
end: !0,
|
|
39
39
|
className: r(e === "workspace"),
|
|
40
40
|
children: n("members.myInvites.workspaceTab", "Workspace Invites")
|
|
41
|
-
}), /* @__PURE__ */
|
|
42
|
-
to:
|
|
41
|
+
}), /* @__PURE__ */ x(C, {
|
|
42
|
+
to: E(t, "/invites/organizations"),
|
|
43
43
|
className: r(e === "organization"),
|
|
44
44
|
children: n("members.myInvites.organizationTab", "Organization Invites")
|
|
45
45
|
})]
|
|
46
46
|
});
|
|
47
47
|
}
|
|
48
|
-
function
|
|
49
|
-
|
|
50
|
-
let
|
|
48
|
+
function O({ activeTab: C = "workspace" }) {
|
|
49
|
+
l(C === "workspace" ? "organizations.my-workspace-invites" : "organizations.my-organization-invites");
|
|
50
|
+
let E = c(), { isLoading: O } = b(), { basePath: k = "/organizations", currentUser: A, authToken: oe, apiGatewayUrl: se } = u(), j = C === "organization", M = C === "workspace", { invites: N, loading: P, error: F, total: I } = t(ee.Pending, 20, 0, j), { invites: L, loading: R, error: z, total: B, refetch: V } = i(A?.email, M), { acceptInvite: H, loading: U } = e(), { rejectInvite: W, loading: G } = n(), { acceptInvite: K, loading: ce } = r(), { rejectInvite: le, loading: ue } = a(), [q, J] = m(null), Y = q?.tab === C ? q.message : null, [X, Z] = m(null), de = p(() => L.flatMap((e) => e.invitedById ? [{
|
|
51
51
|
actorId: e.invitedById,
|
|
52
52
|
actorType: "user"
|
|
53
|
-
}] : []), [
|
|
54
|
-
apiGatewayUrl:
|
|
55
|
-
authToken:
|
|
56
|
-
}), Q =
|
|
53
|
+
}] : []), [L]), fe = w(de, {
|
|
54
|
+
apiGatewayUrl: se,
|
|
55
|
+
authToken: oe
|
|
56
|
+
}), Q = p(() => [...L].sort((e, t) => new Date(t.createdAt).getTime() - new Date(e.createdAt).getTime()), [L]), $ = C === "workspace" ? B : I, pe = async (e) => {
|
|
57
57
|
try {
|
|
58
|
-
J(null), await
|
|
58
|
+
J(null), await H(e);
|
|
59
59
|
} catch (e) {
|
|
60
60
|
J({
|
|
61
61
|
tab: "organization",
|
|
62
|
-
message: e instanceof Error ? e.message :
|
|
62
|
+
message: e instanceof Error ? e.message : E("members.myInvites.acceptFailed", "Failed to accept invite")
|
|
63
63
|
});
|
|
64
64
|
}
|
|
65
|
-
},
|
|
65
|
+
}, me = async (e) => {
|
|
66
66
|
try {
|
|
67
|
-
J(null), await
|
|
67
|
+
J(null), await W(e);
|
|
68
68
|
} catch (e) {
|
|
69
69
|
J({
|
|
70
70
|
tab: "organization",
|
|
71
|
-
message: e instanceof Error ? e.message :
|
|
71
|
+
message: e instanceof Error ? e.message : E("members.myInvites.rejectFailed", "Failed to reject invite")
|
|
72
72
|
});
|
|
73
73
|
}
|
|
74
|
-
},
|
|
74
|
+
}, he = async (e) => {
|
|
75
75
|
try {
|
|
76
76
|
Z({
|
|
77
77
|
inviteId: e,
|
|
78
78
|
action: "accept"
|
|
79
|
-
}), J(null), await
|
|
79
|
+
}), J(null), await K(e), await V().catch(() => void 0);
|
|
80
80
|
} catch (e) {
|
|
81
81
|
J({
|
|
82
82
|
tab: "workspace",
|
|
83
|
-
message: e instanceof Error ? e.message :
|
|
83
|
+
message: e instanceof Error ? e.message : E("members.myInvites.workspaceAcceptFailed", "Failed to accept workspace invite")
|
|
84
84
|
});
|
|
85
85
|
} finally {
|
|
86
86
|
Z((t) => t?.inviteId === e && t.action === "accept" ? null : t);
|
|
87
87
|
}
|
|
88
|
-
},
|
|
88
|
+
}, ge = async (e) => {
|
|
89
89
|
try {
|
|
90
90
|
Z({
|
|
91
91
|
inviteId: e,
|
|
92
92
|
action: "reject"
|
|
93
|
-
}), J(null), await le(e), await
|
|
93
|
+
}), J(null), await le(e), await V().catch(() => void 0);
|
|
94
94
|
} catch (e) {
|
|
95
95
|
J({
|
|
96
96
|
tab: "workspace",
|
|
97
|
-
message: e instanceof Error ? e.message :
|
|
97
|
+
message: e instanceof Error ? e.message : E("members.myInvites.workspaceRejectFailed", "Failed to reject workspace invite")
|
|
98
98
|
});
|
|
99
99
|
} finally {
|
|
100
100
|
Z((t) => t?.inviteId === e && t.action === "reject" ? null : t);
|
|
101
101
|
}
|
|
102
102
|
};
|
|
103
|
-
return
|
|
103
|
+
return O ? /* @__PURE__ */ x("div", {
|
|
104
104
|
className: "min-h-full bg-[var(--color-bg-canvas)] p-6",
|
|
105
|
-
children: /* @__PURE__ */
|
|
106
|
-
}) :
|
|
105
|
+
children: /* @__PURE__ */ x(s, { message: E("common.loadingPermissions", "Loading permissions...") })
|
|
106
|
+
}) : M && !A?.email ? /* @__PURE__ */ x("div", {
|
|
107
107
|
className: "min-h-full bg-[var(--color-bg-canvas)] px-4 py-6 sm:px-6",
|
|
108
|
-
children: /* @__PURE__ */
|
|
108
|
+
children: /* @__PURE__ */ S("div", {
|
|
109
109
|
className: "max-w-4xl mx-auto",
|
|
110
110
|
children: [
|
|
111
|
-
/* @__PURE__ */
|
|
111
|
+
/* @__PURE__ */ S("div", {
|
|
112
112
|
className: "mb-6 flex items-center gap-3",
|
|
113
|
-
children: [/* @__PURE__ */
|
|
113
|
+
children: [/* @__PURE__ */ x(g, {
|
|
114
114
|
size: 24,
|
|
115
115
|
className: "text-[var(--color-text-primary)]"
|
|
116
|
-
}), /* @__PURE__ */
|
|
116
|
+
}), /* @__PURE__ */ x("h1", {
|
|
117
117
|
className: "text-2xl font-bold text-[var(--color-text-primary)]",
|
|
118
|
-
children:
|
|
118
|
+
children: E("members.myInvites.title", "My Invites")
|
|
119
119
|
})]
|
|
120
120
|
}),
|
|
121
|
-
/* @__PURE__ */
|
|
122
|
-
activeTab:
|
|
123
|
-
basePath:
|
|
124
|
-
tr:
|
|
121
|
+
/* @__PURE__ */ x(D, {
|
|
122
|
+
activeTab: C,
|
|
123
|
+
basePath: k,
|
|
124
|
+
tr: E
|
|
125
125
|
}),
|
|
126
|
-
/* @__PURE__ */
|
|
126
|
+
/* @__PURE__ */ x("div", {
|
|
127
127
|
className: "rounded-xl border border-[var(--color-border-default)] bg-[var(--color-bg-surface)] p-6 text-center",
|
|
128
|
-
children: /* @__PURE__ */
|
|
128
|
+
children: /* @__PURE__ */ x("p", {
|
|
129
129
|
className: "text-[var(--color-text-secondary)]",
|
|
130
|
-
children:
|
|
130
|
+
children: E("members.myInvites.signInWorkspace", "Sign in to view your workspace invites.")
|
|
131
131
|
})
|
|
132
132
|
})
|
|
133
133
|
]
|
|
134
134
|
})
|
|
135
|
-
}) :
|
|
135
|
+
}) : j && P && N.length === 0 || M && R && L.length === 0 ? /* @__PURE__ */ x("div", {
|
|
136
136
|
className: "min-h-full bg-[var(--color-bg-canvas)] px-4 py-6 sm:px-6",
|
|
137
|
-
children: /* @__PURE__ */
|
|
137
|
+
children: /* @__PURE__ */ S("div", {
|
|
138
138
|
className: "max-w-4xl mx-auto",
|
|
139
139
|
children: [
|
|
140
|
-
/* @__PURE__ */
|
|
140
|
+
/* @__PURE__ */ S("div", {
|
|
141
141
|
className: "mb-6 flex items-center gap-3",
|
|
142
|
-
children: [/* @__PURE__ */
|
|
142
|
+
children: [/* @__PURE__ */ x(g, {
|
|
143
143
|
size: 24,
|
|
144
144
|
className: "text-[var(--color-text-primary)]"
|
|
145
|
-
}), /* @__PURE__ */
|
|
145
|
+
}), /* @__PURE__ */ x("h1", {
|
|
146
146
|
className: "text-2xl font-bold text-[var(--color-text-primary)]",
|
|
147
|
-
children:
|
|
147
|
+
children: E("members.myInvites.title", "My Invites")
|
|
148
148
|
})]
|
|
149
149
|
}),
|
|
150
|
-
/* @__PURE__ */
|
|
151
|
-
activeTab:
|
|
152
|
-
basePath:
|
|
153
|
-
tr:
|
|
150
|
+
/* @__PURE__ */ x(D, {
|
|
151
|
+
activeTab: C,
|
|
152
|
+
basePath: k,
|
|
153
|
+
tr: E
|
|
154
154
|
}),
|
|
155
|
-
/* @__PURE__ */
|
|
155
|
+
/* @__PURE__ */ x("div", {
|
|
156
156
|
className: "flex items-center justify-center min-h-[300px] rounded-xl border border-[var(--color-border-default)] bg-[var(--color-bg-surface)]",
|
|
157
|
-
children: /* @__PURE__ */
|
|
157
|
+
children: /* @__PURE__ */ x(h, {
|
|
158
158
|
size: 24,
|
|
159
159
|
className: "animate-spin text-[var(--color-text-muted)]"
|
|
160
160
|
})
|
|
161
161
|
})
|
|
162
162
|
]
|
|
163
163
|
})
|
|
164
|
-
}) :
|
|
164
|
+
}) : j && F ? /* @__PURE__ */ x("div", {
|
|
165
165
|
className: "min-h-full bg-[var(--color-bg-canvas)] px-4 py-6 sm:px-6",
|
|
166
|
-
children: /* @__PURE__ */
|
|
166
|
+
children: /* @__PURE__ */ S("div", {
|
|
167
167
|
className: "max-w-4xl mx-auto",
|
|
168
168
|
children: [
|
|
169
|
-
/* @__PURE__ */
|
|
169
|
+
/* @__PURE__ */ S("div", {
|
|
170
170
|
className: "mb-6 flex items-center gap-3",
|
|
171
|
-
children: [/* @__PURE__ */
|
|
171
|
+
children: [/* @__PURE__ */ x(g, {
|
|
172
172
|
size: 24,
|
|
173
173
|
className: "text-[var(--color-text-primary)]"
|
|
174
|
-
}), /* @__PURE__ */
|
|
174
|
+
}), /* @__PURE__ */ x("h1", {
|
|
175
175
|
className: "text-2xl font-bold text-[var(--color-text-primary)]",
|
|
176
|
-
children:
|
|
176
|
+
children: E("members.myInvites.title", "My Invites")
|
|
177
177
|
})]
|
|
178
178
|
}),
|
|
179
|
-
/* @__PURE__ */
|
|
180
|
-
activeTab:
|
|
181
|
-
basePath:
|
|
182
|
-
tr:
|
|
179
|
+
/* @__PURE__ */ x(D, {
|
|
180
|
+
activeTab: C,
|
|
181
|
+
basePath: k,
|
|
182
|
+
tr: E
|
|
183
183
|
}),
|
|
184
|
-
/* @__PURE__ */
|
|
184
|
+
/* @__PURE__ */ x("div", {
|
|
185
185
|
className: "rounded-xl border border-[var(--color-status-error-border)] bg-[var(--color-status-error-bgSubtle)] p-6 text-center",
|
|
186
|
-
children: /* @__PURE__ */
|
|
186
|
+
children: /* @__PURE__ */ S("p", {
|
|
187
187
|
className: "text-[var(--color-status-error-text)]",
|
|
188
188
|
children: [
|
|
189
|
-
|
|
189
|
+
E("members.myInvites.loadFailed", "Failed to load invites"),
|
|
190
190
|
": ",
|
|
191
|
-
|
|
191
|
+
F.message
|
|
192
192
|
]
|
|
193
193
|
})
|
|
194
194
|
})
|
|
195
195
|
]
|
|
196
196
|
})
|
|
197
|
-
}) :
|
|
197
|
+
}) : M && z ? /* @__PURE__ */ x("div", {
|
|
198
198
|
className: "min-h-full bg-[var(--color-bg-canvas)] px-4 py-6 sm:px-6",
|
|
199
|
-
children: /* @__PURE__ */
|
|
199
|
+
children: /* @__PURE__ */ S("div", {
|
|
200
200
|
className: "max-w-4xl mx-auto",
|
|
201
201
|
children: [
|
|
202
|
-
/* @__PURE__ */
|
|
202
|
+
/* @__PURE__ */ S("div", {
|
|
203
203
|
className: "mb-6 flex items-center gap-3",
|
|
204
|
-
children: [/* @__PURE__ */
|
|
204
|
+
children: [/* @__PURE__ */ x(g, {
|
|
205
205
|
size: 24,
|
|
206
206
|
className: "text-[var(--color-text-primary)]"
|
|
207
|
-
}), /* @__PURE__ */
|
|
207
|
+
}), /* @__PURE__ */ x("h1", {
|
|
208
208
|
className: "text-2xl font-bold text-[var(--color-text-primary)]",
|
|
209
|
-
children:
|
|
209
|
+
children: E("members.myInvites.title", "My Invites")
|
|
210
210
|
})]
|
|
211
211
|
}),
|
|
212
|
-
/* @__PURE__ */
|
|
213
|
-
activeTab:
|
|
214
|
-
basePath:
|
|
215
|
-
tr:
|
|
212
|
+
/* @__PURE__ */ x(D, {
|
|
213
|
+
activeTab: C,
|
|
214
|
+
basePath: k,
|
|
215
|
+
tr: E
|
|
216
216
|
}),
|
|
217
|
-
/* @__PURE__ */
|
|
217
|
+
/* @__PURE__ */ x("div", {
|
|
218
218
|
className: "rounded-xl border border-[var(--color-status-error-border)] bg-[var(--color-status-error-bgSubtle)] p-6 text-center",
|
|
219
|
-
children: /* @__PURE__ */
|
|
219
|
+
children: /* @__PURE__ */ S("p", {
|
|
220
220
|
className: "text-[var(--color-status-error-text)]",
|
|
221
221
|
children: [
|
|
222
|
-
|
|
222
|
+
E("members.myInvites.workspaceLoadFailed", "Failed to load workspace invites"),
|
|
223
223
|
":",
|
|
224
224
|
" ",
|
|
225
|
-
|
|
225
|
+
z.message
|
|
226
226
|
]
|
|
227
227
|
})
|
|
228
228
|
})
|
|
229
229
|
]
|
|
230
230
|
})
|
|
231
|
-
}) : /* @__PURE__ */
|
|
231
|
+
}) : /* @__PURE__ */ x("div", {
|
|
232
232
|
className: "min-h-full bg-[var(--color-bg-canvas)] px-4 py-6 sm:px-6",
|
|
233
|
-
children: /* @__PURE__ */
|
|
233
|
+
children: /* @__PURE__ */ S("div", {
|
|
234
234
|
className: "max-w-4xl mx-auto",
|
|
235
235
|
children: [
|
|
236
|
-
/* @__PURE__ */
|
|
236
|
+
/* @__PURE__ */ S("div", {
|
|
237
237
|
className: "flex items-center gap-3 mb-6",
|
|
238
238
|
children: [
|
|
239
|
-
/* @__PURE__ */
|
|
239
|
+
/* @__PURE__ */ x(g, {
|
|
240
240
|
size: 24,
|
|
241
241
|
className: "text-[var(--color-text-primary)]"
|
|
242
242
|
}),
|
|
243
|
-
/* @__PURE__ */
|
|
243
|
+
/* @__PURE__ */ x("h1", {
|
|
244
244
|
className: "text-2xl font-bold text-[var(--color-text-primary)]",
|
|
245
|
-
children:
|
|
245
|
+
children: E("members.myInvites.title", "My Invites")
|
|
246
246
|
}),
|
|
247
|
-
$ > 0 && /* @__PURE__ */
|
|
247
|
+
$ > 0 && /* @__PURE__ */ x("span", {
|
|
248
248
|
className: "px-2.5 py-0.5 rounded-full text-xs font-medium bg-[var(--color-action-primary-bg)] text-[var(--color-action-primary-text)]",
|
|
249
249
|
children: $
|
|
250
250
|
})
|
|
251
251
|
]
|
|
252
252
|
}),
|
|
253
|
-
/* @__PURE__ */
|
|
254
|
-
activeTab:
|
|
255
|
-
basePath:
|
|
256
|
-
tr:
|
|
253
|
+
/* @__PURE__ */ x(D, {
|
|
254
|
+
activeTab: C,
|
|
255
|
+
basePath: k,
|
|
256
|
+
tr: E
|
|
257
257
|
}),
|
|
258
|
-
/* @__PURE__ */
|
|
258
|
+
/* @__PURE__ */ x(ie, {
|
|
259
259
|
className: "mb-4 max-w-3xl",
|
|
260
|
-
children:
|
|
260
|
+
children: E("members.myInvites.purpose", "This is your personal inbox for invitations — when someone invites you to a workspace or organization, accept it here to gain access, or decline if it was not meant for you. Switch tabs to review each type of invite.")
|
|
261
261
|
}),
|
|
262
|
-
Y && /* @__PURE__ */
|
|
262
|
+
Y && /* @__PURE__ */ S("div", {
|
|
263
263
|
className: "mb-4 flex items-center gap-2 rounded-lg border border-[var(--color-status-error-border)] bg-[var(--color-status-error-bgSubtle)] p-3",
|
|
264
|
-
children: [/* @__PURE__ */
|
|
264
|
+
children: [/* @__PURE__ */ x(ne, {
|
|
265
265
|
size: 16,
|
|
266
266
|
className: "shrink-0 text-[var(--color-status-error-text)]"
|
|
267
|
-
}), /* @__PURE__ */
|
|
267
|
+
}), /* @__PURE__ */ x("p", {
|
|
268
268
|
className: "text-sm text-[var(--color-status-error-text)]",
|
|
269
269
|
children: Y
|
|
270
270
|
})]
|
|
271
271
|
}),
|
|
272
|
-
|
|
272
|
+
M ? Q.length === 0 ? /* @__PURE__ */ x(v, {
|
|
273
273
|
treatment: "glass",
|
|
274
274
|
glow: !0,
|
|
275
275
|
className: "rounded-xl",
|
|
276
|
-
children: /* @__PURE__ */
|
|
276
|
+
children: /* @__PURE__ */ x(y, {
|
|
277
277
|
illustration: "empty-notifications",
|
|
278
|
-
title:
|
|
279
|
-
description:
|
|
278
|
+
title: E("members.myInvites.workspaceEmptyTitle", "No pending workspace invites"),
|
|
279
|
+
description: E("members.myInvites.workspaceEmptyDescription", "When someone invites you to a workspace, it will appear here.")
|
|
280
280
|
})
|
|
281
|
-
}) : /* @__PURE__ */
|
|
281
|
+
}) : /* @__PURE__ */ x("div", {
|
|
282
282
|
className: "space-y-3",
|
|
283
283
|
children: Q.map((e) => {
|
|
284
|
-
let t =
|
|
285
|
-
return /* @__PURE__ */
|
|
284
|
+
let t = f(e), n = te(e), r = d(e, E), i = e.invitedById ? fe[e.invitedById] : void 0, a = i?.displayName || i?.email || E("members.myInvites.invitedByFallback", "Someone"), o = X?.inviteId === e.id && X?.action === "accept" && ce, s = X?.inviteId === e.id && X?.action === "reject" && ue;
|
|
285
|
+
return /* @__PURE__ */ x(v, {
|
|
286
286
|
treatment: "insight",
|
|
287
287
|
className: "border-border-seam p-5",
|
|
288
|
-
children: /* @__PURE__ */
|
|
288
|
+
children: /* @__PURE__ */ S("div", {
|
|
289
289
|
className: "flex flex-col gap-4 lg:flex-row lg:items-start lg:justify-between",
|
|
290
|
-
children: [/* @__PURE__ */
|
|
290
|
+
children: [/* @__PURE__ */ S("div", {
|
|
291
291
|
className: "min-w-0 space-y-3",
|
|
292
292
|
children: [
|
|
293
|
-
/* @__PURE__ */
|
|
293
|
+
/* @__PURE__ */ S("div", {
|
|
294
294
|
className: "flex items-start gap-3",
|
|
295
|
-
children: [/* @__PURE__ */
|
|
295
|
+
children: [/* @__PURE__ */ x("div", {
|
|
296
296
|
className: "rounded-lg bg-[var(--color-bg-subtle)] p-2",
|
|
297
|
-
children: /* @__PURE__ */
|
|
297
|
+
children: /* @__PURE__ */ x(re, {
|
|
298
298
|
size: 20,
|
|
299
299
|
className: "text-[var(--color-text-secondary)]"
|
|
300
300
|
})
|
|
301
|
-
}), /* @__PURE__ */
|
|
301
|
+
}), /* @__PURE__ */ S("div", {
|
|
302
302
|
className: "min-w-0",
|
|
303
|
-
children: [/* @__PURE__ */
|
|
303
|
+
children: [/* @__PURE__ */ x("h3", {
|
|
304
304
|
className: "font-semibold text-[var(--color-text-primary)] break-words",
|
|
305
305
|
children: t
|
|
306
|
-
}), /* @__PURE__ */
|
|
306
|
+
}), /* @__PURE__ */ x("p", {
|
|
307
307
|
className: "mt-1 text-sm text-[var(--color-text-secondary)] break-all",
|
|
308
308
|
children: e.email
|
|
309
309
|
})]
|
|
310
310
|
})]
|
|
311
311
|
}),
|
|
312
|
-
/* @__PURE__ */
|
|
312
|
+
/* @__PURE__ */ S("div", {
|
|
313
313
|
className: "flex flex-wrap items-center gap-2",
|
|
314
|
-
children: [/* @__PURE__ */
|
|
314
|
+
children: [/* @__PURE__ */ x(_, {
|
|
315
315
|
variant: "secondary",
|
|
316
316
|
children: e.status
|
|
317
|
-
}), n.map((t) => /* @__PURE__ */
|
|
317
|
+
}), n.map((t) => /* @__PURE__ */ x(_, {
|
|
318
318
|
variant: "outline",
|
|
319
319
|
children: t
|
|
320
320
|
}, `${e.id}-${t}`))]
|
|
321
321
|
}),
|
|
322
|
-
/* @__PURE__ */
|
|
322
|
+
/* @__PURE__ */ S("dl", {
|
|
323
323
|
className: "grid gap-3 text-sm text-[var(--color-text-secondary)] sm:grid-cols-2",
|
|
324
324
|
children: [
|
|
325
|
-
/* @__PURE__ */
|
|
325
|
+
/* @__PURE__ */ S("div", { children: [/* @__PURE__ */ x("dt", {
|
|
326
326
|
className: "font-medium text-[var(--color-text-primary)]",
|
|
327
|
-
children:
|
|
328
|
-
}), /* @__PURE__ */
|
|
327
|
+
children: E("members.myInvites.invitedByLabel", "Invited by")
|
|
328
|
+
}), /* @__PURE__ */ x("dd", {
|
|
329
329
|
className: "break-all",
|
|
330
|
-
children: i ? /* @__PURE__ */
|
|
330
|
+
children: i ? /* @__PURE__ */ x(ae, {
|
|
331
331
|
profile: i,
|
|
332
332
|
variant: "inline",
|
|
333
333
|
hideIdDrilldown: !0
|
|
334
334
|
}) : a
|
|
335
335
|
})] }),
|
|
336
|
-
/* @__PURE__ */
|
|
336
|
+
/* @__PURE__ */ S("div", { children: [/* @__PURE__ */ x("dt", {
|
|
337
337
|
className: "font-medium text-[var(--color-text-primary)]",
|
|
338
|
-
children:
|
|
339
|
-
}), /* @__PURE__ */
|
|
340
|
-
/* @__PURE__ */
|
|
338
|
+
children: E("members.myInvites.receivedLabel", "Received")
|
|
339
|
+
}), /* @__PURE__ */ x("dd", { children: T(e.createdAt) ?? "—" })] }),
|
|
340
|
+
/* @__PURE__ */ S("div", { children: [/* @__PURE__ */ x("dt", {
|
|
341
341
|
className: "font-medium text-[var(--color-text-primary)]",
|
|
342
|
-
children:
|
|
343
|
-
}), /* @__PURE__ */
|
|
344
|
-
r.length > 0 ? /* @__PURE__ */
|
|
342
|
+
children: E("members.myInvites.expiresLabel", "Expires")
|
|
343
|
+
}), /* @__PURE__ */ x("dd", { children: T(e.expiresAt) ?? "—" })] }),
|
|
344
|
+
r.length > 0 ? /* @__PURE__ */ S("div", {
|
|
345
345
|
className: "sm:col-span-2",
|
|
346
|
-
children: [/* @__PURE__ */
|
|
346
|
+
children: [/* @__PURE__ */ x("dt", {
|
|
347
347
|
className: "font-medium text-[var(--color-text-primary)]",
|
|
348
|
-
children:
|
|
349
|
-
}), /* @__PURE__ */
|
|
348
|
+
children: E("members.myInvites.projectsLabel", "Projects")
|
|
349
|
+
}), /* @__PURE__ */ x("dd", {
|
|
350
350
|
className: "mt-1 flex flex-wrap gap-2",
|
|
351
|
-
children: r.map((t) => /* @__PURE__ */
|
|
351
|
+
children: r.map((t) => /* @__PURE__ */ x(_, {
|
|
352
352
|
variant: "outline",
|
|
353
353
|
children: t
|
|
354
354
|
}, `${e.id}-${t}`))
|
|
@@ -357,55 +357,54 @@ function k({ activeTab: w = "workspace" }) {
|
|
|
357
357
|
]
|
|
358
358
|
})
|
|
359
359
|
]
|
|
360
|
-
}), /* @__PURE__ */
|
|
360
|
+
}), /* @__PURE__ */ S("div", {
|
|
361
361
|
className: "flex flex-wrap items-center gap-2 shrink-0",
|
|
362
|
-
children: [/* @__PURE__ */
|
|
362
|
+
children: [/* @__PURE__ */ S("button", {
|
|
363
363
|
type: "button",
|
|
364
|
-
onClick: () => void
|
|
364
|
+
onClick: () => void he(e.id),
|
|
365
365
|
disabled: o || s,
|
|
366
366
|
className: "inline-flex items-center gap-1.5 rounded-lg bg-[var(--color-status-success-bg)] px-4 py-2 text-sm font-medium text-[var(--color-text-inverse)] transition-all duration-200 hover:opacity-90 disabled:cursor-not-allowed disabled:opacity-50",
|
|
367
|
-
children: [o ? /* @__PURE__ */
|
|
367
|
+
children: [o ? /* @__PURE__ */ x(h, {
|
|
368
368
|
size: 14,
|
|
369
369
|
className: "animate-spin"
|
|
370
|
-
}) : null,
|
|
371
|
-
}), /* @__PURE__ */
|
|
370
|
+
}) : null, E("members.myInvites.accept", "Accept")]
|
|
371
|
+
}), /* @__PURE__ */ S("button", {
|
|
372
372
|
type: "button",
|
|
373
|
-
onClick: () => void
|
|
373
|
+
onClick: () => void ge(e.id),
|
|
374
374
|
disabled: o || s,
|
|
375
375
|
className: "inline-flex items-center gap-1.5 rounded-lg border border-[var(--color-border-default)] bg-transparent px-4 py-2 text-sm font-medium text-[var(--color-text-primary)] transition-all duration-200 hover:border-[var(--color-status-error-border)] hover:bg-[var(--color-status-error-bgSubtle)] hover:text-[var(--color-status-error-text)] disabled:cursor-not-allowed disabled:opacity-50",
|
|
376
|
-
children: [s ? /* @__PURE__ */
|
|
376
|
+
children: [s ? /* @__PURE__ */ x(h, {
|
|
377
377
|
size: 14,
|
|
378
378
|
className: "animate-spin"
|
|
379
|
-
}) : null,
|
|
379
|
+
}) : null, E("members.myInvites.decline", "Decline")]
|
|
380
380
|
})]
|
|
381
381
|
})]
|
|
382
382
|
})
|
|
383
383
|
}, e.id);
|
|
384
384
|
})
|
|
385
|
-
}) :
|
|
385
|
+
}) : N.length === 0 ? /* @__PURE__ */ x(v, {
|
|
386
386
|
treatment: "glass",
|
|
387
387
|
glow: !0,
|
|
388
388
|
className: "rounded-xl",
|
|
389
|
-
children: /* @__PURE__ */
|
|
389
|
+
children: /* @__PURE__ */ x(y, {
|
|
390
390
|
illustration: "empty-notifications",
|
|
391
|
-
title:
|
|
392
|
-
description:
|
|
391
|
+
title: E("members.myInvites.emptyTitle", "No pending invites"),
|
|
392
|
+
description: E("members.myInvites.emptyDescription", "When someone invites you to an organization, it will appear here.")
|
|
393
393
|
})
|
|
394
|
-
}) : /* @__PURE__ */
|
|
394
|
+
}) : /* @__PURE__ */ x("div", {
|
|
395
395
|
className: "space-y-3",
|
|
396
|
-
children:
|
|
396
|
+
children: N.map((e) => /* @__PURE__ */ x(o, {
|
|
397
397
|
invite: e,
|
|
398
|
-
onAccept:
|
|
399
|
-
onReject:
|
|
400
|
-
accepting:
|
|
401
|
-
rejecting:
|
|
398
|
+
onAccept: pe,
|
|
399
|
+
onReject: me,
|
|
400
|
+
accepting: U,
|
|
401
|
+
rejecting: G
|
|
402
402
|
}, e.id))
|
|
403
403
|
})
|
|
404
404
|
]
|
|
405
405
|
})
|
|
406
406
|
});
|
|
407
407
|
}
|
|
408
|
-
|
|
409
|
-
export { k as MyInvitesPage };
|
|
408
|
+
export { O as MyInvitesPage };
|
|
410
409
|
|
|
411
410
|
//# sourceMappingURL=MyInvitesPage.js.map
|