@burdenoff/microfe-healthybowl 2026.604.2 → 2026.605.1

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.
@@ -50,7 +50,7 @@ var N = (e) => {
50
50
  visibility: 0
51
51
  },
52
52
  forecast: z?.forecast ?? []
53
- }, Z = l(() => B.reduce((e, t) => e + t.price * t.stock, 0), [B]), Q = l(() => J.totalRevenue === 0 ? 0 : -Math.round(J.totalExpenses / J.totalRevenue * 100 * 10) / 10, [J.totalExpenses, J.totalRevenue]), $ = l(() => Math.round((J.organicScore - 90) * 10) / 10, [J.organicScore]), ee = [
53
+ }, Z = l(() => B.reduce((e, t) => e + t.price * t.stock, 0), [B]), Q = l(() => J.totalRevenue === 0 ? null : Math.round(J.totalExpenses / J.totalRevenue * 100 * 10) / 10, [J.totalExpenses, J.totalRevenue]), $ = [
54
54
  {
55
55
  label: W("healthybowl.home.quickActions.addCrop.label", "Add Crop"),
56
56
  icon: T,
@@ -104,31 +104,23 @@ var N = (e) => {
104
104
  label: W("healthybowl.home.stats.revenue", "Revenue"),
105
105
  value: J.totalRevenue,
106
106
  prefix: "$",
107
- icon: /* @__PURE__ */ j(_, { className: "h-4 w-4" }),
108
- trend: "up",
109
- change: 15.7
107
+ icon: /* @__PURE__ */ j(_, { className: "h-4 w-4" })
110
108
  }),
111
109
  /* @__PURE__ */ j(i, {
112
110
  label: W("healthybowl.home.stats.activeCrops", "Active Crops"),
113
111
  value: J.activeCrops,
114
- icon: /* @__PURE__ */ j(T, { className: "h-4 w-4" }),
115
- trend: "up",
116
- change: 12
112
+ icon: /* @__PURE__ */ j(T, { className: "h-4 w-4" })
117
113
  }),
118
114
  /* @__PURE__ */ j(i, {
119
115
  label: W("healthybowl.home.stats.harvestDue", "Harvest Due"),
120
116
  value: J.harvestDue,
121
- icon: /* @__PURE__ */ j(m, { className: "h-4 w-4" }),
122
- trend: "up",
123
- change: 8
117
+ icon: /* @__PURE__ */ j(m, { className: "h-4 w-4" })
124
118
  }),
125
119
  /* @__PURE__ */ j(i, {
126
120
  label: W("healthybowl.home.stats.marketValue", "Market Value"),
127
121
  value: Z,
128
122
  prefix: "$",
129
- icon: /* @__PURE__ */ j(O, { className: "h-4 w-4" }),
130
- trend: "up",
131
- change: 12.5
123
+ icon: /* @__PURE__ */ j(O, { className: "h-4 w-4" })
132
124
  })
133
125
  ]
134
126
  }),
@@ -168,13 +160,9 @@ var N = (e) => {
168
160
  className: "mt-1 text-xl font-bold text-foreground",
169
161
  children: J.totalAnimals
170
162
  }),
171
- /* @__PURE__ */ M("p", {
172
- className: "mt-0.5 flex items-center gap-1 text-xs text-muted-foreground",
173
- children: [
174
- /* @__PURE__ */ j(O, { className: "h-3 w-3 text-green-500" }),
175
- " ",
176
- W("healthybowl.home.metrics.totalAnimalsHint", "All healthy")
177
- ]
163
+ /* @__PURE__ */ j("p", {
164
+ className: "mt-0.5 text-xs text-muted-foreground",
165
+ children: W("healthybowl.home.metrics.totalAnimalsHint", "All healthy")
178
166
  })
179
167
  ] }), /* @__PURE__ */ j(x, { className: "h-5 w-5 text-muted-foreground" })]
180
168
  })
@@ -192,14 +180,9 @@ var N = (e) => {
192
180
  className: "mt-1 text-xl font-bold text-foreground",
193
181
  children: n(J.totalExpenses)
194
182
  }),
195
- /* @__PURE__ */ M("p", {
196
- className: "mt-0.5 flex items-center gap-1 text-xs text-muted-foreground",
197
- children: [
198
- /* @__PURE__ */ j(D, { className: "h-3 w-3 text-green-500" }),
199
- " ",
200
- Q,
201
- "%"
202
- ]
183
+ /* @__PURE__ */ j("p", {
184
+ className: "mt-0.5 text-xs text-muted-foreground",
185
+ children: Q == null ? W("healthybowl.home.metrics.noRevenue", "No revenue yet") : `${Q}% ${W("healthybowl.home.metrics.ofRevenue", "of revenue")}`
203
186
  })
204
187
  ] }), /* @__PURE__ */ j(D, { className: "h-5 w-5 text-muted-foreground" })]
205
188
  })
@@ -217,15 +200,9 @@ var N = (e) => {
217
200
  className: "mt-1 text-xl font-bold text-foreground",
218
201
  children: [J.organicScore, "%"]
219
202
  }),
220
- /* @__PURE__ */ M("p", {
221
- className: "mt-0.5 flex items-center gap-1 text-xs text-muted-foreground",
222
- children: [
223
- /* @__PURE__ */ j(O, { className: "h-3 w-3 text-green-500" }),
224
- " ",
225
- $ > 0 ? "+" : "",
226
- $,
227
- "%"
228
- ]
203
+ /* @__PURE__ */ j("p", {
204
+ className: "mt-0.5 text-xs text-muted-foreground",
205
+ children: W("healthybowl.home.metrics.organicHint", "Certified organic compliance")
229
206
  })
230
207
  ] }), /* @__PURE__ */ j(C, { className: "h-5 w-5 text-muted-foreground" })]
231
208
  })
@@ -437,7 +414,7 @@ var N = (e) => {
437
414
  })]
438
415
  }), /* @__PURE__ */ j("div", {
439
416
  className: "grid grid-cols-2 gap-3 sm:grid-cols-3 lg:grid-cols-6",
440
- children: ee.map(({ label: e, icon: t, path: n, description: r }) => /* @__PURE__ */ M("button", {
417
+ children: $.map(({ label: e, icon: t, path: n, description: r }) => /* @__PURE__ */ M("button", {
441
418
  onClick: () => H(n),
442
419
  className: "flex flex-col items-center gap-2 rounded-lg border border-border bg-background p-4 text-center transition-colors hover:bg-muted/50",
443
420
  children: [
@@ -1 +1 @@
1
- {"version":3,"file":"HomePage.js","names":[],"sources":["../../../src/healthybowl/pages/HomePage.tsx"],"sourcesContent":["import { useState, useMemo, useCallback, type FC } from 'react';\nimport { useNavigate } from 'react-router-dom';\nimport { useI18n } from '@burdenoff/fe-libs/shared/providers/shell/I18nProvider';\nimport {\n DollarSign,\n TrendingDown,\n TrendingUp,\n Sprout,\n PawPrint,\n ShieldCheck,\n AlertTriangle,\n Cloud,\n Droplets,\n Wind,\n Thermometer,\n Plus,\n ClipboardList,\n BarChart3,\n MapPin,\n ShoppingCart,\n Eye,\n Calendar,\n} from 'lucide-react';\nimport { PageLayout, StatCard, StatusBadge, ChartCard } from '../components';\nimport { useHealthyBowlData } from '../hooks/useHealthyBowlData';\nimport { useBasePath } from '../hooks/useBasePath';\nimport { cn, formatCurrency } from '../utils/helpers';\n\nconst severityVariant = (severity: string) => {\n switch (severity) {\n case 'critical':\n return 'error' as const;\n case 'warning':\n return 'warning' as const;\n default:\n return 'info' as const;\n }\n};\n\nconst healthVariant = (status: string) => {\n switch (status) {\n case 'excellent':\n return 'success' as const;\n case 'good':\n return 'info' as const;\n case 'fair':\n return 'warning' as const;\n default:\n return 'error' as const;\n }\n};\n\nconst statusVariant = (status: string) => {\n switch (status) {\n case 'harvest_ready':\n return 'success' as const;\n case 'growing':\n case 'fruiting':\n return 'info' as const;\n case 'planted':\n return 'muted' as const;\n default:\n return 'default' as const;\n }\n};\n\nexport const HomePage: FC = () => {\n const { dashboardStats, alerts, crops, weatherData, marketplaceProducts, markAlertRead } = useHealthyBowlData();\n\n const navigate = useNavigate();\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 const { buildPath } = useBasePath();\n const [alertsExpanded, setAlertsExpanded] = useState(false);\n const stats = dashboardStats;\n const visibleAlerts = alertsExpanded ? alerts : alerts.slice(0, 4);\n const defaultCurrent = {\n temperature: 0,\n condition: 'N/A',\n feelsLike: 0,\n humidity: 0,\n windSpeed: 0,\n uvIndex: 0,\n pressure: 0,\n visibility: 0,\n };\n const weather = {\n location: weatherData?.location ?? '',\n current: weatherData?.current ?? defaultCurrent,\n forecast: weatherData?.forecast ?? [],\n };\n\n // Derive market value from marketplace products (sum of price * stock)\n const marketValue = useMemo(\n () => marketplaceProducts.reduce((sum, p) => sum + p.price * p.stock, 0),\n [marketplaceProducts]\n );\n\n // Derive expense change % from revenue vs expenses\n const expenseChangePercent = useMemo(() => {\n if (stats.totalRevenue === 0) return 0;\n return -Math.round((stats.totalExpenses / stats.totalRevenue) * 100 * 10) / 10;\n }, [stats.totalExpenses, stats.totalRevenue]);\n\n // Derive organic score change from organic score vs baseline\n const organicScoreChange = useMemo(() => {\n const baseline = 90;\n return Math.round((stats.organicScore - baseline) * 10) / 10;\n }, [stats.organicScore]);\n\n const quickActions = [\n {\n label: t('healthybowl.home.quickActions.addCrop.label', 'Add Crop'),\n icon: Sprout,\n path: buildPath('crops'),\n description: t('healthybowl.home.quickActions.addCrop.description', 'Register a new crop'),\n },\n {\n label: t('healthybowl.home.quickActions.recordHarvest.label', 'Record Harvest'),\n icon: ClipboardList,\n path: buildPath('crops/harvest'),\n description: t('healthybowl.home.quickActions.recordHarvest.description', 'Log harvest data'),\n },\n {\n label: t('healthybowl.home.quickActions.viewFields.label', 'View Fields'),\n icon: MapPin,\n path: buildPath('crops/fields'),\n description: t('healthybowl.home.quickActions.viewFields.description', 'Manage farm fields'),\n },\n {\n label: t('healthybowl.home.quickActions.viewWeather.label', 'View Weather'),\n icon: Thermometer,\n path: buildPath('weather'),\n description: t('healthybowl.home.quickActions.viewWeather.description', 'Check forecast'),\n },\n {\n label: t('healthybowl.home.quickActions.marketplace.label', 'Marketplace'),\n icon: ShoppingCart,\n path: buildPath('marketplace'),\n description: t('healthybowl.home.quickActions.marketplace.description', 'Buy & sell produce'),\n },\n {\n label: t('healthybowl.home.quickActions.analytics.label', 'Analytics'),\n icon: BarChart3,\n path: buildPath('analytics'),\n description: t('healthybowl.home.quickActions.analytics.description', 'View farm reports'),\n },\n ];\n\n return (\n <PageLayout\n title={t('healthybowl.home.title', 'Farm Dashboard')}\n description={t('healthybowl.home.description', 'Overview of your farm operations')}\n actions={\n <button\n onClick={() => navigate(buildPath('crops'))}\n className=\"inline-flex items-center gap-2 rounded-md bg-primary px-4 py-2 text-sm font-medium text-primary-foreground hover:bg-primary/90\"\n >\n <Plus className=\"h-4 w-4\" />\n {t('healthybowl.home.primaryAction', 'Quick Action')}\n </button>\n }\n >\n {/* Stat Cards - including Market Value */}\n <div className=\"grid grid-cols-1 gap-4 sm:grid-cols-2 lg:grid-cols-4 xl:grid-cols-4\">\n <StatCard\n label={t('healthybowl.home.stats.revenue', 'Revenue')}\n value={stats.totalRevenue}\n prefix=\"$\"\n icon={<DollarSign className=\"h-4 w-4\" />}\n trend=\"up\"\n change={15.7}\n />\n <StatCard\n label={t('healthybowl.home.stats.activeCrops', 'Active Crops')}\n value={stats.activeCrops}\n icon={<Sprout className=\"h-4 w-4\" />}\n trend=\"up\"\n change={12}\n />\n <StatCard\n label={t('healthybowl.home.stats.harvestDue', 'Harvest Due')}\n value={stats.harvestDue}\n icon={<Calendar className=\"h-4 w-4\" />}\n trend=\"up\"\n change={8}\n />\n <StatCard\n label={t('healthybowl.home.stats.marketValue', 'Market Value')}\n value={marketValue}\n prefix=\"$\"\n icon={<TrendingUp className=\"h-4 w-4\" />}\n trend=\"up\"\n change={12.5}\n />\n </div>\n\n {/* Secondary Stats */}\n <div className=\"grid grid-cols-2 gap-4 sm:grid-cols-4\">\n <div className=\"rounded-lg border border-border bg-card p-4\">\n <div className=\"flex items-center justify-between\">\n <div>\n <p className=\"text-xs font-medium text-muted-foreground\">\n {t('healthybowl.home.metrics.totalFields', 'Total Fields')}\n </p>\n <p className=\"mt-1 text-xl font-bold text-foreground\">{stats.totalFields}</p>\n <p className=\"mt-0.5 text-xs text-muted-foreground\">\n {t('healthybowl.home.metrics.totalFieldsHint', 'All monitored')}\n </p>\n </div>\n <MapPin className=\"h-5 w-5 text-muted-foreground\" />\n </div>\n </div>\n <div className=\"rounded-lg border border-border bg-card p-4\">\n <div className=\"flex items-center justify-between\">\n <div>\n <p className=\"text-xs font-medium text-muted-foreground\">\n {t('healthybowl.home.metrics.totalAnimals', 'Total Animals')}\n </p>\n <p className=\"mt-1 text-xl font-bold text-foreground\">{stats.totalAnimals}</p>\n <p className=\"mt-0.5 flex items-center gap-1 text-xs text-muted-foreground\">\n <TrendingUp className=\"h-3 w-3 text-green-500\" />{' '}\n {t('healthybowl.home.metrics.totalAnimalsHint', 'All healthy')}\n </p>\n </div>\n <PawPrint className=\"h-5 w-5 text-muted-foreground\" />\n </div>\n </div>\n <div className=\"rounded-lg border border-border bg-card p-4\">\n <div className=\"flex items-center justify-between\">\n <div>\n <p className=\"text-xs font-medium text-muted-foreground\">\n {t('healthybowl.home.metrics.expenses', 'Expenses')}\n </p>\n <p className=\"mt-1 text-xl font-bold text-foreground\">{formatCurrency(stats.totalExpenses)}</p>\n <p className=\"mt-0.5 flex items-center gap-1 text-xs text-muted-foreground\">\n <TrendingDown className=\"h-3 w-3 text-green-500\" /> {expenseChangePercent}%\n </p>\n </div>\n <TrendingDown className=\"h-5 w-5 text-muted-foreground\" />\n </div>\n </div>\n <div className=\"rounded-lg border border-border bg-card p-4\">\n <div className=\"flex items-center justify-between\">\n <div>\n <p className=\"text-xs font-medium text-muted-foreground\">\n {t('healthybowl.home.metrics.organicScore', 'Organic Score')}\n </p>\n <p className=\"mt-1 text-xl font-bold text-foreground\">{stats.organicScore}%</p>\n <p className=\"mt-0.5 flex items-center gap-1 text-xs text-muted-foreground\">\n <TrendingUp className=\"h-3 w-3 text-green-500\" /> {organicScoreChange > 0 ? '+' : ''}\n {organicScoreChange}%\n </p>\n </div>\n <ShieldCheck className=\"h-5 w-5 text-muted-foreground\" />\n </div>\n </div>\n </div>\n\n <div className=\"grid grid-cols-1 gap-6 lg:grid-cols-3\">\n {/* Weather Widget - Enhanced */}\n <ChartCard title={t('healthybowl.home.weatherCard.title', 'Current Weather')} description={weather.location}>\n <div className=\"flex flex-col gap-4\">\n <div className=\"flex items-center justify-between\">\n <div>\n <p className=\"text-4xl font-bold text-foreground\">{weather.current.temperature}&deg;C</p>\n <p className=\"text-sm text-muted-foreground\">{weather.current.condition}</p>\n <p className=\"mt-1 text-xs text-muted-foreground\">\n {t('healthybowl.home.weatherCard.feelsLike', 'Feels like')} {weather.current.feelsLike}&deg;C\n </p>\n </div>\n <div className=\"flex flex-col items-center\">\n <Cloud className=\"h-12 w-12 text-muted-foreground\" />\n <span className=\"mt-1 text-xs text-muted-foreground\">UV {weather.current.uvIndex}</span>\n </div>\n </div>\n\n <div className=\"grid grid-cols-2 gap-3 border-t border-border pt-3\">\n <div className=\"flex items-center gap-2 text-sm text-muted-foreground\">\n <Droplets className=\"h-4 w-4\" />\n <span>\n {weather.current.humidity}% {t('healthybowl.home.weatherCard.humidity', 'Humidity')}\n </span>\n </div>\n <div className=\"flex items-center gap-2 text-sm text-muted-foreground\">\n <Wind className=\"h-4 w-4\" />\n <span>{weather.current.windSpeed} km/h</span>\n </div>\n <div className=\"flex items-center gap-2 text-sm text-muted-foreground\">\n <Thermometer className=\"h-4 w-4\" />\n <span>{weather.current.pressure} hPa</span>\n </div>\n <div className=\"flex items-center gap-2 text-sm text-muted-foreground\">\n <Eye className=\"h-4 w-4\" />\n <span>{weather.current.visibility} km</span>\n </div>\n </div>\n\n <div className=\"grid grid-cols-4 gap-2 border-t border-border pt-3\">\n {weather.forecast.slice(0, 4).map((day) => (\n <div key={day.date} className=\"rounded-md bg-muted/50 p-2 text-center\">\n <p className=\"text-xs font-medium text-muted-foreground\">\n {new Date(day.date).toLocaleDateString('en-US', { weekday: 'short' })}\n </p>\n <p className=\"mt-1 text-sm font-semibold text-foreground\">{day.high}&deg;</p>\n <p className=\"text-xs text-muted-foreground\">{day.low}&deg;</p>\n <p className=\"mt-0.5 text-xs text-muted-foreground\">{day.precipitation}%</p>\n </div>\n ))}\n </div>\n\n <button\n onClick={() => navigate(buildPath('weather'))}\n className=\"w-full rounded-md border border-border py-2 text-sm text-foreground hover:bg-muted/50\"\n >\n {t('healthybowl.home.weatherCard.viewForecast', 'View Full Forecast')}\n </button>\n </div>\n </ChartCard>\n\n {/* Active Crops */}\n <ChartCard\n title={t('healthybowl.home.cropsCard.title', 'Active Crops')}\n description={`${crops.length} ${t('healthybowl.home.cropsCard.description', 'crops in progress')}`}\n >\n <div className=\"flex flex-col gap-3\">\n {crops.map((crop) => (\n <div\n key={crop.id}\n onClick={() => navigate(buildPath(`crops/${crop.id}`))}\n className=\"cursor-pointer rounded-md border border-border p-3 transition-colors hover:bg-muted/50\"\n >\n <div className=\"flex items-center justify-between\">\n <span className=\"text-sm font-medium text-foreground\">{crop.name}</span>\n <StatusBadge\n label={(crop.status ?? 'unknown').replace('_', ' ')}\n variant={statusVariant(crop.status ?? 'unknown')}\n />\n </div>\n <p className=\"mt-1 text-xs text-muted-foreground\">\n {crop.fieldName} &middot; {crop.variety}\n </p>\n <div className=\"mt-2 flex items-center gap-2\">\n <div className=\"h-2 flex-1 rounded-full bg-muted\">\n <div className=\"h-2 rounded-full bg-primary\" style={{ width: `${crop.progress}%` }} />\n </div>\n <span className=\"text-xs font-medium text-muted-foreground\">{crop.progress}%</span>\n </div>\n <div className=\"mt-1.5 flex items-center justify-between\">\n <StatusBadge label={crop.healthStatus} variant={healthVariant(crop.healthStatus)} />\n <span className=\"text-xs text-muted-foreground\">\n {crop.daysToHarvest}d {t('healthybowl.home.cropsCard.daysToHarvest', 'to harvest')}\n </span>\n </div>\n </div>\n ))}\n <button\n onClick={() => navigate(buildPath('crops'))}\n className=\"w-full rounded-md border border-border py-2 text-sm text-foreground hover:bg-muted/50\"\n >\n {t('healthybowl.home.cropsCard.viewAll', 'View All Crops')}\n </button>\n </div>\n </ChartCard>\n\n {/* Alerts */}\n <ChartCard\n title={t('healthybowl.home.alertsCard.title', 'Alerts & Notifications')}\n description={`${alerts.filter((a) => !a.read).length} ${t('healthybowl.home.alertsCard.unread', 'unread')}`}\n actions={\n <button onClick={() => setAlertsExpanded(!alertsExpanded)} className=\"text-xs text-primary hover:underline\">\n {alertsExpanded\n ? t('healthybowl.home.alertsCard.showLess', 'Show less')\n : t('healthybowl.home.alertsCard.viewAll', 'View all')}\n </button>\n }\n >\n <div className=\"flex flex-col gap-3\">\n {visibleAlerts.map((alert) => (\n <div\n key={alert.id}\n onClick={() => {\n void markAlertRead(alert.id, true);\n if (alert.actionUrl) {\n navigate(alert.actionUrl);\n }\n }}\n className={cn(\n 'flex cursor-pointer items-start gap-3 rounded-md border p-3 transition-colors hover:bg-muted/50',\n alert.severity === 'critical' &&\n 'border-l-4 border-l-red-500 border-t-border border-r-border border-b-border',\n alert.severity === 'warning' &&\n 'border-l-4 border-l-amber-500 border-t-border border-r-border border-b-border',\n alert.severity === 'info' &&\n 'border-l-4 border-l-blue-500 border-t-border border-r-border border-b-border',\n !alert.read && 'bg-muted/50'\n )}\n >\n <AlertTriangle\n className={cn(\n 'mt-0.5 h-4 w-4 shrink-0',\n alert.severity === 'critical' && 'text-red-500',\n alert.severity === 'warning' && 'text-amber-500',\n alert.severity === 'info' && 'text-blue-500'\n )}\n />\n <div className=\"min-w-0 flex-1\">\n <div className=\"flex items-center gap-2\">\n <span className=\"text-sm font-medium text-foreground\">{alert.title}</span>\n <StatusBadge label={alert.severity} variant={severityVariant(alert.severity)} />\n </div>\n <p className=\"mt-0.5 text-xs text-muted-foreground\">{alert.message}</p>\n </div>\n </div>\n ))}\n </div>\n </ChartCard>\n </div>\n\n {/* Quick Actions */}\n <div className=\"rounded-lg border border-border bg-card p-6\">\n <div className=\"mb-4\">\n <h3 className=\"text-sm font-semibold text-foreground\">\n {t('healthybowl.home.quickActions.title', 'Quick Actions')}\n </h3>\n <p className=\"text-xs text-muted-foreground\">\n {t('healthybowl.home.quickActions.subtitle', 'Frequently used features to manage your farm efficiently')}\n </p>\n </div>\n <div className=\"grid grid-cols-2 gap-3 sm:grid-cols-3 lg:grid-cols-6\">\n {quickActions.map(({ label, icon: Icon, path, description }) => (\n <button\n key={label}\n onClick={() => navigate(path)}\n className=\"flex flex-col items-center gap-2 rounded-lg border border-border bg-background p-4 text-center transition-colors hover:bg-muted/50\"\n >\n <div className=\"rounded-full bg-primary/10 p-3\">\n <Icon className=\"h-5 w-5 text-primary\" />\n </div>\n <span className=\"text-sm font-medium text-foreground\">{label}</span>\n <span className=\"text-xs text-muted-foreground\">{description}</span>\n </button>\n ))}\n </div>\n </div>\n </PageLayout>\n );\n};\n"],"mappings":";;;;;;;;;;;;;;AA4BA,IAAM,KAAmB,MAAqB;AAC5C,SAAQ,GAAR;EACE,KAAK,WACH,QAAO;EACT,KAAK,UACH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AC,KAAD;UAAG,WAAU;oBAAwC,EAAM;UAAY,CAAA,CACnE;WACF;UAjCC,EAAM,GAiCP,CACN;OACE,CAAA;MACI,CAAA;KACR;;GAGN,kBAAC,OAAD;IAAK,WAAU;cAAf,CACE,kBAAC,OAAD;KAAK,WAAU;eAAf,CACE,kBAAC,MAAD;MAAI,WAAU;gBACX,EAAE,uCAAuC,gBAAgB;MACvD,CAAA,EACL,kBAAC,KAAD;MAAG,WAAU;gBACV,EAAE,0CAA0C,2DAA2D;MACtG,CAAA,CACA;QACN,kBAAC,OAAD;KAAK,WAAU;eACZ,GAAa,KAAK,EAAE,UAAO,MAAM,GAAM,SAAM,qBAC5C,kBAAC,UAAD;MAEE,eAAe,EAAS,EAAK;MAC7B,WAAU;gBAHZ;OAKE,kBAAC,OAAD;QAAK,WAAU;kBACb,kBAAC,GAAD,EAAM,WAAU,wBAAyB,CAAA;QACrC,CAAA;OACN,kBAAC,QAAD;QAAM,WAAU;kBAAuC;QAAa,CAAA;OACpE,kBAAC,QAAD;QAAM,WAAU;kBAAiC;QAAmB,CAAA;OAC7D;QATF,EASE,CACT;KACE,CAAA,CACF;;GACK"}
1
+ {"version":3,"file":"HomePage.js","names":[],"sources":["../../../src/healthybowl/pages/HomePage.tsx"],"sourcesContent":["import { useState, useMemo, useCallback, type FC } from 'react';\nimport { useNavigate } from 'react-router-dom';\nimport { useI18n } from '@burdenoff/fe-libs/shared/providers/shell/I18nProvider';\nimport {\n DollarSign,\n TrendingDown,\n TrendingUp,\n Sprout,\n PawPrint,\n ShieldCheck,\n AlertTriangle,\n Cloud,\n Droplets,\n Wind,\n Thermometer,\n Plus,\n ClipboardList,\n BarChart3,\n MapPin,\n ShoppingCart,\n Eye,\n Calendar,\n} from 'lucide-react';\nimport { PageLayout, StatCard, StatusBadge, ChartCard } from '../components';\nimport { useHealthyBowlData } from '../hooks/useHealthyBowlData';\nimport { useBasePath } from '../hooks/useBasePath';\nimport { cn, formatCurrency } from '../utils/helpers';\n\nconst severityVariant = (severity: string) => {\n switch (severity) {\n case 'critical':\n return 'error' as const;\n case 'warning':\n return 'warning' as const;\n default:\n return 'info' as const;\n }\n};\n\nconst healthVariant = (status: string) => {\n switch (status) {\n case 'excellent':\n return 'success' as const;\n case 'good':\n return 'info' as const;\n case 'fair':\n return 'warning' as const;\n default:\n return 'error' as const;\n }\n};\n\nconst statusVariant = (status: string) => {\n switch (status) {\n case 'harvest_ready':\n return 'success' as const;\n case 'growing':\n case 'fruiting':\n return 'info' as const;\n case 'planted':\n return 'muted' as const;\n default:\n return 'default' as const;\n }\n};\n\nexport const HomePage: FC = () => {\n const { dashboardStats, alerts, crops, weatherData, marketplaceProducts, markAlertRead } = useHealthyBowlData();\n\n const navigate = useNavigate();\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 const { buildPath } = useBasePath();\n const [alertsExpanded, setAlertsExpanded] = useState(false);\n const stats = dashboardStats;\n const visibleAlerts = alertsExpanded ? alerts : alerts.slice(0, 4);\n const defaultCurrent = {\n temperature: 0,\n condition: 'N/A',\n feelsLike: 0,\n humidity: 0,\n windSpeed: 0,\n uvIndex: 0,\n pressure: 0,\n visibility: 0,\n };\n const weather = {\n location: weatherData?.location ?? '',\n current: weatherData?.current ?? defaultCurrent,\n forecast: weatherData?.forecast ?? [],\n };\n\n // Derive market value from marketplace products (sum of price * stock)\n const marketValue = useMemo(\n () => marketplaceProducts.reduce((sum, p) => sum + p.price * p.stock, 0),\n [marketplaceProducts]\n );\n\n // Expenses as a share of revenue (honest ratio — null when there's no revenue to compare against).\n const expenseRatioPercent = useMemo(() => {\n if (stats.totalRevenue === 0) return null;\n return Math.round((stats.totalExpenses / stats.totalRevenue) * 100 * 10) / 10;\n }, [stats.totalExpenses, stats.totalRevenue]);\n\n const quickActions = [\n {\n label: t('healthybowl.home.quickActions.addCrop.label', 'Add Crop'),\n icon: Sprout,\n path: buildPath('crops'),\n description: t('healthybowl.home.quickActions.addCrop.description', 'Register a new crop'),\n },\n {\n label: t('healthybowl.home.quickActions.recordHarvest.label', 'Record Harvest'),\n icon: ClipboardList,\n path: buildPath('crops/harvest'),\n description: t('healthybowl.home.quickActions.recordHarvest.description', 'Log harvest data'),\n },\n {\n label: t('healthybowl.home.quickActions.viewFields.label', 'View Fields'),\n icon: MapPin,\n path: buildPath('crops/fields'),\n description: t('healthybowl.home.quickActions.viewFields.description', 'Manage farm fields'),\n },\n {\n label: t('healthybowl.home.quickActions.viewWeather.label', 'View Weather'),\n icon: Thermometer,\n path: buildPath('weather'),\n description: t('healthybowl.home.quickActions.viewWeather.description', 'Check forecast'),\n },\n {\n label: t('healthybowl.home.quickActions.marketplace.label', 'Marketplace'),\n icon: ShoppingCart,\n path: buildPath('marketplace'),\n description: t('healthybowl.home.quickActions.marketplace.description', 'Buy & sell produce'),\n },\n {\n label: t('healthybowl.home.quickActions.analytics.label', 'Analytics'),\n icon: BarChart3,\n path: buildPath('analytics'),\n description: t('healthybowl.home.quickActions.analytics.description', 'View farm reports'),\n },\n ];\n\n return (\n <PageLayout\n title={t('healthybowl.home.title', 'Farm Dashboard')}\n description={t('healthybowl.home.description', 'Overview of your farm operations')}\n actions={\n <button\n onClick={() => navigate(buildPath('crops'))}\n className=\"inline-flex items-center gap-2 rounded-md bg-primary px-4 py-2 text-sm font-medium text-primary-foreground hover:bg-primary/90\"\n >\n <Plus className=\"h-4 w-4\" />\n {t('healthybowl.home.primaryAction', 'Quick Action')}\n </button>\n }\n >\n {/* Stat Cards - including Market Value */}\n <div className=\"grid grid-cols-1 gap-4 sm:grid-cols-2 lg:grid-cols-4 xl:grid-cols-4\">\n <StatCard\n label={t('healthybowl.home.stats.revenue', 'Revenue')}\n value={stats.totalRevenue}\n prefix=\"$\"\n icon={<DollarSign className=\"h-4 w-4\" />}\n />\n <StatCard\n label={t('healthybowl.home.stats.activeCrops', 'Active Crops')}\n value={stats.activeCrops}\n icon={<Sprout className=\"h-4 w-4\" />}\n />\n <StatCard\n label={t('healthybowl.home.stats.harvestDue', 'Harvest Due')}\n value={stats.harvestDue}\n icon={<Calendar className=\"h-4 w-4\" />}\n />\n <StatCard\n label={t('healthybowl.home.stats.marketValue', 'Market Value')}\n value={marketValue}\n prefix=\"$\"\n icon={<TrendingUp className=\"h-4 w-4\" />}\n />\n </div>\n\n {/* Secondary Stats */}\n <div className=\"grid grid-cols-2 gap-4 sm:grid-cols-4\">\n <div className=\"rounded-lg border border-border bg-card p-4\">\n <div className=\"flex items-center justify-between\">\n <div>\n <p className=\"text-xs font-medium text-muted-foreground\">\n {t('healthybowl.home.metrics.totalFields', 'Total Fields')}\n </p>\n <p className=\"mt-1 text-xl font-bold text-foreground\">{stats.totalFields}</p>\n <p className=\"mt-0.5 text-xs text-muted-foreground\">\n {t('healthybowl.home.metrics.totalFieldsHint', 'All monitored')}\n </p>\n </div>\n <MapPin className=\"h-5 w-5 text-muted-foreground\" />\n </div>\n </div>\n <div className=\"rounded-lg border border-border bg-card p-4\">\n <div className=\"flex items-center justify-between\">\n <div>\n <p className=\"text-xs font-medium text-muted-foreground\">\n {t('healthybowl.home.metrics.totalAnimals', 'Total Animals')}\n </p>\n <p className=\"mt-1 text-xl font-bold text-foreground\">{stats.totalAnimals}</p>\n <p className=\"mt-0.5 text-xs text-muted-foreground\">\n {t('healthybowl.home.metrics.totalAnimalsHint', 'All healthy')}\n </p>\n </div>\n <PawPrint className=\"h-5 w-5 text-muted-foreground\" />\n </div>\n </div>\n <div className=\"rounded-lg border border-border bg-card p-4\">\n <div className=\"flex items-center justify-between\">\n <div>\n <p className=\"text-xs font-medium text-muted-foreground\">\n {t('healthybowl.home.metrics.expenses', 'Expenses')}\n </p>\n <p className=\"mt-1 text-xl font-bold text-foreground\">{formatCurrency(stats.totalExpenses)}</p>\n <p className=\"mt-0.5 text-xs text-muted-foreground\">\n {expenseRatioPercent != null\n ? `${expenseRatioPercent}% ${t('healthybowl.home.metrics.ofRevenue', 'of revenue')}`\n : t('healthybowl.home.metrics.noRevenue', 'No revenue yet')}\n </p>\n </div>\n <TrendingDown className=\"h-5 w-5 text-muted-foreground\" />\n </div>\n </div>\n <div className=\"rounded-lg border border-border bg-card p-4\">\n <div className=\"flex items-center justify-between\">\n <div>\n <p className=\"text-xs font-medium text-muted-foreground\">\n {t('healthybowl.home.metrics.organicScore', 'Organic Score')}\n </p>\n <p className=\"mt-1 text-xl font-bold text-foreground\">{stats.organicScore}%</p>\n <p className=\"mt-0.5 text-xs text-muted-foreground\">\n {t('healthybowl.home.metrics.organicHint', 'Certified organic compliance')}\n </p>\n </div>\n <ShieldCheck className=\"h-5 w-5 text-muted-foreground\" />\n </div>\n </div>\n </div>\n\n <div className=\"grid grid-cols-1 gap-6 lg:grid-cols-3\">\n {/* Weather Widget - Enhanced */}\n <ChartCard title={t('healthybowl.home.weatherCard.title', 'Current Weather')} description={weather.location}>\n <div className=\"flex flex-col gap-4\">\n <div className=\"flex items-center justify-between\">\n <div>\n <p className=\"text-4xl font-bold text-foreground\">{weather.current.temperature}&deg;C</p>\n <p className=\"text-sm text-muted-foreground\">{weather.current.condition}</p>\n <p className=\"mt-1 text-xs text-muted-foreground\">\n {t('healthybowl.home.weatherCard.feelsLike', 'Feels like')} {weather.current.feelsLike}&deg;C\n </p>\n </div>\n <div className=\"flex flex-col items-center\">\n <Cloud className=\"h-12 w-12 text-muted-foreground\" />\n <span className=\"mt-1 text-xs text-muted-foreground\">UV {weather.current.uvIndex}</span>\n </div>\n </div>\n\n <div className=\"grid grid-cols-2 gap-3 border-t border-border pt-3\">\n <div className=\"flex items-center gap-2 text-sm text-muted-foreground\">\n <Droplets className=\"h-4 w-4\" />\n <span>\n {weather.current.humidity}% {t('healthybowl.home.weatherCard.humidity', 'Humidity')}\n </span>\n </div>\n <div className=\"flex items-center gap-2 text-sm text-muted-foreground\">\n <Wind className=\"h-4 w-4\" />\n <span>{weather.current.windSpeed} km/h</span>\n </div>\n <div className=\"flex items-center gap-2 text-sm text-muted-foreground\">\n <Thermometer className=\"h-4 w-4\" />\n <span>{weather.current.pressure} hPa</span>\n </div>\n <div className=\"flex items-center gap-2 text-sm text-muted-foreground\">\n <Eye className=\"h-4 w-4\" />\n <span>{weather.current.visibility} km</span>\n </div>\n </div>\n\n <div className=\"grid grid-cols-4 gap-2 border-t border-border pt-3\">\n {weather.forecast.slice(0, 4).map((day) => (\n <div key={day.date} className=\"rounded-md bg-muted/50 p-2 text-center\">\n <p className=\"text-xs font-medium text-muted-foreground\">\n {new Date(day.date).toLocaleDateString('en-US', { weekday: 'short' })}\n </p>\n <p className=\"mt-1 text-sm font-semibold text-foreground\">{day.high}&deg;</p>\n <p className=\"text-xs text-muted-foreground\">{day.low}&deg;</p>\n <p className=\"mt-0.5 text-xs text-muted-foreground\">{day.precipitation}%</p>\n </div>\n ))}\n </div>\n\n <button\n onClick={() => navigate(buildPath('weather'))}\n className=\"w-full rounded-md border border-border py-2 text-sm text-foreground hover:bg-muted/50\"\n >\n {t('healthybowl.home.weatherCard.viewForecast', 'View Full Forecast')}\n </button>\n </div>\n </ChartCard>\n\n {/* Active Crops */}\n <ChartCard\n title={t('healthybowl.home.cropsCard.title', 'Active Crops')}\n description={`${crops.length} ${t('healthybowl.home.cropsCard.description', 'crops in progress')}`}\n >\n <div className=\"flex flex-col gap-3\">\n {crops.map((crop) => (\n <div\n key={crop.id}\n onClick={() => navigate(buildPath(`crops/${crop.id}`))}\n className=\"cursor-pointer rounded-md border border-border p-3 transition-colors hover:bg-muted/50\"\n >\n <div className=\"flex items-center justify-between\">\n <span className=\"text-sm font-medium text-foreground\">{crop.name}</span>\n <StatusBadge\n label={(crop.status ?? 'unknown').replace('_', ' ')}\n variant={statusVariant(crop.status ?? 'unknown')}\n />\n </div>\n <p className=\"mt-1 text-xs text-muted-foreground\">\n {crop.fieldName} &middot; {crop.variety}\n </p>\n <div className=\"mt-2 flex items-center gap-2\">\n <div className=\"h-2 flex-1 rounded-full bg-muted\">\n <div className=\"h-2 rounded-full bg-primary\" style={{ width: `${crop.progress}%` }} />\n </div>\n <span className=\"text-xs font-medium text-muted-foreground\">{crop.progress}%</span>\n </div>\n <div className=\"mt-1.5 flex items-center justify-between\">\n <StatusBadge label={crop.healthStatus} variant={healthVariant(crop.healthStatus)} />\n <span className=\"text-xs text-muted-foreground\">\n {crop.daysToHarvest}d {t('healthybowl.home.cropsCard.daysToHarvest', 'to harvest')}\n </span>\n </div>\n </div>\n ))}\n <button\n onClick={() => navigate(buildPath('crops'))}\n className=\"w-full rounded-md border border-border py-2 text-sm text-foreground hover:bg-muted/50\"\n >\n {t('healthybowl.home.cropsCard.viewAll', 'View All Crops')}\n </button>\n </div>\n </ChartCard>\n\n {/* Alerts */}\n <ChartCard\n title={t('healthybowl.home.alertsCard.title', 'Alerts & Notifications')}\n description={`${alerts.filter((a) => !a.read).length} ${t('healthybowl.home.alertsCard.unread', 'unread')}`}\n actions={\n <button onClick={() => setAlertsExpanded(!alertsExpanded)} className=\"text-xs text-primary hover:underline\">\n {alertsExpanded\n ? t('healthybowl.home.alertsCard.showLess', 'Show less')\n : t('healthybowl.home.alertsCard.viewAll', 'View all')}\n </button>\n }\n >\n <div className=\"flex flex-col gap-3\">\n {visibleAlerts.map((alert) => (\n <div\n key={alert.id}\n onClick={() => {\n void markAlertRead(alert.id, true);\n if (alert.actionUrl) {\n navigate(alert.actionUrl);\n }\n }}\n className={cn(\n 'flex cursor-pointer items-start gap-3 rounded-md border p-3 transition-colors hover:bg-muted/50',\n alert.severity === 'critical' &&\n 'border-l-4 border-l-red-500 border-t-border border-r-border border-b-border',\n alert.severity === 'warning' &&\n 'border-l-4 border-l-amber-500 border-t-border border-r-border border-b-border',\n alert.severity === 'info' &&\n 'border-l-4 border-l-blue-500 border-t-border border-r-border border-b-border',\n !alert.read && 'bg-muted/50'\n )}\n >\n <AlertTriangle\n className={cn(\n 'mt-0.5 h-4 w-4 shrink-0',\n alert.severity === 'critical' && 'text-red-500',\n alert.severity === 'warning' && 'text-amber-500',\n alert.severity === 'info' && 'text-blue-500'\n )}\n />\n <div className=\"min-w-0 flex-1\">\n <div className=\"flex items-center gap-2\">\n <span className=\"text-sm font-medium text-foreground\">{alert.title}</span>\n <StatusBadge label={alert.severity} variant={severityVariant(alert.severity)} />\n </div>\n <p className=\"mt-0.5 text-xs text-muted-foreground\">{alert.message}</p>\n </div>\n </div>\n ))}\n </div>\n </ChartCard>\n </div>\n\n {/* Quick Actions */}\n <div className=\"rounded-lg border border-border bg-card p-6\">\n <div className=\"mb-4\">\n <h3 className=\"text-sm font-semibold text-foreground\">\n {t('healthybowl.home.quickActions.title', 'Quick Actions')}\n </h3>\n <p className=\"text-xs text-muted-foreground\">\n {t('healthybowl.home.quickActions.subtitle', 'Frequently used features to manage your farm efficiently')}\n </p>\n </div>\n <div className=\"grid grid-cols-2 gap-3 sm:grid-cols-3 lg:grid-cols-6\">\n {quickActions.map(({ label, icon: Icon, path, description }) => (\n <button\n key={label}\n onClick={() => navigate(path)}\n className=\"flex flex-col items-center gap-2 rounded-lg border border-border bg-background p-4 text-center transition-colors hover:bg-muted/50\"\n >\n <div className=\"rounded-full bg-primary/10 p-3\">\n <Icon className=\"h-5 w-5 text-primary\" />\n </div>\n <span className=\"text-sm font-medium text-foreground\">{label}</span>\n <span className=\"text-xs text-muted-foreground\">{description}</span>\n </button>\n ))}\n </div>\n </div>\n </PageLayout>\n );\n};\n"],"mappings":";;;;;;;;;;;;;;AA4BA,IAAM,KAAmB,MAAqB;AAC5C,SAAQ,GAAR;EACE,KAAK,WACH,QAAO;EACT,KAAK,UACH,QAAO;EACT,QACE,QAAO;;GAIP,KAAiB,MAAmB;AACxC,SAAQ,GAAR;EACE,KAAK,YACH,QAAO;EACT,KAAK,OACH,QAAO;EACT,KAAK,OACH,QAAO;EACT,QACE,QAAO;;GAIP,KAAiB,MAAmB;AACxC,SAAQ,GAAR;EACE,KAAK,gBACH,QAAO;EACT,KAAK;EACL,KAAK,WACH,QAAO;EACT,KAAK,UACH,QAAO;EAC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AAU,wBAAyB,CAAA;QACrC,CAAA;OACN,kBAAC,QAAD;QAAM,WAAU;kBAAuC;QAAa,CAAA;OACpE,kBAAC,QAAD;QAAM,WAAU;kBAAiC;QAAmB,CAAA;OAC7D;QATF,EASE,CACT;KACE,CAAA,CACF;;GACK"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@burdenoff/microfe-healthybowl",
3
- "version": "2026.604.2",
3
+ "version": "2026.605.1",
4
4
  "description": "Burdenoff HealthyBowl Microfrontend - Comprehensive organic farming and agro-foods management platform",
5
5
  "type": "module",
6
6
  "files": [