@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 "@
|
|
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
|
|
17
|
-
import { Bug as
|
|
18
|
-
import { useNavigate as
|
|
19
|
-
import { jsx as
|
|
20
|
-
import { Button as
|
|
21
|
-
import { useWorkspaceDirectory as
|
|
22
|
-
import { gql as
|
|
23
|
-
import { ApolloProvider as
|
|
24
|
-
import { useSafeGatewayClient as
|
|
25
|
-
import { CreateTaskCore as
|
|
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
|
|
27
|
+
var de = (e) => {
|
|
28
28
|
switch (e) {
|
|
29
|
-
case "FIELD": return /* @__PURE__ */
|
|
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__ */
|
|
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__ */
|
|
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__ */
|
|
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
|
-
},
|
|
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
|
-
],
|
|
69
|
+
], fe = T.map((e) => e.status), E = C`
|
|
70
70
|
mutation HealthyBowlNotifyMention($input: HealthyBowlNotifyMentionInput!) {
|
|
71
71
|
healthybowlNotifyMention(input: $input)
|
|
72
72
|
}
|
|
73
|
-
`,
|
|
74
|
-
let { workspaceId:
|
|
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
|
-
|
|
76
|
+
D && e.set("assignee", D), A(`${j("tasks/job-card")}?${e.toString()}`);
|
|
77
77
|
}, [
|
|
78
|
+
A,
|
|
78
79
|
j,
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
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
|
-
})), [
|
|
89
|
-
let t =
|
|
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
|
-
}, [
|
|
92
|
-
|
|
93
|
-
mutation:
|
|
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
|
-
}, [
|
|
100
|
-
|
|
99
|
+
}, [C]), [me, J] = u(!1), [he, Y] = u(!1), X = c(async () => {
|
|
100
|
+
J(!0);
|
|
101
101
|
try {
|
|
102
|
-
await
|
|
102
|
+
await R() && Y(!0);
|
|
103
103
|
} finally {
|
|
104
|
-
|
|
104
|
+
J(!1);
|
|
105
105
|
}
|
|
106
|
-
}, [
|
|
107
|
-
i("new", () => void
|
|
108
|
-
let
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
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:
|
|
118
|
-
openItemId:
|
|
119
|
-
labels:
|
|
120
|
-
locale:
|
|
121
|
-
assigneeOptions:
|
|
122
|
-
resolveAssignee:
|
|
119
|
+
onMention: q,
|
|
120
|
+
openItemId: k,
|
|
121
|
+
labels: U,
|
|
122
|
+
locale: G,
|
|
123
|
+
assigneeOptions: B,
|
|
124
|
+
resolveAssignee: H,
|
|
123
125
|
linkSourceProduct: "healthybowl",
|
|
124
|
-
renderLinkIcon:
|
|
126
|
+
renderLinkIcon: de,
|
|
125
127
|
enableSavedViews: !0,
|
|
126
128
|
enableShortcuts: !0,
|
|
127
|
-
appearance:
|
|
129
|
+
appearance: Q ? "depth" : "standard",
|
|
130
|
+
onOpenCalendar: Q ? $ : void 0,
|
|
131
|
+
timelineReschedule: Q,
|
|
128
132
|
onTaskSaved: () => {}
|
|
129
133
|
})
|
|
130
134
|
}) : null, [
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
q,
|
|
135
|
-
O,
|
|
136
|
-
A,
|
|
137
|
-
W,
|
|
135
|
+
C,
|
|
136
|
+
d,
|
|
137
|
+
N,
|
|
138
138
|
K,
|
|
139
|
-
|
|
139
|
+
D,
|
|
140
|
+
k,
|
|
140
141
|
U,
|
|
141
|
-
|
|
142
|
+
G,
|
|
143
|
+
B,
|
|
144
|
+
H,
|
|
145
|
+
q,
|
|
146
|
+
Q,
|
|
142
147
|
$
|
|
143
148
|
]);
|
|
144
|
-
return /* @__PURE__ */
|
|
145
|
-
title:
|
|
149
|
+
return /* @__PURE__ */ x(e, {
|
|
150
|
+
title: W("healthybowl.tasks.pageTitle", "Farm Tasks"),
|
|
146
151
|
titleAccent: "Tasks",
|
|
147
|
-
description:
|
|
148
|
-
helpPrompt:
|
|
149
|
-
purpose:
|
|
150
|
-
purposeIcon: /* @__PURE__ */
|
|
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
|
|
159
|
+
actions: /* @__PURE__ */ x(S, {
|
|
155
160
|
variant: "outline",
|
|
156
|
-
onClick:
|
|
161
|
+
onClick: M,
|
|
157
162
|
children: [
|
|
158
|
-
/* @__PURE__ */
|
|
163
|
+
/* @__PURE__ */ b(g, {
|
|
159
164
|
className: "me-1.5 h-4 w-4",
|
|
160
165
|
"aria-hidden": "true"
|
|
161
166
|
}),
|
|
162
167
|
" ",
|
|
163
|
-
|
|
168
|
+
W("healthybowl.tasks.printJobCard", "Print job card")
|
|
164
169
|
]
|
|
165
170
|
}),
|
|
166
|
-
children: [
|
|
171
|
+
children: [C ? I ? /* @__PURE__ */ b(t, {
|
|
167
172
|
title: "Couldn't open Farm Tasks",
|
|
168
|
-
description:
|
|
169
|
-
onRetry:
|
|
170
|
-
}) :
|
|
171
|
-
icon: /* @__PURE__ */
|
|
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:
|
|
176
|
-
description:
|
|
177
|
-
action:
|
|
178
|
-
onClick: () => void
|
|
179
|
-
disabled:
|
|
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__ */
|
|
186
|
+
/* @__PURE__ */ b(h, {
|
|
182
187
|
className: "me-1.5 h-4 w-4",
|
|
183
188
|
"aria-hidden": "true"
|
|
184
189
|
}),
|
|
185
190
|
" ",
|
|
186
|
-
|
|
191
|
+
W("healthybowl.tasks.emptyAction", "New task")
|
|
187
192
|
]
|
|
188
193
|
}) : void 0,
|
|
189
194
|
glassIllustration: "tasks"
|
|
190
|
-
}) : /* @__PURE__ */
|
|
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
|
-
}),
|
|
194
|
-
open:
|
|
195
|
-
onClose:
|
|
196
|
-
title:
|
|
197
|
-
children: /* @__PURE__ */
|
|
198
|
-
client:
|
|
199
|
-
children: /* @__PURE__ */
|
|
200
|
-
workspaceId:
|
|
201
|
-
projectId:
|
|
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:
|
|
204
|
-
assigneeOptions:
|
|
208
|
+
statuses: fe,
|
|
209
|
+
assigneeOptions: B,
|
|
205
210
|
hiddenFields: [
|
|
206
211
|
"type",
|
|
207
212
|
"storyPoints",
|
|
208
213
|
"labels"
|
|
209
214
|
],
|
|
210
|
-
onCreated:
|
|
211
|
-
onCancel:
|
|
215
|
+
onCreated: Z,
|
|
216
|
+
onCancel: Z
|
|
212
217
|
})
|
|
213
218
|
})
|
|
214
219
|
}) : null]
|
|
215
220
|
});
|
|
216
221
|
};
|
|
217
|
-
export {
|
|
222
|
+
export { D as TasksPage };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { PartialTaskLabels } from '@
|
|
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.
|
|
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
|
-
"@
|
|
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",
|