@burdenoff/microfe-workspaces 2026.1120.1 → 2026.1121.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/WorkspacesRoutes.js +83 -59
- package/dist/components/ProjectCard.js +48 -47
- package/dist/constants/navigationV2.d.ts +5 -0
- package/dist/constants/navigationV2.js +2 -2
- package/dist/generated/global-operations.d.ts +11 -1
- package/dist/generated/global-types.d.ts +9866 -574
- package/dist/generated/wspace-operations.d.ts +171 -2
- package/dist/generated/wspace-operations.js +1088 -52
- package/dist/generated/wspace-types.d.ts +193797 -41883
- package/dist/hooks/v2/useWorkspacePagesV2Data.d.ts +89 -0
- package/dist/hooks/v2/useWorkspacePagesV2Data.js +211 -0
- package/dist/index.d.ts +1 -1
- package/dist/pages/MembersListPage.js +101 -100
- package/dist/pages/ProjectMembersPage.js +116 -115
- package/dist/pages/ProjectsListPage.js +233 -232
- package/dist/pages/v2/ActivityPage.d.ts +1 -0
- package/dist/pages/v2/ActivityPage.js +150 -0
- package/dist/pages/v2/InvitePeopleDialog.d.ts +11 -0
- package/dist/pages/v2/InvitePeopleDialog.js +208 -0
- package/dist/pages/v2/InvitedTab.d.ts +9 -0
- package/dist/pages/v2/InvitedTab.js +223 -0
- package/dist/pages/v2/MembersPage.d.ts +1 -0
- package/dist/pages/v2/MembersPage.js +120 -0
- package/dist/pages/v2/PeopleTab.d.ts +20 -0
- package/dist/pages/v2/PeopleTab.js +253 -0
- package/dist/pages/v2/ProjectsPage.d.ts +1 -0
- package/dist/pages/v2/ProjectsPage.js +242 -0
- package/dist/pages/v2/WorkspacesPage.d.ts +3 -0
- package/dist/pages/v2/WorkspacesPage.js +247 -0
- package/dist/pages/v2/activitySentences.d.ts +50 -0
- package/dist/pages/v2/activitySentences.js +288 -0
- package/dist/pages/v2/inviteEmails.d.ts +12 -0
- package/dist/pages/v2/inviteEmails.js +18 -0
- package/dist/pages/v2/memberRows.d.ts +54 -0
- package/dist/pages/v2/memberRows.js +51 -0
- package/dist/pages/v2/projectRows.d.ts +10 -0
- package/dist/pages/v2/projectRows.js +10 -0
- package/dist/pages/v2/relativeTime.d.ts +6 -0
- package/dist/pages/v2/relativeTime.js +30 -0
- package/dist/store/workspacesStore.d.ts +2 -1
- package/dist/store/workspacesStore.js +1 -1
- package/dist/translations/en.d.ts +382 -0
- package/dist/translations/en.js +382 -0
- package/dist/types/index.d.ts +19 -0
- package/dist/utils/nativeBridge.js +1 -1
- package/package.json +3 -3
package/dist/WorkspacesRoutes.js
CHANGED
|
@@ -4,130 +4,154 @@ import { PendingInvitesRoute as n } from "./components/PendingInvitesRoute.js";
|
|
|
4
4
|
import { WorkspacesListPage as r } from "./pages/WorkspacesListPage.js";
|
|
5
5
|
import { Suspense as i, lazy as a } from "react";
|
|
6
6
|
import { FeatureGate as o } from "@burdenoff/fe-libs/shared/feature-flags";
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
7
|
+
import { useWorkspacePagesV2 as s } from "@burdenoff/fe-libs/ui";
|
|
8
|
+
import { jsx as c, jsxs as l } from "react/jsx-runtime";
|
|
9
|
+
import { Navigate as u, Route as d, Routes as f, useLocation as p, useParams as m } from "react-router";
|
|
9
10
|
// src/WorkspacesRoutes.tsx
|
|
10
|
-
var
|
|
11
|
-
function
|
|
12
|
-
return /* @__PURE__ */
|
|
11
|
+
var h = a(() => import("./pages/CreateWorkspacePage.js").then((e) => ({ default: e.CreateWorkspacePage }))), g = a(() => import("./pages/WorkspaceDetailPage.js").then((e) => ({ default: e.WorkspaceDetailPage }))), _ = a(() => import("./pages/WorkspaceSettingsPage.js").then((e) => ({ default: e.WorkspaceSettingsPage }))), v = a(() => import("./pages/ProjectsListPage.js").then((e) => ({ default: e.ProjectsListPage }))), y = a(() => import("./pages/ProjectDetailPage.js").then((e) => ({ default: e.ProjectDetailPage }))), b = a(() => import("./pages/ProjectMembersPage.js").then((e) => ({ default: e.ProjectMembersPage }))), x = a(() => import("./pages/MembersListPage.js").then((e) => ({ default: e.MembersListPage }))), S = a(() => import("./pages/ActivityListPage.js").then((e) => ({ default: e.ActivityListPage }))), C = a(() => import("./pages/InviteAcceptancePage.js").then((e) => ({ default: e.InviteAcceptancePage }))), w = a(() => import("./pages/WorkspaceInvitePage.js").then((e) => ({ default: e.WorkspaceInvitePage }))), T = a(() => import("./pages/v2/WorkspacesPage.js").then((e) => ({ default: e.WorkspacesPageV2 }))), E = a(() => import("./pages/v2/MembersPage.js").then((e) => ({ default: e.MembersPageV2 }))), D = a(() => import("./pages/v2/ProjectsPage.js").then((e) => ({ default: e.ProjectsPageV2 }))), O = a(() => import("./pages/v2/ActivityPage.js").then((e) => ({ default: e.ActivityPageV2 })));
|
|
12
|
+
function k() {
|
|
13
|
+
return /* @__PURE__ */ c("div", {
|
|
13
14
|
className: "flex items-center justify-center h-64",
|
|
14
|
-
children: /* @__PURE__ */
|
|
15
|
+
children: /* @__PURE__ */ c("div", { className: "animate-spin rounded-full size-8 border-b-2 border-primary" })
|
|
15
16
|
});
|
|
16
17
|
}
|
|
17
|
-
function
|
|
18
|
-
return /* @__PURE__ */
|
|
18
|
+
function A() {
|
|
19
|
+
return /* @__PURE__ */ c("div", {
|
|
19
20
|
className: "flex h-full items-center justify-center p-8 text-center",
|
|
20
|
-
children: /* @__PURE__ */
|
|
21
|
+
children: /* @__PURE__ */ l("div", { children: [/* @__PURE__ */ c("h2", {
|
|
21
22
|
className: "text-lg font-semibold mb-2 text-text-primary",
|
|
22
23
|
children: "Feature Not Available"
|
|
23
|
-
}), /* @__PURE__ */
|
|
24
|
+
}), /* @__PURE__ */ c("p", {
|
|
24
25
|
className: "text-sm text-text-secondary",
|
|
25
26
|
children: "This feature is not currently available. Enable it under Feature Previews to access this functionality."
|
|
26
27
|
})] })
|
|
27
28
|
});
|
|
28
29
|
}
|
|
29
|
-
function
|
|
30
|
-
return /* @__PURE__ */
|
|
30
|
+
function j(e, t, n = !1) {
|
|
31
|
+
return /* @__PURE__ */ c(o, {
|
|
31
32
|
flag: e,
|
|
32
33
|
defaultValue: n,
|
|
33
|
-
fallback: /* @__PURE__ */
|
|
34
|
+
fallback: /* @__PURE__ */ c(A, {}),
|
|
34
35
|
children: t
|
|
35
36
|
});
|
|
36
37
|
}
|
|
37
|
-
function
|
|
38
|
+
function M() {
|
|
38
39
|
let { basePath: t = "/workspaces" } = e();
|
|
39
|
-
return /* @__PURE__ */
|
|
40
|
+
return /* @__PURE__ */ c(u, {
|
|
40
41
|
to: `${t}/list`,
|
|
41
42
|
replace: !0
|
|
42
43
|
});
|
|
43
44
|
}
|
|
44
|
-
function
|
|
45
|
+
function N() {
|
|
45
46
|
let { basePath: t = "/workspaces", workspaceId: n } = e();
|
|
46
|
-
return n ? /* @__PURE__ */
|
|
47
|
+
return n ? /* @__PURE__ */ c(u, {
|
|
47
48
|
to: `${t}/${n}/invite`,
|
|
48
49
|
replace: !0
|
|
49
|
-
}) : /* @__PURE__ */
|
|
50
|
+
}) : /* @__PURE__ */ c(w, {});
|
|
50
51
|
}
|
|
51
|
-
function
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
52
|
+
function P({ to: e, set: t }) {
|
|
53
|
+
let { search: n } = p(), r = new URLSearchParams(n);
|
|
54
|
+
for (let [e, n] of Object.entries(t ?? {})) r.set(e, n);
|
|
55
|
+
let i = r.toString();
|
|
56
|
+
return /* @__PURE__ */ c(u, {
|
|
57
|
+
to: i ? `${e}?${i}` : e,
|
|
58
|
+
replace: !0
|
|
59
|
+
});
|
|
60
|
+
}
|
|
61
|
+
function F() {
|
|
62
|
+
let { basePath: t = "/workspaces" } = e(), { workspaceId: n } = m();
|
|
63
|
+
return /* @__PURE__ */ c(P, {
|
|
64
|
+
to: `${t}/${n}/members`,
|
|
65
|
+
set: { dialog: "invite" }
|
|
66
|
+
});
|
|
67
|
+
}
|
|
68
|
+
function I() {
|
|
69
|
+
let a = s(), { basePath: o = "/workspaces" } = e();
|
|
70
|
+
return /* @__PURE__ */ l(i, {
|
|
71
|
+
fallback: /* @__PURE__ */ c(k, {}),
|
|
72
|
+
children: [/* @__PURE__ */ c(t, {}), /* @__PURE__ */ l(f, { children: [
|
|
73
|
+
/* @__PURE__ */ c(d, {
|
|
56
74
|
index: !0,
|
|
57
|
-
element: /* @__PURE__ */
|
|
75
|
+
element: a ? /* @__PURE__ */ c(P, { to: `${o}/list` }) : /* @__PURE__ */ c(u, {
|
|
58
76
|
to: "list",
|
|
59
77
|
replace: !0
|
|
60
78
|
})
|
|
61
79
|
}),
|
|
62
|
-
/* @__PURE__ */
|
|
80
|
+
/* @__PURE__ */ c(d, {
|
|
63
81
|
path: "list",
|
|
64
|
-
element:
|
|
82
|
+
element: c(a ? T : r, {})
|
|
65
83
|
}),
|
|
66
|
-
/* @__PURE__ */
|
|
84
|
+
/* @__PURE__ */ c(d, {
|
|
67
85
|
path: "new",
|
|
68
|
-
element: /* @__PURE__ */
|
|
86
|
+
element: /* @__PURE__ */ c(h, {})
|
|
69
87
|
}),
|
|
70
|
-
/* @__PURE__ */
|
|
88
|
+
/* @__PURE__ */ c(d, {
|
|
71
89
|
path: "invites",
|
|
72
|
-
element: /* @__PURE__ */
|
|
90
|
+
element: a ? /* @__PURE__ */ c(P, {
|
|
91
|
+
to: `${o}/list`,
|
|
92
|
+
set: { tab: "invites" }
|
|
93
|
+
}) : /* @__PURE__ */ c(n, {})
|
|
73
94
|
}),
|
|
74
|
-
/* @__PURE__ */
|
|
95
|
+
/* @__PURE__ */ c(d, {
|
|
75
96
|
path: "invite",
|
|
76
|
-
element: /* @__PURE__ */
|
|
97
|
+
element: a ? /* @__PURE__ */ c(P, {
|
|
98
|
+
to: `${o}/list`,
|
|
99
|
+
set: { dialog: "invite" }
|
|
100
|
+
}) : /* @__PURE__ */ c(N, {})
|
|
77
101
|
}),
|
|
78
|
-
/* @__PURE__ */
|
|
102
|
+
/* @__PURE__ */ c(d, {
|
|
79
103
|
path: "invite/:invitationId",
|
|
80
|
-
element: /* @__PURE__ */
|
|
104
|
+
element: /* @__PURE__ */ c(C, {})
|
|
81
105
|
}),
|
|
82
|
-
/* @__PURE__ */
|
|
106
|
+
/* @__PURE__ */ c(d, {
|
|
83
107
|
path: ":workspaceId",
|
|
84
|
-
element: /* @__PURE__ */
|
|
108
|
+
element: /* @__PURE__ */ c(g, {})
|
|
85
109
|
}),
|
|
86
|
-
/* @__PURE__ */
|
|
110
|
+
/* @__PURE__ */ c(d, {
|
|
87
111
|
path: ":workspaceId/settings",
|
|
88
|
-
element:
|
|
112
|
+
element: j("workspaces.settings", /* @__PURE__ */ c(_, {}), !0)
|
|
89
113
|
}),
|
|
90
|
-
/* @__PURE__ */
|
|
114
|
+
/* @__PURE__ */ c(d, {
|
|
91
115
|
path: ":workspaceId/invite",
|
|
92
|
-
element:
|
|
116
|
+
element: c(a ? F : w, {})
|
|
93
117
|
}),
|
|
94
|
-
/* @__PURE__ */
|
|
118
|
+
/* @__PURE__ */ c(d, {
|
|
95
119
|
path: "projects",
|
|
96
|
-
element:
|
|
120
|
+
element: c(a ? D : v, {})
|
|
97
121
|
}),
|
|
98
|
-
/* @__PURE__ */
|
|
122
|
+
/* @__PURE__ */ c(d, {
|
|
99
123
|
path: ":workspaceId/projects",
|
|
100
|
-
element:
|
|
124
|
+
element: c(a ? D : v, {})
|
|
101
125
|
}),
|
|
102
|
-
/* @__PURE__ */
|
|
126
|
+
/* @__PURE__ */ c(d, {
|
|
103
127
|
path: ":workspaceId/projects/:projectId",
|
|
104
|
-
element: /* @__PURE__ */
|
|
128
|
+
element: /* @__PURE__ */ c(y, {})
|
|
105
129
|
}),
|
|
106
|
-
/* @__PURE__ */
|
|
130
|
+
/* @__PURE__ */ c(d, {
|
|
107
131
|
path: ":workspaceId/projects/:projectId/members",
|
|
108
|
-
element: /* @__PURE__ */
|
|
132
|
+
element: /* @__PURE__ */ c(b, {})
|
|
109
133
|
}),
|
|
110
|
-
/* @__PURE__ */
|
|
134
|
+
/* @__PURE__ */ c(d, {
|
|
111
135
|
path: "members",
|
|
112
|
-
element:
|
|
136
|
+
element: c(a ? E : x, {})
|
|
113
137
|
}),
|
|
114
|
-
/* @__PURE__ */
|
|
138
|
+
/* @__PURE__ */ c(d, {
|
|
115
139
|
path: ":workspaceId/members",
|
|
116
|
-
element:
|
|
140
|
+
element: c(a ? E : x, {})
|
|
117
141
|
}),
|
|
118
|
-
/* @__PURE__ */
|
|
142
|
+
/* @__PURE__ */ c(d, {
|
|
119
143
|
path: "activity",
|
|
120
|
-
element:
|
|
144
|
+
element: c(a ? O : S, {})
|
|
121
145
|
}),
|
|
122
|
-
/* @__PURE__ */
|
|
146
|
+
/* @__PURE__ */ c(d, {
|
|
123
147
|
path: ":workspaceId/activity",
|
|
124
|
-
element:
|
|
148
|
+
element: c(a ? O : S, {})
|
|
125
149
|
}),
|
|
126
|
-
/* @__PURE__ */
|
|
150
|
+
/* @__PURE__ */ c(d, {
|
|
127
151
|
path: "*",
|
|
128
|
-
element: /* @__PURE__ */
|
|
152
|
+
element: /* @__PURE__ */ c(M, {})
|
|
129
153
|
})
|
|
130
154
|
] })]
|
|
131
155
|
});
|
|
132
156
|
}
|
|
133
|
-
export {
|
|
157
|
+
export { I as WorkspacesRoutes };
|
|
@@ -2,24 +2,24 @@ import { formatDate as e } from "../utils/formatters.js";
|
|
|
2
2
|
import { getProjectDisplayTags as t } from "../utils/projectTags.js";
|
|
3
3
|
import { getProjectStatusClasses as n } from "../utils/tokenHelpers.js";
|
|
4
4
|
import { useArchiveProject as r, useDeleteProject as i, useUnarchiveProject as a } from "../hooks/useProjectMutations.js";
|
|
5
|
-
import { useIsFluidGridsVariant as o, useWorkspacesContext as
|
|
6
|
-
import { useScopedNavigation as
|
|
7
|
-
import {
|
|
5
|
+
import { useIsFluidGridsVariant as o, useWorkspacesContext as s } from "../providers/WorkspacesProvider.js";
|
|
6
|
+
import { useScopedNavigation as c } from "../hooks/useScopedNavigation.js";
|
|
7
|
+
import { nativeImpact as l } from "../utils/nativeBridge.js";
|
|
8
8
|
import { RenameProjectDialog as u } from "./RenameProjectDialog.js";
|
|
9
9
|
import { useTr as d } from "../hooks/useTr.js";
|
|
10
10
|
import { useState as f } from "react";
|
|
11
11
|
import { Archive as p, Fingerprint as m, FolderKanban as h, MoreVertical as g, Pencil as _ } from "lucide-react";
|
|
12
|
-
import { Badge as v, Button as
|
|
13
|
-
import { Fragment as
|
|
14
|
-
import { useNavigate as
|
|
15
|
-
import { TagBadge as
|
|
12
|
+
import { Badge as v, Button as ee, CardContent as y, CardHeader as b, CardTitle as x, DropdownMenu as S, DropdownMenuContent as C, DropdownMenuItem as w, DropdownMenuTrigger as T, EntityIdModal as E, GlassCard as D, useConfirm as O, useEntityIdModal as k } from "@burdenoff/fe-libs/ui";
|
|
13
|
+
import { Fragment as A, jsx as j, jsxs as M } from "react/jsx-runtime";
|
|
14
|
+
import { useNavigate as N } from "react-router";
|
|
15
|
+
import { TagBadge as te } from "@burdenoff/fe-libs/tag";
|
|
16
16
|
// src/components/ProjectCard.tsx
|
|
17
17
|
function P({ project: P, selected: F = !1, onToggleSelect: I, onTagClick: L, canArchive: R = !1, canDelete: z = !1, canRename: B = !1 }) {
|
|
18
|
-
let V =
|
|
18
|
+
let V = N(), { basePath: H = "/workspaces" } = s(), { withCurrentSearch: U } = c(), { mutate: W } = r(P.workspaceId), { mutate: G } = a(P.workspaceId), { mutate: K } = i(P.workspaceId), q = k(), [J, Y] = f(!1), X = t(P), Z = d(), Q = o(), ne = O(), $ = () => {
|
|
19
19
|
V(U(`${H}/${P.workspaceId}/projects/${P.id}`));
|
|
20
20
|
};
|
|
21
|
-
return /* @__PURE__ */
|
|
22
|
-
/* @__PURE__ */
|
|
21
|
+
return /* @__PURE__ */ M(A, { children: [
|
|
22
|
+
/* @__PURE__ */ M(D, {
|
|
23
23
|
treatment: "insight",
|
|
24
24
|
className: `cursor-pointer relative focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-action-primary-bg/50 ${F ? "ring-2 ring-primary/25 border-primary/50" : ""}`,
|
|
25
25
|
onClick: $,
|
|
@@ -29,12 +29,12 @@ function P({ project: P, selected: F = !1, onToggleSelect: I, onTagClick: L, can
|
|
|
29
29
|
role: "button",
|
|
30
30
|
tabIndex: 0,
|
|
31
31
|
"aria-label": Z("projectCard.openProjectAriaLabel", "Open project {{name}}", { name: P.name }),
|
|
32
|
-
children: [/* @__PURE__ */
|
|
32
|
+
children: [/* @__PURE__ */ j(b, { children: /* @__PURE__ */ M("div", {
|
|
33
33
|
className: "flex items-start justify-between",
|
|
34
|
-
children: [/* @__PURE__ */
|
|
34
|
+
children: [/* @__PURE__ */ M("div", {
|
|
35
35
|
className: "flex items-center gap-3 flex-1",
|
|
36
36
|
children: [
|
|
37
|
-
I && /* @__PURE__ */
|
|
37
|
+
I && /* @__PURE__ */ j("input", {
|
|
38
38
|
type: "checkbox",
|
|
39
39
|
checked: F,
|
|
40
40
|
onChange: (e) => I(e.target.checked),
|
|
@@ -42,40 +42,40 @@ function P({ project: P, selected: F = !1, onToggleSelect: I, onTagClick: L, can
|
|
|
42
42
|
"aria-label": Z("projectCard.selectProjectAriaLabel", "Select project {{name}}", { name: P.name }),
|
|
43
43
|
className: "mt-1 size-4 rounded border-border-subtle text-primary"
|
|
44
44
|
}),
|
|
45
|
-
/* @__PURE__ */
|
|
45
|
+
/* @__PURE__ */ j("div", {
|
|
46
46
|
className: "p-3 rounded-lg bg-action-primary-bg/10 transition-colors",
|
|
47
|
-
children: /* @__PURE__ */
|
|
47
|
+
children: /* @__PURE__ */ j(h, {
|
|
48
48
|
className: "text-primary",
|
|
49
49
|
size: 24
|
|
50
50
|
})
|
|
51
51
|
}),
|
|
52
|
-
/* @__PURE__ */
|
|
52
|
+
/* @__PURE__ */ M("div", {
|
|
53
53
|
className: "flex-1 min-w-0",
|
|
54
|
-
children: [/* @__PURE__ */
|
|
54
|
+
children: [/* @__PURE__ */ j(x, {
|
|
55
55
|
className: "truncate",
|
|
56
56
|
children: P.name
|
|
57
|
-
}), Q ? null : /* @__PURE__ */
|
|
57
|
+
}), Q ? null : /* @__PURE__ */ j("p", {
|
|
58
58
|
className: "truncate text-sm text-text-secondary",
|
|
59
59
|
children: P.key
|
|
60
60
|
})]
|
|
61
61
|
})
|
|
62
62
|
]
|
|
63
|
-
}), /* @__PURE__ */
|
|
63
|
+
}), /* @__PURE__ */ M(S, { children: [/* @__PURE__ */ j(T, {
|
|
64
64
|
asChild: !0,
|
|
65
65
|
onClick: (e) => e.stopPropagation(),
|
|
66
|
-
children: /* @__PURE__ */
|
|
66
|
+
children: /* @__PURE__ */ M(ee, {
|
|
67
67
|
variant: "ghost",
|
|
68
68
|
size: "sm",
|
|
69
69
|
className: "size-8 p-0",
|
|
70
|
-
children: [/* @__PURE__ */
|
|
70
|
+
children: [/* @__PURE__ */ j(g, { size: 16 }), /* @__PURE__ */ j("span", {
|
|
71
71
|
className: "sr-only",
|
|
72
72
|
children: Z("projectCard.openActions", "Open project actions")
|
|
73
73
|
})]
|
|
74
74
|
})
|
|
75
|
-
}), /* @__PURE__ */
|
|
75
|
+
}), /* @__PURE__ */ M(C, {
|
|
76
76
|
align: "end",
|
|
77
77
|
children: [
|
|
78
|
-
/* @__PURE__ */
|
|
78
|
+
/* @__PURE__ */ M(w, {
|
|
79
79
|
onClick: (e) => {
|
|
80
80
|
e.stopPropagation(), q.show({
|
|
81
81
|
id: P.id,
|
|
@@ -90,70 +90,71 @@ function P({ project: P, selected: F = !1, onToggleSelect: I, onTagClick: L, can
|
|
|
90
90
|
}]
|
|
91
91
|
});
|
|
92
92
|
},
|
|
93
|
-
children: [/* @__PURE__ */
|
|
93
|
+
children: [/* @__PURE__ */ j(m, {
|
|
94
94
|
size: 16,
|
|
95
95
|
className: "mr-2"
|
|
96
96
|
}), Z("projectCard.getId", "Get ID")]
|
|
97
97
|
}),
|
|
98
|
-
B && /* @__PURE__ */
|
|
98
|
+
B && /* @__PURE__ */ M(w, {
|
|
99
99
|
onClick: (e) => {
|
|
100
100
|
e.stopPropagation(), Y(!0);
|
|
101
101
|
},
|
|
102
|
-
children: [/* @__PURE__ */
|
|
102
|
+
children: [/* @__PURE__ */ j(_, {
|
|
103
103
|
size: 16,
|
|
104
104
|
className: "mr-2"
|
|
105
105
|
}), Z("projectCard.rename", "Rename")]
|
|
106
106
|
}),
|
|
107
|
-
R && /* @__PURE__ */
|
|
107
|
+
R && /* @__PURE__ */ M(w, {
|
|
108
108
|
onClick: (e) => {
|
|
109
109
|
e.stopPropagation(), P.archived ? G(P.id) : W(P.id);
|
|
110
110
|
},
|
|
111
|
-
children: [/* @__PURE__ */
|
|
111
|
+
children: [/* @__PURE__ */ j(p, {
|
|
112
112
|
size: 16,
|
|
113
113
|
className: "mr-2"
|
|
114
114
|
}), P.archived ? Z("projectCard.unarchive", "Unarchive") : Z("projectCard.archive", "Archive")]
|
|
115
115
|
}),
|
|
116
|
-
z && /* @__PURE__ */
|
|
116
|
+
z && /* @__PURE__ */ j(w, {
|
|
117
117
|
onClick: async (e) => {
|
|
118
118
|
e.stopPropagation(), l("medium");
|
|
119
|
-
let t = Q ? Z("projectCard.deleteMessageNamed", "Delete \"{{name}}\"? All of its data is removed for good. This cannot be undone.", { name: P.name }) : Z("projectCard.deleteMessage", "Are you sure you want to delete \"{{name}}\"?", { name: P.name })
|
|
119
|
+
let t = Q ? Z("projectCard.deleteMessageNamed", "Delete \"{{name}}\"? All of its data is removed for good. This cannot be undone.", { name: P.name }) : Z("projectCard.deleteMessage", "Are you sure you want to delete \"{{name}}\"?", { name: P.name });
|
|
120
|
+
await ne({
|
|
120
121
|
title: Z("projectCard.deleteTitle", "Delete project"),
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
122
|
+
description: t,
|
|
123
|
+
tone: "danger",
|
|
124
|
+
confirmLabel: Z("common.delete", "Delete"),
|
|
125
|
+
cancelLabel: Z("common.cancel", "Cancel")
|
|
126
|
+
}) && K(P.id);
|
|
126
127
|
},
|
|
127
128
|
className: "text-status-error-text",
|
|
128
129
|
children: Z("projectCard.delete", "Delete")
|
|
129
130
|
})
|
|
130
131
|
]
|
|
131
132
|
})] })]
|
|
132
|
-
}) }), /* @__PURE__ */
|
|
133
|
+
}) }), /* @__PURE__ */ M(y, {
|
|
133
134
|
className: "space-y-3",
|
|
134
135
|
children: [
|
|
135
|
-
/* @__PURE__ */
|
|
136
|
+
/* @__PURE__ */ M("div", {
|
|
136
137
|
className: "flex items-center gap-2",
|
|
137
|
-
children: [/* @__PURE__ */
|
|
138
|
+
children: [/* @__PURE__ */ j(v, {
|
|
138
139
|
className: `border ${n(P.status)}`,
|
|
139
140
|
children: P.status
|
|
140
|
-
}), P.archived && /* @__PURE__ */
|
|
141
|
+
}), P.archived && /* @__PURE__ */ M(v, {
|
|
141
142
|
variant: "outline",
|
|
142
143
|
className: "border-workspace-archived-border text-workspace-archived-text",
|
|
143
|
-
children: [/* @__PURE__ */
|
|
144
|
+
children: [/* @__PURE__ */ j(p, {
|
|
144
145
|
size: 12,
|
|
145
146
|
className: "mr-1"
|
|
146
147
|
}), Z("projectCard.archivedLabel", "Archived")]
|
|
147
148
|
})]
|
|
148
149
|
}),
|
|
149
|
-
/* @__PURE__ */
|
|
150
|
+
/* @__PURE__ */ j("div", {
|
|
150
151
|
className: "text-xs text-text-secondary",
|
|
151
152
|
children: Z("projectCard.created", "Created {{date}}", { date: e(P.createdAt) })
|
|
152
153
|
}),
|
|
153
|
-
X.length > 0 && /* @__PURE__ */
|
|
154
|
+
X.length > 0 && /* @__PURE__ */ M("div", {
|
|
154
155
|
className: "flex flex-wrap gap-1.5",
|
|
155
156
|
"aria-label": Z("projectCard.projectTagsAriaLabel", "Project tags"),
|
|
156
|
-
children: [X.slice(0, 4).map((e) => /* @__PURE__ */
|
|
157
|
+
children: [X.slice(0, 4).map((e) => /* @__PURE__ */ j("span", {
|
|
157
158
|
...L ? {
|
|
158
159
|
role: "button",
|
|
159
160
|
tabIndex: 0,
|
|
@@ -164,7 +165,7 @@ function P({ project: P, selected: F = !1, onToggleSelect: I, onTagClick: L, can
|
|
|
164
165
|
(t.key === "Enter" || t.key === " ") && (t.preventDefault(), t.stopPropagation(), L(e));
|
|
165
166
|
}
|
|
166
167
|
} : {},
|
|
167
|
-
children: /* @__PURE__ */
|
|
168
|
+
children: /* @__PURE__ */ j(te, {
|
|
168
169
|
id: e.tagId,
|
|
169
170
|
label: e.label,
|
|
170
171
|
color: e.color ?? void 0,
|
|
@@ -173,7 +174,7 @@ function P({ project: P, selected: F = !1, onToggleSelect: I, onTagClick: L, can
|
|
|
173
174
|
size: "sm",
|
|
174
175
|
className: L ? "cursor-pointer" : void 0
|
|
175
176
|
})
|
|
176
|
-
}, e.tagId)), X.length > 4 && /* @__PURE__ */
|
|
177
|
+
}, e.tagId)), X.length > 4 && /* @__PURE__ */ M(v, {
|
|
177
178
|
variant: "outline",
|
|
178
179
|
className: "text-xs",
|
|
179
180
|
children: ["+", X.length - 4]
|
|
@@ -182,8 +183,8 @@ function P({ project: P, selected: F = !1, onToggleSelect: I, onTagClick: L, can
|
|
|
182
183
|
]
|
|
183
184
|
})]
|
|
184
185
|
}),
|
|
185
|
-
/* @__PURE__ */
|
|
186
|
-
J && /* @__PURE__ */
|
|
186
|
+
/* @__PURE__ */ j(E, { control: q }),
|
|
187
|
+
J && /* @__PURE__ */ j(u, {
|
|
187
188
|
project: P,
|
|
188
189
|
open: J,
|
|
189
190
|
onOpenChange: Y
|
|
@@ -10,3 +10,8 @@ export declare const NAVIGATION_V2_MY_INVITES_PATH = "/organizations/invites";
|
|
|
10
10
|
* workspace invite form.
|
|
11
11
|
*/
|
|
12
12
|
export declare const NAVIGATION_V2_ORGANIZATION_INVITE_PATH = "/organizations/invite";
|
|
13
|
+
/**
|
|
14
|
+
* People & access (microfe-rbac, mounted at `/rbac` in FluidGrids): the sidebar parent of
|
|
15
|
+
* Members, which the redesigned Members page links back to on phones (BOFF-15736).
|
|
16
|
+
*/
|
|
17
|
+
export declare const NAVIGATION_V2_PEOPLE_ACCESS_PATH = "/rbac";
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
// src/constants/navigationV2.ts
|
|
2
|
-
var e = "/organizations/invites", t = "/organizations/invite";
|
|
3
|
-
export { e as NAVIGATION_V2_MY_INVITES_PATH, t as NAVIGATION_V2_ORGANIZATION_INVITE_PATH };
|
|
2
|
+
var e = "/organizations/invites", t = "/organizations/invite", n = "/rbac";
|
|
3
|
+
export { e as NAVIGATION_V2_MY_INVITES_PATH, t as NAVIGATION_V2_ORGANIZATION_INVITE_PATH, n as NAVIGATION_V2_PEOPLE_ACCESS_PATH };
|
|
@@ -27,7 +27,17 @@ export type CreateWorkspaceInput = {
|
|
|
27
27
|
organizationId?: string | null | undefined;
|
|
28
28
|
region?: string | null | undefined;
|
|
29
29
|
slug: string;
|
|
30
|
-
|
|
30
|
+
/**
|
|
31
|
+
* Optional. When omitted the server derives the tenant from the parent
|
|
32
|
+
* organization (a workspace always lives in its organization's tenant). With a
|
|
33
|
+
* single shared tenant there is nothing for the client to choose, so the tenant
|
|
34
|
+
* picker is hidden and this is left unset.
|
|
35
|
+
*/
|
|
36
|
+
tenantId?: string | null | undefined;
|
|
37
|
+
/**
|
|
38
|
+
* Deprecated: workspaces no longer expose a user-facing type. New workspaces
|
|
39
|
+
* default to TEAM; the field is retained for backward compatibility only.
|
|
40
|
+
*/
|
|
31
41
|
type?: WorkspaceType | null | undefined;
|
|
32
42
|
};
|
|
33
43
|
/** Dashboard widget configuration for customization. */
|