@burdenoff/microfe-planmagnet 2026.1001.5 → 2026.1001.7
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/planmagnet/PlanMagnetRoutes.d.ts.map +1 -1
- package/dist/planmagnet/PlanMagnetRoutes.js +10 -6
- package/dist/planmagnet/PlanMagnetRoutes.js.map +1 -1
- package/dist/planmagnet/automation/automationRuleTypes.d.ts +31 -19
- package/dist/planmagnet/automation/automationRuleTypes.d.ts.map +1 -1
- package/dist/planmagnet/automation/automationRuleTypes.js +4 -8
- package/dist/planmagnet/automation/automationRuleTypes.js.map +1 -1
- package/dist/planmagnet/controls/CompetitorControls.d.ts +71 -0
- package/dist/planmagnet/controls/CompetitorControls.d.ts.map +1 -1
- package/dist/planmagnet/controls/CompetitorControls.js +346 -12
- package/dist/planmagnet/controls/CompetitorControls.js.map +1 -1
- package/dist/planmagnet/controls/FeatureControls.d.ts +23 -1
- package/dist/planmagnet/controls/FeatureControls.d.ts.map +1 -1
- package/dist/planmagnet/controls/FeatureControls.js +431 -229
- package/dist/planmagnet/controls/FeatureControls.js.map +1 -1
- package/dist/planmagnet/controls/FeedbackControls.d.ts +70 -0
- package/dist/planmagnet/controls/FeedbackControls.d.ts.map +1 -0
- package/dist/planmagnet/controls/FeedbackControls.js +153 -0
- package/dist/planmagnet/controls/FeedbackControls.js.map +1 -0
- package/dist/planmagnet/controls/Pickers.d.ts +15 -0
- package/dist/planmagnet/controls/Pickers.d.ts.map +1 -1
- package/dist/planmagnet/controls/Pickers.js +61 -1
- package/dist/planmagnet/controls/Pickers.js.map +1 -1
- package/dist/planmagnet/controls/PrioritizationControls.d.ts +36 -0
- package/dist/planmagnet/controls/PrioritizationControls.d.ts.map +1 -1
- package/dist/planmagnet/controls/PrioritizationControls.js +118 -1
- package/dist/planmagnet/controls/PrioritizationControls.js.map +1 -1
- package/dist/planmagnet/controls/SyncControls.d.ts.map +1 -1
- package/dist/planmagnet/controls/SyncControls.js +1 -0
- package/dist/planmagnet/controls/SyncControls.js.map +1 -1
- package/dist/planmagnet/controls/WebhookSubscriptionControls.d.ts +47 -0
- package/dist/planmagnet/controls/WebhookSubscriptionControls.d.ts.map +1 -0
- package/dist/planmagnet/controls/WebhookSubscriptionControls.js +542 -0
- package/dist/planmagnet/controls/WebhookSubscriptionControls.js.map +1 -0
- package/dist/planmagnet/dashboards/DashboardUI.js +8 -8
- package/dist/planmagnet/dashboards/cards/RiskSeverityCard.js +4 -4
- package/dist/planmagnet/dashboards/cards/SprintCapacityCard.d.ts.map +1 -1
- package/dist/planmagnet/dashboards/cards/SprintCapacityCard.js +67 -59
- package/dist/planmagnet/dashboards/cards/SprintCapacityCard.js.map +1 -1
- package/dist/planmagnet/forecast/DeliveryForecastCard.js +8 -8
- package/dist/planmagnet/forecast/ProjectOutlookCard.js +10 -10
- package/dist/planmagnet/forecast/ProjectRiskSummaryCard.js +9 -9
- package/dist/planmagnet/forecast/ResourceForecastCard.js +6 -6
- package/dist/planmagnet/integrations/syncTypes.d.ts +2 -1
- package/dist/planmagnet/integrations/syncTypes.d.ts.map +1 -1
- package/dist/planmagnet/integrations/syncTypes.js +19 -9
- package/dist/planmagnet/integrations/syncTypes.js.map +1 -1
- package/dist/planmagnet/pages/AnalyticsAnalyticsPagePage.d.ts.map +1 -1
- package/dist/planmagnet/pages/AnalyticsAnalyticsPagePage.js +290 -283
- package/dist/planmagnet/pages/AnalyticsAnalyticsPagePage.js.map +1 -1
- package/dist/planmagnet/pages/CompetitorsCompetitorDetailPagePage.d.ts.map +1 -1
- package/dist/planmagnet/pages/CompetitorsCompetitorDetailPagePage.js +126 -63
- package/dist/planmagnet/pages/CompetitorsCompetitorDetailPagePage.js.map +1 -1
- package/dist/planmagnet/pages/CompetitorsCompetitorsPagePage.d.ts.map +1 -1
- package/dist/planmagnet/pages/CompetitorsCompetitorsPagePage.js +14 -0
- package/dist/planmagnet/pages/CompetitorsCompetitorsPagePage.js.map +1 -1
- package/dist/planmagnet/pages/CompetitorsCreateCompetitorPagePage.d.ts.map +1 -1
- package/dist/planmagnet/pages/CompetitorsCreateCompetitorPagePage.js +93 -57
- package/dist/planmagnet/pages/CompetitorsCreateCompetitorPagePage.js.map +1 -1
- package/dist/planmagnet/pages/CompetitorsEditCompetitorPagePage.d.ts.map +1 -1
- package/dist/planmagnet/pages/CompetitorsEditCompetitorPagePage.js +125 -83
- package/dist/planmagnet/pages/CompetitorsEditCompetitorPagePage.js.map +1 -1
- package/dist/planmagnet/pages/DashboardDashboardPagePage.js +23 -23
- package/dist/planmagnet/pages/DocsDocDetailPagePage.d.ts.map +1 -1
- package/dist/planmagnet/pages/DocsDocDetailPagePage.js +340 -248
- package/dist/planmagnet/pages/DocsDocDetailPagePage.js.map +1 -1
- package/dist/planmagnet/pages/IntegrationsSyncDetailPagePage.d.ts.map +1 -1
- package/dist/planmagnet/pages/IntegrationsSyncDetailPagePage.js +172 -167
- package/dist/planmagnet/pages/IntegrationsSyncDetailPagePage.js.map +1 -1
- package/dist/planmagnet/pages/IntegrationsSyncsPagePage.d.ts.map +1 -1
- package/dist/planmagnet/pages/IntegrationsSyncsPagePage.js +92 -83
- package/dist/planmagnet/pages/IntegrationsSyncsPagePage.js.map +1 -1
- package/dist/planmagnet/pages/IntegrationsWebhooksPagePage.d.ts +2 -0
- package/dist/planmagnet/pages/IntegrationsWebhooksPagePage.d.ts.map +1 -0
- package/dist/planmagnet/pages/IntegrationsWebhooksPagePage.js +175 -0
- package/dist/planmagnet/pages/IntegrationsWebhooksPagePage.js.map +1 -0
- package/dist/planmagnet/pages/PortfoliosPortfolioDetailPagePage.d.ts.map +1 -1
- package/dist/planmagnet/pages/PortfoliosPortfolioDetailPagePage.js +226 -126
- package/dist/planmagnet/pages/PortfoliosPortfolioDetailPagePage.js.map +1 -1
- package/dist/planmagnet/pages/ProductsFeatureDetailPagePage.d.ts.map +1 -1
- package/dist/planmagnet/pages/ProductsFeatureDetailPagePage.js +151 -126
- package/dist/planmagnet/pages/ProductsFeatureDetailPagePage.js.map +1 -1
- package/dist/planmagnet/pages/ProductsFeaturesPagePage.d.ts.map +1 -1
- package/dist/planmagnet/pages/ProductsFeaturesPagePage.js +169 -122
- package/dist/planmagnet/pages/ProductsFeaturesPagePage.js.map +1 -1
- package/dist/planmagnet/pages/ProductsNewFeaturePagePage.d.ts.map +1 -1
- package/dist/planmagnet/pages/ProductsNewFeaturePagePage.js +165 -109
- package/dist/planmagnet/pages/ProductsNewFeaturePagePage.js.map +1 -1
- package/dist/planmagnet/pages/ProductsProductsPagePage.js +13 -13
- package/dist/planmagnet/pages/ProjectsAtRiskPagePage.js +9 -9
- package/dist/planmagnet/pages/ProjectsBudgetsPagePage.js +8 -8
- package/dist/planmagnet/pages/ProjectsPlanningDetailPagePage.d.ts.map +1 -1
- package/dist/planmagnet/pages/ProjectsPlanningDetailPagePage.js +15 -3
- package/dist/planmagnet/pages/ProjectsPlanningDetailPagePage.js.map +1 -1
- package/dist/planmagnet/pages/ProjectsProjectsPagePage.js +12 -12
- package/dist/planmagnet/pages/ReportsReportsPagePage.js +23 -23
- package/dist/planmagnet/pages/TasksMyDashboardPagePage.js +18 -18
- package/dist/planmagnet/pages/TasksMyWorkPagePage.js +10 -10
- package/dist/planmagnet/pages/TasksTimeEntriesPagePage.js +5 -5
- package/dist/planmagnet/pages/TeamTeamPagePage.d.ts.map +1 -1
- package/dist/planmagnet/pages/TeamTeamPagePage.js +59 -53
- package/dist/planmagnet/pages/TeamTeamPagePage.js.map +1 -1
- package/dist/planmagnet/pages/analytics/DeliveryHealthCards.js +8 -8
- package/dist/planmagnet/pages/analytics/DeliveryKpisCard.js +6 -6
- package/dist/planmagnet/pages/analytics/MetricsCard.d.ts +8 -0
- package/dist/planmagnet/pages/analytics/MetricsCard.d.ts.map +1 -0
- package/dist/planmagnet/pages/analytics/MetricsCard.js +164 -0
- package/dist/planmagnet/pages/analytics/MetricsCard.js.map +1 -0
- package/dist/planmagnet/pages/analytics/QualityMetricsCard.js +6 -6
- package/dist/planmagnet/pages/analytics/SprintDeliveryCards.js +8 -8
- package/dist/planmagnet/pages/analytics/StatusFlowCard.js +7 -7
- package/dist/planmagnet/pages/analytics/ThroughputCard.js +7 -7
- package/dist/planmagnet/pages/analytics/WorkBreakdownCard.js +7 -7
- package/dist/planmagnet/people/People.d.ts +14 -0
- package/dist/planmagnet/people/People.d.ts.map +1 -1
- package/dist/planmagnet/people/People.js +36 -22
- package/dist/planmagnet/people/People.js.map +1 -1
- package/dist/planmagnet/team/UnmatchedCrewIdentities.d.ts +2 -0
- package/dist/planmagnet/team/UnmatchedCrewIdentities.d.ts.map +1 -0
- package/dist/planmagnet/team/UnmatchedCrewIdentities.js +155 -0
- package/dist/planmagnet/team/UnmatchedCrewIdentities.js.map +1 -0
- package/dist/planmagnet/webhooks/webhookTypes.d.ts +54 -0
- package/dist/planmagnet/webhooks/webhookTypes.d.ts.map +1 -0
- package/dist/planmagnet/webhooks/webhookTypes.js +17 -0
- package/dist/planmagnet/webhooks/webhookTypes.js.map +1 -0
- package/package.json +1 -1
|
@@ -9,8 +9,8 @@ import { useDeferredValue as g, useState as _ } from "react";
|
|
|
9
9
|
import { BarChart3 as v, LayoutTemplate as y, Plus as b } from "lucide-react";
|
|
10
10
|
import { useMutation as x, useQuery as S } from "@apollo/client/react";
|
|
11
11
|
import { jsx as C, jsxs as w } from "react/jsx-runtime";
|
|
12
|
-
import {
|
|
13
|
-
import {
|
|
12
|
+
import { Badge as T, Button as E, Card as D, CardContent as O, CardDescription as k, CardHeader as A, CardTitle as j, Input as M, Tabs as N, TabsContent as P, TabsList as F, TabsTrigger as I } from "@burdenoff/fe-libs/ui";
|
|
13
|
+
import { useI18n as L } from "@burdenoff/fe-libs/shared/providers/shell/I18nProvider";
|
|
14
14
|
//#region src/planmagnet/pages/ReportsReportsPagePage.tsx
|
|
15
15
|
function R({ report: e, isOwner: r, onDuplicate: i, onDelete: a }) {
|
|
16
16
|
let s = t();
|
|
@@ -32,7 +32,7 @@ function R({ report: e, isOwner: r, onDuplicate: i, onDelete: a }) {
|
|
|
32
32
|
/* @__PURE__ */ w("p", {
|
|
33
33
|
className: "mt-0.5 text-xs text-muted-foreground",
|
|
34
34
|
children: [
|
|
35
|
-
/* @__PURE__ */ C(
|
|
35
|
+
/* @__PURE__ */ C(T, {
|
|
36
36
|
variant: e.visibility === "WORKSPACE" ? "secondary" : "outline",
|
|
37
37
|
className: "mr-1.5",
|
|
38
38
|
children: e.visibility === "WORKSPACE" ? "Workspace" : "Private"
|
|
@@ -48,7 +48,7 @@ function R({ report: e, isOwner: r, onDuplicate: i, onDelete: a }) {
|
|
|
48
48
|
}), /* @__PURE__ */ w("div", {
|
|
49
49
|
className: "flex shrink-0 items-center gap-1.5",
|
|
50
50
|
onClick: u,
|
|
51
|
-
children: [/* @__PURE__ */ C(
|
|
51
|
+
children: [/* @__PURE__ */ C(E, {
|
|
52
52
|
size: "sm",
|
|
53
53
|
variant: "outline",
|
|
54
54
|
onClick: () => i(e.id),
|
|
@@ -92,7 +92,7 @@ function z({ mine: n }) {
|
|
|
92
92
|
} catch (e) {
|
|
93
93
|
y(r(e, "This report could not be duplicated."));
|
|
94
94
|
}
|
|
95
|
-
},
|
|
95
|
+
}, N = async (e) => {
|
|
96
96
|
y(null);
|
|
97
97
|
try {
|
|
98
98
|
await a(k({ variables: { id: e } }));
|
|
@@ -103,7 +103,7 @@ function z({ mine: n }) {
|
|
|
103
103
|
return /* @__PURE__ */ w("div", {
|
|
104
104
|
className: "space-y-3",
|
|
105
105
|
children: [
|
|
106
|
-
/* @__PURE__ */ C(
|
|
106
|
+
/* @__PURE__ */ C(M, {
|
|
107
107
|
value: u,
|
|
108
108
|
onChange: (e) => d(e.target.value),
|
|
109
109
|
placeholder: "Search reports",
|
|
@@ -126,14 +126,14 @@ function z({ mine: n }) {
|
|
|
126
126
|
report: e,
|
|
127
127
|
isOwner: !!o?.id && o.id === e.ownerId,
|
|
128
128
|
onDuplicate: (e) => void j(e),
|
|
129
|
-
onDelete: (e) => void
|
|
129
|
+
onDelete: (e) => void N(e)
|
|
130
130
|
}, e.id))
|
|
131
131
|
})
|
|
132
132
|
]
|
|
133
133
|
});
|
|
134
134
|
}
|
|
135
135
|
function B() {
|
|
136
|
-
let { workspaceId: n } = e(), o = t(), { data: l, loading: u, error: f } = S(h), [p, { loading: m }] = x(d), [g, v] = _(null), [b, T] = _(null),
|
|
136
|
+
let { workspaceId: n } = e(), o = t(), { data: l, loading: u, error: f } = S(h), [p, { loading: m }] = x(d), [g, v] = _(null), [b, T] = _(null), M = async (e) => {
|
|
137
137
|
if (n) {
|
|
138
138
|
T(null), v(e.key);
|
|
139
139
|
try {
|
|
@@ -171,23 +171,23 @@ function B() {
|
|
|
171
171
|
className: "space-y-3",
|
|
172
172
|
children: [b && /* @__PURE__ */ C(s, { message: b }), /* @__PURE__ */ C("div", {
|
|
173
173
|
className: "grid grid-cols-1 gap-3 sm:grid-cols-2 lg:grid-cols-3",
|
|
174
|
-
children: N.map((e) => /* @__PURE__ */ w(
|
|
174
|
+
children: N.map((e) => /* @__PURE__ */ w(D, {
|
|
175
175
|
"data-testid": "report-template",
|
|
176
|
-
children: [/* @__PURE__ */ w(
|
|
176
|
+
children: [/* @__PURE__ */ w(A, { children: [/* @__PURE__ */ w(j, {
|
|
177
177
|
className: "flex items-center gap-2 text-sm",
|
|
178
178
|
children: [/* @__PURE__ */ C(y, { className: "h-4 w-4" }), e.name]
|
|
179
|
-
}), /* @__PURE__ */ C(
|
|
179
|
+
}), /* @__PURE__ */ C(k, { children: e.description })] }), /* @__PURE__ */ w(O, { children: [/* @__PURE__ */ w("p", {
|
|
180
180
|
className: "mb-3 text-xs text-muted-foreground",
|
|
181
181
|
children: [
|
|
182
182
|
e.definition.widgets.length,
|
|
183
183
|
" widget",
|
|
184
184
|
e.definition.widgets.length === 1 ? "" : "s"
|
|
185
185
|
]
|
|
186
|
-
}), /* @__PURE__ */ C(
|
|
186
|
+
}), /* @__PURE__ */ C(E, {
|
|
187
187
|
size: "sm",
|
|
188
188
|
className: "w-full",
|
|
189
189
|
disabled: m,
|
|
190
|
-
onClick: () => void
|
|
190
|
+
onClick: () => void M(e),
|
|
191
191
|
children: g === e.key ? "Creating…" : "Start from template"
|
|
192
192
|
})] })]
|
|
193
193
|
}, e.key))
|
|
@@ -195,7 +195,7 @@ function B() {
|
|
|
195
195
|
});
|
|
196
196
|
}
|
|
197
197
|
function V() {
|
|
198
|
-
let { t: e } =
|
|
198
|
+
let { t: e } = L(), n = t();
|
|
199
199
|
return /* @__PURE__ */ w("div", {
|
|
200
200
|
className: "space-y-6 p-6",
|
|
201
201
|
children: [/* @__PURE__ */ w("div", {
|
|
@@ -206,41 +206,41 @@ function V() {
|
|
|
206
206
|
}), /* @__PURE__ */ C("p", {
|
|
207
207
|
className: "text-sm text-muted-foreground",
|
|
208
208
|
children: e("planmagnet.reports.subtitle", "Build, run, share and schedule reports over your PlanMagnet data.")
|
|
209
|
-
})] }), /* @__PURE__ */ w(
|
|
209
|
+
})] }), /* @__PURE__ */ w(E, {
|
|
210
210
|
size: "sm",
|
|
211
211
|
onClick: () => n("/reports/create-report-page"),
|
|
212
212
|
"data-testid": "report-new",
|
|
213
213
|
children: [/* @__PURE__ */ C(b, { className: "mr-1 h-4 w-4" }), e("planmagnet.reports.newBlank", "New blank report")]
|
|
214
214
|
})]
|
|
215
|
-
}), /* @__PURE__ */ w(
|
|
215
|
+
}), /* @__PURE__ */ w(N, {
|
|
216
216
|
defaultValue: "mine",
|
|
217
217
|
children: [
|
|
218
|
-
/* @__PURE__ */ w(
|
|
219
|
-
/* @__PURE__ */ C(
|
|
218
|
+
/* @__PURE__ */ w(F, { children: [
|
|
219
|
+
/* @__PURE__ */ C(I, {
|
|
220
220
|
value: "mine",
|
|
221
221
|
"data-testid": "report-list",
|
|
222
222
|
children: "My reports"
|
|
223
223
|
}),
|
|
224
|
-
/* @__PURE__ */ C(
|
|
224
|
+
/* @__PURE__ */ C(I, {
|
|
225
225
|
value: "workspace",
|
|
226
226
|
children: "Workspace"
|
|
227
227
|
}),
|
|
228
|
-
/* @__PURE__ */ C(
|
|
228
|
+
/* @__PURE__ */ C(I, {
|
|
229
229
|
value: "templates",
|
|
230
230
|
children: "Templates"
|
|
231
231
|
})
|
|
232
232
|
] }),
|
|
233
|
-
/* @__PURE__ */ C(
|
|
233
|
+
/* @__PURE__ */ C(P, {
|
|
234
234
|
value: "mine",
|
|
235
235
|
className: "mt-4",
|
|
236
236
|
children: /* @__PURE__ */ C(z, { mine: !0 })
|
|
237
237
|
}),
|
|
238
|
-
/* @__PURE__ */ C(
|
|
238
|
+
/* @__PURE__ */ C(P, {
|
|
239
239
|
value: "workspace",
|
|
240
240
|
className: "mt-4",
|
|
241
241
|
children: /* @__PURE__ */ C(z, { mine: !1 })
|
|
242
242
|
}),
|
|
243
|
-
/* @__PURE__ */ C(
|
|
243
|
+
/* @__PURE__ */ C(P, {
|
|
244
244
|
value: "templates",
|
|
245
245
|
className: "mt-4",
|
|
246
246
|
children: /* @__PURE__ */ C(B, {})
|
|
@@ -17,8 +17,8 @@ import { ArrowRight as y, Clock as b, Flag as x, LayoutDashboard as S, TrendingU
|
|
|
17
17
|
import { gql as w } from "@apollo/client";
|
|
18
18
|
import { useQuery as T } from "@apollo/client/react";
|
|
19
19
|
import { Fragment as E, jsx as D, jsxs as O } from "react/jsx-runtime";
|
|
20
|
-
import {
|
|
21
|
-
import {
|
|
20
|
+
import { Badge as k, Button as A, Card as j, CardContent as M, CardHeader as N, CardTitle as P } from "@burdenoff/fe-libs/ui";
|
|
21
|
+
import { useI18n as F } from "@burdenoff/fe-libs/shared/providers/shell/I18nProvider";
|
|
22
22
|
//#region src/planmagnet/pages/TasksMyDashboardPagePage.tsx
|
|
23
23
|
var I = w`
|
|
24
24
|
query GetMyTimeAllocation($workspaceId: ID!, $startDate: DateTime, $endDate: DateTime) {
|
|
@@ -78,7 +78,7 @@ function H({ progress: e }) {
|
|
|
78
78
|
});
|
|
79
79
|
}
|
|
80
80
|
function U({ workspaceId: e, range: t, onRangeChange: n }) {
|
|
81
|
-
let { t: r } =
|
|
81
|
+
let { t: r } = F(), { startDate: i, endDate: a } = _(t), { data: o, loading: s, error: c } = T(I, {
|
|
82
82
|
variables: {
|
|
83
83
|
workspaceId: e,
|
|
84
84
|
startDate: i,
|
|
@@ -86,11 +86,11 @@ function U({ workspaceId: e, range: t, onRangeChange: n }) {
|
|
|
86
86
|
},
|
|
87
87
|
skip: !e
|
|
88
88
|
}), l = o?.planmagnetMyTimeAllocation, u = h(t);
|
|
89
|
-
return /* @__PURE__ */ O(
|
|
89
|
+
return /* @__PURE__ */ O(j, {
|
|
90
90
|
"data-testid": "my-time-allocation",
|
|
91
|
-
children: [/* @__PURE__ */ D(
|
|
91
|
+
children: [/* @__PURE__ */ D(N, { children: /* @__PURE__ */ O("div", {
|
|
92
92
|
className: "flex flex-wrap items-center justify-between gap-2",
|
|
93
|
-
children: [/* @__PURE__ */ O(
|
|
93
|
+
children: [/* @__PURE__ */ O(P, {
|
|
94
94
|
className: "flex items-center gap-2",
|
|
95
95
|
children: [/* @__PURE__ */ D(b, { className: "h-4 w-4" }), r("planmagnet.myDashboard.timeAllocation.title", "My time allocation")]
|
|
96
96
|
}), /* @__PURE__ */ D("div", {
|
|
@@ -105,7 +105,7 @@ function U({ workspaceId: e, range: t, onRangeChange: n }) {
|
|
|
105
105
|
children: r("planmagnet.myDashboard.timeAllocation.last", "Last {{days}}d", { days: e })
|
|
106
106
|
}, e))
|
|
107
107
|
})]
|
|
108
|
-
}) }), /* @__PURE__ */ D(
|
|
108
|
+
}) }), /* @__PURE__ */ D(M, { children: s ? /* @__PURE__ */ D("p", {
|
|
109
109
|
className: "text-sm text-muted-foreground",
|
|
110
110
|
children: r("planmagnet.myDashboard.loading", "Loading…")
|
|
111
111
|
}) : c ? /* @__PURE__ */ D("p", {
|
|
@@ -155,7 +155,7 @@ function U({ workspaceId: e, range: t, onRangeChange: n }) {
|
|
|
155
155
|
});
|
|
156
156
|
}
|
|
157
157
|
function W({ workspaceId: e }) {
|
|
158
|
-
let { t } =
|
|
158
|
+
let { t } = F(), { data: n, loading: r, error: f } = T(L, {
|
|
159
159
|
variables: {
|
|
160
160
|
workspaceId: e,
|
|
161
161
|
weeks: z
|
|
@@ -166,15 +166,15 @@ function W({ workspaceId: e }) {
|
|
|
166
166
|
items: e.itemsCompleted,
|
|
167
167
|
points: e.pointsCompleted
|
|
168
168
|
})), h = p.reduce((e, t) => e + t.itemsCompleted, 0), g = p.reduce((e, t) => e + t.pointsCompleted, 0);
|
|
169
|
-
return /* @__PURE__ */ O(
|
|
169
|
+
return /* @__PURE__ */ O(j, {
|
|
170
170
|
"data-testid": "my-delivery-trend",
|
|
171
|
-
children: [/* @__PURE__ */ O(
|
|
171
|
+
children: [/* @__PURE__ */ O(N, { children: [/* @__PURE__ */ O(P, {
|
|
172
172
|
className: "flex items-center gap-2",
|
|
173
173
|
children: [/* @__PURE__ */ D(C, { className: "h-4 w-4" }), t("planmagnet.myDashboard.deliveryTrend.title", "My delivery trend")]
|
|
174
174
|
}), /* @__PURE__ */ D("p", {
|
|
175
175
|
className: "text-xs text-muted-foreground",
|
|
176
176
|
children: t("planmagnet.myDashboard.deliveryTrend.subtitle", "Items and points assigned to you that reached Done, last {{weeks}} weeks.", { weeks: z })
|
|
177
|
-
})] }), /* @__PURE__ */ D(
|
|
177
|
+
})] }), /* @__PURE__ */ D(M, { children: r ? /* @__PURE__ */ D("p", {
|
|
178
178
|
className: "text-sm text-muted-foreground",
|
|
179
179
|
children: t("planmagnet.myDashboard.loading", "Loading…")
|
|
180
180
|
}) : f ? /* @__PURE__ */ D("p", {
|
|
@@ -226,22 +226,22 @@ function W({ workspaceId: e }) {
|
|
|
226
226
|
});
|
|
227
227
|
}
|
|
228
228
|
function G({ workspaceId: e, ownerId: t }) {
|
|
229
|
-
let { t: n } =
|
|
229
|
+
let { t: n } = F(), i = r(), { data: a, loading: o, error: s } = T(R, {
|
|
230
230
|
variables: {
|
|
231
231
|
workspaceId: e,
|
|
232
232
|
filter: t ? { ownerId: t } : void 0
|
|
233
233
|
},
|
|
234
234
|
skip: !e || !t
|
|
235
235
|
}), c = a?.planmagnetObjectives.items ?? [];
|
|
236
|
-
return /* @__PURE__ */ O(
|
|
236
|
+
return /* @__PURE__ */ O(j, {
|
|
237
237
|
"data-testid": "my-goals",
|
|
238
|
-
children: [/* @__PURE__ */ O(
|
|
238
|
+
children: [/* @__PURE__ */ O(N, { children: [/* @__PURE__ */ O(P, {
|
|
239
239
|
className: "flex items-center gap-2",
|
|
240
240
|
children: [/* @__PURE__ */ D(x, { className: "h-4 w-4" }), n("planmagnet.myDashboard.goals.title", "My goals")]
|
|
241
241
|
}), /* @__PURE__ */ D("p", {
|
|
242
242
|
className: "text-xs text-muted-foreground",
|
|
243
243
|
children: n("planmagnet.myDashboard.goals.subtitle", "Objectives you own, with their progress.")
|
|
244
|
-
})] }), /* @__PURE__ */ D(
|
|
244
|
+
})] }), /* @__PURE__ */ D(M, { children: t ? o ? /* @__PURE__ */ D("p", {
|
|
245
245
|
className: "text-sm text-muted-foreground",
|
|
246
246
|
children: n("planmagnet.myDashboard.loading", "Loading…")
|
|
247
247
|
}) : s ? /* @__PURE__ */ D("p", {
|
|
@@ -262,7 +262,7 @@ function G({ workspaceId: e, ownerId: t }) {
|
|
|
262
262
|
children: [/* @__PURE__ */ D("span", {
|
|
263
263
|
className: "text-sm font-medium truncate",
|
|
264
264
|
children: e.title
|
|
265
|
-
}), /* @__PURE__ */ D(
|
|
265
|
+
}), /* @__PURE__ */ D(k, {
|
|
266
266
|
variant: "outline",
|
|
267
267
|
className: "text-xs capitalize shrink-0",
|
|
268
268
|
children: e.status.toLowerCase()
|
|
@@ -288,7 +288,7 @@ function G({ workspaceId: e, ownerId: t }) {
|
|
|
288
288
|
});
|
|
289
289
|
}
|
|
290
290
|
function K() {
|
|
291
|
-
let { workspaceId: e, currentUser: t } = n(), i = r(), { t: a } =
|
|
291
|
+
let { workspaceId: e, currentUser: t } = n(), i = r(), { t: a } = F(), [o, s] = v(() => g("30"));
|
|
292
292
|
return /* @__PURE__ */ O("div", {
|
|
293
293
|
className: "space-y-6 p-6",
|
|
294
294
|
"data-testid": "my-dashboard-page",
|
|
@@ -301,7 +301,7 @@ function K() {
|
|
|
301
301
|
}), /* @__PURE__ */ D("p", {
|
|
302
302
|
className: "text-sm text-muted-foreground",
|
|
303
303
|
children: a("planmagnet.myDashboard.subtitle", "Your own time, delivery, and goals across every project.")
|
|
304
|
-
})] }), /* @__PURE__ */ O(
|
|
304
|
+
})] }), /* @__PURE__ */ O(A, {
|
|
305
305
|
variant: "outline",
|
|
306
306
|
size: "sm",
|
|
307
307
|
onClick: () => i("/tasks/my-work-page"),
|
|
@@ -6,8 +6,8 @@ import { CalendarClock as u, ListChecks as d } from "lucide-react";
|
|
|
6
6
|
import { gql as f } from "@apollo/client";
|
|
7
7
|
import { useQuery as p } from "@apollo/client/react";
|
|
8
8
|
import { jsx as m, jsxs as h } from "react/jsx-runtime";
|
|
9
|
-
import {
|
|
10
|
-
import {
|
|
9
|
+
import { Badge as g, Card as _, CardContent as v, Switch as y } from "@burdenoff/fe-libs/ui";
|
|
10
|
+
import { useI18n as b } from "@burdenoff/fe-libs/shared/providers/shell/I18nProvider";
|
|
11
11
|
//#region src/planmagnet/pages/TasksMyWorkPagePage.tsx
|
|
12
12
|
var x = f`
|
|
13
13
|
query GetMyWorkItems(
|
|
@@ -66,7 +66,7 @@ function T(e, t) {
|
|
|
66
66
|
}
|
|
67
67
|
}
|
|
68
68
|
function E() {
|
|
69
|
-
let { workspaceId: f } = e(), E = t(), { t: D } =
|
|
69
|
+
let { workspaceId: f } = e(), E = t(), { t: D } = b(), [O, k] = l(!1), [A, j] = l(!1), { data: M, loading: N, error: P, fetchMore: F } = p(x, {
|
|
70
70
|
variables: {
|
|
71
71
|
workspaceId: f,
|
|
72
72
|
filter: { includeClosed: O },
|
|
@@ -122,14 +122,14 @@ function E() {
|
|
|
122
122
|
children: D("planmagnet.myWork.subtitle", "{{count}} item(s) assigned to you across every project", { count: R })
|
|
123
123
|
})] }), /* @__PURE__ */ h("label", {
|
|
124
124
|
className: "flex items-center gap-2 text-sm text-muted-foreground",
|
|
125
|
-
children: [/* @__PURE__ */ m(
|
|
125
|
+
children: [/* @__PURE__ */ m(y, {
|
|
126
126
|
checked: O,
|
|
127
127
|
onCheckedChange: k,
|
|
128
128
|
"aria-label": D("planmagnet.myWork.includeClosed", "Show completed"),
|
|
129
129
|
"data-testid": "my-work-include-closed"
|
|
130
130
|
}), D("planmagnet.myWork.includeClosed", "Show completed")]
|
|
131
131
|
})]
|
|
132
|
-
}), L.length === 0 ? /* @__PURE__ */ m(
|
|
132
|
+
}), L.length === 0 ? /* @__PURE__ */ m(_, { children: /* @__PURE__ */ h(v, {
|
|
133
133
|
className: "flex flex-col items-center gap-2 py-12 text-center",
|
|
134
134
|
children: [
|
|
135
135
|
/* @__PURE__ */ m(u, { className: "h-8 w-8 text-muted-foreground" }),
|
|
@@ -149,7 +149,7 @@ function E() {
|
|
|
149
149
|
"data-testid": `my-work-group-${e}`,
|
|
150
150
|
children: [/* @__PURE__ */ h("div", {
|
|
151
151
|
className: "flex items-center gap-2",
|
|
152
|
-
children: [/* @__PURE__ */ m(
|
|
152
|
+
children: [/* @__PURE__ */ m(g, {
|
|
153
153
|
variant: w[e],
|
|
154
154
|
children: T(D, e)
|
|
155
155
|
}), /* @__PURE__ */ h("span", {
|
|
@@ -162,9 +162,9 @@ function E() {
|
|
|
162
162
|
})]
|
|
163
163
|
}), /* @__PURE__ */ m("div", {
|
|
164
164
|
className: "space-y-2",
|
|
165
|
-
children: t.map((e) => /* @__PURE__ */ m(
|
|
165
|
+
children: t.map((e) => /* @__PURE__ */ m(_, {
|
|
166
166
|
...s(() => E(`/tasks/task-detail-page?taskId=${encodeURIComponent(e.id)}`), e.title),
|
|
167
|
-
children: /* @__PURE__ */ h(
|
|
167
|
+
children: /* @__PURE__ */ h(v, {
|
|
168
168
|
className: "flex flex-wrap items-center gap-3 p-3",
|
|
169
169
|
children: [/* @__PURE__ */ h("div", {
|
|
170
170
|
className: "min-w-[12rem] flex-1 space-y-1",
|
|
@@ -175,11 +175,11 @@ function E() {
|
|
|
175
175
|
className: "flex flex-wrap items-center gap-1.5 text-xs text-muted-foreground",
|
|
176
176
|
children: [
|
|
177
177
|
/* @__PURE__ */ m("span", { children: e.key }),
|
|
178
|
-
e.project && /* @__PURE__ */ m(
|
|
178
|
+
e.project && /* @__PURE__ */ m(g, {
|
|
179
179
|
variant: "outline",
|
|
180
180
|
children: e.project.name
|
|
181
181
|
}),
|
|
182
|
-
e.sprint && /* @__PURE__ */ m(
|
|
182
|
+
e.sprint && /* @__PURE__ */ m(g, {
|
|
183
183
|
variant: "secondary",
|
|
184
184
|
children: e.sprint.name
|
|
185
185
|
}),
|
|
@@ -8,8 +8,8 @@ import { useState as u } from "react";
|
|
|
8
8
|
import { gql as d } from "@apollo/client";
|
|
9
9
|
import { useQuery as f } from "@apollo/client/react";
|
|
10
10
|
import { jsx as p, jsxs as m } from "react/jsx-runtime";
|
|
11
|
-
import {
|
|
12
|
-
import {
|
|
11
|
+
import { Input as h } from "@burdenoff/fe-libs/ui";
|
|
12
|
+
import { useI18n as g } from "@burdenoff/fe-libs/shared/providers/shell/I18nProvider";
|
|
13
13
|
//#region src/planmagnet/pages/TasksTimeEntriesPagePage.tsx
|
|
14
14
|
var _ = d`
|
|
15
15
|
query TimeEntriesList(
|
|
@@ -39,7 +39,7 @@ var _ = d`
|
|
|
39
39
|
}
|
|
40
40
|
`, v = ["ALL", ...a];
|
|
41
41
|
function y() {
|
|
42
|
-
let { workspaceId: a, currentUser: d } = e(), y = t(), { t: b } =
|
|
42
|
+
let { workspaceId: a, currentUser: d } = e(), y = t(), { t: b } = g(), [x, S] = u("mine"), [C, w] = u("ALL"), [T, E] = u(""), [D, O] = u(""), k = {
|
|
43
43
|
...x === "mine" && d?.id ? { userId: d.id } : {},
|
|
44
44
|
...C === "ALL" ? {} : { status: C },
|
|
45
45
|
...T ? { dateFrom: T } : {},
|
|
@@ -90,7 +90,7 @@ function y() {
|
|
|
90
90
|
className: "text-xs text-muted-foreground",
|
|
91
91
|
children: b("planmagnet.timeEntries.from", "From")
|
|
92
92
|
}),
|
|
93
|
-
/* @__PURE__ */ p(
|
|
93
|
+
/* @__PURE__ */ p(h, {
|
|
94
94
|
id: "time-entries-from",
|
|
95
95
|
type: "date",
|
|
96
96
|
className: "h-8 w-36",
|
|
@@ -102,7 +102,7 @@ function y() {
|
|
|
102
102
|
className: "text-xs text-muted-foreground",
|
|
103
103
|
children: b("planmagnet.timeEntries.to", "To")
|
|
104
104
|
}),
|
|
105
|
-
/* @__PURE__ */ p(
|
|
105
|
+
/* @__PURE__ */ p(h, {
|
|
106
106
|
id: "time-entries-to",
|
|
107
107
|
type: "date",
|
|
108
108
|
className: "h-8 w-36",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"TeamTeamPagePage.d.ts","sourceRoot":"","sources":["../../../src/planmagnet/pages/TeamTeamPagePage.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"TeamTeamPagePage.d.ts","sourceRoot":"","sources":["../../../src/planmagnet/pages/TeamTeamPagePage.tsx"],"names":[],"mappings":"AA4IA,wBAAgB,gBAAgB,4CA6D/B"}
|
|
@@ -1,14 +1,17 @@
|
|
|
1
1
|
import { usePlanMagnet as e, usePlanMagnetNavigate as t } from "../providers/PlanMagnetProvider.js";
|
|
2
2
|
import { PersonAvatar as n, PersonName as r } from "../people/People.js";
|
|
3
3
|
import { countLabel as i } from "../hooks/useCounts.js";
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
4
|
+
import { readUrlParam as a } from "../utils/urlParam.js";
|
|
5
|
+
import { UnmatchedCrewIdentitiesPanel as o } from "../team/UnmatchedCrewIdentities.js";
|
|
6
|
+
import { useEffect as s } from "react";
|
|
7
|
+
import { UserPlus as c } from "lucide-react";
|
|
8
|
+
import { gql as l } from "@apollo/client";
|
|
9
|
+
import { useQuery as u } from "@apollo/client/react";
|
|
10
|
+
import { jsx as d, jsxs as f } from "react/jsx-runtime";
|
|
11
|
+
import { Badge as p, Button as m, Card as h, CardContent as g } from "@burdenoff/fe-libs/ui";
|
|
12
|
+
import { useWorkspaceDirectory as _ } from "@burdenoff/fe-libs/sharing";
|
|
10
13
|
//#region src/planmagnet/pages/TeamTeamPagePage.tsx
|
|
11
|
-
var
|
|
14
|
+
var v = l`
|
|
12
15
|
query TeamMemberCounts($workspaceId: ID!, $userId: String!) {
|
|
13
16
|
planmagnetWorkItemCounts(workspaceId: $workspaceId, filter: { assigneeId: $userId }) {
|
|
14
17
|
total
|
|
@@ -26,7 +29,7 @@ var h = o`
|
|
|
26
29
|
totalCount
|
|
27
30
|
}
|
|
28
31
|
}
|
|
29
|
-
`,
|
|
32
|
+
`, y = l`
|
|
30
33
|
query TeamMemberRoles($actorId: String!, $scopeId: String!) {
|
|
31
34
|
actorRoleAssignments(actorId: $actorId, scopeId: $scopeId, pagination: { limit: 10 }) {
|
|
32
35
|
id
|
|
@@ -38,8 +41,8 @@ var h = o`
|
|
|
38
41
|
}
|
|
39
42
|
}
|
|
40
43
|
`;
|
|
41
|
-
function
|
|
42
|
-
let { workspaceId: n } = e(), { data: r, error: i } =
|
|
44
|
+
function b({ userId: t }) {
|
|
45
|
+
let { workspaceId: n } = e(), { data: r, error: i } = u(y, {
|
|
43
46
|
variables: {
|
|
44
47
|
actorId: t,
|
|
45
48
|
scopeId: n
|
|
@@ -48,68 +51,68 @@ function _({ userId: t }) {
|
|
|
48
51
|
});
|
|
49
52
|
if (i) return null;
|
|
50
53
|
let a = [...new Set((r?.actorRoleAssignments ?? []).filter((e) => e.isActive && e.role?.name).map((e) => e.role?.name))];
|
|
51
|
-
return a.length === 0 ? null : /* @__PURE__ */
|
|
54
|
+
return a.length === 0 ? null : /* @__PURE__ */ d("div", {
|
|
52
55
|
className: "flex flex-wrap gap-1",
|
|
53
56
|
"data-testid": "team-member-roles",
|
|
54
|
-
children: a.map((e) => /* @__PURE__ */
|
|
57
|
+
children: a.map((e) => /* @__PURE__ */ d(p, {
|
|
55
58
|
variant: "secondary",
|
|
56
59
|
className: "text-xs",
|
|
57
60
|
children: e
|
|
58
61
|
}, e))
|
|
59
62
|
});
|
|
60
63
|
}
|
|
61
|
-
function
|
|
62
|
-
let { workspaceId: a } = e(), { data: o, error:
|
|
64
|
+
function x({ userId: t }) {
|
|
65
|
+
let { workspaceId: a } = e(), { data: o, error: s } = u(v, {
|
|
63
66
|
variables: {
|
|
64
67
|
workspaceId: a,
|
|
65
68
|
userId: t
|
|
66
69
|
},
|
|
67
70
|
skip: !a
|
|
68
|
-
}),
|
|
69
|
-
return /* @__PURE__ */
|
|
71
|
+
}), c = s ? void 0 : o?.planmagnetWorkItemCounts, l = c?.byStatus.find((e) => e.status === "DONE");
|
|
72
|
+
return /* @__PURE__ */ d(h, {
|
|
70
73
|
"data-testid": "team-member",
|
|
71
|
-
children: /* @__PURE__ */
|
|
74
|
+
children: /* @__PURE__ */ f(g, {
|
|
72
75
|
className: "pt-4 space-y-3",
|
|
73
|
-
children: [/* @__PURE__ */
|
|
76
|
+
children: [/* @__PURE__ */ f("div", {
|
|
74
77
|
className: "flex items-center gap-3",
|
|
75
|
-
children: [/* @__PURE__ */
|
|
78
|
+
children: [/* @__PURE__ */ d(n, {
|
|
76
79
|
id: t,
|
|
77
80
|
className: "h-10 w-10 rounded-full bg-primary/10 flex items-center justify-center text-sm font-medium text-primary"
|
|
78
|
-
}), /* @__PURE__ */
|
|
81
|
+
}), /* @__PURE__ */ f("div", {
|
|
79
82
|
className: "min-w-0 space-y-1",
|
|
80
|
-
children: [/* @__PURE__ */
|
|
83
|
+
children: [/* @__PURE__ */ d("p", {
|
|
81
84
|
className: "text-sm font-medium",
|
|
82
|
-
children: /* @__PURE__ */
|
|
83
|
-
}), /* @__PURE__ */
|
|
85
|
+
children: /* @__PURE__ */ d(r, { id: t })
|
|
86
|
+
}), /* @__PURE__ */ d(b, { userId: t })]
|
|
84
87
|
})]
|
|
85
|
-
}), /* @__PURE__ */
|
|
88
|
+
}), /* @__PURE__ */ f("div", {
|
|
86
89
|
className: "grid grid-cols-4 gap-2 text-center text-xs",
|
|
87
90
|
children: [
|
|
88
|
-
/* @__PURE__ */
|
|
91
|
+
/* @__PURE__ */ f("div", { children: [/* @__PURE__ */ d("p", {
|
|
89
92
|
className: "font-semibold",
|
|
90
|
-
children: i(
|
|
91
|
-
}), /* @__PURE__ */
|
|
93
|
+
children: i(c?.total)
|
|
94
|
+
}), /* @__PURE__ */ d("p", {
|
|
92
95
|
className: "text-muted-foreground",
|
|
93
96
|
children: "Assigned"
|
|
94
97
|
})] }),
|
|
95
|
-
/* @__PURE__ */
|
|
98
|
+
/* @__PURE__ */ f("div", { children: [/* @__PURE__ */ d("p", {
|
|
96
99
|
className: "font-semibold",
|
|
97
|
-
children: i(
|
|
98
|
-
}), /* @__PURE__ */
|
|
100
|
+
children: i(c ? l?.count ?? 0 : null)
|
|
101
|
+
}), /* @__PURE__ */ d("p", {
|
|
99
102
|
className: "text-muted-foreground",
|
|
100
103
|
children: "Done"
|
|
101
104
|
})] }),
|
|
102
|
-
/* @__PURE__ */
|
|
105
|
+
/* @__PURE__ */ f("div", { children: [/* @__PURE__ */ d("p", {
|
|
103
106
|
className: "font-semibold",
|
|
104
|
-
children: i(
|
|
105
|
-
}), /* @__PURE__ */
|
|
107
|
+
children: i(c ? l?.points ?? 0 : null)
|
|
108
|
+
}), /* @__PURE__ */ d("p", {
|
|
106
109
|
className: "text-muted-foreground",
|
|
107
110
|
children: "Points done"
|
|
108
111
|
})] }),
|
|
109
|
-
/* @__PURE__ */
|
|
112
|
+
/* @__PURE__ */ f("div", { children: [/* @__PURE__ */ d("p", {
|
|
110
113
|
className: "font-semibold",
|
|
111
|
-
children: i(
|
|
112
|
-
}), /* @__PURE__ */
|
|
114
|
+
children: i(s ? null : o?.planmagnetProjects.totalCount)
|
|
115
|
+
}), /* @__PURE__ */ d("p", {
|
|
113
116
|
className: "text-muted-foreground",
|
|
114
117
|
children: "Projects owned"
|
|
115
118
|
})] })
|
|
@@ -118,45 +121,48 @@ function v({ userId: t }) {
|
|
|
118
121
|
})
|
|
119
122
|
});
|
|
120
123
|
}
|
|
121
|
-
function
|
|
122
|
-
let { workspaceId: n, authToken: r, apiGatewayUrl: i } = e(),
|
|
124
|
+
function S() {
|
|
125
|
+
let { workspaceId: n, authToken: r, apiGatewayUrl: i } = e(), l = t(), { members: u, loading: p, hasMore: h, fetchMore: g } = _({
|
|
123
126
|
workspaceId: n ?? "",
|
|
124
127
|
authToken: r ?? void 0,
|
|
125
128
|
apiGatewayUrl: i ?? void 0
|
|
126
129
|
});
|
|
127
|
-
return
|
|
130
|
+
return s(() => {
|
|
131
|
+
a("focus") === "unmatched-crew-identities" && document.getElementById("unmatched-crew-identities")?.scrollIntoView({ block: "start" });
|
|
132
|
+
}, []), /* @__PURE__ */ f("div", {
|
|
128
133
|
className: "space-y-6 p-6",
|
|
129
134
|
children: [
|
|
130
|
-
/* @__PURE__ */
|
|
135
|
+
/* @__PURE__ */ f("div", {
|
|
131
136
|
className: "flex items-start justify-between gap-4",
|
|
132
|
-
children: [/* @__PURE__ */
|
|
137
|
+
children: [/* @__PURE__ */ f("div", { children: [/* @__PURE__ */ d("h1", {
|
|
133
138
|
className: "text-2xl font-semibold",
|
|
134
139
|
children: "Team Overview"
|
|
135
|
-
}), /* @__PURE__ */
|
|
140
|
+
}), /* @__PURE__ */ d("p", {
|
|
136
141
|
className: "text-sm text-muted-foreground",
|
|
137
|
-
children:
|
|
138
|
-
})] }), /* @__PURE__ */
|
|
142
|
+
children: p && u.length === 0 ? "Loading members…" : `${u.length}${h ? "+" : ""} workspace member${u.length === 1 ? "" : "s"}`
|
|
143
|
+
})] }), /* @__PURE__ */ f(m, {
|
|
139
144
|
size: "sm",
|
|
140
145
|
variant: "outline",
|
|
141
|
-
onClick: () =>
|
|
146
|
+
onClick: () => l("/team/invite-member-page"),
|
|
142
147
|
"data-testid": "team-invite",
|
|
143
|
-
children: [/* @__PURE__ */ c
|
|
148
|
+
children: [/* @__PURE__ */ d(c, { className: "mr-1 h-4 w-4" }), "Invite member"]
|
|
144
149
|
})]
|
|
145
150
|
}),
|
|
146
|
-
/* @__PURE__ */
|
|
151
|
+
/* @__PURE__ */ d(o, {}),
|
|
152
|
+
/* @__PURE__ */ d("div", {
|
|
147
153
|
className: "grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-4",
|
|
148
|
-
children:
|
|
154
|
+
children: u.map((e) => /* @__PURE__ */ d(x, { userId: e.id }, e.id))
|
|
149
155
|
}),
|
|
150
|
-
!
|
|
156
|
+
!p && u.length === 0 && /* @__PURE__ */ d("p", {
|
|
151
157
|
className: "text-sm text-muted-foreground text-center py-4",
|
|
152
158
|
children: "No members found. Invite someone to the workspace to work together."
|
|
153
159
|
}),
|
|
154
|
-
|
|
160
|
+
h && /* @__PURE__ */ d("div", {
|
|
155
161
|
className: "text-center",
|
|
156
|
-
children: /* @__PURE__ */
|
|
162
|
+
children: /* @__PURE__ */ d(m, {
|
|
157
163
|
size: "sm",
|
|
158
164
|
variant: "outline",
|
|
159
|
-
onClick:
|
|
165
|
+
onClick: g,
|
|
160
166
|
children: "Show more members"
|
|
161
167
|
})
|
|
162
168
|
})
|
|
@@ -164,6 +170,6 @@ function y() {
|
|
|
164
170
|
});
|
|
165
171
|
}
|
|
166
172
|
//#endregion
|
|
167
|
-
export {
|
|
173
|
+
export { S as TeamTeamPagePage };
|
|
168
174
|
|
|
169
175
|
//# sourceMappingURL=TeamTeamPagePage.js.map
|