@burdenoff/microfe-healthybowl 2026.1203.1 → 2026.1203.3

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.
@@ -10,7 +10,7 @@ import { Button as f } from "@burdenoff/fe-libs/ui";
10
10
  import { gql as p } from "@apollo/client";
11
11
  import { ApolloProvider as m, useMutation as h } from "@apollo/client/react";
12
12
  import { useSafeGatewayClient as g } from "@burdenoff/fe-libs/shared/graphql";
13
- import { CreateTaskCore as _ } from "@burdenoff/planmagnet-fe-sdk";
13
+ import { CreateTaskCore as _ } from "@planmagnet/fe-sdk";
14
14
  // src/healthybowl/components/CreateFarmTaskButton.tsx
15
15
  var v = p`
16
16
  mutation HealthyBowlLinkWorkItem($input: PlanmagnetCreateWorkItemLinkInput!) {
@@ -13,39 +13,39 @@ import { useCanManageTasks as re } from "./useCanManageTasks.js";
13
13
  import { useHbPagesV3 as ie } from "../../pagesV3.js";
14
14
  import { todayDateParam as ae } from "./useJobCardTasks.js";
15
15
  import { useCallback as c, useMemo as l, useState as u } from "react";
16
- import { useI18n as d } from "@burdenoff/fe-libs/shared/providers/shell/I18nProvider";
17
- import { Bug as f, ListChecks as p, MapPin as m, PawPrint as h, Plus as g, Printer as _, Sprout as v } from "lucide-react";
18
- import { useNavigate as y, useSearchParams as b } from "react-router";
19
- import { jsx as x, jsxs as S } from "react/jsx-runtime";
20
- import { Button as C } from "@burdenoff/fe-libs/ui";
21
- import { useWorkspaceDirectory as oe } from "@burdenoff/fe-libs/sharing";
22
- import { gql as w } from "@apollo/client";
23
- import { ApolloProvider as T } from "@apollo/client/react";
24
- import { useSafeGatewayClient as se } from "@burdenoff/fe-libs/shared/graphql";
25
- import { CreateTaskCore as ce, TasksPageCore as le } from "@burdenoff/planmagnet-fe-sdk";
16
+ import { useI18n as oe } from "@burdenoff/fe-libs/shared/providers/shell/I18nProvider";
17
+ import { Bug as d, ListChecks as f, MapPin as p, PawPrint as m, Plus as h, Printer as g, Sprout as _ } from "lucide-react";
18
+ import { useNavigate as v, useSearchParams as y } from "react-router";
19
+ import { jsx as b, jsxs as x } from "react/jsx-runtime";
20
+ import { Button as S } from "@burdenoff/fe-libs/ui";
21
+ import { useWorkspaceDirectory as se } from "@burdenoff/fe-libs/sharing";
22
+ import { gql as C } from "@apollo/client";
23
+ import { ApolloProvider as w } from "@apollo/client/react";
24
+ import { useSafeGatewayClient as ce } from "@burdenoff/fe-libs/shared/graphql";
25
+ import { CreateTaskCore as le, TasksPageCore as ue } from "@planmagnet/fe-sdk";
26
26
  // src/healthybowl/pages/tasks/TasksPage.tsx
27
- var ue = (e) => {
27
+ var de = (e) => {
28
28
  switch (e) {
29
- case "FIELD": return /* @__PURE__ */ x(m, {
29
+ case "FIELD": return /* @__PURE__ */ b(p, {
30
30
  className: "h-3 w-3",
31
31
  "aria-hidden": "true"
32
32
  });
33
- case "CROP": return /* @__PURE__ */ x(v, {
33
+ case "CROP": return /* @__PURE__ */ b(_, {
34
34
  className: "h-3 w-3",
35
35
  "aria-hidden": "true"
36
36
  });
37
- case "ANIMAL": return /* @__PURE__ */ x(h, {
37
+ case "ANIMAL": return /* @__PURE__ */ b(m, {
38
38
  className: "h-3 w-3",
39
39
  "aria-hidden": "true"
40
40
  });
41
41
  case "PEST_ISSUE":
42
- case "PEST": return /* @__PURE__ */ x(f, {
42
+ case "PEST": return /* @__PURE__ */ b(d, {
43
43
  className: "h-3 w-3",
44
44
  "aria-hidden": "true"
45
45
  });
46
46
  default: return null;
47
47
  }
48
- }, E = [
48
+ }, T = [
49
49
  {
50
50
  status: "BACKLOG",
51
51
  label: "Backlog"
@@ -66,152 +66,157 @@ var ue = (e) => {
66
66
  status: "DONE",
67
67
  label: "Done"
68
68
  }
69
- ], de = E.map((e) => e.status), D = w`
69
+ ], fe = T.map((e) => e.status), E = C`
70
70
  mutation HealthyBowlNotifyMention($input: HealthyBowlNotifyMentionInput!) {
71
71
  healthybowlNotifyMention(input: $input)
72
72
  }
73
- `, O = () => {
74
- let { workspaceId: f, currentUser: m, authToken: h, apiGatewayUrl: v } = n(), w = se("workspace"), O = m?.id, [k] = b(), A = k.get("item") ?? void 0, j = y(), { buildPath: M } = r(), N = c(() => {
73
+ `, D = () => {
74
+ let { workspaceId: d, currentUser: p, authToken: m, apiGatewayUrl: _ } = n(), C = ce("workspace"), D = p?.id, [O] = y(), k = O.get("item") ?? void 0, A = v(), { buildPath: j } = r(), M = c(() => {
75
75
  let e = new URLSearchParams({ date: ae() });
76
- O && e.set("assignee", O), j(`${M("tasks/job-card")}?${e.toString()}`);
76
+ D && e.set("assignee", D), A(`${j("tasks/job-card")}?${e.toString()}`);
77
77
  }, [
78
+ A,
78
79
  j,
79
- M,
80
- O
81
- ]), { projectId: P, loading: F, resolved: I, error: L, retry: R, ensureProject: z } = a(w, f, O), { members: B } = oe({
82
- workspaceId: f,
83
- authToken: h,
84
- apiGatewayUrl: v
85
- }), V = l(() => B.map((e) => ({
80
+ D
81
+ ]), { projectId: N, loading: P, resolved: F, error: I, retry: L, ensureProject: R } = a(C, d, D), { members: z } = se({
82
+ workspaceId: d,
83
+ authToken: m,
84
+ apiGatewayUrl: _
85
+ }), B = l(() => z.map((e) => ({
86
86
  id: e.id,
87
87
  name: e.name
88
- })), [B]), H = l(() => new Map(B.map((e) => [e.id, e.name])), [B]), U = c((e) => {
89
- let t = H.get(e);
88
+ })), [z]), V = l(() => new Map(z.map((e) => [e.id, e.name])), [z]), H = c((e) => {
89
+ let t = V.get(e);
90
90
  return t ? { name: t } : null;
91
- }, [H]), W = o(), G = s(), { locale: K } = d(), { canManage: q, loading: fe } = re(f), J = c((e) => {
92
- w && e.mentionedIds.length !== 0 && w.mutate({
93
- mutation: D,
91
+ }, [V]), U = o(), W = s(), { locale: G } = oe(), { canManage: K, loading: pe } = re(d), q = c((e) => {
92
+ C && e.mentionedIds.length !== 0 && C.mutate({
93
+ mutation: E,
94
94
  variables: { input: {
95
95
  taskId: e.entityId,
96
96
  mentionedUserIds: e.mentionedIds
97
97
  } }
98
98
  }).catch(() => {});
99
- }, [w]), [pe, Y] = u(!1), [me, X] = u(!1), Z = c(async () => {
100
- Y(!0);
99
+ }, [C]), [me, J] = u(!1), [he, Y] = u(!1), X = c(async () => {
100
+ J(!0);
101
101
  try {
102
- await z() && X(!0);
102
+ await R() && Y(!0);
103
103
  } finally {
104
- Y(!1);
104
+ J(!1);
105
105
  }
106
- }, [z]), Q = c(() => X(!1), []);
107
- i("new", () => void Z(), !!w && q && !fe && I && !F && !L);
108
- let $ = ie(), he = l(() => w ? /* @__PURE__ */ x(T, {
109
- client: w,
110
- children: /* @__PURE__ */ x(le, {
111
- columns: E,
112
- workspaceId: f,
113
- projectId: P ?? void 0,
114
- readonly: !q,
115
- currentActorId: O,
106
+ }, [R]), Z = c(() => Y(!1), []);
107
+ i("new", () => void X(), !!C && K && !pe && F && !P && !I);
108
+ let Q = ie(), $ = c(({ view: e, date: t }) => {
109
+ A(`/calendar/view/${e}?date=${encodeURIComponent(t)}`);
110
+ }, [A]), ge = l(() => C ? /* @__PURE__ */ b(w, {
111
+ client: C,
112
+ children: /* @__PURE__ */ b(ue, {
113
+ columns: T,
114
+ workspaceId: d,
115
+ projectId: N ?? void 0,
116
+ readonly: !K,
117
+ currentActorId: D,
116
118
  commentsEntityType: "planmagnet_workitem",
117
- onMention: J,
118
- openItemId: A,
119
- labels: W,
120
- locale: K,
121
- assigneeOptions: V,
122
- resolveAssignee: U,
119
+ onMention: q,
120
+ openItemId: k,
121
+ labels: U,
122
+ locale: G,
123
+ assigneeOptions: B,
124
+ resolveAssignee: H,
123
125
  linkSourceProduct: "healthybowl",
124
- renderLinkIcon: ue,
126
+ renderLinkIcon: de,
125
127
  enableSavedViews: !0,
126
128
  enableShortcuts: !0,
127
- appearance: $ ? "depth" : "standard",
129
+ appearance: Q ? "depth" : "standard",
130
+ onOpenCalendar: Q ? $ : void 0,
131
+ timelineReschedule: Q,
128
132
  onTaskSaved: () => {}
129
133
  })
130
134
  }) : null, [
131
- w,
132
- f,
133
- P,
134
- q,
135
- O,
136
- A,
137
- W,
135
+ C,
136
+ d,
137
+ N,
138
138
  K,
139
- V,
139
+ D,
140
+ k,
140
141
  U,
141
- J,
142
+ G,
143
+ B,
144
+ H,
145
+ q,
146
+ Q,
142
147
  $
143
148
  ]);
144
- return /* @__PURE__ */ S(e, {
145
- title: G("healthybowl.tasks.pageTitle", "Farm Tasks"),
149
+ return /* @__PURE__ */ x(e, {
150
+ title: W("healthybowl.tasks.pageTitle", "Farm Tasks"),
146
151
  titleAccent: "Tasks",
147
- description: G("healthybowl.tasks.pageDescription", "Plan and track farm work — planting, harvesting, maintenance, and more — on a shared board."),
148
- helpPrompt: G("healthybowl.tasks.helpPrompt", "How do I use Farm Tasks to plan and track work on my farm?"),
149
- purpose: G("healthybowl.tasks.purpose", "Farm Tasks is your team's shared to-do board. Create tasks, set priority and due dates, drag them across columns as work progresses, and open any task for details."),
150
- purposeIcon: /* @__PURE__ */ x(p, {
152
+ description: W("healthybowl.tasks.pageDescription", "Plan and track farm work — planting, harvesting, maintenance, and more — on a shared board."),
153
+ helpPrompt: W("healthybowl.tasks.helpPrompt", "How do I use Farm Tasks to plan and track work on my farm?"),
154
+ purpose: W("healthybowl.tasks.purpose", "Farm Tasks is your team's shared to-do board. Create tasks, set priority and due dates, drag them across columns as work progresses, and open any task for details."),
155
+ purposeIcon: /* @__PURE__ */ b(f, {
151
156
  className: "size-5",
152
157
  "aria-hidden": "true"
153
158
  }),
154
- actions: /* @__PURE__ */ S(C, {
159
+ actions: /* @__PURE__ */ x(S, {
155
160
  variant: "outline",
156
- onClick: N,
161
+ onClick: M,
157
162
  children: [
158
- /* @__PURE__ */ x(_, {
163
+ /* @__PURE__ */ b(g, {
159
164
  className: "me-1.5 h-4 w-4",
160
165
  "aria-hidden": "true"
161
166
  }),
162
167
  " ",
163
- G("healthybowl.tasks.printJobCard", "Print job card")
168
+ W("healthybowl.tasks.printJobCard", "Print job card")
164
169
  ]
165
170
  }),
166
- children: [w ? L ? /* @__PURE__ */ x(t, {
171
+ children: [C ? I ? /* @__PURE__ */ b(t, {
167
172
  title: "Couldn't open Farm Tasks",
168
- description: L.message,
169
- onRetry: R
170
- }) : F || !I ? /* @__PURE__ */ x(ee, {}) : P ? he : /* @__PURE__ */ x(te, {
171
- icon: /* @__PURE__ */ x(p, {
173
+ description: I.message,
174
+ onRetry: L
175
+ }) : P || !F ? /* @__PURE__ */ b(ee, {}) : N ? ge : /* @__PURE__ */ b(te, {
176
+ icon: /* @__PURE__ */ b(f, {
172
177
  className: "size-8",
173
178
  "aria-hidden": "true"
174
179
  }),
175
- title: G("healthybowl.tasks.emptyTitle", "No farm tasks yet"),
176
- description: q ? G("healthybowl.tasks.emptyDescription", "Add your first task to start planning farm work on a shared board.") : G("healthybowl.tasks.emptyDescriptionReadOnly", "Tasks your team adds will appear here."),
177
- action: q ? /* @__PURE__ */ S(C, {
178
- onClick: () => void Z(),
179
- disabled: pe,
180
+ title: W("healthybowl.tasks.emptyTitle", "No farm tasks yet"),
181
+ description: K ? W("healthybowl.tasks.emptyDescription", "Add your first task to start planning farm work on a shared board.") : W("healthybowl.tasks.emptyDescriptionReadOnly", "Tasks your team adds will appear here."),
182
+ action: K ? /* @__PURE__ */ x(S, {
183
+ onClick: () => void X(),
184
+ disabled: me,
180
185
  children: [
181
- /* @__PURE__ */ x(g, {
186
+ /* @__PURE__ */ b(h, {
182
187
  className: "me-1.5 h-4 w-4",
183
188
  "aria-hidden": "true"
184
189
  }),
185
190
  " ",
186
- G("healthybowl.tasks.emptyAction", "New task")
191
+ W("healthybowl.tasks.emptyAction", "New task")
187
192
  ]
188
193
  }) : void 0,
189
194
  glassIllustration: "tasks"
190
- }) : /* @__PURE__ */ x(t, {
195
+ }) : /* @__PURE__ */ b(t, {
191
196
  title: "Tasks unavailable",
192
197
  description: "The workspace connection isn't ready. Reload the page or reselect your workspace."
193
- }), w && P ? /* @__PURE__ */ x(ne, {
194
- open: me,
195
- onClose: Q,
196
- title: G("healthybowl.tasks.newTaskTitle", "New task"),
197
- children: /* @__PURE__ */ x(T, {
198
- client: w,
199
- children: /* @__PURE__ */ x(ce, {
200
- workspaceId: f,
201
- projectId: P,
198
+ }), C && N ? /* @__PURE__ */ b(ne, {
199
+ open: he,
200
+ onClose: Z,
201
+ title: W("healthybowl.tasks.newTaskTitle", "New task"),
202
+ children: /* @__PURE__ */ b(w, {
203
+ client: C,
204
+ children: /* @__PURE__ */ b(le, {
205
+ workspaceId: d,
206
+ projectId: N,
202
207
  hideHeader: !0,
203
- statuses: de,
204
- assigneeOptions: V,
208
+ statuses: fe,
209
+ assigneeOptions: B,
205
210
  hiddenFields: [
206
211
  "type",
207
212
  "storyPoints",
208
213
  "labels"
209
214
  ],
210
- onCreated: Q,
211
- onCancel: Q
215
+ onCreated: Z,
216
+ onCancel: Z
212
217
  })
213
218
  })
214
219
  }) : null]
215
220
  });
216
221
  };
217
- export { O as TasksPage };
222
+ export { D as TasksPage };
@@ -1,2 +1,2 @@
1
- import { PartialTaskLabels } from '@burdenoff/planmagnet-fe-sdk';
1
+ import { PartialTaskLabels } from '@planmagnet/fe-sdk';
2
2
  export declare function useFarmTaskLabels(): PartialTaskLabels;
@@ -23,6 +23,11 @@ function n() {
23
23
  addMilestone: n("healthybowl.tasks.addMilestone", "Add milestone"),
24
24
  milestoneNamePlaceholder: n("healthybowl.tasks.milestoneNamePlaceholder", "Milestone name"),
25
25
  failedToCreateMilestone: n("healthybowl.tasks.failedToCreateMilestone", "Failed to create milestone"),
26
+ openInCalendar: n("healthybowl.tasks.openInCalendar", "Open in Calendar"),
27
+ movedTo: n("healthybowl.tasks.movedTo", "Moved “{title}” to {date}"),
28
+ movedToNoDate: n("healthybowl.tasks.movedToNoDate", "Moved “{title}” to No due date"),
29
+ undo: n("healthybowl.tasks.undo", "Undo"),
30
+ dropToClearDate: n("healthybowl.tasks.dropToClearDate", "Drop a task here to clear its date"),
26
31
  today: n("healthybowl.tasks.today", "Today"),
27
32
  week: n("healthybowl.tasks.week", "Week"),
28
33
  month: n("healthybowl.tasks.month", "Month"),
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@burdenoff/microfe-healthybowl",
3
- "version": "2026.1203.1",
3
+ "version": "2026.1203.3",
4
4
  "repository": {
5
5
  "type": "git",
6
6
  "url": "git+https://github.com/Algoshred/microfe-healthybowl.git"
@@ -62,7 +62,7 @@
62
62
  "dependencies": {
63
63
  "@apollo/client": "^4.3.7",
64
64
  "@burdenoff/fe-libs": "2026.1202.2",
65
- "@burdenoff/planmagnet-fe-sdk": "2026.1202.1",
65
+ "@planmagnet/fe-sdk": "2026.1203.2",
66
66
  "@tanstack/react-query": "^5.106.1",
67
67
  "clsx": "^2.1.1",
68
68
  "date-fns": "^4.4.0",