@burdenoff/microfe-healthybowl 2026.811.4 → 2026.811.6
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 +123 -115
- package/dist/healthybowl/HealthyBowlRoot.js.map +1 -1
- package/dist/healthybowl/HealthyBowlRoutes.js +92 -80
- package/dist/healthybowl/HealthyBowlRoutes.js.map +1 -1
- package/dist/healthybowl/hooks/useHealthyBowlCoop.js +227 -0
- package/dist/healthybowl/hooks/useHealthyBowlCoop.js.map +1 -0
- package/dist/healthybowl/hooks/useLivestockImport.js +45 -0
- package/dist/healthybowl/hooks/useLivestockImport.js.map +1 -0
- package/dist/healthybowl/pages/coop/AggregationLotBuilderPage.js +359 -0
- package/dist/healthybowl/pages/coop/AggregationLotBuilderPage.js.map +1 -0
- package/dist/healthybowl/pages/coop/CoopMemberDetailPage.js +212 -0
- package/dist/healthybowl/pages/coop/CoopMemberDetailPage.js.map +1 -0
- package/dist/healthybowl/pages/coop/CoopOverviewPage.js +286 -0
- package/dist/healthybowl/pages/coop/CoopOverviewPage.js.map +1 -0
- package/dist/healthybowl/pages/coop/coop-forms/CreateLotModal.js +129 -0
- package/dist/healthybowl/pages/coop/coop-forms/CreateLotModal.js.map +1 -0
- package/dist/healthybowl/pages/coop/coop-forms/InviteMemberModal.js +92 -0
- package/dist/healthybowl/pages/coop/coop-forms/InviteMemberModal.js.map +1 -0
- package/dist/healthybowl/pages/coop/coop-forms/MarkSoldModal.js +83 -0
- package/dist/healthybowl/pages/coop/coop-forms/MarkSoldModal.js.map +1 -0
- package/dist/healthybowl/pages/coop/coop-forms/SettleLotModal.js +190 -0
- package/dist/healthybowl/pages/coop/coop-forms/SettleLotModal.js.map +1 -0
- package/dist/healthybowl/pages/distribution/labels.js +6 -0
- package/dist/healthybowl/pages/distribution/labels.js.map +1 -1
- package/dist/healthybowl/pages/financial/BudgetManagementPage.js +4 -0
- package/dist/healthybowl/pages/financial/BudgetManagementPage.js.map +1 -1
- package/dist/healthybowl/pages/financial/TransactionsPage.js +65 -60
- package/dist/healthybowl/pages/financial/TransactionsPage.js.map +1 -1
- package/dist/healthybowl/pages/livestock/HealthRecordsPage.js +394 -387
- package/dist/healthybowl/pages/livestock/HealthRecordsPage.js.map +1 -1
- package/dist/healthybowl/pages/livestock/LivestockImportModal.js +158 -0
- package/dist/healthybowl/pages/livestock/LivestockImportModal.js.map +1 -0
- package/dist/healthybowl/pages/livestock/VaccinationSchedulePage.js +77 -70
- package/dist/healthybowl/pages/livestock/VaccinationSchedulePage.js.map +1 -1
- package/dist/healthybowl/utils/coop.js +57 -0
- package/dist/healthybowl/utils/coop.js.map +1 -0
- package/package.json +1 -1
|
@@ -6,301 +6,309 @@ import { HealthyBowlRoutes as i } from "./HealthyBowlRoutes.js";
|
|
|
6
6
|
import { OfflineSyncProvider as a } from "./offline/OfflineSyncProvider.js";
|
|
7
7
|
import { useCallback as o, useEffect as s } from "react";
|
|
8
8
|
import { useI18n as c } from "@burdenoff/fe-libs/shared/providers/shell/I18nProvider";
|
|
9
|
-
import { Award as l, Banknote as u, BarChart3 as d, Bug as f, Cloud as p, CloudUpload as m, DollarSign as h, Factory as g, Fence as _, FlaskConical as v, Globe as y, Home as b, Landmark as x, Leaf as S, LineChart as C, ListChecks as w, Map as T, Package as E, PawPrint as D, Radio as O, RefreshCw as k, ScanLine as A, ScanSearch as j, ShieldAlert as M, ShieldCheck as N, ShoppingCart as P, Sprout as F, Stethoscope as I, Tractor as L, UserCheck as R, Users as z,
|
|
10
|
-
import { jsx as
|
|
11
|
-
import { FeatureFlagProvider as
|
|
9
|
+
import { Award as l, Banknote as u, BarChart3 as d, Bug as f, Cloud as p, CloudUpload as m, DollarSign as h, Factory as g, Fence as _, FlaskConical as v, Globe as y, Home as b, Landmark as x, Leaf as S, LineChart as C, ListChecks as w, Map as T, Package as E, PawPrint as D, Radio as O, RefreshCw as k, ScanLine as A, ScanSearch as j, ShieldAlert as M, ShieldCheck as N, ShoppingCart as P, Sprout as F, Stethoscope as I, Tractor as L, UserCheck as R, Users as z, Users2 as B, Wheat as V } from "lucide-react";
|
|
10
|
+
import { jsx as H } from "react/jsx-runtime";
|
|
11
|
+
import { FeatureFlagProvider as U } from "@burdenoff/fe-libs/shared/feature-flags";
|
|
12
12
|
//#region src/healthybowl/HealthyBowlRoot.tsx
|
|
13
|
-
var
|
|
14
|
-
let { registerNavItems:
|
|
15
|
-
let n =
|
|
13
|
+
var W = (W) => {
|
|
14
|
+
let { registerNavItems: G, registerFooterItems: K, basePath: q = "/" } = W, { t: J } = c(), Y = o((e, t) => {
|
|
15
|
+
let n = J(e);
|
|
16
16
|
return n === e ? t : n;
|
|
17
|
-
}, [
|
|
17
|
+
}, [J]), X = (e, t) => (e.endsWith("/") ? e.slice(0, -1) : e) + (t.startsWith("/") ? t : `/${t}`);
|
|
18
18
|
return s(() => {
|
|
19
|
-
if (
|
|
19
|
+
if (G) return G([
|
|
20
20
|
{
|
|
21
21
|
id: "healthybowl-dashboard",
|
|
22
|
-
label:
|
|
23
|
-
path: t(
|
|
24
|
-
icon: /* @__PURE__ */
|
|
22
|
+
label: Y("healthybowl.nav.dashboard", "Dashboard"),
|
|
23
|
+
path: t(q),
|
|
24
|
+
icon: /* @__PURE__ */ H(b, { size: 20 }),
|
|
25
25
|
order: 1,
|
|
26
26
|
group: "main"
|
|
27
27
|
},
|
|
28
28
|
{
|
|
29
29
|
id: "healthybowl-farm",
|
|
30
|
-
label:
|
|
31
|
-
path:
|
|
32
|
-
icon: /* @__PURE__ */
|
|
30
|
+
label: Y("healthybowl.nav.farm", "My Farm"),
|
|
31
|
+
path: X(q, "farm"),
|
|
32
|
+
icon: /* @__PURE__ */ H(L, { size: 20 }),
|
|
33
33
|
order: 2,
|
|
34
34
|
group: "main"
|
|
35
35
|
},
|
|
36
36
|
{
|
|
37
37
|
id: "healthybowl-tasks",
|
|
38
|
-
label:
|
|
39
|
-
path:
|
|
40
|
-
icon: /* @__PURE__ */
|
|
38
|
+
label: Y("healthybowl.nav.tasks", "Tasks"),
|
|
39
|
+
path: X(q, "tasks"),
|
|
40
|
+
icon: /* @__PURE__ */ H(w, { size: 20 }),
|
|
41
41
|
order: 3,
|
|
42
42
|
group: "main"
|
|
43
43
|
},
|
|
44
44
|
{
|
|
45
45
|
id: "healthybowl-crops",
|
|
46
|
-
label:
|
|
47
|
-
path:
|
|
48
|
-
icon: /* @__PURE__ */ V
|
|
46
|
+
label: Y("healthybowl.nav.crops", "Crops"),
|
|
47
|
+
path: X(q, "crops"),
|
|
48
|
+
icon: /* @__PURE__ */ H(V, { size: 20 }),
|
|
49
49
|
order: 10,
|
|
50
50
|
group: "farming"
|
|
51
51
|
},
|
|
52
52
|
{
|
|
53
53
|
id: "healthybowl-livestock",
|
|
54
|
-
label:
|
|
55
|
-
path:
|
|
56
|
-
icon: /* @__PURE__ */
|
|
54
|
+
label: Y("healthybowl.nav.livestock", "Livestock"),
|
|
55
|
+
path: X(q, "livestock"),
|
|
56
|
+
icon: /* @__PURE__ */ H(D, { size: 20 }),
|
|
57
57
|
order: 11,
|
|
58
58
|
group: "farming"
|
|
59
59
|
},
|
|
60
60
|
{
|
|
61
61
|
id: "healthybowl-livestock-analytics",
|
|
62
|
-
label:
|
|
63
|
-
path:
|
|
64
|
-
icon: /* @__PURE__ */
|
|
62
|
+
label: Y("healthybowl.nav.livestockAnalytics", "Livestock Analytics"),
|
|
63
|
+
path: X(q, "livestock/analytics"),
|
|
64
|
+
icon: /* @__PURE__ */ H(C, { size: 20 }),
|
|
65
65
|
order: 11.3,
|
|
66
66
|
group: "farming"
|
|
67
67
|
},
|
|
68
68
|
{
|
|
69
69
|
id: "healthybowl-grazing",
|
|
70
|
-
label:
|
|
71
|
-
path:
|
|
72
|
-
icon: /* @__PURE__ */
|
|
70
|
+
label: Y("healthybowl.nav.grazing", "Grazing"),
|
|
71
|
+
path: X(q, "livestock/grazing"),
|
|
72
|
+
icon: /* @__PURE__ */ H(_, { size: 20 }),
|
|
73
73
|
order: 11.4,
|
|
74
74
|
group: "farming"
|
|
75
75
|
},
|
|
76
76
|
{
|
|
77
77
|
id: "healthybowl-withdrawal-alerts",
|
|
78
|
-
label:
|
|
79
|
-
path:
|
|
80
|
-
icon: /* @__PURE__ */
|
|
78
|
+
label: Y("healthybowl.nav.withdrawalAlerts", "Withdrawal Alerts"),
|
|
79
|
+
path: X(q, "livestock/withdrawal-alerts"),
|
|
80
|
+
icon: /* @__PURE__ */ H(M, { size: 20 }),
|
|
81
81
|
order: 11.5,
|
|
82
82
|
group: "farming"
|
|
83
83
|
},
|
|
84
84
|
{
|
|
85
85
|
id: "healthybowl-weather",
|
|
86
|
-
label:
|
|
87
|
-
path:
|
|
88
|
-
icon: /* @__PURE__ */
|
|
86
|
+
label: Y("healthybowl.nav.weather", "Weather"),
|
|
87
|
+
path: X(q, "weather"),
|
|
88
|
+
icon: /* @__PURE__ */ H(p, { size: 20 }),
|
|
89
89
|
order: 12,
|
|
90
90
|
group: "farming"
|
|
91
91
|
},
|
|
92
92
|
{
|
|
93
93
|
id: "healthybowl-field-map",
|
|
94
|
-
label:
|
|
95
|
-
path:
|
|
96
|
-
icon: /* @__PURE__ */
|
|
94
|
+
label: Y("healthybowl.nav.fieldMap", "Field Map"),
|
|
95
|
+
path: X(q, "field-map"),
|
|
96
|
+
icon: /* @__PURE__ */ H(T, { size: 20 }),
|
|
97
97
|
order: 12.5,
|
|
98
98
|
group: "farming"
|
|
99
99
|
},
|
|
100
100
|
{
|
|
101
101
|
id: "healthybowl-field-capture",
|
|
102
|
-
label:
|
|
103
|
-
path:
|
|
104
|
-
icon: /* @__PURE__ */
|
|
102
|
+
label: Y("healthybowl.nav.fieldCapture", "Field Capture"),
|
|
103
|
+
path: X(q, "field-capture"),
|
|
104
|
+
icon: /* @__PURE__ */ H(m, { size: 20 }),
|
|
105
105
|
order: 12.6,
|
|
106
106
|
group: "farming"
|
|
107
107
|
},
|
|
108
108
|
{
|
|
109
109
|
id: "healthybowl-pending-sync",
|
|
110
|
-
label:
|
|
111
|
-
path:
|
|
112
|
-
icon: /* @__PURE__ */
|
|
110
|
+
label: Y("healthybowl.nav.pendingSync", "Pending Sync"),
|
|
111
|
+
path: X(q, "field-capture/pending"),
|
|
112
|
+
icon: /* @__PURE__ */ H(k, { size: 20 }),
|
|
113
113
|
order: 12.7,
|
|
114
114
|
group: "farming"
|
|
115
115
|
},
|
|
116
116
|
{
|
|
117
117
|
id: "healthybowl-field-sensors",
|
|
118
|
-
label:
|
|
119
|
-
path:
|
|
120
|
-
icon: /* @__PURE__ */
|
|
118
|
+
label: Y("healthybowl.nav.fieldSensors", "Field Sensors"),
|
|
119
|
+
path: X(q, "field-sensors"),
|
|
120
|
+
icon: /* @__PURE__ */ H(O, { size: 20 }),
|
|
121
121
|
order: 12.75,
|
|
122
122
|
group: "farming"
|
|
123
123
|
},
|
|
124
124
|
{
|
|
125
125
|
id: "healthybowl-soil",
|
|
126
|
-
label:
|
|
127
|
-
path:
|
|
128
|
-
icon: /* @__PURE__ */
|
|
126
|
+
label: Y("healthybowl.nav.soilHealth", "Soil Health"),
|
|
127
|
+
path: X(q, "soil"),
|
|
128
|
+
icon: /* @__PURE__ */ H(v, { size: 20 }),
|
|
129
129
|
order: 13,
|
|
130
130
|
group: "farming"
|
|
131
131
|
},
|
|
132
132
|
{
|
|
133
133
|
id: "healthybowl-pest",
|
|
134
|
-
label:
|
|
135
|
-
path:
|
|
136
|
-
icon: /* @__PURE__ */
|
|
134
|
+
label: Y("healthybowl.nav.pestManagement", "Pest Management"),
|
|
135
|
+
path: X(q, "pest-management"),
|
|
136
|
+
icon: /* @__PURE__ */ H(f, { size: 20 }),
|
|
137
137
|
order: 14,
|
|
138
138
|
group: "farming"
|
|
139
139
|
},
|
|
140
140
|
{
|
|
141
141
|
id: "healthybowl-pest-ai",
|
|
142
|
-
label:
|
|
143
|
-
path:
|
|
144
|
-
icon: /* @__PURE__ */
|
|
142
|
+
label: Y("healthybowl.nav.aiPestDetection", "AI Pest Detection"),
|
|
143
|
+
path: X(q, "pest-management/ai-detection"),
|
|
144
|
+
icon: /* @__PURE__ */ H(j, { size: 20 }),
|
|
145
145
|
order: 14.5,
|
|
146
146
|
group: "farming"
|
|
147
147
|
},
|
|
148
148
|
{
|
|
149
149
|
id: "healthybowl-production",
|
|
150
|
-
label:
|
|
151
|
-
path:
|
|
152
|
-
icon: /* @__PURE__ */
|
|
150
|
+
label: Y("healthybowl.nav.production", "Production"),
|
|
151
|
+
path: X(q, "production"),
|
|
152
|
+
icon: /* @__PURE__ */ H(g, { size: 20 }),
|
|
153
153
|
order: 20,
|
|
154
154
|
group: "business"
|
|
155
155
|
},
|
|
156
156
|
{
|
|
157
157
|
id: "healthybowl-products",
|
|
158
|
-
label:
|
|
159
|
-
path:
|
|
160
|
-
icon: /* @__PURE__ */
|
|
158
|
+
label: Y("healthybowl.nav.products", "Products"),
|
|
159
|
+
path: X(q, "products"),
|
|
160
|
+
icon: /* @__PURE__ */ H(E, { size: 20 }),
|
|
161
161
|
order: 21,
|
|
162
162
|
group: "business"
|
|
163
163
|
},
|
|
164
164
|
{
|
|
165
165
|
id: "healthybowl-marketplace",
|
|
166
|
-
label:
|
|
167
|
-
path:
|
|
168
|
-
icon: /* @__PURE__ */
|
|
166
|
+
label: Y("healthybowl.nav.marketplace", "Marketplace"),
|
|
167
|
+
path: X(q, "marketplace"),
|
|
168
|
+
icon: /* @__PURE__ */ H(P, { size: 20 }),
|
|
169
169
|
order: 22,
|
|
170
170
|
group: "business"
|
|
171
171
|
},
|
|
172
|
+
{
|
|
173
|
+
id: "healthybowl-coop",
|
|
174
|
+
label: Y("healthybowl.nav.coop", "Co-operative"),
|
|
175
|
+
path: X(q, "coop"),
|
|
176
|
+
icon: /* @__PURE__ */ H(B, { size: 20 }),
|
|
177
|
+
order: 22.5,
|
|
178
|
+
group: "business"
|
|
179
|
+
},
|
|
172
180
|
{
|
|
173
181
|
id: "healthybowl-financial",
|
|
174
|
-
label:
|
|
175
|
-
path:
|
|
176
|
-
icon: /* @__PURE__ */
|
|
182
|
+
label: Y("healthybowl.nav.financial", "Financial"),
|
|
183
|
+
path: X(q, "financial"),
|
|
184
|
+
icon: /* @__PURE__ */ H(h, { size: 20 }),
|
|
177
185
|
order: 23,
|
|
178
186
|
group: "business"
|
|
179
187
|
},
|
|
180
188
|
{
|
|
181
189
|
id: "healthybowl-financier",
|
|
182
|
-
label:
|
|
183
|
-
path:
|
|
184
|
-
icon: /* @__PURE__ */
|
|
190
|
+
label: Y("healthybowl.nav.financier", "Financier"),
|
|
191
|
+
path: X(q, "financier"),
|
|
192
|
+
icon: /* @__PURE__ */ H(u, { size: 20 }),
|
|
185
193
|
order: 24,
|
|
186
194
|
group: "business"
|
|
187
195
|
},
|
|
188
196
|
{
|
|
189
197
|
id: "healthybowl-compliance",
|
|
190
|
-
label:
|
|
191
|
-
path:
|
|
192
|
-
icon: /* @__PURE__ */
|
|
198
|
+
label: Y("healthybowl.nav.compliance", "Compliance"),
|
|
199
|
+
path: X(q, "compliance"),
|
|
200
|
+
icon: /* @__PURE__ */ H(N, { size: 20 }),
|
|
193
201
|
order: 30,
|
|
194
202
|
group: "compliance"
|
|
195
203
|
},
|
|
196
204
|
{
|
|
197
205
|
id: "healthybowl-traceability",
|
|
198
|
-
label:
|
|
199
|
-
path:
|
|
200
|
-
icon: /* @__PURE__ */
|
|
206
|
+
label: Y("healthybowl.nav.traceability", "Traceability"),
|
|
207
|
+
path: X(q, "traceability"),
|
|
208
|
+
icon: /* @__PURE__ */ H(A, { size: 20 }),
|
|
201
209
|
order: 31,
|
|
202
210
|
group: "compliance"
|
|
203
211
|
},
|
|
204
212
|
{
|
|
205
213
|
id: "healthybowl-sustainability",
|
|
206
|
-
label:
|
|
207
|
-
path:
|
|
208
|
-
icon: /* @__PURE__ */
|
|
214
|
+
label: Y("healthybowl.nav.sustainability", "Sustainability"),
|
|
215
|
+
path: X(q, "sustainability"),
|
|
216
|
+
icon: /* @__PURE__ */ H(S, { size: 20 }),
|
|
209
217
|
order: 32,
|
|
210
218
|
group: "compliance"
|
|
211
219
|
},
|
|
212
220
|
{
|
|
213
221
|
id: "healthybowl-sustainability-carbon",
|
|
214
|
-
label:
|
|
215
|
-
path:
|
|
216
|
-
icon: /* @__PURE__ */
|
|
222
|
+
label: Y("healthybowl.nav.sustainabilityCarbon", "Carbon & GHG"),
|
|
223
|
+
path: X(q, "sustainability/carbon"),
|
|
224
|
+
icon: /* @__PURE__ */ H(g, { size: 20 }),
|
|
217
225
|
order: 32.1,
|
|
218
226
|
group: "compliance"
|
|
219
227
|
},
|
|
220
228
|
{
|
|
221
229
|
id: "healthybowl-sustainability-soil",
|
|
222
|
-
label:
|
|
223
|
-
path:
|
|
224
|
-
icon: /* @__PURE__ */
|
|
230
|
+
label: Y("healthybowl.nav.sustainabilitySoil", "Soil Carbon"),
|
|
231
|
+
path: X(q, "sustainability/soil-carbon"),
|
|
232
|
+
icon: /* @__PURE__ */ H(F, { size: 20 }),
|
|
225
233
|
order: 32.2,
|
|
226
234
|
group: "compliance"
|
|
227
235
|
},
|
|
228
236
|
{
|
|
229
237
|
id: "healthybowl-sustainability-credits",
|
|
230
|
-
label:
|
|
231
|
-
path:
|
|
232
|
-
icon: /* @__PURE__ */
|
|
238
|
+
label: Y("healthybowl.nav.sustainabilityCredits", "Carbon Credits"),
|
|
239
|
+
path: X(q, "sustainability/credits"),
|
|
240
|
+
icon: /* @__PURE__ */ H(l, { size: 20 }),
|
|
233
241
|
order: 32.3,
|
|
234
242
|
group: "compliance"
|
|
235
243
|
},
|
|
236
244
|
{
|
|
237
245
|
id: "healthybowl-sustainability-eudr",
|
|
238
|
-
label:
|
|
239
|
-
path:
|
|
240
|
-
icon: /* @__PURE__ */
|
|
246
|
+
label: Y("healthybowl.nav.sustainabilityEudr", "EUDR Due-Diligence"),
|
|
247
|
+
path: X(q, "sustainability/eudr"),
|
|
248
|
+
icon: /* @__PURE__ */ H(y, { size: 20 }),
|
|
241
249
|
order: 32.4,
|
|
242
250
|
group: "compliance"
|
|
243
251
|
},
|
|
244
252
|
{
|
|
245
253
|
id: "healthybowl-schemes",
|
|
246
|
-
label:
|
|
247
|
-
path:
|
|
248
|
-
icon: /* @__PURE__ */
|
|
254
|
+
label: Y("healthybowl.nav.governmentSchemes", "Gov. Schemes"),
|
|
255
|
+
path: X(q, "government-schemes"),
|
|
256
|
+
icon: /* @__PURE__ */ H(x, { size: 20 }),
|
|
249
257
|
order: 40,
|
|
250
258
|
group: "support"
|
|
251
259
|
},
|
|
252
260
|
{
|
|
253
261
|
id: "healthybowl-network",
|
|
254
|
-
label:
|
|
255
|
-
path:
|
|
256
|
-
icon: /* @__PURE__ */
|
|
262
|
+
label: Y("healthybowl.nav.network", "Network"),
|
|
263
|
+
path: X(q, "network"),
|
|
264
|
+
icon: /* @__PURE__ */ H(z, { size: 20 }),
|
|
257
265
|
order: 41,
|
|
258
266
|
group: "support"
|
|
259
267
|
},
|
|
260
268
|
{
|
|
261
269
|
id: "healthybowl-analytics",
|
|
262
|
-
label:
|
|
263
|
-
path:
|
|
264
|
-
icon: /* @__PURE__ */
|
|
270
|
+
label: Y("healthybowl.nav.analytics", "Analytics"),
|
|
271
|
+
path: X(q, "analytics"),
|
|
272
|
+
icon: /* @__PURE__ */ H(d, { size: 20 }),
|
|
265
273
|
order: 42,
|
|
266
274
|
group: "support"
|
|
267
275
|
},
|
|
268
276
|
{
|
|
269
277
|
id: "healthybowl-advisors",
|
|
270
|
-
label:
|
|
271
|
-
path:
|
|
272
|
-
icon: /* @__PURE__ */
|
|
278
|
+
label: Y("healthybowl.nav.advisors", "My Advisors"),
|
|
279
|
+
path: X(q, "advisors"),
|
|
280
|
+
icon: /* @__PURE__ */ H(R, { size: 20 }),
|
|
273
281
|
order: 43,
|
|
274
282
|
group: "support"
|
|
275
283
|
},
|
|
276
284
|
{
|
|
277
285
|
id: "healthybowl-consultant",
|
|
278
|
-
label:
|
|
279
|
-
path:
|
|
280
|
-
icon: /* @__PURE__ */
|
|
286
|
+
label: Y("healthybowl.nav.consultant", "Consultant"),
|
|
287
|
+
path: X(q, "consultant"),
|
|
288
|
+
icon: /* @__PURE__ */ H(I, { size: 20 }),
|
|
281
289
|
order: 44,
|
|
282
290
|
group: "support"
|
|
283
291
|
}
|
|
284
292
|
]);
|
|
285
|
-
}, [
|
|
286
|
-
if (
|
|
293
|
+
}, [G, q]), s(() => {
|
|
294
|
+
if (K) return K([{
|
|
287
295
|
id: "healthybowl-status",
|
|
288
|
-
label:
|
|
296
|
+
label: Y("healthybowl.footer.ready", "HealthyBowl Ready"),
|
|
289
297
|
type: "status",
|
|
290
298
|
order: 10,
|
|
291
299
|
section: "left"
|
|
292
300
|
}]);
|
|
293
|
-
}, [
|
|
301
|
+
}, [K]), /* @__PURE__ */ H(U, {
|
|
294
302
|
workspaceId: null,
|
|
295
303
|
gateway: "global",
|
|
296
304
|
defaultEnabled: !0,
|
|
297
|
-
children: /* @__PURE__ */
|
|
298
|
-
...
|
|
299
|
-
children: /* @__PURE__ */
|
|
305
|
+
children: /* @__PURE__ */ H(e, {
|
|
306
|
+
...W,
|
|
307
|
+
children: /* @__PURE__ */ H(n, { children: /* @__PURE__ */ H(r, { children: /* @__PURE__ */ H(a, { children: /* @__PURE__ */ H(i, {}) }) }) })
|
|
300
308
|
})
|
|
301
309
|
});
|
|
302
310
|
};
|
|
303
311
|
//#endregion
|
|
304
|
-
export {
|
|
312
|
+
export { W as HealthyBowlRoot };
|
|
305
313
|
|
|
306
314
|
//# 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 ScanSearch,\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 LineChart,\n Fence,\n Radio,\n Leaf,\n Sprout,\n Award,\n Globe,\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 — Analytics (BOFF-6126). The growth, feed and herd-stats charts (BOFF-5971) also\n // render inline on the livestock dashboard; this gives them a dedicated URL and full-width home.\n {\n id: 'healthybowl-livestock-analytics',\n label: t('healthybowl.nav.livestockAnalytics', 'Livestock Analytics'),\n path: joinPath(basePath, 'livestock/analytics'),\n icon: <LineChart size={20} />,\n order: 11.3,\n group: 'farming',\n },\n\n // Livestock — Grazing management (BOFF-5970). Sits next to Livestock rather than inside it\n // because rotational grazing is a daily decision about FIELDS, not a herd-record lookup.\n {\n id: 'healthybowl-grazing',\n label: t('healthybowl.nav.grazing', 'Grazing'),\n path: joinPath(basePath, 'livestock/grazing'),\n icon: <Fence size={20} />,\n order: 11.4,\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 // Field Sensors — live probe monitoring (BOFF-2894)\n {\n id: 'healthybowl-field-sensors',\n label: t('healthybowl.nav.fieldSensors', 'Field Sensors'),\n path: joinPath(basePath, 'field-sensors'),\n icon: <Radio size={20} />,\n order: 12.75,\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 id: 'healthybowl-pest-ai',\n label: t('healthybowl.nav.aiPestDetection', 'AI Pest Detection'),\n path: joinPath(basePath, 'pest-management/ai-detection'),\n icon: <ScanSearch size={20} />,\n order: 14.5,\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 // Sustainability — Carbon & Climate (BOFF-2896)\n {\n id: 'healthybowl-sustainability',\n label: t('healthybowl.nav.sustainability', 'Sustainability'),\n path: joinPath(basePath, 'sustainability'),\n icon: <Leaf size={20} />,\n order: 32,\n group: 'compliance',\n },\n {\n id: 'healthybowl-sustainability-carbon',\n label: t('healthybowl.nav.sustainabilityCarbon', 'Carbon & GHG'),\n path: joinPath(basePath, 'sustainability/carbon'),\n icon: <Factory size={20} />,\n order: 32.1,\n group: 'compliance',\n },\n {\n id: 'healthybowl-sustainability-soil',\n label: t('healthybowl.nav.sustainabilitySoil', 'Soil Carbon'),\n path: joinPath(basePath, 'sustainability/soil-carbon'),\n icon: <Sprout size={20} />,\n order: 32.2,\n group: 'compliance',\n },\n {\n id: 'healthybowl-sustainability-credits',\n label: t('healthybowl.nav.sustainabilityCredits', 'Carbon Credits'),\n path: joinPath(basePath, 'sustainability/credits'),\n icon: <Award size={20} />,\n order: 32.3,\n group: 'compliance',\n },\n {\n id: 'healthybowl-sustainability-eudr',\n label: t('healthybowl.nav.sustainabilityEudr', 'EUDR Due-Diligence'),\n path: joinPath(basePath, 'sustainability/eudr'),\n icon: <Globe size={20} />,\n order: 32.4,\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":";;;;;;;;;;;;AAmDA,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;AA0WtD,QArWA,QAAgB;AACT,QA+UL,QADgB,EA5UY;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,EAA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C,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,EAAA,UACE,kBAAC,GAAD,EAAqB,CAAA,EACD,CAAA,EACN,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 ScanSearch,\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 LineChart,\n Fence,\n Radio,\n Leaf,\n Sprout,\n Award,\n Globe,\n Users2,\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 — Analytics (BOFF-6126). The growth, feed and herd-stats charts (BOFF-5971) also\n // render inline on the livestock dashboard; this gives them a dedicated URL and full-width home.\n {\n id: 'healthybowl-livestock-analytics',\n label: t('healthybowl.nav.livestockAnalytics', 'Livestock Analytics'),\n path: joinPath(basePath, 'livestock/analytics'),\n icon: <LineChart size={20} />,\n order: 11.3,\n group: 'farming',\n },\n\n // Livestock — Grazing management (BOFF-5970). Sits next to Livestock rather than inside it\n // because rotational grazing is a daily decision about FIELDS, not a herd-record lookup.\n {\n id: 'healthybowl-grazing',\n label: t('healthybowl.nav.grazing', 'Grazing'),\n path: joinPath(basePath, 'livestock/grazing'),\n icon: <Fence size={20} />,\n order: 11.4,\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 // Field Sensors — live probe monitoring (BOFF-2894)\n {\n id: 'healthybowl-field-sensors',\n label: t('healthybowl.nav.fieldSensors', 'Field Sensors'),\n path: joinPath(basePath, 'field-sensors'),\n icon: <Radio size={20} />,\n order: 12.75,\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 id: 'healthybowl-pest-ai',\n label: t('healthybowl.nav.aiPestDetection', 'AI Pest Detection'),\n path: joinPath(basePath, 'pest-management/ai-detection'),\n icon: <ScanSearch size={20} />,\n order: 14.5,\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 // Co-operative / FPO aggregation (BOFF-6023)\n {\n id: 'healthybowl-coop',\n label: t('healthybowl.nav.coop', 'Co-operative'),\n path: joinPath(basePath, 'coop'),\n icon: <Users2 size={20} />,\n order: 22.5,\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 // Sustainability — Carbon & Climate (BOFF-2896)\n {\n id: 'healthybowl-sustainability',\n label: t('healthybowl.nav.sustainability', 'Sustainability'),\n path: joinPath(basePath, 'sustainability'),\n icon: <Leaf size={20} />,\n order: 32,\n group: 'compliance',\n },\n {\n id: 'healthybowl-sustainability-carbon',\n label: t('healthybowl.nav.sustainabilityCarbon', 'Carbon & GHG'),\n path: joinPath(basePath, 'sustainability/carbon'),\n icon: <Factory size={20} />,\n order: 32.1,\n group: 'compliance',\n },\n {\n id: 'healthybowl-sustainability-soil',\n label: t('healthybowl.nav.sustainabilitySoil', 'Soil Carbon'),\n path: joinPath(basePath, 'sustainability/soil-carbon'),\n icon: <Sprout size={20} />,\n order: 32.2,\n group: 'compliance',\n },\n {\n id: 'healthybowl-sustainability-credits',\n label: t('healthybowl.nav.sustainabilityCredits', 'Carbon Credits'),\n path: joinPath(basePath, 'sustainability/credits'),\n icon: <Award size={20} />,\n order: 32.3,\n group: 'compliance',\n },\n {\n id: 'healthybowl-sustainability-eudr',\n label: t('healthybowl.nav.sustainabilityEudr', 'EUDR Due-Diligence'),\n path: joinPath(basePath, 'sustainability/eudr'),\n icon: <Globe size={20} />,\n order: 32.4,\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 <HealthyBowlRo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