@burdenoff/microfe-planmagnet 2026.1001.6 → 2026.1001.8

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (94) hide show
  1. package/dist/planmagnet/PlanMagnetRoutes.d.ts.map +1 -1
  2. package/dist/planmagnet/PlanMagnetRoutes.js +10 -6
  3. package/dist/planmagnet/PlanMagnetRoutes.js.map +1 -1
  4. package/dist/planmagnet/automation/automationRuleTypes.d.ts +31 -19
  5. package/dist/planmagnet/automation/automationRuleTypes.d.ts.map +1 -1
  6. package/dist/planmagnet/automation/automationRuleTypes.js +4 -8
  7. package/dist/planmagnet/automation/automationRuleTypes.js.map +1 -1
  8. package/dist/planmagnet/controls/FeatureControls.d.ts +18 -1
  9. package/dist/planmagnet/controls/FeatureControls.d.ts.map +1 -1
  10. package/dist/planmagnet/controls/FeatureControls.js +259 -202
  11. package/dist/planmagnet/controls/FeatureControls.js.map +1 -1
  12. package/dist/planmagnet/controls/FeedbackControls.d.ts +70 -0
  13. package/dist/planmagnet/controls/FeedbackControls.d.ts.map +1 -0
  14. package/dist/planmagnet/controls/FeedbackControls.js +153 -0
  15. package/dist/planmagnet/controls/FeedbackControls.js.map +1 -0
  16. package/dist/planmagnet/controls/SyncControls.d.ts.map +1 -1
  17. package/dist/planmagnet/controls/SyncControls.js +1 -0
  18. package/dist/planmagnet/controls/SyncControls.js.map +1 -1
  19. package/dist/planmagnet/controls/WebhookSubscriptionControls.d.ts +47 -0
  20. package/dist/planmagnet/controls/WebhookSubscriptionControls.d.ts.map +1 -0
  21. package/dist/planmagnet/controls/WebhookSubscriptionControls.js +542 -0
  22. package/dist/planmagnet/controls/WebhookSubscriptionControls.js.map +1 -0
  23. package/dist/planmagnet/dashboards/DashboardUI.js +7 -7
  24. package/dist/planmagnet/dashboards/cards/RiskSeverityCard.js +4 -4
  25. package/dist/planmagnet/forecast/DeliveryForecastCard.js +8 -8
  26. package/dist/planmagnet/forecast/ProjectOutlookCard.js +10 -10
  27. package/dist/planmagnet/forecast/ProjectRiskSummaryCard.js +9 -9
  28. package/dist/planmagnet/forecast/ResourceForecastCard.js +6 -6
  29. package/dist/planmagnet/hooks/useLiveRefresh.d.ts +33 -2
  30. package/dist/planmagnet/hooks/useLiveRefresh.d.ts.map +1 -1
  31. package/dist/planmagnet/hooks/useLiveRefresh.js +71 -42
  32. package/dist/planmagnet/hooks/useLiveRefresh.js.map +1 -1
  33. package/dist/planmagnet/integrations/syncTypes.d.ts +2 -1
  34. package/dist/planmagnet/integrations/syncTypes.d.ts.map +1 -1
  35. package/dist/planmagnet/integrations/syncTypes.js +19 -9
  36. package/dist/planmagnet/integrations/syncTypes.js.map +1 -1
  37. package/dist/planmagnet/pages/AnalyticsAnalyticsPagePage.js +8 -8
  38. package/dist/planmagnet/pages/DashboardDashboardPagePage.js +23 -23
  39. package/dist/planmagnet/pages/DocsDocDetailPagePage.d.ts.map +1 -1
  40. package/dist/planmagnet/pages/DocsDocDetailPagePage.js +340 -248
  41. package/dist/planmagnet/pages/DocsDocDetailPagePage.js.map +1 -1
  42. package/dist/planmagnet/pages/IntegrationsSyncDetailPagePage.d.ts.map +1 -1
  43. package/dist/planmagnet/pages/IntegrationsSyncDetailPagePage.js +172 -167
  44. package/dist/planmagnet/pages/IntegrationsSyncDetailPagePage.js.map +1 -1
  45. package/dist/planmagnet/pages/IntegrationsSyncsPagePage.d.ts.map +1 -1
  46. package/dist/planmagnet/pages/IntegrationsSyncsPagePage.js +92 -83
  47. package/dist/planmagnet/pages/IntegrationsSyncsPagePage.js.map +1 -1
  48. package/dist/planmagnet/pages/IntegrationsWebhooksPagePage.d.ts +2 -0
  49. package/dist/planmagnet/pages/IntegrationsWebhooksPagePage.d.ts.map +1 -0
  50. package/dist/planmagnet/pages/IntegrationsWebhooksPagePage.js +175 -0
  51. package/dist/planmagnet/pages/IntegrationsWebhooksPagePage.js.map +1 -0
  52. package/dist/planmagnet/pages/ProductsFeatureDetailPagePage.d.ts.map +1 -1
  53. package/dist/planmagnet/pages/ProductsFeatureDetailPagePage.js +151 -126
  54. package/dist/planmagnet/pages/ProductsFeatureDetailPagePage.js.map +1 -1
  55. package/dist/planmagnet/pages/ProductsFeaturesPagePage.d.ts.map +1 -1
  56. package/dist/planmagnet/pages/ProductsFeaturesPagePage.js +136 -129
  57. package/dist/planmagnet/pages/ProductsFeaturesPagePage.js.map +1 -1
  58. package/dist/planmagnet/pages/ProductsNewFeaturePagePage.d.ts.map +1 -1
  59. package/dist/planmagnet/pages/ProductsNewFeaturePagePage.js +149 -119
  60. package/dist/planmagnet/pages/ProductsNewFeaturePagePage.js.map +1 -1
  61. package/dist/planmagnet/pages/ProductsProductsPagePage.js +13 -13
  62. package/dist/planmagnet/pages/ProductsRoadmapAnalyticsPagePage.d.ts.map +1 -1
  63. package/dist/planmagnet/pages/ProductsRoadmapAnalyticsPagePage.js +153 -117
  64. package/dist/planmagnet/pages/ProductsRoadmapAnalyticsPagePage.js.map +1 -1
  65. package/dist/planmagnet/pages/ProductsRoadmapDetailPagePage.d.ts.map +1 -1
  66. package/dist/planmagnet/pages/ProductsRoadmapDetailPagePage.js +173 -138
  67. package/dist/planmagnet/pages/ProductsRoadmapDetailPagePage.js.map +1 -1
  68. package/dist/planmagnet/pages/ProjectsAtRiskPagePage.js +9 -9
  69. package/dist/planmagnet/pages/ProjectsBudgetsPagePage.js +8 -8
  70. package/dist/planmagnet/pages/ProjectsProjectsPagePage.js +12 -12
  71. package/dist/planmagnet/pages/ReportsReportsPagePage.js +23 -23
  72. package/dist/planmagnet/pages/TasksMyDashboardPagePage.js +18 -18
  73. package/dist/planmagnet/pages/TasksMyWorkPagePage.js +10 -10
  74. package/dist/planmagnet/pages/TasksTimeEntriesPagePage.js +5 -5
  75. package/dist/planmagnet/pages/analytics/DeliveryHealthCards.js +8 -8
  76. package/dist/planmagnet/pages/analytics/DeliveryKpisCard.js +6 -6
  77. package/dist/planmagnet/pages/analytics/MetricsCard.js +6 -6
  78. package/dist/planmagnet/pages/analytics/QualityMetricsCard.js +6 -6
  79. package/dist/planmagnet/pages/analytics/SprintDeliveryCards.js +8 -8
  80. package/dist/planmagnet/pages/analytics/StatusFlowCard.js +7 -7
  81. package/dist/planmagnet/pages/analytics/ThroughputCard.js +7 -7
  82. package/dist/planmagnet/pages/analytics/WorkBreakdownCard.js +7 -7
  83. package/dist/planmagnet/people/People.d.ts +14 -0
  84. package/dist/planmagnet/people/People.d.ts.map +1 -1
  85. package/dist/planmagnet/people/People.js +36 -22
  86. package/dist/planmagnet/people/People.js.map +1 -1
  87. package/dist/planmagnet/roadmaps/RoadmapNowNextLater.d.ts.map +1 -1
  88. package/dist/planmagnet/roadmaps/RoadmapNowNextLater.js +171 -153
  89. package/dist/planmagnet/roadmaps/RoadmapNowNextLater.js.map +1 -1
  90. package/dist/planmagnet/webhooks/webhookTypes.d.ts +54 -0
  91. package/dist/planmagnet/webhooks/webhookTypes.d.ts.map +1 -0
  92. package/dist/planmagnet/webhooks/webhookTypes.js +17 -0
  93. package/dist/planmagnet/webhooks/webhookTypes.js.map +1 -0
  94. package/package.json +1 -1
@@ -10,8 +10,8 @@ import { useSearchParams as f } from "react-router";
10
10
  import { gql as p } from "@apollo/client";
11
11
  import { useQuery as m } from "@apollo/client/react";
12
12
  import { Fragment as h, jsx as g, jsxs as _ } from "react/jsx-runtime";
13
- import { useI18n as v } from "@burdenoff/fe-libs/shared/providers/shell/I18nProvider";
14
- import { Badge as y, Card as b, CardContent as x, CardHeader as S, CardTitle as C } from "@burdenoff/fe-libs/ui";
13
+ import { Badge as v, Card as y, CardContent as b, CardHeader as x, CardTitle as S } from "@burdenoff/fe-libs/ui";
14
+ import { useI18n as C } from "@burdenoff/fe-libs/shared/providers/shell/I18nProvider";
15
15
  //#region src/planmagnet/pages/ProjectsAtRiskPagePage.tsx
16
16
  var w = 100, T = p`
17
17
  query AtRiskProjectSprints($workspaceId: ID!, $projectId: String) {
@@ -60,7 +60,7 @@ var w = 100, T = p`
60
60
  }
61
61
  `, D = "ALL";
62
62
  function O() {
63
- let { workspaceId: p } = e(), O = t(), { t: k } = v(), [A, j] = f(), M = A.get("projectId") ?? "", N = A.get("sprintId") ?? "", [P, F] = u(D);
63
+ let { workspaceId: p } = e(), O = t(), { t: k } = C(), [A, j] = f(), M = A.get("projectId") ?? "", N = A.get("sprintId") ?? "", [P, F] = u(D);
64
64
  function I(e) {
65
65
  let t = new URLSearchParams(A);
66
66
  e ? t.set("projectId", e) : t.delete("projectId"), t.delete("sprintId"), j(t, { replace: !0 });
@@ -97,12 +97,12 @@ function O() {
97
97
  }), /* @__PURE__ */ g("p", {
98
98
  className: "text-sm text-muted-foreground",
99
99
  children: k("planmagnet.forecast.atRisk.subtitle", "Open work items carrying one or more risk flags, each raised by an explicit threshold rule — never AI-generated.")
100
- })] }), /* @__PURE__ */ g(y, {
100
+ })] }), /* @__PURE__ */ g(v, {
101
101
  variant: "outline",
102
102
  children: k("planmagnet.forecast.atRisk.method", "Rule-based")
103
103
  })]
104
104
  }),
105
- /* @__PURE__ */ g(b, { children: /* @__PURE__ */ _(x, {
105
+ /* @__PURE__ */ g(y, { children: /* @__PURE__ */ _(b, {
106
106
  className: "flex flex-wrap items-end gap-3 pt-4",
107
107
  children: [/* @__PURE__ */ _("div", {
108
108
  className: "space-y-1",
@@ -159,7 +159,7 @@ function O() {
159
159
  ")"
160
160
  ]
161
161
  }, e))]
162
- }), /* @__PURE__ */ _(b, { children: [/* @__PURE__ */ g(S, { children: /* @__PURE__ */ g(C, { children: V && !B ? k("planmagnet.forecast.loading", "Loading…") : k("planmagnet.forecast.atRisk.count", "{{count}} flagged item(s)", { count: G.length }) }) }), /* @__PURE__ */ _(x, {
162
+ }), /* @__PURE__ */ _(y, { children: [/* @__PURE__ */ g(x, { children: /* @__PURE__ */ g(S, { children: V && !B ? k("planmagnet.forecast.loading", "Loading…") : k("planmagnet.forecast.atRisk.count", "{{count}} flagged item(s)", { count: G.length }) }) }), /* @__PURE__ */ _(b, {
163
163
  className: "space-y-3",
164
164
  children: [V && !B ? /* @__PURE__ */ g("div", {
165
165
  className: "flex justify-center py-12",
@@ -197,12 +197,12 @@ function O() {
197
197
  className: "flex items-start gap-2 text-xs",
198
198
  children: [
199
199
  /* @__PURE__ */ g(c(e.kind), { className: "mt-0.5 h-3.5 w-3.5 shrink-0 text-muted-foreground" }),
200
- /* @__PURE__ */ g(y, {
200
+ /* @__PURE__ */ g(v, {
201
201
  variant: l(e.severity),
202
202
  className: "shrink-0",
203
203
  children: r(e.severity)
204
204
  }),
205
- /* @__PURE__ */ g(y, {
205
+ /* @__PURE__ */ g(v, {
206
206
  variant: "outline",
207
207
  className: "shrink-0",
208
208
  children: r(e.kind)
@@ -221,7 +221,7 @@ function O() {
221
221
  total: U.totalCount
222
222
  })
223
223
  })]
224
- })] })] }) : /* @__PURE__ */ g(b, { children: /* @__PURE__ */ g(x, {
224
+ })] })] }) : /* @__PURE__ */ g(y, { children: /* @__PURE__ */ g(b, {
225
225
  className: "py-10 text-center text-sm text-muted-foreground",
226
226
  children: k("planmagnet.forecast.atRisk.noProject", "Choose a project to see its at-risk work.")
227
227
  }) })
@@ -10,8 +10,8 @@ import { useSearchParams as h } from "react-router";
10
10
  import { gql as g } from "@apollo/client";
11
11
  import { useQuery as _ } from "@apollo/client/react";
12
12
  import { jsx as v, jsxs as y } from "react/jsx-runtime";
13
- import { useI18n as b } from "@burdenoff/fe-libs/shared/providers/shell/I18nProvider";
14
- import { Card as x, CardContent as S, CardHeader as C, CardTitle as w, Input as T } from "@burdenoff/fe-libs/ui";
13
+ import { Card as b, CardContent as x, CardHeader as S, CardTitle as C, Input as w } from "@burdenoff/fe-libs/ui";
14
+ import { useI18n as T } from "@burdenoff/fe-libs/shared/providers/shell/I18nProvider";
15
15
  //#region src/planmagnet/pages/ProjectsBudgetsPagePage.tsx
16
16
  var E = g`
17
17
  query BudgetsList(
@@ -38,7 +38,7 @@ var E = g`
38
38
  }
39
39
  `, D = ["ALL", ...u];
40
40
  function O() {
41
- let { workspaceId: u } = e(), g = t(), { t: O } = b(), [k] = h(), [A, j] = p(k.get("projectId") ?? ""), [M, N] = p("ALL"), [P, F] = p(""), I = f(P.trim()), L = {
41
+ let { workspaceId: u } = e(), g = t(), { t: O } = T(), [k] = h(), [A, j] = p(k.get("projectId") ?? ""), [M, N] = p("ALL"), [P, F] = p(""), I = f(P.trim()), L = {
42
42
  ...A ? { projectId: A } : {},
43
43
  ...M === "ALL" ? {} : { status: M },
44
44
  ...I ? { search: I } : {}
@@ -76,7 +76,7 @@ function O() {
76
76
  onChange: j,
77
77
  noneLabel: O("planmagnet.budgets.allProjects", "All projects")
78
78
  })
79
- }), /* @__PURE__ */ v(T, {
79
+ }), /* @__PURE__ */ v(w, {
80
80
  "aria-label": O("planmagnet.budgets.search", "Search budgets"),
81
81
  placeholder: O("planmagnet.budgets.searchPlaceholder", "Search by name or description"),
82
82
  className: "w-full max-w-xs",
@@ -117,13 +117,13 @@ function O() {
117
117
  className: "grid grid-cols-1 md:grid-cols-2 gap-4",
118
118
  children: V.map((e) => {
119
119
  let t = i(e.plannedAmount, e.spentAmount), l = n[r(t)], u = t === null ? null : Math.round(t * 100);
120
- return /* @__PURE__ */ y(x, {
120
+ return /* @__PURE__ */ y(b, {
121
121
  ...c(() => g(s("/projects/budget-detail-page", e.id)), e.name),
122
- children: [/* @__PURE__ */ v(C, {
122
+ children: [/* @__PURE__ */ v(S, {
123
123
  className: "pb-2",
124
124
  children: /* @__PURE__ */ y("div", {
125
125
  className: "flex items-center justify-between gap-2",
126
- children: [/* @__PURE__ */ y(w, {
126
+ children: [/* @__PURE__ */ y(C, {
127
127
  className: "text-base flex items-center gap-2",
128
128
  children: [/* @__PURE__ */ v(m, { className: "h-4 w-4 text-primary" }), e.name]
129
129
  }), /* @__PURE__ */ v("span", {
@@ -131,7 +131,7 @@ function O() {
131
131
  children: o(e.status)
132
132
  })]
133
133
  })
134
- }), /* @__PURE__ */ y(S, {
134
+ }), /* @__PURE__ */ y(x, {
135
135
  className: "space-y-3",
136
136
  children: [
137
137
  /* @__PURE__ */ v("p", {
@@ -6,8 +6,8 @@ import { CheckSquare as s, FolderKanban as c, LayoutTemplate as l, Plus as u, Tr
6
6
  import { gql as p } from "@apollo/client";
7
7
  import { useQuery as m } from "@apollo/client/react";
8
8
  import { jsx as h, jsxs as g } from "react/jsx-runtime";
9
- import { useI18n as _ } from "@burdenoff/fe-libs/shared/providers/shell/I18nProvider";
10
- import { Badge as v, Button as y, Card as b, CardContent as x, CardHeader as S, CardTitle as C } from "@burdenoff/fe-libs/ui";
9
+ import { Badge as _, Button as v, Card as y, CardContent as b, CardHeader as x, CardTitle as S } from "@burdenoff/fe-libs/ui";
10
+ import { useI18n as C } from "@burdenoff/fe-libs/shared/providers/shell/I18nProvider";
11
11
  //#region src/planmagnet/pages/ProjectsProjectsPagePage.tsx
12
12
  var w = p`
13
13
  query GetProjects($workspaceId: ID!) {
@@ -37,7 +37,7 @@ var w = p`
37
37
  CUSTOM: "bg-amber-100 text-amber-800"
38
38
  }, E = (e) => e === "ACTIVE" ? "default" : "secondary";
39
39
  function D() {
40
- let p = t(), { workspaceId: D } = e(), { t: O } = _(), { data: k, loading: A, error: j } = m(w, { variables: { workspaceId: D ?? "default" } }), M = i();
40
+ let p = t(), { workspaceId: D } = e(), { t: O } = C(), { data: k, loading: A, error: j } = m(w, { variables: { workspaceId: D ?? "default" } }), M = i();
41
41
  if (A && !k) return /* @__PURE__ */ h("div", {
42
42
  className: "flex items-center justify-center p-12",
43
43
  children: /* @__PURE__ */ h("div", { className: "animate-spin h-8 w-8 border-2 border-primary border-t-transparent rounded-full" })
@@ -69,13 +69,13 @@ function D() {
69
69
  children: O("planmagnet.projects.subtitle", "Manage and track all projects across teams")
70
70
  })] }), /* @__PURE__ */ g("div", {
71
71
  className: "flex gap-2",
72
- children: [/* @__PURE__ */ g(y, {
72
+ children: [/* @__PURE__ */ g(v, {
73
73
  size: "sm",
74
74
  variant: "outline",
75
75
  onClick: () => p("/templates/templates-page"),
76
76
  "data-testid": "projects-templates-link",
77
77
  children: [/* @__PURE__ */ h(l, { className: "mr-1 h-4 w-4" }), "Templates"]
78
- }), /* @__PURE__ */ g(y, {
78
+ }), /* @__PURE__ */ g(v, {
79
79
  size: "sm",
80
80
  onClick: () => p("/projects/create-project-page"),
81
81
  children: [/* @__PURE__ */ h(u, { className: "mr-1 h-4 w-4" }), O("planmagnet.projects.actions.newProject", "New Project")]
@@ -105,7 +105,7 @@ function D() {
105
105
  value: P.onHold,
106
106
  icon: d
107
107
  }
108
- ].map((e) => /* @__PURE__ */ h(b, { children: /* @__PURE__ */ g(x, {
108
+ ].map((e) => /* @__PURE__ */ h(y, { children: /* @__PURE__ */ g(b, {
109
109
  className: "pt-4",
110
110
  children: [/* @__PURE__ */ g("div", {
111
111
  className: "flex items-center gap-2 text-muted-foreground text-sm",
@@ -118,13 +118,13 @@ function D() {
118
118
  }),
119
119
  /* @__PURE__ */ h("div", {
120
120
  className: "grid grid-cols-1 md:grid-cols-2 gap-4",
121
- children: N.map((e) => /* @__PURE__ */ g(b, {
121
+ children: N.map((e) => /* @__PURE__ */ g(y, {
122
122
  ...o(() => p(a("/projects/project-detail-page", e.id)), e.name),
123
- children: [/* @__PURE__ */ h(S, {
123
+ children: [/* @__PURE__ */ h(x, {
124
124
  className: "pb-2",
125
125
  children: /* @__PURE__ */ g("div", {
126
126
  className: "flex items-center justify-between",
127
- children: [/* @__PURE__ */ h(C, {
127
+ children: [/* @__PURE__ */ h(S, {
128
128
  className: "text-base",
129
129
  children: e.name
130
130
  }), /* @__PURE__ */ h("span", {
@@ -132,7 +132,7 @@ function D() {
132
132
  children: e.key
133
133
  })]
134
134
  })
135
- }), /* @__PURE__ */ g(x, {
135
+ }), /* @__PURE__ */ g(b, {
136
136
  className: "space-y-3",
137
137
  children: [
138
138
  /* @__PURE__ */ h("p", {
@@ -141,7 +141,7 @@ function D() {
141
141
  }),
142
142
  /* @__PURE__ */ g("div", {
143
143
  className: "flex gap-2",
144
- children: [/* @__PURE__ */ h(v, {
144
+ children: [/* @__PURE__ */ h(_, {
145
145
  variant: E(e.status),
146
146
  className: "capitalize",
147
147
  children: e.status.toLowerCase().replace("_", " ")
@@ -152,7 +152,7 @@ function D() {
152
152
  }),
153
153
  e.tags.length > 0 && /* @__PURE__ */ h("div", {
154
154
  className: "flex gap-1 flex-wrap",
155
- children: e.tags.map((e) => /* @__PURE__ */ h(v, {
155
+ children: e.tags.map((e) => /* @__PURE__ */ h(_, {
156
156
  variant: "outline",
157
157
  className: "text-xs",
158
158
  children: e
@@ -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 { useI18n as T } from "@burdenoff/fe-libs/shared/providers/shell/I18nProvider";
13
- import { Badge as E, Button as D, Card as O, CardContent as k, CardDescription as A, CardHeader as j, CardTitle as M, Input as N, Tabs as P, TabsContent as F, TabsList as I, TabsTrigger as L } from "@burdenoff/fe-libs/ui";
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(E, {
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(D, {
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
- }, M = async (e) => {
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(N, {
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 M(e)
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), E = async (e) => {
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(O, {
174
+ children: N.map((e) => /* @__PURE__ */ w(D, {
175
175
  "data-testid": "report-template",
176
- children: [/* @__PURE__ */ w(j, { children: [/* @__PURE__ */ w(M, {
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(A, { children: e.description })] }), /* @__PURE__ */ w(k, { children: [/* @__PURE__ */ w("p", {
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(D, {
186
+ }), /* @__PURE__ */ C(E, {
187
187
  size: "sm",
188
188
  className: "w-full",
189
189
  disabled: m,
190
- onClick: () => void E(e),
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 } = T(), n = t();
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(D, {
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(P, {
215
+ }), /* @__PURE__ */ w(N, {
216
216
  defaultValue: "mine",
217
217
  children: [
218
- /* @__PURE__ */ w(I, { children: [
219
- /* @__PURE__ */ C(L, {
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(L, {
224
+ /* @__PURE__ */ C(I, {
225
225
  value: "workspace",
226
226
  children: "Workspace"
227
227
  }),
228
- /* @__PURE__ */ C(L, {
228
+ /* @__PURE__ */ C(I, {
229
229
  value: "templates",
230
230
  children: "Templates"
231
231
  })
232
232
  ] }),
233
- /* @__PURE__ */ C(F, {
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(F, {
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(F, {
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 { useI18n as k } from "@burdenoff/fe-libs/shared/providers/shell/I18nProvider";
21
- import { Badge as A, Button as j, Card as M, CardContent as N, CardHeader as P, CardTitle as F } from "@burdenoff/fe-libs/ui";
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 } = k(), { startDate: i, endDate: a } = _(t), { data: o, loading: s, error: c } = T(I, {
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(M, {
89
+ return /* @__PURE__ */ O(j, {
90
90
  "data-testid": "my-time-allocation",
91
- children: [/* @__PURE__ */ D(P, { children: /* @__PURE__ */ O("div", {
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(F, {
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(N, { children: s ? /* @__PURE__ */ D("p", {
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 } = k(), { data: n, loading: r, error: f } = T(L, {
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(M, {
169
+ return /* @__PURE__ */ O(j, {
170
170
  "data-testid": "my-delivery-trend",
171
- children: [/* @__PURE__ */ O(P, { children: [/* @__PURE__ */ O(F, {
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(N, { children: r ? /* @__PURE__ */ D("p", {
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 } = k(), i = r(), { data: a, loading: o, error: s } = T(R, {
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(M, {
236
+ return /* @__PURE__ */ O(j, {
237
237
  "data-testid": "my-goals",
238
- children: [/* @__PURE__ */ O(P, { children: [/* @__PURE__ */ O(F, {
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(N, { children: t ? o ? /* @__PURE__ */ D("p", {
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(A, {
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 } = k(), [o, s] = v(() => g("30"));
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(j, {
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 { useI18n as g } from "@burdenoff/fe-libs/shared/providers/shell/I18nProvider";
10
- import { Badge as _, Card as v, CardContent as y, Switch as b } from "@burdenoff/fe-libs/ui";
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 } = g(), [O, k] = l(!1), [A, j] = l(!1), { data: M, loading: N, error: P, fetchMore: F } = p(x, {
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(b, {
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(v, { children: /* @__PURE__ */ h(y, {
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(v, {
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(y, {
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 { useI18n as h } from "@burdenoff/fe-libs/shared/providers/shell/I18nProvider";
12
- import { Input as g } from "@burdenoff/fe-libs/ui";
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 } = h(), [x, S] = u("mine"), [C, w] = u("ALL"), [T, E] = u(""), [D, O] = u(""), k = {
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(g, {
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(g, {
105
+ /* @__PURE__ */ p(h, {
106
106
  id: "time-entries-to",
107
107
  type: "date",
108
108
  className: "h-8 w-36",