@burdenoff/microfe-healthybowl 2026.1203.2 → 2026.1203.4
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/healthybowl/components/PlanExecutionPanel.js +1 -1
- package/dist/healthybowl/offline/OfflineStatusPill.js +1 -1
- package/dist/healthybowl/offline/offlineRoutes.js +1 -1
- package/dist/healthybowl/pages/ai/AiDecisionsPage.js +1 -1
- package/dist/healthybowl/pages/crops/PlantingCalendarPage.js +1 -1
- package/dist/healthybowl/pages/crops/PlantingPlanReportPage.js +1 -1
- package/dist/healthybowl/pages/field-capture/SyncQueuePanel.js +2 -2
- package/dist/healthybowl/pages/inputs-insurance/LoanAccountingDetailPage.js +15 -15
- package/dist/healthybowl/pages/livestock/FertilityCard.js +1 -1
- package/dist/healthybowl/pages/nursery/NurseryProvenancePage.js +1 -1
- package/dist/healthybowl/pages/production/ProductionBatchesPage.js +1 -1
- package/dist/healthybowl/pages/tasks/TasksPage.js +105 -100
- package/dist/healthybowl/pages/tasks/useFarmTaskLabels.js +5 -0
- package/dist/healthybowl/pages/traceability/TraceLedgerPage.js +3 -3
- package/dist/healthybowl/public/PublicSeedLotDetails.js +1 -1
- package/package.json +5 -3
|
@@ -281,7 +281,7 @@ var C = ({ plan: C, crops: E, onCropChanged: de }) => {
|
|
|
281
281
|
className: "flex shrink-0 items-center gap-1",
|
|
282
282
|
children: [
|
|
283
283
|
q === t.id && /* @__PURE__ */ l("span", {
|
|
284
|
-
className: "
|
|
284
|
+
className: "me-1 text-xs font-medium text-primary",
|
|
285
285
|
children: "Editing"
|
|
286
286
|
}),
|
|
287
287
|
/* @__PURE__ */ l(d, {
|
|
@@ -29,7 +29,7 @@ var m = ({ inline: m, compact: h, className: g }) => {
|
|
|
29
29
|
to: _("field-capture/pending"),
|
|
30
30
|
title: M,
|
|
31
31
|
"aria-label": M,
|
|
32
|
-
className: "flex min-w-0 flex-1 items-center gap-2 text-
|
|
32
|
+
className: "flex min-w-0 flex-1 items-center gap-2 text-start transition hover:opacity-90",
|
|
33
33
|
children: [/* @__PURE__ */ d(j, { className: "h-4 w-4 shrink-0" }), /* @__PURE__ */ d("span", {
|
|
34
34
|
className: "truncate text-xs font-medium max-sm:hidden",
|
|
35
35
|
children: r(M)
|
|
@@ -40,7 +40,7 @@ function p(t) {
|
|
|
40
40
|
variant: "secondary",
|
|
41
41
|
className: "mt-6",
|
|
42
42
|
onClick: () => window.location.reload(),
|
|
43
|
-
children: [/* @__PURE__ */ o(a, { className: "
|
|
43
|
+
children: [/* @__PURE__ */ o(a, { className: "me-2 h-4 w-4" }), " Try again"]
|
|
44
44
|
})
|
|
45
45
|
]
|
|
46
46
|
})
|
|
@@ -256,7 +256,7 @@ var x = () => {
|
|
|
256
256
|
}), /* @__PURE__ */ h("div", {
|
|
257
257
|
className: "overflow-x-auto",
|
|
258
258
|
children: /* @__PURE__ */ h("table", {
|
|
259
|
-
className: "w-full text-
|
|
259
|
+
className: "w-full text-start text-xs",
|
|
260
260
|
children: /* @__PURE__ */ h("tbody", { children: e.map((e) => /* @__PURE__ */ g("tr", {
|
|
261
261
|
className: "border-t border-border-subtle",
|
|
262
262
|
children: [
|
|
@@ -42,7 +42,7 @@ var _ = () => {
|
|
|
42
42
|
children: C.map((e) => /* @__PURE__ */ m("button", {
|
|
43
43
|
type: "button",
|
|
44
44
|
onClick: () => _(v(`crops/planning/${e.id}`)),
|
|
45
|
-
className: "grid w-full gap-3 rounded-xl border border-border-seam bg-bg-surface p-4 text-
|
|
45
|
+
className: "grid w-full gap-3 rounded-xl border border-border-seam bg-bg-surface p-4 text-start transition-colors hover:bg-bg-surface-hover md:grid-cols-[150px_1fr_auto]",
|
|
46
46
|
children: [
|
|
47
47
|
/* @__PURE__ */ m("div", {
|
|
48
48
|
className: "flex items-center gap-2 text-sm font-medium text-text-primary",
|
|
@@ -83,7 +83,7 @@ var m = () => {
|
|
|
83
83
|
}), /* @__PURE__ */ d("div", {
|
|
84
84
|
className: "overflow-x-auto rounded-xl border border-border-seam",
|
|
85
85
|
children: /* @__PURE__ */ f("table", {
|
|
86
|
-
className: "w-full text-
|
|
86
|
+
className: "w-full text-start text-sm",
|
|
87
87
|
children: [/* @__PURE__ */ d("thead", {
|
|
88
88
|
className: "bg-bg-sunken text-text-secondary",
|
|
89
89
|
children: /* @__PURE__ */ f("tr", { children: [
|
|
@@ -37,7 +37,7 @@ var y = {
|
|
|
37
37
|
}, b = ({ mutation: t }) => {
|
|
38
38
|
let { discardPendingMutation: n } = e(), r = o(t.status), { primary: i, secondary: s } = v(t), l = y[t.kind] ?? u, d = t.status === "QUEUED" || t.status === "FAILED";
|
|
39
39
|
return /* @__PURE__ */ g("div", {
|
|
40
|
-
className: "flex w-full items-center gap-3 px-4 py-3 text-
|
|
40
|
+
className: "flex w-full items-center gap-3 px-4 py-3 text-start",
|
|
41
41
|
children: [
|
|
42
42
|
/* @__PURE__ */ h("span", {
|
|
43
43
|
className: "flex h-9 w-9 shrink-0 items-center justify-center rounded-full bg-bg-sunken",
|
|
@@ -148,7 +148,7 @@ var y = {
|
|
|
148
148
|
onClick: () => void T(),
|
|
149
149
|
"aria-label": `Discard ${b}${x ? ` — ${x}` : ""}`,
|
|
150
150
|
title: "This record ran out of retries. Discard it.",
|
|
151
|
-
className: "
|
|
151
|
+
className: "me-3 shrink-0 rounded-full p-1 text-text-tertiary transition hover:bg-bg-sunken hover:text-status-error-text",
|
|
152
152
|
children: /* @__PURE__ */ h(p, { className: "h-4 w-4" })
|
|
153
153
|
})]
|
|
154
154
|
});
|
|
@@ -488,7 +488,7 @@ var j = ({ transferReference: e, billingReference: t, confirmed: n, disabled: r,
|
|
|
488
488
|
}) : /* @__PURE__ */ g("div", {
|
|
489
489
|
className: "overflow-x-auto",
|
|
490
490
|
children: /* @__PURE__ */ _("table", {
|
|
491
|
-
className: "w-full min-w-[1040px] text-
|
|
491
|
+
className: "w-full min-w-[1040px] text-start text-sm",
|
|
492
492
|
children: [/* @__PURE__ */ g("thead", {
|
|
493
493
|
className: "bg-bg-subtle text-xs uppercase tracking-wide text-text-tertiary",
|
|
494
494
|
children: /* @__PURE__ */ _("tr", { children: [
|
|
@@ -501,31 +501,31 @@ var j = ({ transferReference: e, billingReference: t, confirmed: n, disabled: r,
|
|
|
501
501
|
children: "Due date (UTC)"
|
|
502
502
|
}),
|
|
503
503
|
/* @__PURE__ */ g("th", {
|
|
504
|
-
className: "px-4 py-3 text-
|
|
504
|
+
className: "px-4 py-3 text-end font-medium",
|
|
505
505
|
children: "Opening principal"
|
|
506
506
|
}),
|
|
507
507
|
/* @__PURE__ */ g("th", {
|
|
508
|
-
className: "px-4 py-3 text-
|
|
508
|
+
className: "px-4 py-3 text-end font-medium",
|
|
509
509
|
children: "Principal"
|
|
510
510
|
}),
|
|
511
511
|
/* @__PURE__ */ g("th", {
|
|
512
|
-
className: "px-4 py-3 text-
|
|
512
|
+
className: "px-4 py-3 text-end font-medium",
|
|
513
513
|
children: "Interest"
|
|
514
514
|
}),
|
|
515
515
|
/* @__PURE__ */ g("th", {
|
|
516
|
-
className: "px-4 py-3 text-
|
|
516
|
+
className: "px-4 py-3 text-end font-medium",
|
|
517
517
|
children: "Total due"
|
|
518
518
|
}),
|
|
519
519
|
/* @__PURE__ */ g("th", {
|
|
520
|
-
className: "px-4 py-3 text-
|
|
520
|
+
className: "px-4 py-3 text-end font-medium",
|
|
521
521
|
children: "Closing principal"
|
|
522
522
|
}),
|
|
523
523
|
/* @__PURE__ */ g("th", {
|
|
524
|
-
className: "px-4 py-3 text-
|
|
524
|
+
className: "px-4 py-3 text-end font-medium",
|
|
525
525
|
children: "Paid"
|
|
526
526
|
}),
|
|
527
527
|
/* @__PURE__ */ g("th", {
|
|
528
|
-
className: "px-4 py-3 text-
|
|
528
|
+
className: "px-4 py-3 text-end font-medium",
|
|
529
529
|
children: "Remaining"
|
|
530
530
|
}),
|
|
531
531
|
/* @__PURE__ */ g("th", {
|
|
@@ -547,31 +547,31 @@ var j = ({ transferReference: e, billingReference: t, confirmed: n, disabled: r,
|
|
|
547
547
|
children: O(e.dueDate)
|
|
548
548
|
}),
|
|
549
549
|
/* @__PURE__ */ g("td", {
|
|
550
|
-
className: "px-4 py-3 text-
|
|
550
|
+
className: "px-4 py-3 text-end tabular-nums",
|
|
551
551
|
children: E(e.openingPrincipal, $)
|
|
552
552
|
}),
|
|
553
553
|
/* @__PURE__ */ g("td", {
|
|
554
|
-
className: "px-4 py-3 text-
|
|
554
|
+
className: "px-4 py-3 text-end tabular-nums",
|
|
555
555
|
children: E(e.principalDue, $)
|
|
556
556
|
}),
|
|
557
557
|
/* @__PURE__ */ g("td", {
|
|
558
|
-
className: "px-4 py-3 text-
|
|
558
|
+
className: "px-4 py-3 text-end tabular-nums",
|
|
559
559
|
children: E(e.interestDue, $)
|
|
560
560
|
}),
|
|
561
561
|
/* @__PURE__ */ g("td", {
|
|
562
|
-
className: "px-4 py-3 text-
|
|
562
|
+
className: "px-4 py-3 text-end font-medium tabular-nums text-text-primary",
|
|
563
563
|
children: E(e.totalDue, $)
|
|
564
564
|
}),
|
|
565
565
|
/* @__PURE__ */ g("td", {
|
|
566
|
-
className: "px-4 py-3 text-
|
|
566
|
+
className: "px-4 py-3 text-end tabular-nums",
|
|
567
567
|
children: E(e.closingPrincipal, $)
|
|
568
568
|
}),
|
|
569
569
|
/* @__PURE__ */ g("td", {
|
|
570
|
-
className: "px-4 py-3 text-
|
|
570
|
+
className: "px-4 py-3 text-end tabular-nums",
|
|
571
571
|
children: E(e.paidAmount, $)
|
|
572
572
|
}),
|
|
573
573
|
/* @__PURE__ */ g("td", {
|
|
574
|
-
className: "px-4 py-3 text-
|
|
574
|
+
className: "px-4 py-3 text-end tabular-nums",
|
|
575
575
|
children: E(e.remainingDue, $)
|
|
576
576
|
}),
|
|
577
577
|
/* @__PURE__ */ g("td", {
|
|
@@ -270,7 +270,7 @@ var k = [
|
|
|
270
270
|
}), /* @__PURE__ */ y("dd", {
|
|
271
271
|
className: "text-sm font-medium tabular-nums text-text-primary",
|
|
272
272
|
children: [i(V?.meanOffspringLive, { decimals: 1 }), $ ? /* @__PURE__ */ v("span", {
|
|
273
|
-
className: "
|
|
273
|
+
className: "ms-1 text-xs font-normal text-text-secondary",
|
|
274
274
|
children: N("healthybowl.livestock.fertility.litter.liveBase", "of {{born}} born", { born: i(V?.meanOffspringBornWhereLiveKnown, { decimals: 1 }) })
|
|
275
275
|
}) : null]
|
|
276
276
|
})] }),
|
|
@@ -1279,7 +1279,7 @@ var O = "h-9 w-full rounded-md border border-border-subtle bg-bg-surface px-3 te
|
|
|
1279
1279
|
className: "w-full",
|
|
1280
1280
|
disabled: n,
|
|
1281
1281
|
onClick: () => t(!i),
|
|
1282
|
-
children: [n ? /* @__PURE__ */ b(E, { className: "
|
|
1282
|
+
children: [n ? /* @__PURE__ */ b(E, { className: "me-1.5 h-3.5 w-3.5 animate-spin" }) : b(i ? fe : pe, { className: "me-1.5 h-3.5 w-3.5" }), i ? r("healthybowl.nursery.seedLot.publish.unpublish", "Unpublish") : r("healthybowl.nursery.seedLot.publish.publish", "Publish publicly")]
|
|
1283
1283
|
}), a ? /* @__PURE__ */ b("a", {
|
|
1284
1284
|
href: a,
|
|
1285
1285
|
target: "_blank",
|
|
@@ -120,7 +120,7 @@ function T() {
|
|
|
120
120
|
purpose: "Every batch of value-added product you make — jams, oils, packaged goods — and where each one is in production. Use it to track work in progress, spot bottlenecks, and know what's ready to sell.",
|
|
121
121
|
actions: /* @__PURE__ */ b(x, {
|
|
122
122
|
onClick: () => j(!0),
|
|
123
|
-
children: [/* @__PURE__ */ y(v, { className: "
|
|
123
|
+
children: [/* @__PURE__ */ y(v, { className: "me-2 h-4 w-4" }), e("healthybowl.products.batches.actions.createBatch", "Create Batch")]
|
|
124
124
|
}),
|
|
125
125
|
children: [
|
|
126
126
|
/* @__PURE__ */ y(i, {
|
|
@@ -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 };
|
|
@@ -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"),
|
|
@@ -168,14 +168,14 @@ var ie = [
|
|
|
168
168
|
className: "flex flex-wrap items-center gap-3 border-b border-border-subtle p-4",
|
|
169
169
|
children: [/* @__PURE__ */ I("div", {
|
|
170
170
|
className: "relative min-w-[220px] flex-1",
|
|
171
|
-
children: [/* @__PURE__ */ F(A, { className: "pointer-events-none absolute
|
|
171
|
+
children: [/* @__PURE__ */ F(A, { className: "pointer-events-none absolute start-3 top-1/2 h-4 w-4 -translate-y-1/2 text-text-secondary" }), /* @__PURE__ */ F("input", {
|
|
172
172
|
type: "search",
|
|
173
173
|
value: J,
|
|
174
174
|
onChange: (e) => de(e.target.value),
|
|
175
175
|
placeholder: t("healthybowl.traceability.ledger.list.search", "Search by batch code, product or GTIN"),
|
|
176
176
|
"aria-label": t("healthybowl.traceability.ledger.list.search", "Search by batch code, product or GTIN"),
|
|
177
177
|
"data-testid": "ledger-list-search",
|
|
178
|
-
className: "w-full rounded-lg border border-border-subtle bg-bg-canvas py-2
|
|
178
|
+
className: "w-full rounded-lg border border-border-subtle bg-bg-canvas py-2 ps-9 pe-3 text-sm text-text-primary placeholder:text-text-secondary"
|
|
179
179
|
})]
|
|
180
180
|
}), /* @__PURE__ */ I("div", {
|
|
181
181
|
className: "flex flex-wrap items-center gap-1.5",
|
|
@@ -194,7 +194,7 @@ var ie = [
|
|
|
194
194
|
}), /* @__PURE__ */ F("div", {
|
|
195
195
|
className: "overflow-x-auto",
|
|
196
196
|
children: /* @__PURE__ */ I("table", {
|
|
197
|
-
className: "w-full text-
|
|
197
|
+
className: "w-full text-start text-sm",
|
|
198
198
|
children: [/* @__PURE__ */ F("thead", { children: /* @__PURE__ */ I("tr", {
|
|
199
199
|
className: "border-b border-border-subtle text-xs uppercase tracking-wide text-text-secondary",
|
|
200
200
|
children: [
|
|
@@ -77,7 +77,7 @@ var m = ({ label: e, value: t }) => /* @__PURE__ */ l("div", {
|
|
|
77
77
|
className: "text-sm text-text-secondary",
|
|
78
78
|
children: e
|
|
79
79
|
}), /* @__PURE__ */ c("dd", {
|
|
80
|
-
className: "text-
|
|
80
|
+
className: "text-end text-sm font-medium text-text-primary",
|
|
81
81
|
children: t
|
|
82
82
|
})]
|
|
83
83
|
}), h = ({ lot: n }) => {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@burdenoff/microfe-healthybowl",
|
|
3
|
-
"version": "2026.1203.
|
|
3
|
+
"version": "2026.1203.4",
|
|
4
4
|
"repository": {
|
|
5
5
|
"type": "git",
|
|
6
6
|
"url": "git+https://github.com/Algoshred/microfe-healthybowl.git"
|
|
@@ -57,7 +57,8 @@
|
|
|
57
57
|
"switch:remote": "boff deps-mode remote",
|
|
58
58
|
"switch:status": "boff deps-mode status",
|
|
59
59
|
"test:storybook": "test-storybook",
|
|
60
|
-
"verify:package": "bash scripts/verify-package-contents.sh"
|
|
60
|
+
"verify:package": "bash scripts/verify-package-contents.sh",
|
|
61
|
+
"check:logical-direction": "bun scripts/check-logical-direction.ts"
|
|
61
62
|
},
|
|
62
63
|
"dependencies": {
|
|
63
64
|
"@apollo/client": "^4.3.7",
|
|
@@ -164,7 +165,8 @@
|
|
|
164
165
|
],
|
|
165
166
|
"extra": [
|
|
166
167
|
"verify:package",
|
|
167
|
-
"build-storybook"
|
|
168
|
+
"build-storybook",
|
|
169
|
+
"check:logical-direction"
|
|
168
170
|
]
|
|
169
171
|
},
|
|
170
172
|
"scripts": {
|