@burdenoff/microfe-healthybowl 2026.710.20 → 2026.710.22
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/HealthyBowlRoot.js +107 -82
- package/dist/healthybowl/HealthyBowlRoot.js.map +1 -1
- package/dist/healthybowl/HealthyBowlRoutes.js +113 -81
- package/dist/healthybowl/HealthyBowlRoutes.js.map +1 -1
- package/dist/healthybowl/hooks/useHealthyBowlWithdrawal.js +237 -0
- package/dist/healthybowl/hooks/useHealthyBowlWithdrawal.js.map +1 -0
- package/dist/healthybowl/offline/OfflineStatusPill.js +30 -0
- package/dist/healthybowl/offline/OfflineStatusPill.js.map +1 -0
- package/dist/healthybowl/offline/OfflineSyncProvider.js +235 -0
- package/dist/healthybowl/offline/OfflineSyncProvider.js.map +1 -0
- package/dist/healthybowl/offline/geolocation.js +31 -0
- package/dist/healthybowl/offline/geolocation.js.map +1 -0
- package/dist/healthybowl/offline/graphql.js +89 -0
- package/dist/healthybowl/offline/graphql.js.map +1 -0
- package/dist/healthybowl/offline/network.js +43 -0
- package/dist/healthybowl/offline/network.js.map +1 -0
- package/dist/healthybowl/offline/observationMeta.js +107 -0
- package/dist/healthybowl/offline/observationMeta.js.map +1 -0
- package/dist/healthybowl/offline/store.js +120 -0
- package/dist/healthybowl/offline/store.js.map +1 -0
- package/dist/healthybowl/offline/syncEngine.js +141 -0
- package/dist/healthybowl/offline/syncEngine.js.map +1 -0
- package/dist/healthybowl/offline/types.js +15 -0
- package/dist/healthybowl/offline/types.js.map +1 -0
- package/dist/healthybowl/pages/field-capture/CaptureObservationForm.js +272 -0
- package/dist/healthybowl/pages/field-capture/CaptureObservationForm.js.map +1 -0
- package/dist/healthybowl/pages/field-capture/ConflictReviewPage.js +200 -0
- package/dist/healthybowl/pages/field-capture/ConflictReviewPage.js.map +1 -0
- package/dist/healthybowl/pages/field-capture/FieldCapturePage.js +60 -0
- package/dist/healthybowl/pages/field-capture/FieldCapturePage.js.map +1 -0
- package/dist/healthybowl/pages/field-capture/OfflineSettingsPage.js +217 -0
- package/dist/healthybowl/pages/field-capture/OfflineSettingsPage.js.map +1 -0
- package/dist/healthybowl/pages/field-capture/PendingSyncPage.js +80 -0
- package/dist/healthybowl/pages/field-capture/PendingSyncPage.js.map +1 -0
- package/dist/healthybowl/pages/field-capture/SyncHistoryPage.js +130 -0
- package/dist/healthybowl/pages/field-capture/SyncHistoryPage.js.map +1 -0
- package/dist/healthybowl/pages/field-capture/SyncQueuePanel.js +112 -0
- package/dist/healthybowl/pages/field-capture/SyncQueuePanel.js.map +1 -0
- package/dist/healthybowl/pages/livestock/AnimalDetailsPage.js +532 -527
- package/dist/healthybowl/pages/livestock/AnimalDetailsPage.js.map +1 -1
- package/dist/healthybowl/pages/livestock/MedicationLibraryPage.js +387 -0
- package/dist/healthybowl/pages/livestock/MedicationLibraryPage.js.map +1 -0
- package/dist/healthybowl/pages/livestock/WithdrawalAlertsPage.js +286 -0
- package/dist/healthybowl/pages/livestock/WithdrawalAlertsPage.js.map +1 -0
- package/dist/healthybowl/pages/livestock/WithdrawalCalendarPage.js +182 -0
- package/dist/healthybowl/pages/livestock/WithdrawalCalendarPage.js.map +1 -0
- package/dist/healthybowl/pages/livestock/withdrawal/AnimalWithdrawalCard.js +166 -0
- package/dist/healthybowl/pages/livestock/withdrawal/AnimalWithdrawalCard.js.map +1 -0
- package/dist/healthybowl/pages/livestock/withdrawal/LogTreatmentModal.js +274 -0
- package/dist/healthybowl/pages/livestock/withdrawal/LogTreatmentModal.js.map +1 -0
- package/dist/healthybowl/pages/livestock/withdrawal/WithdrawalNav.js +40 -0
- package/dist/healthybowl/pages/livestock/withdrawal/WithdrawalNav.js.map +1 -0
- package/dist/healthybowl/pages/livestock/withdrawal/status.js +53 -0
- package/dist/healthybowl/pages/livestock/withdrawal/status.js.map +1 -0
- package/package.json +1 -1
|
@@ -3,207 +3,232 @@ import { normalizeBasePath as t } from "./utils/helpers.js";
|
|
|
3
3
|
import { ErrorBoundary as n } from "./components/ErrorBoundary.js";
|
|
4
4
|
import { ConfirmProvider as r } from "./components/ConfirmDialog.js";
|
|
5
5
|
import { HealthyBowlRoutes as i } from "./HealthyBowlRoutes.js";
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
10
|
-
import {
|
|
6
|
+
import { OfflineSyncProvider as a } from "./offline/OfflineSyncProvider.js";
|
|
7
|
+
import { useCallback as o, useEffect as s } from "react";
|
|
8
|
+
import { useI18n as c } from "@burdenoff/fe-libs/shared/providers/shell/I18nProvider";
|
|
9
|
+
import { Banknote as l, BarChart3 as u, Bug as d, Cloud as f, CloudUpload as p, DollarSign as m, Factory as h, FlaskConical as g, Home as _, Landmark as v, ListChecks as y, Map as b, Package as x, PawPrint as S, RefreshCw as C, ScanLine as w, ShieldAlert as T, ShieldCheck as E, ShoppingCart as D, Stethoscope as O, Tractor as k, UserCheck as A, Users as j, Wheat as M } from "lucide-react";
|
|
10
|
+
import { jsx as N } from "react/jsx-runtime";
|
|
11
|
+
import { FeatureFlagProvider as P } from "@burdenoff/fe-libs/shared/feature-flags";
|
|
11
12
|
//#region src/healthybowl/HealthyBowlRoot.tsx
|
|
12
|
-
var
|
|
13
|
-
let { registerNavItems:
|
|
14
|
-
let n =
|
|
13
|
+
var F = (F) => {
|
|
14
|
+
let { registerNavItems: I, registerFooterItems: L, basePath: R = "/" } = F, { t: z } = c(), B = o((e, t) => {
|
|
15
|
+
let n = z(e);
|
|
15
16
|
return n === e ? t : n;
|
|
16
|
-
}, [
|
|
17
|
-
return
|
|
18
|
-
if (
|
|
17
|
+
}, [z]), V = (e, t) => (e.endsWith("/") ? e.slice(0, -1) : e) + (t.startsWith("/") ? t : `/${t}`);
|
|
18
|
+
return s(() => {
|
|
19
|
+
if (I) return I([
|
|
19
20
|
{
|
|
20
21
|
id: "healthybowl-dashboard",
|
|
21
|
-
label:
|
|
22
|
-
path: t(
|
|
23
|
-
icon: /* @__PURE__ */
|
|
22
|
+
label: B("healthybowl.nav.dashboard", "Dashboard"),
|
|
23
|
+
path: t(R),
|
|
24
|
+
icon: /* @__PURE__ */ N(_, { size: 20 }),
|
|
24
25
|
order: 1,
|
|
25
26
|
group: "main"
|
|
26
27
|
},
|
|
27
28
|
{
|
|
28
29
|
id: "healthybowl-farm",
|
|
29
|
-
label:
|
|
30
|
-
path:
|
|
31
|
-
icon: /* @__PURE__ */ k
|
|
30
|
+
label: B("healthybowl.nav.farm", "My Farm"),
|
|
31
|
+
path: V(R, "farm"),
|
|
32
|
+
icon: /* @__PURE__ */ N(k, { size: 20 }),
|
|
32
33
|
order: 2,
|
|
33
34
|
group: "main"
|
|
34
35
|
},
|
|
35
36
|
{
|
|
36
37
|
id: "healthybowl-tasks",
|
|
37
|
-
label:
|
|
38
|
-
path:
|
|
39
|
-
icon: /* @__PURE__ */
|
|
38
|
+
label: B("healthybowl.nav.tasks", "Tasks"),
|
|
39
|
+
path: V(R, "tasks"),
|
|
40
|
+
icon: /* @__PURE__ */ N(y, { size: 20 }),
|
|
40
41
|
order: 3,
|
|
41
42
|
group: "main"
|
|
42
43
|
},
|
|
43
44
|
{
|
|
44
45
|
id: "healthybowl-crops",
|
|
45
|
-
label:
|
|
46
|
-
path:
|
|
47
|
-
icon: /* @__PURE__ */
|
|
46
|
+
label: B("healthybowl.nav.crops", "Crops"),
|
|
47
|
+
path: V(R, "crops"),
|
|
48
|
+
icon: /* @__PURE__ */ N(M, { size: 20 }),
|
|
48
49
|
order: 10,
|
|
49
50
|
group: "farming"
|
|
50
51
|
},
|
|
51
52
|
{
|
|
52
53
|
id: "healthybowl-livestock",
|
|
53
|
-
label:
|
|
54
|
-
path:
|
|
55
|
-
icon: /* @__PURE__ */
|
|
54
|
+
label: B("healthybowl.nav.livestock", "Livestock"),
|
|
55
|
+
path: V(R, "livestock"),
|
|
56
|
+
icon: /* @__PURE__ */ N(S, { size: 20 }),
|
|
56
57
|
order: 11,
|
|
57
58
|
group: "farming"
|
|
58
59
|
},
|
|
60
|
+
{
|
|
61
|
+
id: "healthybowl-withdrawal-alerts",
|
|
62
|
+
label: B("healthybowl.nav.withdrawalAlerts", "Withdrawal Alerts"),
|
|
63
|
+
path: V(R, "livestock/withdrawal-alerts"),
|
|
64
|
+
icon: /* @__PURE__ */ N(T, { size: 20 }),
|
|
65
|
+
order: 11.5,
|
|
66
|
+
group: "farming"
|
|
67
|
+
},
|
|
59
68
|
{
|
|
60
69
|
id: "healthybowl-weather",
|
|
61
|
-
label:
|
|
62
|
-
path:
|
|
63
|
-
icon: /* @__PURE__ */
|
|
70
|
+
label: B("healthybowl.nav.weather", "Weather"),
|
|
71
|
+
path: V(R, "weather"),
|
|
72
|
+
icon: /* @__PURE__ */ N(f, { size: 20 }),
|
|
64
73
|
order: 12,
|
|
65
74
|
group: "farming"
|
|
66
75
|
},
|
|
67
76
|
{
|
|
68
77
|
id: "healthybowl-field-map",
|
|
69
|
-
label:
|
|
70
|
-
path:
|
|
71
|
-
icon: /* @__PURE__ */
|
|
78
|
+
label: B("healthybowl.nav.fieldMap", "Field Map"),
|
|
79
|
+
path: V(R, "field-map"),
|
|
80
|
+
icon: /* @__PURE__ */ N(b, { size: 20 }),
|
|
72
81
|
order: 12.5,
|
|
73
82
|
group: "farming"
|
|
74
83
|
},
|
|
84
|
+
{
|
|
85
|
+
id: "healthybowl-field-capture",
|
|
86
|
+
label: B("healthybowl.nav.fieldCapture", "Field Capture"),
|
|
87
|
+
path: V(R, "field-capture"),
|
|
88
|
+
icon: /* @__PURE__ */ N(p, { size: 20 }),
|
|
89
|
+
order: 12.6,
|
|
90
|
+
group: "farming"
|
|
91
|
+
},
|
|
92
|
+
{
|
|
93
|
+
id: "healthybowl-pending-sync",
|
|
94
|
+
label: B("healthybowl.nav.pendingSync", "Pending Sync"),
|
|
95
|
+
path: V(R, "field-capture/pending"),
|
|
96
|
+
icon: /* @__PURE__ */ N(C, { size: 20 }),
|
|
97
|
+
order: 12.7,
|
|
98
|
+
group: "farming"
|
|
99
|
+
},
|
|
75
100
|
{
|
|
76
101
|
id: "healthybowl-soil",
|
|
77
|
-
label:
|
|
78
|
-
path:
|
|
79
|
-
icon: /* @__PURE__ */
|
|
102
|
+
label: B("healthybowl.nav.soilHealth", "Soil Health"),
|
|
103
|
+
path: V(R, "soil"),
|
|
104
|
+
icon: /* @__PURE__ */ N(g, { size: 20 }),
|
|
80
105
|
order: 13,
|
|
81
106
|
group: "farming"
|
|
82
107
|
},
|
|
83
108
|
{
|
|
84
109
|
id: "healthybowl-pest",
|
|
85
|
-
label:
|
|
86
|
-
path:
|
|
87
|
-
icon: /* @__PURE__ */
|
|
110
|
+
label: B("healthybowl.nav.pestManagement", "Pest Management"),
|
|
111
|
+
path: V(R, "pest-management"),
|
|
112
|
+
icon: /* @__PURE__ */ N(d, { size: 20 }),
|
|
88
113
|
order: 14,
|
|
89
114
|
group: "farming"
|
|
90
115
|
},
|
|
91
116
|
{
|
|
92
117
|
id: "healthybowl-production",
|
|
93
|
-
label:
|
|
94
|
-
path:
|
|
95
|
-
icon: /* @__PURE__ */
|
|
118
|
+
label: B("healthybowl.nav.production", "Production"),
|
|
119
|
+
path: V(R, "production"),
|
|
120
|
+
icon: /* @__PURE__ */ N(h, { size: 20 }),
|
|
96
121
|
order: 20,
|
|
97
122
|
group: "business"
|
|
98
123
|
},
|
|
99
124
|
{
|
|
100
125
|
id: "healthybowl-products",
|
|
101
|
-
label:
|
|
102
|
-
path:
|
|
103
|
-
icon: /* @__PURE__ */
|
|
126
|
+
label: B("healthybowl.nav.products", "Products"),
|
|
127
|
+
path: V(R, "products"),
|
|
128
|
+
icon: /* @__PURE__ */ N(x, { size: 20 }),
|
|
104
129
|
order: 21,
|
|
105
130
|
group: "business"
|
|
106
131
|
},
|
|
107
132
|
{
|
|
108
133
|
id: "healthybowl-marketplace",
|
|
109
|
-
label:
|
|
110
|
-
path:
|
|
111
|
-
icon: /* @__PURE__ */
|
|
134
|
+
label: B("healthybowl.nav.marketplace", "Marketplace"),
|
|
135
|
+
path: V(R, "marketplace"),
|
|
136
|
+
icon: /* @__PURE__ */ N(D, { size: 20 }),
|
|
112
137
|
order: 22,
|
|
113
138
|
group: "business"
|
|
114
139
|
},
|
|
115
140
|
{
|
|
116
141
|
id: "healthybowl-financial",
|
|
117
|
-
label:
|
|
118
|
-
path:
|
|
119
|
-
icon: /* @__PURE__ */
|
|
142
|
+
label: B("healthybowl.nav.financial", "Financial"),
|
|
143
|
+
path: V(R, "financial"),
|
|
144
|
+
icon: /* @__PURE__ */ N(m, { size: 20 }),
|
|
120
145
|
order: 23,
|
|
121
146
|
group: "business"
|
|
122
147
|
},
|
|
123
148
|
{
|
|
124
149
|
id: "healthybowl-financier",
|
|
125
|
-
label:
|
|
126
|
-
path:
|
|
127
|
-
icon: /* @__PURE__ */
|
|
150
|
+
label: B("healthybowl.nav.financier", "Financier"),
|
|
151
|
+
path: V(R, "financier"),
|
|
152
|
+
icon: /* @__PURE__ */ N(l, { size: 20 }),
|
|
128
153
|
order: 24,
|
|
129
154
|
group: "business"
|
|
130
155
|
},
|
|
131
156
|
{
|
|
132
157
|
id: "healthybowl-compliance",
|
|
133
|
-
label:
|
|
134
|
-
path:
|
|
135
|
-
icon: /* @__PURE__ */
|
|
158
|
+
label: B("healthybowl.nav.compliance", "Compliance"),
|
|
159
|
+
path: V(R, "compliance"),
|
|
160
|
+
icon: /* @__PURE__ */ N(E, { size: 20 }),
|
|
136
161
|
order: 30,
|
|
137
162
|
group: "compliance"
|
|
138
163
|
},
|
|
139
164
|
{
|
|
140
165
|
id: "healthybowl-traceability",
|
|
141
|
-
label:
|
|
142
|
-
path:
|
|
143
|
-
icon: /* @__PURE__ */
|
|
166
|
+
label: B("healthybowl.nav.traceability", "Traceability"),
|
|
167
|
+
path: V(R, "traceability"),
|
|
168
|
+
icon: /* @__PURE__ */ N(w, { size: 20 }),
|
|
144
169
|
order: 31,
|
|
145
170
|
group: "compliance"
|
|
146
171
|
},
|
|
147
172
|
{
|
|
148
173
|
id: "healthybowl-schemes",
|
|
149
|
-
label:
|
|
150
|
-
path:
|
|
151
|
-
icon: /* @__PURE__ */
|
|
174
|
+
label: B("healthybowl.nav.governmentSchemes", "Gov. Schemes"),
|
|
175
|
+
path: V(R, "government-schemes"),
|
|
176
|
+
icon: /* @__PURE__ */ N(v, { size: 20 }),
|
|
152
177
|
order: 40,
|
|
153
178
|
group: "support"
|
|
154
179
|
},
|
|
155
180
|
{
|
|
156
181
|
id: "healthybowl-network",
|
|
157
|
-
label:
|
|
158
|
-
path:
|
|
159
|
-
icon: /* @__PURE__ */
|
|
182
|
+
label: B("healthybowl.nav.network", "Network"),
|
|
183
|
+
path: V(R, "network"),
|
|
184
|
+
icon: /* @__PURE__ */ N(j, { size: 20 }),
|
|
160
185
|
order: 41,
|
|
161
186
|
group: "support"
|
|
162
187
|
},
|
|
163
188
|
{
|
|
164
189
|
id: "healthybowl-analytics",
|
|
165
|
-
label:
|
|
166
|
-
path:
|
|
167
|
-
icon: /* @__PURE__ */
|
|
190
|
+
label: B("healthybowl.nav.analytics", "Analytics"),
|
|
191
|
+
path: V(R, "analytics"),
|
|
192
|
+
icon: /* @__PURE__ */ N(u, { size: 20 }),
|
|
168
193
|
order: 42,
|
|
169
194
|
group: "support"
|
|
170
195
|
},
|
|
171
196
|
{
|
|
172
197
|
id: "healthybowl-advisors",
|
|
173
|
-
label:
|
|
174
|
-
path:
|
|
175
|
-
icon: /* @__PURE__ */
|
|
198
|
+
label: B("healthybowl.nav.advisors", "My Advisors"),
|
|
199
|
+
path: V(R, "advisors"),
|
|
200
|
+
icon: /* @__PURE__ */ N(A, { size: 20 }),
|
|
176
201
|
order: 43,
|
|
177
202
|
group: "support"
|
|
178
203
|
},
|
|
179
204
|
{
|
|
180
205
|
id: "healthybowl-consultant",
|
|
181
|
-
label:
|
|
182
|
-
path:
|
|
183
|
-
icon: /* @__PURE__ */
|
|
206
|
+
label: B("healthybowl.nav.consultant", "Consultant"),
|
|
207
|
+
path: V(R, "consultant"),
|
|
208
|
+
icon: /* @__PURE__ */ N(O, { size: 20 }),
|
|
184
209
|
order: 44,
|
|
185
210
|
group: "support"
|
|
186
211
|
}
|
|
187
212
|
]);
|
|
188
|
-
}, [
|
|
189
|
-
if (
|
|
213
|
+
}, [I, R]), s(() => {
|
|
214
|
+
if (L) return L([{
|
|
190
215
|
id: "healthybowl-status",
|
|
191
|
-
label:
|
|
216
|
+
label: B("healthybowl.footer.ready", "HealthyBowl Ready"),
|
|
192
217
|
type: "status",
|
|
193
218
|
order: 10,
|
|
194
219
|
section: "left"
|
|
195
220
|
}]);
|
|
196
|
-
}, [
|
|
221
|
+
}, [L]), /* @__PURE__ */ N(P, {
|
|
197
222
|
workspaceId: null,
|
|
198
223
|
gateway: "global",
|
|
199
224
|
defaultEnabled: !0,
|
|
200
|
-
children: /* @__PURE__ */
|
|
201
|
-
...
|
|
202
|
-
children: /* @__PURE__ */
|
|
225
|
+
children: /* @__PURE__ */ N(e, {
|
|
226
|
+
...F,
|
|
227
|
+
children: /* @__PURE__ */ N(n, { children: /* @__PURE__ */ N(r, { children: /* @__PURE__ */ N(a, { children: /* @__PURE__ */ N(i, {}) }) }) })
|
|
203
228
|
})
|
|
204
229
|
});
|
|
205
230
|
};
|
|
206
231
|
//#endregion
|
|
207
|
-
export {
|
|
232
|
+
export { F as HealthyBowlRoot };
|
|
208
233
|
|
|
209
234
|
//# sourceMappingURL=HealthyBowlRoot.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"HealthyBowlRoot.js","names":[],"sources":["../../src/healthybowl/HealthyBowlRoot.tsx"],"sourcesContent":["/**\n * HealthyBowl Root Component\n * @module healthybowl\n */\n\nimport type { FC } from 'react';\nimport { useCallback, useEffect } from 'react';\nimport { useI18n } from '@burdenoff/fe-libs/shared/providers/shell/I18nProvider';\nimport {\n Home,\n Tractor,\n ListChecks,\n Wheat,\n PawPrint,\n Cloud,\n Map as MapIcon,\n ShoppingCart,\n DollarSign,\n BarChart3,\n FlaskConical,\n Bug,\n Factory,\n Package,\n ScanLine,\n ShieldCheck,\n Landmark,\n Banknote,\n Stethoscope,\n UserCheck,\n Users,\n} from 'lucide-react';\nimport { HealthyBowlProvider } from './context/HealthyBowlContext';\nimport { FeatureFlagProvider } from '@burdenoff/fe-libs/shared/feature-flags';\nimport { HealthyBowlRoutes } from './HealthyBowlRoutes';\nimport { ErrorBoundary } from './components/ErrorBoundary';\nimport { ConfirmProvider } from './components/ConfirmDialog';\nimport { normalizeBasePath } from './utils/helpers';\nimport type { HealthyBowlRootProps, NavItem } from './types';\n\nexport const HealthyBowlRoot: FC<HealthyBowlRootProps> = (props) => {\n const { registerNavItems, registerFooterItems, basePath = '/' } = props;\n const { t: translate } = useI18n();\n const t = useCallback(\n (key: string, fallback: string): string => {\n const value = translate(key);\n return value === key ? fallback : value;\n },\n [translate]\n );\n\n // Helper to join paths correctly\n const joinPath = (base: string, path: string): string => {\n const cleanBase = base.endsWith('/') ? base.slice(0, -1) : base;\n const cleanPath = path.startsWith('/') ? path : `/${path}`;\n return cleanBase + cleanPath;\n };\n\n // Register navigation items with shell on mount\n useEffect(() => {\n if (!registerNavItems) return;\n\n const navItems: NavItem[] = [\n // Dashboard\n {\n id: 'healthybowl-dashboard',\n label: t('healthybowl.nav.dashboard', 'Dashboard'),\n // The product index IS the dashboard. Normalize a trailing slash like\n // every sibling item (joinPath) so active-state highlighting matches if\n // the host ever passes '/healthybowl/'.\n path: normalizeBasePath(basePath),\n icon: <Home size={20} />,\n order: 1,\n group: 'main',\n },\n\n // My Farm\n {\n id: 'healthybowl-farm',\n label: t('healthybowl.nav.farm', 'My Farm'),\n path: joinPath(basePath, 'farm'),\n icon: <Tractor size={20} />,\n order: 2,\n group: 'main',\n },\n\n // Farm Tasks (PlanMagnet embed) — shared work-item board across the farm.\n {\n id: 'healthybowl-tasks',\n label: t('healthybowl.nav.tasks', 'Tasks'),\n path: joinPath(basePath, 'tasks'),\n icon: <ListChecks size={20} />,\n order: 3,\n group: 'main',\n },\n\n // Crops\n {\n id: 'healthybowl-crops',\n label: t('healthybowl.nav.crops', 'Crops'),\n path: joinPath(basePath, 'crops'),\n icon: <Wheat size={20} />,\n order: 10,\n group: 'farming',\n },\n\n // Livestock\n {\n id: 'healthybowl-livestock',\n label: t('healthybowl.nav.livestock', 'Livestock'),\n path: joinPath(basePath, 'livestock'),\n icon: <PawPrint size={20} />,\n order: 11,\n group: 'farming',\n },\n\n // Weather\n {\n id: 'healthybowl-weather',\n label: t('healthybowl.nav.weather', 'Weather'),\n path: joinPath(basePath, 'weather'),\n icon: <Cloud size={20} />,\n order: 12,\n group: 'farming',\n },\n\n // Field Map — draw & manage field boundaries on satellite imagery\n {\n id: 'healthybowl-field-map',\n label: t('healthybowl.nav.fieldMap', 'Field Map'),\n path: joinPath(basePath, 'field-map'),\n icon: <MapIcon size={20} />,\n order: 12.5,\n group: 'farming',\n },\n\n // Soil Health\n {\n id: 'healthybowl-soil',\n label: t('healthybowl.nav.soilHealth', 'Soil Health'),\n path: joinPath(basePath, 'soil'),\n icon: <FlaskConical size={20} />,\n order: 13,\n group: 'farming',\n },\n\n // Pest Management\n {\n id: 'healthybowl-pest',\n label: t('healthybowl.nav.pestManagement', 'Pest Management'),\n path: joinPath(basePath, 'pest-management'),\n icon: <Bug size={20} />,\n order: 14,\n group: 'farming',\n },\n\n // Production\n {\n id: 'healthybowl-production',\n label: t('healthybowl.nav.production', 'Production'),\n path: joinPath(basePath, 'production'),\n icon: <Factory size={20} />,\n order: 20,\n group: 'business',\n },\n\n // Products\n {\n id: 'healthybowl-products',\n label: t('healthybowl.nav.products', 'Products'),\n path: joinPath(basePath, 'products'),\n icon: <Package size={20} />,\n order: 21,\n group: 'business',\n },\n\n // Marketplace\n {\n id: 'healthybowl-marketplace',\n label: t('healthybowl.nav.marketplace', 'Marketplace'),\n path: joinPath(basePath, 'marketplace'),\n icon: <ShoppingCart size={20} />,\n order: 22,\n group: 'business',\n },\n\n // Financial\n {\n id: 'healthybowl-financial',\n label: t('healthybowl.nav.financial', 'Financial'),\n path: joinPath(basePath, 'financial'),\n icon: <DollarSign size={20} />,\n order: 23,\n group: 'business',\n },\n\n // Financier portfolio (B2B2C bridge)\n {\n id: 'healthybowl-financier',\n label: t('healthybowl.nav.financier', 'Financier'),\n path: joinPath(basePath, 'financier'),\n icon: <Banknote size={20} />,\n order: 24,\n group: 'business',\n },\n\n // Compliance\n {\n id: 'healthybowl-compliance',\n label: t('healthybowl.nav.compliance', 'Compliance'),\n path: joinPath(basePath, 'compliance'),\n icon: <ShieldCheck size={20} />,\n order: 30,\n group: 'compliance',\n },\n\n // Traceability\n {\n id: 'healthybowl-traceability',\n label: t('healthybowl.nav.traceability', 'Traceability'),\n path: joinPath(basePath, 'traceability'),\n icon: <ScanLine size={20} />,\n order: 31,\n group: 'compliance',\n },\n\n // Government Schemes\n {\n id: 'healthybowl-schemes',\n label: t('healthybowl.nav.governmentSchemes', 'Gov. Schemes'),\n path: joinPath(basePath, 'government-schemes'),\n icon: <Landmark size={20} />,\n order: 40,\n group: 'support',\n },\n\n // Network\n {\n id: 'healthybowl-network',\n label: t('healthybowl.nav.network', 'Network'),\n path: joinPath(basePath, 'network'),\n icon: <Users size={20} />,\n order: 41,\n group: 'support',\n },\n\n // Analytics\n {\n id: 'healthybowl-analytics',\n label: t('healthybowl.nav.analytics', 'Analytics'),\n path: joinPath(basePath, 'analytics'),\n icon: <BarChart3 size={20} />,\n order: 42,\n group: 'support',\n },\n\n // My Advisors (UC-16 — farmer side)\n {\n id: 'healthybowl-advisors',\n label: t('healthybowl.nav.advisors', 'My Advisors'),\n path: joinPath(basePath, 'advisors'),\n icon: <UserCheck size={20} />,\n order: 43,\n group: 'support',\n },\n\n // Consultant portfolio (UC-16 — consultant side)\n {\n id: 'healthybowl-consultant',\n label: t('healthybowl.nav.consultant', 'Consultant'),\n path: joinPath(basePath, 'consultant'),\n icon: <Stethoscope size={20} />,\n order: 44,\n group: 'support',\n },\n ];\n\n // All sections are reachable. Marketplace (UC-08), Network (UC-12) and\n // Traceability (UC-11) render real read data + their real create flows\n // (createMarketplaceProduct / createCommunityPost / createTraceBatch); the\n // few genuinely-unbacked actions (checkout, booking, QR resolution) show\n // honest \"not available yet\" states in-page rather than hiding the section.\n const cleanup = registerNavItems(navItems);\n return cleanup;\n }, [registerNavItems, basePath]);\n\n // Register footer items\n useEffect(() => {\n if (!registerFooterItems) return;\n\n const footerItems = [\n {\n id: 'healthybowl-status',\n label: t('healthybowl.footer.ready', 'HealthyBowl Ready'),\n type: 'status' as const,\n order: 10,\n section: 'left' as const,\n },\n ];\n\n const cleanup = registerFooterItems(footerItems);\n return cleanup;\n }, [registerFooterItems]);\n\n return (\n <FeatureFlagProvider workspaceId={null} gateway=\"global\" defaultEnabled={true}>\n <HealthyBowlProvider {...props}>\n <ErrorBoundary>\n <ConfirmProvider>\n <HealthyBowlRoutes />\n </ConfirmProvider>\n </ErrorBoundary>\n </HealthyBowlProvider>\n </FeatureFlagProvider>\n );\n};\n"],"mappings":";;;;;;;;;;;AAuCA,IAAa,KAA6C,MAAU;CAClE,IAAM,EAAE,qBAAkB,wBAAqB,cAAW,QAAQ,GAC5D,EAAE,GAAG,MAAc,GAAS,EAC5B,IAAI,GACP,GAAa,MAA6B;EACzC,IAAM,IAAQ,EAAU,EAAI;AAC5B,SAAO,MAAU,IAAM,IAAW;IAEpC,CAAC,EAAU,CACZ,EAGK,KAAY,GAAc,OACZ,EAAK,SAAS,IAAI,GAAG,EAAK,MAAM,GAAG,GAAG,GAAG,MACzC,EAAK,WAAW,IAAI,GAAG,IAAO,IAAI;AA0PtD,QArPA,QAAgB;AACT,QA+NL,QADgB,EA5NY;GAE1B;IACE,IAAI;IACJ,OAAO,EAAE,6BAA6B,YAAY;IAIlD,MAAM,EAAkB,EAAS;IACjC,MAAM,kBAAC,GAAD,EAAM,MAAM,IAAM,CAAA;IACxB,OAAO;IACP,OAAO;IACR;GAGD;IACE,IAAI;IACJ,OAA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MAAM,IAAM,CAAA;IAC5B,OAAO;IACP,OAAO;IACR;GAGD;IACE,IAAI;IACJ,OAAO,EAAE,2BAA2B,UAAU;IAC9C,MAAM,EAAS,GAAU,UAAU;IACnC,MAAM,kBAAC,GAAD,EAAO,MAAM,IAAM,CAAA;IACzB,OAAO;IACP,OAAO;IACR;GAGD;IACE,IAAI;IACJ,OAAO,EAAE,6BAA6B,YAAY;IAClD,MAAM,EAAS,GAAU,YAAY;IACrC,MAAM,kBAAC,GAAD,EAAW,MAAM,IAAM,CAAA;IAC7B,OAAO;IACP,OAAO;IACR;GAGD;IACE,IAAI;IACJ,OAAO,EAAE,4BAA4B,cAAc;IACnD,MAAM,EAAS,GAAU,WAAW;IACpC,MAAM,kBAAC,GAAD,EAAW,MAAM,IAAM,CAAA;IAC7B,OAAO;IACP,OAAO;IACR;GAGD;IACE,IAAI;IACJ,OAAO,EAAE,8BAA8B,aAAa;IACpD,MAAM,EAAS,GAAU,aAAa;IACtC,MAAM,kBAAC,GAAD,EAAa,MAAM,IAAM,CAAA;IAC/B,OAAO;IACP,OAAO;IACR;GACF,CAOyC;IAEzC,CAAC,GAAkB,EAAS,CAAC,EAGhC,QAAgB;AACT,QAaL,QADgB,EAVI,CAClB;GACE,IAAI;GACJ,OAAO,EAAE,4BAA4B,oBAAoB;GACzD,MAAM;GACN,OAAO;GACP,SAAS;GACV,CACF,CAE+C;IAE/C,CAAC,EAAoB,CAAC,EAGvB,kBAAC,GAAD;EAAqB,aAAa;EAAM,SAAQ;EAAS,gBAAgB;YACvE,kBAAC,GAAD;GAAqB,GAAI;aACvB,kBAAC,GAAD,EAAA,UACE,kBAAC,GAAD,EAAA,UACE,kBAAC,GAAD,EAAqB,CAAA,EACL,CAAA,EACJ,CAAA;GACI,CAAA;EACF,CAAA"}
|
|
1
|
+
{"version":3,"file":"HealthyBowlRoot.js","names":[],"sources":["../../src/healthybowl/HealthyBowlRoot.tsx"],"sourcesContent":["/**\n * HealthyBowl Root Component\n * @module healthybowl\n */\n\nimport type { FC } from 'react';\nimport { useCallback, useEffect } from 'react';\nimport { useI18n } from '@burdenoff/fe-libs/shared/providers/shell/I18nProvider';\nimport {\n Home,\n Tractor,\n ListChecks,\n Wheat,\n PawPrint,\n Cloud,\n Map as MapIcon,\n ShoppingCart,\n DollarSign,\n BarChart3,\n FlaskConical,\n Bug,\n Factory,\n Package,\n ScanLine,\n ShieldCheck,\n Landmark,\n Banknote,\n Stethoscope,\n UserCheck,\n Users,\n CloudUpload,\n RefreshCw,\n ShieldAlert,\n} from 'lucide-react';\nimport { HealthyBowlProvider } from './context/HealthyBowlContext';\nimport { FeatureFlagProvider } from '@burdenoff/fe-libs/shared/feature-flags';\nimport { HealthyBowlRoutes } from './HealthyBowlRoutes';\nimport { ErrorBoundary } from './components/ErrorBoundary';\nimport { ConfirmProvider } from './components/ConfirmDialog';\nimport { OfflineSyncProvider } from './offline/OfflineSyncProvider';\nimport { normalizeBasePath } from './utils/helpers';\nimport type { HealthyBowlRootProps, NavItem } from './types';\n\nexport const HealthyBowlRoot: FC<HealthyBowlRootProps> = (props) => {\n const { registerNavItems, registerFooterItems, basePath = '/' } = props;\n const { t: translate } = useI18n();\n const t = useCallback(\n (key: string, fallback: string): string => {\n const value = translate(key);\n return value === key ? fallback : value;\n },\n [translate]\n );\n\n // Helper to join paths correctly\n const joinPath = (base: string, path: string): string => {\n const cleanBase = base.endsWith('/') ? base.slice(0, -1) : base;\n const cleanPath = path.startsWith('/') ? path : `/${path}`;\n return cleanBase + cleanPath;\n };\n\n // Register navigation items with shell on mount\n useEffect(() => {\n if (!registerNavItems) return;\n\n const navItems: NavItem[] = [\n // Dashboard\n {\n id: 'healthybowl-dashboard',\n label: t('healthybowl.nav.dashboard', 'Dashboard'),\n // The product index IS the dashboard. Normalize a trailing slash like\n // every sibling item (joinPath) so active-state highlighting matches if\n // the host ever passes '/healthybowl/'.\n path: normalizeBasePath(basePath),\n icon: <Home size={20} />,\n order: 1,\n group: 'main',\n },\n\n // My Farm\n {\n id: 'healthybowl-farm',\n label: t('healthybowl.nav.farm', 'My Farm'),\n path: joinPath(basePath, 'farm'),\n icon: <Tractor size={20} />,\n order: 2,\n group: 'main',\n },\n\n // Farm Tasks (PlanMagnet embed) — shared work-item board across the farm.\n {\n id: 'healthybowl-tasks',\n label: t('healthybowl.nav.tasks', 'Tasks'),\n path: joinPath(basePath, 'tasks'),\n icon: <ListChecks size={20} />,\n order: 3,\n group: 'main',\n },\n\n // Crops\n {\n id: 'healthybowl-crops',\n label: t('healthybowl.nav.crops', 'Crops'),\n path: joinPath(basePath, 'crops'),\n icon: <Wheat size={20} />,\n order: 10,\n group: 'farming',\n },\n\n // Livestock\n {\n id: 'healthybowl-livestock',\n label: t('healthybowl.nav.livestock', 'Livestock'),\n path: joinPath(basePath, 'livestock'),\n icon: <PawPrint size={20} />,\n order: 11,\n group: 'farming',\n },\n\n // Livestock — Medication Withdrawal Alerts (BOFF-2885)\n {\n id: 'healthybowl-withdrawal-alerts',\n label: t('healthybowl.nav.withdrawalAlerts', 'Withdrawal Alerts'),\n path: joinPath(basePath, 'livestock/withdrawal-alerts'),\n icon: <ShieldAlert size={20} />,\n order: 11.5,\n group: 'farming',\n },\n\n // Weather\n {\n id: 'healthybowl-weather',\n label: t('healthybowl.nav.weather', 'Weather'),\n path: joinPath(basePath, 'weather'),\n icon: <Cloud size={20} />,\n order: 12,\n group: 'farming',\n },\n\n // Field Map — draw & manage field boundaries on satellite imagery\n {\n id: 'healthybowl-field-map',\n label: t('healthybowl.nav.fieldMap', 'Field Map'),\n path: joinPath(basePath, 'field-map'),\n icon: <MapIcon size={20} />,\n order: 12.5,\n group: 'farming',\n },\n\n // Field Capture — offline-first observation capture (BOFF-2883)\n {\n id: 'healthybowl-field-capture',\n label: t('healthybowl.nav.fieldCapture', 'Field Capture'),\n path: joinPath(basePath, 'field-capture'),\n icon: <CloudUpload size={20} />,\n order: 12.6,\n group: 'farming',\n },\n\n // Pending Sync — the offline outbox / sync queue (BOFF-2883)\n {\n id: 'healthybowl-pending-sync',\n label: t('healthybowl.nav.pendingSync', 'Pending Sync'),\n path: joinPath(basePath, 'field-capture/pending'),\n icon: <RefreshCw size={20} />,\n order: 12.7,\n group: 'farming',\n },\n\n // Soil Health\n {\n id: 'healthybowl-soil',\n label: t('healthybowl.nav.soilHealth', 'Soil Health'),\n path: joinPath(basePath, 'soil'),\n icon: <FlaskConical size={20} />,\n order: 13,\n group: 'farming',\n },\n\n // Pest Management\n {\n id: 'healthybowl-pest',\n label: t('healthybowl.nav.pestManagement', 'Pest Management'),\n path: joinPath(basePath, 'pest-management'),\n icon: <Bug size={20} />,\n order: 14,\n group: 'farming',\n },\n\n // Production\n {\n id: 'healthybowl-production',\n label: t('healthybowl.nav.production', 'Production'),\n path: joinPath(basePath, 'production'),\n icon: <Factory size={20} />,\n order: 20,\n group: 'business',\n },\n\n // Products\n {\n id: 'healthybowl-products',\n label: t('healthybowl.nav.products', 'Products'),\n path: joinPath(basePath, 'products'),\n icon: <Package size={20} />,\n order: 21,\n group: 'business',\n },\n\n // Marketplace\n {\n id: 'healthybowl-marketplace',\n label: t('healthybowl.nav.marketplace', 'Marketplace'),\n path: joinPath(basePath, 'marketplace'),\n icon: <ShoppingCart size={20} />,\n order: 22,\n group: 'business',\n },\n\n // Financial\n {\n id: 'healthybowl-financial',\n label: t('healthybowl.nav.financial', 'Financial'),\n path: joinPath(basePath, 'financial'),\n icon: <DollarSign size={20} />,\n order: 23,\n group: 'business',\n },\n\n // Financier portfolio (B2B2C bridge)\n {\n id: 'healthybowl-financier',\n label: t('healthybowl.nav.financier', 'Financier'),\n path: joinPath(basePath, 'financier'),\n icon: <Banknote size={20} />,\n order: 24,\n group: 'business',\n },\n\n // Compliance\n {\n id: 'healthybowl-compliance',\n label: t('healthybowl.nav.compliance', 'Compliance'),\n path: joinPath(basePath, 'compliance'),\n icon: <ShieldCheck size={20} />,\n order: 30,\n group: 'compliance',\n },\n\n // Traceability\n {\n id: 'healthybowl-traceability',\n label: t('healthybowl.nav.traceability', 'Traceability'),\n path: joinPath(basePath, 'traceability'),\n icon: <ScanLine size={20} />,\n order: 31,\n group: 'compliance',\n },\n\n // Government Schemes\n {\n id: 'healthybowl-schemes',\n label: t('healthybowl.nav.governmentSchemes', 'Gov. Schemes'),\n path: joinPath(basePath, 'government-schemes'),\n icon: <Landmark size={20} />,\n order: 40,\n group: 'support',\n },\n\n // Network\n {\n id: 'healthybowl-network',\n label: t('healthybowl.nav.network', 'Network'),\n path: joinPath(basePath, 'network'),\n icon: <Users size={20} />,\n order: 41,\n group: 'support',\n },\n\n // Analytics\n {\n id: 'healthybowl-analytics',\n label: t('healthybowl.nav.analytics', 'Analytics'),\n path: joinPath(basePath, 'analytics'),\n icon: <BarChart3 size={20} />,\n order: 42,\n group: 'support',\n },\n\n // My Advisors (UC-16 — farmer side)\n {\n id: 'healthybowl-advisors',\n label: t('healthybowl.nav.advisors', 'My Advisors'),\n path: joinPath(basePath, 'advisors'),\n icon: <UserCheck size={20} />,\n order: 43,\n group: 'support',\n },\n\n // Consultant portfolio (UC-16 — consultant side)\n {\n id: 'healthybowl-consultant',\n label: t('healthybowl.nav.consultant', 'Consultant'),\n path: joinPath(basePath, 'consultant'),\n icon: <Stethoscope size={20} />,\n order: 44,\n group: 'support',\n },\n ];\n\n // All sections are reachable. Marketplace (UC-08), Network (UC-12) and\n // Traceability (UC-11) render real read data + their real create flows\n // (createMarketplaceProduct / createCommunityPost / createTraceBatch); the\n // few genuinely-unbacked actions (checkout, booking, QR resolution) show\n // honest \"not available yet\" states in-page rather than hiding the section.\n const cleanup = registerNavItems(navItems);\n return cleanup;\n }, [registerNavItems, basePath]);\n\n // Register footer items\n useEffect(() => {\n if (!registerFooterItems) return;\n\n const footerItems = [\n {\n id: 'healthybowl-status',\n label: t('healthybowl.footer.ready', 'HealthyBowl Ready'),\n type: 'status' as const,\n order: 10,\n section: 'left' as const,\n },\n ];\n\n const cleanup = registerFooterItems(footerItems);\n return cleanup;\n }, [registerFooterItems]);\n\n return (\n <FeatureFlagProvider workspaceId={null} gateway=\"global\" defaultEnabled={true}>\n <HealthyBowlProvider {...props}>\n <ErrorBoundary>\n <ConfirmProvider>\n <OfflineSyncProvider>\n <HealthyBowlRoutes />\n </OfflineSyncProvider>\n </ConfirmProvider>\n </ErrorBoundary>\n </HealthyBowlProvider>\n </FeatureFlagProvider>\n );\n};\n"],"mappings":";;;;;;;;;;;;AA2CA,IAAa,KAA6C,MAAU;CAClE,IAAM,EAAE,qBAAkB,wBAAqB,cAAW,QAAQ,GAC5D,EAAE,GAAG,MAAc,GAAS,EAC5B,IAAI,GACP,GAAa,MAA6B;EACzC,IAAM,IAAQ,EAAU,EAAI;AAC5B,SAAO,MAAU,IAAM,IAAW;IAEpC,CAAC,EAAU,CACZ,EAGK,KAAY,GAAc,OACZ,EAAK,SAAS,IAAI,GAAG,EAAK,MAAM,GAAG,GAAG,GAAG,MACzC,EAAK,WAAW,IAAI,GAAG,IAAO,IAAI;AAwRtD,QAnRA,QAAgB;AACT,QA6PL,QADgB,EA1PY;GAE1B;IACE,IAAI;IACJ,OAAO,EAAE,6BAA6B,YAAY;IAIlD,MAAM,EAAkB,EAAS;IACjC,MAAM,kBAAC,GAAD,EAAM,MAAM,IAAM,CAAA;IACxB,OAAO;IACP,OAAO;IACR;GAGD;IACE,IAAI;IACJ,OAAO,EAAE,wBAAwB,UAAU;IAC3C,MAAM,EAAS,GAAU,OAAO;IAChC,MAAM,kBAAC,GAAD,EAAS,MAAM,IAAM,CAAA;IAC3B,OAAO;IACP,OAAO;IACR;GAGD;IACE,IAAI;IACJ,OAAO,EAAE,yBAAyB,QAAQ;IAC1C,MAAM,EAAS,GAAU,QAAQ;IACjC,MAAM,kBAAC,GAAD,EAAY,MAAM,IAAM,CAAA;IAC9B,OAAO;IACP,OAAO;IACR;GAGD;IACE,IAAI;IACJ,OAAO,EAAE,yBAAyB,QAAQ;IAC1C,MAAM,EAAS,GAAU,QAAQ;IACjC,MAAM,kBAAC,GAA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