@burdenoff/microfe-healthybowl 2026.610.5 → 2026.611.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.
@@ -390,7 +390,7 @@ var A = (e) => e === "extreme" || e === "severe" ? "error" : e === "moderate" ?
390
390
  })]
391
391
  }), /* @__PURE__ */ O("div", {
392
392
  className: "space-y-2",
393
- children: V.map((e, t) => {
393
+ children: V.slice(0, 7).map((e, t) => {
394
394
  let n = M(e.condition);
395
395
  return /* @__PURE__ */ k("div", {
396
396
  onClick: () => P("forecast"),
@@ -1 +1 @@
1
- {"version":3,"file":"WeatherOverviewPage.js","names":[],"sources":["../../../../src/healthybowl/pages/weather/WeatherOverviewPage.tsx"],"sourcesContent":["import { useMemo, useCallback, type FC } from 'react';\nimport { useNavigate } from 'react-router-dom';\nimport { useI18n } from '@burdenoff/fe-libs/shared/providers/shell/I18nProvider';\nimport {\n Cloud,\n CloudRain,\n Sun,\n CloudLightning,\n Wind,\n Droplets,\n Eye,\n Gauge,\n AlertTriangle,\n TrendingUp,\n Calendar,\n Bell,\n MapPin,\n ChevronRight,\n ArrowUp,\n ArrowDown,\n} from 'lucide-react';\nimport { PageLayout, StatusBadge, ErrorState, PageLoader } from '../../components';\nimport { ToastContainer } from '../../components/Toast';\nimport { useToast } from '../../hooks/useToast';\nimport { useHealthyBowlData } from '../../hooks/useHealthyBowlData';\n\nconst severityVariant = (s: string) =>\n s === 'extreme' || s === 'severe' ? ('error' as const) : s === 'moderate' ? ('warning' as const) : ('info' as const);\n\nconst severityBorder = (s: string) => {\n switch (s) {\n case 'extreme':\n return 'border-l-red-600';\n case 'severe':\n return 'border-l-red-500';\n case 'moderate':\n return 'border-l-amber-500';\n case 'minor':\n return 'border-l-sky-500';\n default:\n return 'border-l-border';\n }\n};\n\nconst getWeatherIcon = (condition: string) => {\n switch (condition.toLowerCase()) {\n case 'sunny':\n case 'clear':\n return Sun;\n case 'partly cloudy':\n return Cloud;\n case 'rain':\n return CloudRain;\n case 'thunderstorm':\n return CloudLightning;\n case 'cloudy':\n return Cloud;\n default:\n return Sun;\n }\n};\n\nconst getUVLabel = (uv: number) => {\n if (uv <= 2) return 'Low';\n if (uv <= 5) return 'Moderate';\n if (uv <= 7) return 'High';\n if (uv <= 10) return 'Very High';\n return 'Extreme';\n};\n\nexport const WeatherOverviewPage: FC = () => {\n const { weatherData, loadings, errors, refetch } = 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 { toasts, toast, dismiss } = useToast();\n const defaultCurrent = {\n temperature: 0,\n condition: 'N/A',\n feelsLike: 0,\n humidity: 0,\n windSpeed: 0,\n windDirection: '',\n uvIndex: 0,\n pressure: 0,\n visibility: 0,\n icon: '',\n };\n const current = weatherData?.current ?? defaultCurrent;\n const forecast = weatherData?.forecast ?? [];\n const alerts = weatherData?.alerts ?? [];\n const location = weatherData?.location ?? '';\n const todayForecast =\n forecast[0] ??\n ({\n high: current.temperature,\n low: current.temperature,\n precipitation: 0,\n humidity: current.humidity,\n windSpeed: current.windSpeed,\n } as const);\n\n // Derive farming recommendations from actual weather conditions\n const farmingRecommendations = useMemo(() => {\n const recs: { title: string; description: string; icon: typeof TrendingUp; iconColor: string }[] = [];\n if (current.humidity >= 40 && current.humidity <= 70 && current.temperature >= 15 && current.temperature <= 30) {\n recs.push({\n title: 'Good conditions for irrigation',\n description: `Humidity at ${current.humidity}% and ${current.temperature}°C are optimal for watering crops`,\n icon: TrendingUp,\n iconColor: 'text-success',\n });\n } else if (current.humidity > 70) {\n recs.push({\n title: 'Skip irrigation today',\n description: `Humidity is high at ${current.humidity}% — soil moisture is likely adequate`,\n icon: Droplets,\n iconColor: 'text-info',\n });\n } else {\n recs.push({\n title: 'Increase irrigation',\n description: `Low humidity at ${current.humidity}% — crops may need extra watering`,\n icon: AlertTriangle,\n iconColor: 'text-warning',\n });\n }\n const rainForecast = forecast.find((d) => d.precipitation > 50);\n if (rainForecast) {\n recs.push({\n title: 'Prepare for heavy rain',\n description: `${rainForecast.precipitation}% precipitation expected on ${new Date(rainForecast.date).toLocaleDateString('en-US', { weekday: 'short' })} — ensure proper drainage`,\n icon: AlertTriangle,\n iconColor: 'text-warning',\n });\n }\n if (current.windSpeed > 20) {\n recs.push({\n title: 'Monitor wind-sensitive crops',\n description: `Wind at ${current.windSpeed} km/h ${current.windDirection} — check support structures for tall crops`,\n icon: Wind,\n iconColor: 'text-info',\n });\n }\n if (current.uvIndex >= 8) {\n recs.push({\n title: 'High UV exposure',\n description: `UV index at ${current.uvIndex} (${getUVLabel(current.uvIndex)}) — consider shade protection for sensitive crops`,\n icon: AlertTriangle,\n iconColor: 'text-destructive',\n });\n }\n if (recs.length === 0) {\n recs.push({\n title: 'Conditions are stable',\n description: 'No immediate weather concerns for farming operations',\n icon: TrendingUp,\n iconColor: 'text-success',\n });\n }\n return recs;\n }, [current, forecast]);\n\n // Derive weather impact metrics from forecast/alert data\n const weatherImpactMetrics = useMemo(() => {\n const tempScore =\n current.temperature >= 15 && current.temperature <= 30\n ? 90\n : current.temperature >= 10 && current.temperature <= 35\n ? 60\n : 30;\n const humidityScore = current.humidity >= 40 && current.humidity <= 70 ? 85 : 50;\n const growthPercent = Math.round((tempScore + humidityScore) / 2);\n const growthLevel =\n growthPercent >= 80 ? 'Excellent' : growthPercent >= 60 ? 'Good' : growthPercent >= 40 ? 'Moderate' : 'Poor';\n const growthColor = growthPercent >= 60 ? 'bg-success' : growthPercent >= 40 ? 'bg-warning' : 'bg-destructive';\n\n const severeAlerts = alerts.filter((a) => a.severity === 'extreme' || a.severity === 'severe').length;\n const diseasePercent = Math.min(100, Math.round((current.humidity / 100) * 60 + severeAlerts * 15));\n const diseaseLevel = diseasePercent >= 70 ? 'High' : diseasePercent >= 40 ? 'Moderate' : 'Low';\n const diseaseColor = diseasePercent >= 70 ? 'bg-destructive' : diseasePercent >= 40 ? 'bg-warning' : 'bg-success';\n\n const windFactor = Math.min(100, Math.round((current.windSpeed / 50) * 100));\n const pestPercent = Math.min(100, Math.round(windFactor * 0.4 + (current.temperature > 25 ? 30 : 10)));\n const pestLevel = pestPercent >= 60 ? 'High' : pestPercent >= 30 ? 'Moderate' : 'Low';\n const pestColor = pestPercent >= 60 ? 'bg-destructive' : pestPercent >= 30 ? 'bg-warning' : 'bg-success';\n\n const avgPrecip = forecast.length > 0 ? forecast.reduce((s, d) => s + d.precipitation, 0) / forecast.length : 0;\n const irrigationPercent = Math.max(0, Math.min(100, Math.round(100 - avgPrecip - current.humidity * 0.5)));\n const irrigationLevel = irrigationPercent >= 60 ? 'High' : irrigationPercent >= 30 ? 'Moderate' : 'Low';\n const irrigationColor =\n irrigationPercent >= 60 ? 'bg-destructive' : irrigationPercent >= 30 ? 'bg-warning' : 'bg-info';\n\n return [\n { label: 'Crop Growth Conditions', level: growthLevel, percent: growthPercent, color: growthColor },\n { label: 'Disease Risk', level: diseaseLevel, percent: diseasePercent, color: diseaseColor },\n { label: 'Pest Activity', level: pestLevel, percent: pestPercent, color: pestColor },\n { label: 'Irrigation Need', level: irrigationLevel, percent: irrigationPercent, color: irrigationColor },\n ];\n }, [current, forecast, alerts]);\n\n return (\n <PageLayout\n title={t('healthybowl.weather.overview.title', 'Weather Dashboard')}\n description={`${t('healthybowl.weather.overview.descriptionPrefix', 'Real-time weather data and forecasts for')} ${location}`}\n >\n {loadings.weather ? (\n <PageLoader />\n ) : errors.weather ? (\n <ErrorState onRetry={refetch} />\n ) : (\n <>\n {/* Quick Navigation */}\n <div className=\"grid grid-cols-2 gap-3 md:grid-cols-4\">\n <button\n onClick={() => navigate('forecast')}\n className=\"inline-flex items-center gap-2 rounded-md border border-border px-3 py-2.5 text-sm text-foreground hover:bg-muted/50\"\n >\n <Calendar className=\"h-4 w-4 text-muted-foreground\" />\n {t('healthybowl.weather.overview.quickNav.extendedForecast', 'Extended Forecast')}\n </button>\n <button\n onClick={() => navigate('alerts')}\n className=\"inline-flex items-center gap-2 rounded-md border border-border px-3 py-2.5 text-sm text-foreground hover:bg-muted/50\"\n >\n <Bell className=\"h-4 w-4 text-muted-foreground\" />\n {t('healthybowl.weather.overview.quickNav.alertSettings', 'Alert Settings')}\n </button>\n <button\n onClick={() => navigate('history')}\n className=\"inline-flex items-center gap-2 rounded-md border border-border px-3 py-2.5 text-sm text-foreground hover:bg-muted/50\"\n >\n <TrendingUp className=\"h-4 w-4 text-muted-foreground\" />\n {t('healthybowl.weather.overview.quickNav.historicalData', 'Historical Data')}\n </button>\n <button\n onClick={() =>\n toast({ title: 'Weather Maps', description: 'Interactive weather maps coming soon.', variant: 'info' })\n }\n className=\"inline-flex items-center gap-2 rounded-md border border-border px-3 py-2.5 text-sm text-foreground hover:bg-muted/50\"\n >\n <MapPin className=\"h-4 w-4 text-muted-foreground\" /> Weather Maps\n </button>\n </div>\n\n {/* Weather Alerts */}\n {alerts.length > 0 && (\n <div className=\"space-y-3\">\n <div className=\"flex items-center justify-between\">\n <h2 className=\"text-base font-semibold text-foreground\">Weather Alerts</h2>\n <button\n onClick={() => navigate('alerts')}\n className=\"inline-flex items-center gap-1 text-sm text-muted-foreground hover:text-foreground\"\n >\n Manage Alerts <ChevronRight className=\"h-3.5 w-3.5\" />\n </button>\n </div>\n {alerts.map((alert) => (\n <div\n key={alert.id}\n className={`rounded-lg border border-border border-l-4 bg-card p-4 ${severityBorder(alert.severity)}`}\n >\n <div className=\"flex items-start gap-3\">\n <AlertTriangle className=\"mt-0.5 h-5 w-5 shrink-0 text-warning\" />\n <div className=\"flex-1\">\n <div className=\"flex flex-wrap items-center gap-2\">\n <h3 className=\"text-sm font-medium text-foreground\">{alert.title}</h3>\n <StatusBadge label={alert.severity} variant={severityVariant(alert.severity)} />\n </div>\n <p className=\"mt-1 text-sm text-muted-foreground\">{alert.description}</p>\n <p className=\"mt-1 text-xs text-muted-foreground\">\n Affected: {(alert.affectedAreas ?? []).join(', ')}\n </p>\n </div>\n </div>\n </div>\n ))}\n </div>\n )}\n\n {/* Current Weather + Today's Summary */}\n <div className=\"grid grid-cols-1 gap-4 lg:grid-cols-3\">\n {/* Main Current Weather Card */}\n <div className=\"rounded-lg border border-border bg-card p-6 lg:col-span-2\">\n <div className=\"mb-4 flex items-center gap-2\">\n {(() => {\n const Icon = getWeatherIcon(current.condition);\n return <Icon className=\"h-8 w-8 text-muted-foreground\" />;\n })()}\n <div>\n <h3 className=\"text-sm font-semibold text-foreground\">Current Weather</h3>\n <p className=\"text-xs text-muted-foreground\">Last updated: {new Date().toLocaleString()}</p>\n </div>\n </div>\n <div className=\"grid grid-cols-2 gap-6 md:grid-cols-4\">\n {/* Temp */}\n <div className=\"text-center\">\n <div className=\"text-3xl font-bold text-foreground\">{current.temperature}°C</div>\n <div className=\"text-sm text-muted-foreground\">Feels like {current.feelsLike}°C</div>\n <div className=\"mt-1 text-sm font-medium text-foreground\">{current.condition}</div>\n </div>\n {/* Humidity & Wind */}\n <div className=\"space-y-2\">\n <div className=\"flex items-center gap-2\">\n <Droplets className=\"h-4 w-4 text-info\" />\n <span className=\"text-sm text-foreground\">Humidity: {current.humidity}%</span>\n </div>\n <div className=\"flex items-center gap-2\">\n <Wind className=\"h-4 w-4 text-muted-foreground\" />\n <span className=\"text-sm text-foreground\">\n Wind: {current.windSpeed} km/h {current.windDirection}\n </span>\n </div>\n </div>\n {/* Pressure & Visibility */}\n <div className=\"space-y-2\">\n <div className=\"flex items-center gap-2\">\n <Gauge className=\"h-4 w-4 text-primary\" />\n <span className=\"text-sm text-foreground\">Pressure: {current.pressure} hPa</span>\n </div>\n <div className=\"flex items-center gap-2\">\n <Eye className=\"h-4 w-4 text-success\" />\n <span className=\"text-sm text-foreground\">Visibility: {current.visibility} km</span>\n </div>\n </div>\n {/* UV Index */}\n <div className=\"space-y-2\">\n <div className=\"text-sm\">\n <span className=\"text-muted-foreground\">UV Index: </span>\n <span className=\"font-medium text-foreground\">\n {current.uvIndex} ({getUVLabel(current.uvIndex)})\n </span>\n </div>\n </div>\n </div>\n </div>\n\n {/* Today's Summary */}\n <div className=\"rounded-lg border border-border bg-card p-6\">\n <h3 className=\"text-sm font-semibold text-foreground\">Today's Summary</h3>\n <div className=\"mt-4 space-y-4\">\n <div className=\"flex items-center justify-between\">\n <span className=\"text-sm text-muted-foreground\">High</span>\n <div className=\"flex items-center gap-1\">\n <ArrowUp className=\"h-3.5 w-3.5 text-destructive\" />\n <span className=\"font-medium text-foreground\">{todayForecast.high}°C</span>\n </div>\n </div>\n <div className=\"flex items-center justify-between\">\n <span className=\"text-sm text-muted-foreground\">Low</span>\n <div className=\"flex items-center gap-1\">\n <ArrowDown className=\"h-3.5 w-3.5 text-info\" />\n <span className=\"font-medium text-foreground\">{todayForecast.low}°C</span>\n </div>\n </div>\n <div className=\"flex items-center justify-between\">\n <span className=\"text-sm text-muted-foreground\">Precipitation</span>\n <span className=\"font-medium text-foreground\">{todayForecast.precipitation}%</span>\n </div>\n <div className=\"flex items-center justify-between\">\n <span className=\"text-sm text-muted-foreground\">Humidity</span>\n <span className=\"font-medium text-foreground\">{todayForecast.humidity}%</span>\n </div>\n <div className=\"flex items-center justify-between\">\n <span className=\"text-sm text-muted-foreground\">Wind Speed</span>\n <span className=\"font-medium text-foreground\">{todayForecast.windSpeed} km/h</span>\n </div>\n </div>\n </div>\n </div>\n\n {/* 7-Day Forecast */}\n <div className=\"rounded-lg border border-border bg-card p-6\">\n <div className=\"mb-4 flex items-center justify-between\">\n <div>\n <h3 className=\"text-base font-semibold text-foreground\">7-Day Forecast</h3>\n <p className=\"text-xs text-muted-foreground\">Click on any day for detailed forecast</p>\n </div>\n <button\n onClick={() => navigate('forecast')}\n className=\"inline-flex items-center gap-1 text-sm text-muted-foreground hover:text-foreground\"\n >\n View Extended Forecast <ChevronRight className=\"h-3.5 w-3.5\" />\n </button>\n </div>\n <div className=\"space-y-2\">\n {forecast.map((day, index) => {\n const Icon = getWeatherIcon(day.condition);\n return (\n <div\n key={day.date}\n onClick={() => navigate('forecast')}\n className=\"flex cursor-pointer items-center justify-between rounded-lg px-3 py-2.5 transition-colors hover:bg-muted/50\"\n >\n <div className=\"flex items-center gap-3 flex-1\">\n <span className=\"w-14 text-sm font-medium text-foreground\">\n {index === 0 ? 'Today' : new Date(day.date).toLocaleDateString('en-US', { weekday: 'short' })}\n </span>\n <Icon className=\"h-5 w-5 text-muted-foreground\" />\n <span className=\"text-sm text-foreground\">{day.condition}</span>\n </div>\n <div className=\"flex items-center gap-4 text-sm\">\n <div className=\"flex items-center gap-1\">\n <Droplets className=\"h-3 w-3 text-info\" />\n <span className=\"text-foreground\">{day.precipitation}%</span>\n </div>\n <div className=\"flex items-center gap-2\">\n <span className=\"font-medium text-foreground\">{day.high}°</span>\n <span className=\"text-muted-foreground\">{day.low}°</span>\n </div>\n </div>\n </div>\n );\n })}\n </div>\n </div>\n\n {/* Farming Recommendations + Weather Impact */}\n <div className=\"grid grid-cols-1 gap-4 md:grid-cols-2\">\n {/* Farming Recommendations - derived from current weather data */}\n <div className=\"rounded-lg border border-border bg-card p-6\">\n <h3 className=\"text-base font-semibold text-foreground\">Farming Recommendations</h3>\n <p className=\"text-xs text-muted-foreground\">AI-powered insights based on current conditions</p>\n <div className=\"mt-4 space-y-3\">\n {farmingRecommendations.map((rec) => {\n const Icon = rec.icon;\n return (\n <div key={rec.title} className=\"flex items-start gap-3 rounded-lg bg-muted/50 p-3\">\n <Icon className={`mt-0.5 h-5 w-5 shrink-0 ${rec.iconColor}`} />\n <div>\n <p className=\"text-sm font-medium text-foreground\">{rec.title}</p>\n <p className=\"text-xs text-muted-foreground\">{rec.description}</p>\n </div>\n </div>\n );\n })}\n </div>\n </div>\n\n {/* Weather Impact Analysis - derived from forecast/alert data */}\n <div className=\"rounded-lg border border-border bg-card p-6\">\n <h3 className=\"text-base font-semibold text-foreground\">Weather Impact Analysis</h3>\n <p className=\"text-xs text-muted-foreground\">Impact on farming operations</p>\n <div className=\"mt-4 space-y-4\">\n {weatherImpactMetrics.map(({ label, level, percent, color }) => (\n <div key={label}>\n <div className=\"mb-1.5 flex items-center justify-between\">\n <span className=\"text-sm font-medium text-foreground\">{label}</span>\n <span className=\"text-sm font-medium text-muted-foreground\">{level}</span>\n </div>\n <div className=\"h-2 w-full rounded-full bg-muted\">\n <div className={`h-2 rounded-full transition-all ${color}`} style={{ width: `${percent}%` }} />\n </div>\n </div>\n ))}\n </div>\n </div>\n </div>\n </>\n )}\n\n <ToastContainer toasts={toasts} onDismiss={dismiss} />\n </PageLayout>\n );\n};\n"],"mappings":";;;;;;;;;;;;;;AA0BA,IAAM,KAAmB,MACvB,MAAM,aAAa,MAAM,WAAY,UAAoB,MAAM,aAAc,YAAuB,QAEhG,KAAkB,MAAc;AACpC,SAAQ,GAAR;EACE,KAAK,UACH,QAAO;EACT,KAAK,SACH,QAAO;EACT,KAAK,WACH,QAAO;EACT,KAAK,QACH,QAAO;EACT,QACE,QAAO;;GAIP,KAAkB,MAAsB;AAC5C,SAAQ,EAAU,aAAa,EAA/B;EACE,KAAK;EACL,KAAK,QACH,QAAO;EACT,KAAK,gBACH,QAAO;EACT,KAAK,OACH,QAAO;EACT,KAAK,eACH,QAAO;EACT,KAAK,SACH,QAAO;EACT,QACE,QAAO;;GAIP,KAAc,MACd,KAAM,IAAU,QAChB,KAAM,IAAU,aAChB,KAAM,IAAU,SAChB,KAAM,KAAW,cACd,WAGI,UAAgC;CAC3C,IAAM,EAAE,gBAAa,aAAU,WAAQ,eAAY,GAAoB,EAEjE,IAAW,GAAa,EACxB,EAAE,GAAG,MAAc,GAAS,EAC5B,IAAI,GACP,GAAa,MAA6B;EACzC,IAAM,IAAQ,EAAU,EAAI;AAC5B,SAAO,MAAU,IAAM,IAAW;IAEpC,CAAC,EAAU,CACZ,EACK,EAAE,WAAQ,UAAO,eAAY,GAAU,EAavC,IAAU,GAAa,WAZN;EACrB,aAAa;EACb,WAAW;EACX,WAAW;EACX,UAAU;EACV,WAAW;EACX,eAAe;EACf,S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ages/weather/WeatherOverviewPage.tsx"],"sourcesContent":["import { useMemo, useCallback, type FC } from 'react';\nimport { useNavigate } from 'react-router-dom';\nimport { useI18n } from '@burdenoff/fe-libs/shared/providers/shell/I18nProvider';\nimport {\n Cloud,\n CloudRain,\n Sun,\n CloudLightning,\n Wind,\n Droplets,\n Eye,\n Gauge,\n AlertTriangle,\n TrendingUp,\n Calendar,\n Bell,\n MapPin,\n ChevronRight,\n ArrowUp,\n ArrowDown,\n} from 'lucide-react';\nimport { PageLayout, StatusBadge, ErrorState, PageLoader } from '../../components';\nimport { ToastContainer } from '../../components/Toast';\nimport { useToast } from '../../hooks/useToast';\nimport { useHealthyBowlData } from '../../hooks/useHealthyBowlData';\n\nconst severityVariant = (s: string) =>\n s === 'extreme' || s === 'severe' ? ('error' as const) : s === 'moderate' ? ('warning' as const) : ('info' as const);\n\nconst severityBorder = (s: string) => {\n switch (s) {\n case 'extreme':\n return 'border-l-red-600';\n case 'severe':\n return 'border-l-red-500';\n case 'moderate':\n return 'border-l-amber-500';\n case 'minor':\n return 'border-l-sky-500';\n default:\n return 'border-l-border';\n }\n};\n\nconst getWeatherIcon = (condition: string) => {\n switch (condition.toLowerCase()) {\n case 'sunny':\n case 'clear':\n return Sun;\n case 'partly cloudy':\n return Cloud;\n case 'rain':\n return CloudRain;\n case 'thunderstorm':\n return CloudLightning;\n case 'cloudy':\n return Cloud;\n default:\n return Sun;\n }\n};\n\nconst getUVLabel = (uv: number) => {\n if (uv <= 2) return 'Low';\n if (uv <= 5) return 'Moderate';\n if (uv <= 7) return 'High';\n if (uv <= 10) return 'Very High';\n return 'Extreme';\n};\n\nexport const WeatherOverviewPage: FC = () => {\n const { weatherData, loadings, errors, refetch } = 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 { toasts, toast, dismiss } = useToast();\n const defaultCurrent = {\n temperature: 0,\n condition: 'N/A',\n feelsLike: 0,\n humidity: 0,\n windSpeed: 0,\n windDirection: '',\n uvIndex: 0,\n pressure: 0,\n visibility: 0,\n icon: '',\n };\n const current = weatherData?.current ?? defaultCurrent;\n const forecast = weatherData?.forecast ?? [];\n const alerts = weatherData?.alerts ?? [];\n const location = weatherData?.location ?? '';\n const todayForecast =\n forecast[0] ??\n ({\n high: current.temperature,\n low: current.temperature,\n precipitation: 0,\n humidity: current.humidity,\n windSpeed: current.windSpeed,\n } as const);\n\n // Derive farming recommendations from actual weather conditions\n const farmingRecommendations = useMemo(() => {\n const recs: { title: string; description: string; icon: typeof TrendingUp; iconColor: string }[] = [];\n if (current.humidity >= 40 && current.humidity <= 70 && current.temperature >= 15 && current.temperature <= 30) {\n recs.push({\n title: 'Good conditions for irrigation',\n description: `Humidity at ${current.humidity}% and ${current.temperature}°C are optimal for watering crops`,\n icon: TrendingUp,\n iconColor: 'text-success',\n });\n } else if (current.humidity > 70) {\n recs.push({\n title: 'Skip irrigation today',\n description: `Humidity is high at ${current.humidity}% — soil moisture is likely adequate`,\n icon: Droplets,\n iconColor: 'text-info',\n });\n } else {\n recs.push({\n title: 'Increase irrigation',\n description: `Low humidity at ${current.humidity}% — crops may need extra watering`,\n icon: AlertTriangle,\n iconColor: 'text-warning',\n });\n }\n const rainForecast = forecast.find((d) => d.precipitation > 50);\n if (rainForecast) {\n recs.push({\n title: 'Prepare for heavy rain',\n description: `${rainForecast.precipitation}% precipitation expected on ${new Date(rainForecast.date).toLocaleDateString('en-US', { weekday: 'short' })} — ensure proper drainage`,\n icon: AlertTriangle,\n iconColor: 'text-warning',\n });\n }\n if (current.windSpeed > 20) {\n recs.push({\n title: 'Monitor wind-sensitive crops',\n description: `Wind at ${current.windSpeed} km/h ${current.windDirection} — check support structures for tall crops`,\n icon: Wind,\n iconColor: 'text-info',\n });\n }\n if (current.uvIndex >= 8) {\n recs.push({\n title: 'High UV exposure',\n description: `UV index at ${current.uvIndex} (${getUVLabel(current.uvIndex)}) — consider shade protection for sensitive crops`,\n icon: AlertTriangle,\n iconColor: 'text-destructive',\n });\n }\n if (recs.length === 0) {\n recs.push({\n title: 'Conditions are stable',\n description: 'No immediate weather concerns for farming operations',\n icon: TrendingUp,\n iconColor: 'text-success',\n });\n }\n return recs;\n }, [current, forecast]);\n\n // Derive weather impact metrics from forecast/alert data\n const weatherImpactMetrics = useMemo(() => {\n const tempScore =\n current.temperature >= 15 && current.temperature <= 30\n ? 90\n : current.temperature >= 10 && current.temperature <= 35\n ? 60\n : 30;\n const humidityScore = current.humidity >= 40 && current.humidity <= 70 ? 85 : 50;\n const growthPercent = Math.round((tempScore + humidityScore) / 2);\n const growthLevel =\n growthPercent >= 80 ? 'Excellent' : growthPercent >= 60 ? 'Good' : growthPercent >= 40 ? 'Moderate' : 'Poor';\n const growthColor = growthPercent >= 60 ? 'bg-success' : growthPercent >= 40 ? 'bg-warning' : 'bg-destructive';\n\n const severeAlerts = alerts.filter((a) => a.severity === 'extreme' || a.severity === 'severe').length;\n const diseasePercent = Math.min(100, Math.round((current.humidity / 100) * 60 + severeAlerts * 15));\n const diseaseLevel = diseasePercent >= 70 ? 'High' : diseasePercent >= 40 ? 'Moderate' : 'Low';\n const diseaseColor = diseasePercent >= 70 ? 'bg-destructive' : diseasePercent >= 40 ? 'bg-warning' : 'bg-success';\n\n const windFactor = Math.min(100, Math.round((current.windSpeed / 50) * 100));\n const pestPercent = Math.min(100, Math.round(windFactor * 0.4 + (current.temperature > 25 ? 30 : 10)));\n const pestLevel = pestPercent >= 60 ? 'High' : pestPercent >= 30 ? 'Moderate' : 'Low';\n const pestColor = pestPercent >= 60 ? 'bg-destructive' : pestPercent >= 30 ? 'bg-warning' : 'bg-success';\n\n const avgPrecip = forecast.length > 0 ? forecast.reduce((s, d) => s + d.precipitation, 0) / forecast.length : 0;\n const irrigationPercent = Math.max(0, Math.min(100, Math.round(100 - avgPrecip - current.humidity * 0.5)));\n const irrigationLevel = irrigationPercent >= 60 ? 'High' : irrigationPercent >= 30 ? 'Moderate' : 'Low';\n const irrigationColor =\n irrigationPercent >= 60 ? 'bg-destructive' : irrigationPercent >= 30 ? 'bg-warning' : 'bg-info';\n\n return [\n { label: 'Crop Growth Conditions', level: growthLevel, percent: growthPercent, color: growthColor },\n { label: 'Disease Risk', level: diseaseLevel, percent: diseasePercent, color: diseaseColor },\n { label: 'Pest Activity', level: pestLevel, percent: pestPercent, color: pestColor },\n { label: 'Irrigation Need', level: irrigationLevel, percent: irrigationPercent, color: irrigationColor },\n ];\n }, [current, forecast, alerts]);\n\n return (\n <PageLayout\n title={t('healthybowl.weather.overview.title', 'Weather Dashboard')}\n description={`${t('healthybowl.weather.overview.descriptionPrefix', 'Real-time weather data and forecasts for')} ${location}`}\n >\n {loadings.weather ? (\n <PageLoader />\n ) : errors.weather ? (\n <ErrorState onRetry={refetch} />\n ) : (\n <>\n {/* Quick Navigation */}\n <div className=\"grid grid-cols-2 gap-3 md:grid-cols-4\">\n <button\n onClick={() => navigate('forecast')}\n className=\"inline-flex items-center gap-2 rounded-md border border-border px-3 py-2.5 text-sm text-foreground hover:bg-muted/50\"\n >\n <Calendar className=\"h-4 w-4 text-muted-foreground\" />\n {t('healthybowl.weather.overview.quickNav.extendedForecast', 'Extended Forecast')}\n </button>\n <button\n onClick={() => navigate('alerts')}\n className=\"inline-flex items-center gap-2 rounded-md border border-border px-3 py-2.5 text-sm text-foreground hover:bg-muted/50\"\n >\n <Bell className=\"h-4 w-4 text-muted-foreground\" />\n {t('healthybowl.weather.overview.quickNav.alertSettings', 'Alert Settings')}\n </button>\n <button\n onClick={() => navigate('history')}\n className=\"inline-flex items-center gap-2 rounded-md border border-border px-3 py-2.5 text-sm text-foreground hover:bg-muted/50\"\n >\n <TrendingUp className=\"h-4 w-4 text-muted-foreground\" />\n {t('healthybowl.weather.overview.quickNav.historicalData', 'Historical Data')}\n </button>\n <button\n onClick={() =>\n toast({ title: 'Weather Maps', description: 'Interactive weather maps coming soon.', variant: 'info' })\n }\n className=\"inline-flex items-center gap-2 rounded-md border border-border px-3 py-2.5 text-sm text-foreground hover:bg-muted/50\"\n >\n <MapPin className=\"h-4 w-4 text-muted-foreground\" /> Weather Maps\n </button>\n </div>\n\n {/* Weather Alerts */}\n {alerts.length > 0 && (\n <div className=\"space-y-3\">\n <div className=\"flex items-center justify-between\">\n <h2 className=\"text-base font-semibold text-foreground\">Weather Alerts</h2>\n <button\n onClick={() => navigate('alerts')}\n className=\"inline-flex items-center gap-1 text-sm text-muted-foreground hover:text-foreground\"\n >\n Manage Alerts <ChevronRight className=\"h-3.5 w-3.5\" />\n </button>\n </div>\n {alerts.map((alert) => (\n <div\n key={alert.id}\n className={`rounded-lg border border-border border-l-4 bg-card p-4 ${severityBorder(alert.severity)}`}\n >\n <div className=\"flex items-start gap-3\">\n <AlertTriangle className=\"mt-0.5 h-5 w-5 shrink-0 text-warning\" />\n <div className=\"flex-1\">\n <div className=\"flex flex-wrap items-center gap-2\">\n <h3 className=\"text-sm font-medium text-foreground\">{alert.title}</h3>\n <StatusBadge label={alert.severity} variant={severityVariant(alert.severity)} />\n </div>\n <p className=\"mt-1 text-sm text-muted-foreground\">{alert.description}</p>\n <p className=\"mt-1 text-xs text-muted-foreground\">\n Affected: {(alert.affectedAreas ?? []).join(', ')}\n </p>\n </div>\n </div>\n </div>\n ))}\n </div>\n )}\n\n {/* Current Weather + Today's Summary */}\n <div className=\"grid grid-cols-1 gap-4 lg:grid-cols-3\">\n {/* Main Current Weather Card */}\n <div className=\"rounded-lg border border-border bg-card p-6 lg:col-span-2\">\n <div className=\"mb-4 flex items-center gap-2\">\n {(() => {\n const Icon = getWeatherIcon(current.condition);\n return <Icon className=\"h-8 w-8 text-muted-foreground\" />;\n })()}\n <div>\n <h3 className=\"text-sm font-semibold text-foreground\">Current Weather</h3>\n <p className=\"text-xs text-muted-foreground\">Last updated: {new Date().toLocaleString()}</p>\n </div>\n </div>\n <div className=\"grid grid-cols-2 gap-6 md:grid-cols-4\">\n {/* Temp */}\n <div className=\"text-center\">\n <div className=\"text-3xl font-bold text-foreground\">{current.temperature}°C</div>\n <div className=\"text-sm text-muted-foreground\">Feels like {current.feelsLike}°C</div>\n <div className=\"mt-1 text-sm font-medium text-foreground\">{current.condition}</div>\n </div>\n {/* Humidity & Wind */}\n <div className=\"space-y-2\">\n <div className=\"flex items-center gap-2\">\n <Droplets className=\"h-4 w-4 text-info\" />\n <span className=\"text-sm text-foreground\">Humidity: {current.humidity}%</span>\n </div>\n <div className=\"flex items-center gap-2\">\n <Wind className=\"h-4 w-4 text-muted-foreground\" />\n <span className=\"text-sm text-foreground\">\n Wind: {current.windSpeed} km/h {current.windDirection}\n </span>\n </div>\n </div>\n {/* Pressure & Visibility */}\n <div className=\"space-y-2\">\n <div className=\"flex items-center gap-2\">\n <Gauge className=\"h-4 w-4 text-primary\" />\n <span className=\"text-sm text-foreground\">Pressure: {current.pressure} hPa</span>\n </div>\n <div className=\"flex items-center gap-2\">\n <Eye className=\"h-4 w-4 text-success\" />\n <span className=\"text-sm text-foreground\">Visibility: {current.visibility} km</span>\n </div>\n </div>\n {/* UV Index */}\n <div className=\"space-y-2\">\n <div className=\"text-sm\">\n <span className=\"text-muted-foreground\">UV Index: </span>\n <span className=\"font-medium text-foreground\">\n {current.uvIndex} ({getUVLabel(current.uvIndex)})\n </span>\n </div>\n </div>\n </div>\n </div>\n\n {/* Today's Summary */}\n <div className=\"rounded-lg border border-border bg-card p-6\">\n <h3 className=\"text-sm font-semibold text-foreground\">Today's Summary</h3>\n <div className=\"mt-4 space-y-4\">\n <div className=\"flex items-center justify-between\">\n <span className=\"text-sm text-muted-foreground\">High</span>\n <div className=\"flex items-center gap-1\">\n <ArrowUp className=\"h-3.5 w-3.5 text-destructive\" />\n <span className=\"font-medium text-foreground\">{todayForecast.high}°C</span>\n </div>\n </div>\n <div className=\"flex items-center justify-between\">\n <span className=\"text-sm text-muted-foreground\">Low</span>\n <div className=\"flex items-center gap-1\">\n <ArrowDown className=\"h-3.5 w-3.5 text-info\" />\n <span className=\"font-medium text-foreground\">{todayForecast.low}°C</span>\n </div>\n </div>\n <div className=\"flex items-center justify-between\">\n <span className=\"text-sm text-muted-foreground\">Precipitation</span>\n <span className=\"font-medium text-foreground\">{todayForecast.precipitation}%</span>\n </div>\n <div className=\"flex items-center justify-between\">\n <span className=\"text-sm text-muted-foreground\">Humidity</span>\n <span className=\"font-medium text-foreground\">{todayForecast.humidity}%</span>\n </div>\n <div className=\"flex items-center justify-between\">\n <span className=\"text-sm text-muted-foreground\">Wind Speed</span>\n <span className=\"font-medium text-foreground\">{todayForecast.windSpeed} km/h</span>\n </div>\n </div>\n </div>\n </div>\n\n {/* 7-Day Forecast */}\n <div className=\"rounded-lg border border-border bg-card p-6\">\n <div className=\"mb-4 flex items-center justify-between\">\n <div>\n <h3 className=\"text-base font-semibold text-foreground\">7-Day Forecast</h3>\n <p className=\"text-xs text-muted-foreground\">Click on any day for detailed forecast</p>\n </div>\n <button\n onClick={() => navigate('forecast')}\n className=\"inline-flex items-center gap-1 text-sm text-muted-foreground hover:text-foreground\"\n >\n View Extended Forecast <ChevronRight className=\"h-3.5 w-3.5\" />\n </button>\n </div>\n <div className=\"space-y-2\">\n {forecast.slice(0, 7).map((day, index) => {\n const Icon = getWeatherIcon(day.condition);\n return (\n <div\n key={day.date}\n onClick={() => navigate('forecast')}\n className=\"flex cursor-pointer items-center justify-between rounded-lg px-3 py-2.5 transition-colors hover:bg-muted/50\"\n >\n <div className=\"flex items-center gap-3 flex-1\">\n <span className=\"w-14 text-sm font-medium text-foreground\">\n {index === 0 ? 'Today' : new Date(day.date).toLocaleDateString('en-US', { weekday: 'short' })}\n </span>\n <Icon className=\"h-5 w-5 text-muted-foreground\" />\n <span className=\"text-sm text-foreground\">{day.condition}</span>\n </div>\n <div className=\"flex items-center gap-4 text-sm\">\n <div className=\"flex items-center gap-1\">\n <Droplets className=\"h-3 w-3 text-info\" />\n <span className=\"text-foreground\">{day.precipitation}%</span>\n </div>\n <div className=\"flex items-center gap-2\">\n <span className=\"font-medium text-foreground\">{day.high}°</span>\n <span className=\"text-muted-foreground\">{day.low}°</span>\n </div>\n </div>\n </div>\n );\n })}\n </div>\n </div>\n\n {/* Farming Recommendations + Weather Impact */}\n <div className=\"grid grid-cols-1 gap-4 md:grid-cols-2\">\n {/* Farming Recommendations - derived from current weather data */}\n <div className=\"rounded-lg border border-border bg-card p-6\">\n <h3 className=\"text-base font-semibold text-foreground\">Farming Recommendations</h3>\n <p className=\"text-xs text-muted-foreground\">AI-powered insights based on current conditions</p>\n <div className=\"mt-4 space-y-3\">\n {farmingRecommendations.map((rec) => {\n const Icon = rec.icon;\n return (\n <div key={rec.title} className=\"flex items-start gap-3 rounded-lg bg-muted/50 p-3\">\n <Icon className={`mt-0.5 h-5 w-5 shrink-0 ${rec.iconColor}`} />\n <div>\n <p className=\"text-sm font-medium text-foreground\">{rec.title}</p>\n <p className=\"text-xs text-muted-foreground\">{rec.description}</p>\n </div>\n </div>\n );\n })}\n </div>\n </div>\n\n {/* Weather Impact Analysis - derived from forecast/alert data */}\n <div className=\"rounded-lg border border-border bg-card p-6\">\n <h3 className=\"text-base font-semibold text-foreground\">Weather Impact Analysis</h3>\n <p className=\"text-xs text-muted-foreground\">Impact on farming operations</p>\n <div className=\"mt-4 space-y-4\">\n {weatherImpactMetrics.map(({ label, level, percent, color }) => (\n <div key={label}>\n <div className=\"mb-1.5 flex items-center justify-between\">\n <span className=\"text-sm font-medium text-foreground\">{label}</span>\n <span className=\"text-sm font-medium text-muted-foreground\">{level}</span>\n </div>\n <div className=\"h-2 w-full rounded-full bg-muted\">\n <div className={`h-2 rounded-full transition-all ${color}`} style={{ width: `${percent}%` }} />\n </div>\n </div>\n ))}\n </div>\n </div>\n </div>\n </>\n )}\n\n <ToastContainer toasts={toasts} onDismiss={dismiss} />\n </PageLayout>\n );\n};\n"],"mappings":";;;;;;;;;;;;;;AA0BA,IAAM,KAAmB,MACvB,MAAM,aAAa,MAAM,WAAY,UAAoB,M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C,KAAD;UAAG,WAAU;oBAAiC,EAAI;UAAgB,CAAA,CAC9D,EAAA,CAAA,CACF;WANI,EAAI,MAMR;SAER;OACE,CAAA;MACF;QAGN,kBAAC,OAAD;KAAK,WAAU;eAAf;MACE,kBAAC,MAAD;OAAI,WAAU;iBAA0C;OAA4B,CAAA;MACpF,kBAAC,KAAD;OAAG,WAAU;iBAAgC;OAAgC,CAAA;MAC7E,kBAAC,OAAD;OAAK,WAAU;iBACZ,EAAqB,KAAK,EAAE,UAAO,UAAO,YAAS,eAClD,kBAAC,OAAD,EAAA,UAAA,CACE,kBAAC,OAAD;QAAK,WAAU;kBAAf,CACE,kBAAC,QAAD;SAAM,WAAU;mBAAuC;SAAa,CAAA,EACpE,kBAAC,QAAD;SAAM,WAAU;mBAA6C;SAAa,CAAA,CACtE;WACN,kBAAC,OAAD;QAAK,WAAU;kBACb,kBAAC,OAAD;SAAK,WAAW,mCAAmC;SAAS,OAAO,EAAE,OAAO,GAAG,EAAQ,IAAI;SAAI,CAAA;QAC3F,CAAA,CACF,EAAA,EARI,EAQJ,CACN;OACE,CAAA;MACF;OACF;;GACL,EAAA,CAAA,EAGL,kBAAC,GAAD;GAAwB;GAAQ,WAAW;GAAW,CAAA,CAC3C"}
@@ -2,7 +2,11 @@ import { create as e } from "zustand";
2
2
  import { devtools as t, persist as n } from "zustand/middleware";
3
3
  import { createProfileScopedStorage as r } from "@burdenoff/fe-libs/shared/utils";
4
4
  //#region src/healthybowl/store/healthybowlStore.ts
5
- var i = e()(t(n((e, t) => ({
5
+ var i = [
6
+ "grid",
7
+ "list",
8
+ "table"
9
+ ], a = e()(t(n((e, t) => ({
6
10
  viewMode: "grid",
7
11
  setViewMode: (t) => e({ viewMode: t }),
8
12
  activeModule: "dashboard",
@@ -38,9 +42,21 @@ var i = e()(t(n((e, t) => ({
38
42
  clearWishlist: () => e({ wishlist: /* @__PURE__ */ new Set() })
39
43
  }), {
40
44
  name: "healthybowl-store",
41
- storage: r()
45
+ storage: r(),
46
+ partialize: (e) => ({
47
+ viewMode: e.viewMode,
48
+ sidebarCollapsed: e.sidebarCollapsed
49
+ }),
50
+ merge: (e, t) => {
51
+ let n = e ?? {};
52
+ return {
53
+ ...t,
54
+ viewMode: n.viewMode && i.includes(n.viewMode) ? n.viewMode : t.viewMode,
55
+ sidebarCollapsed: typeof n.sidebarCollapsed == "boolean" ? n.sidebarCollapsed : t.sidebarCollapsed
56
+ };
57
+ }
42
58
  }), { name: "healthybowl-store" }));
43
59
  //#endregion
44
- export { i as useHealthyBowlStore };
60
+ export { a as useHealthyBowlStore };
45
61
 
46
62
  //# sourceMappingURL=healthybowlStore.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"healthybowlStore.js","names":[],"sources":["../../../src/healthybowl/store/healthybowlStore.ts"],"sourcesContent":["/**\n * HealthyBowl Zustand Store\n * UI state management for the HealthyBowl microfrontend.\n * @module healthybowl\n */\n\nimport { create } from 'zustand';\nimport { devtools, persist } from 'zustand/middleware';\nimport { createProfileScopedStorage } from '@burdenoff/fe-libs/shared/utils';\n\nexport type ViewMode = 'grid' | 'list' | 'table';\n\nexport interface CartEntry {\n id: string;\n productId: string;\n name: string;\n price: number;\n unit: string;\n quantity: number;\n seller: string;\n}\n\ninterface HealthyBowlState {\n // View preferences\n viewMode: ViewMode;\n setViewMode: (mode: ViewMode) => void;\n\n // Active module tracking\n activeModule: string;\n setActiveModule: (module: string) => void;\n\n // Search/filter state\n searchQuery: string;\n setSearchQuery: (query: string) => void;\n\n // Selected items (for bulk operations)\n selectedItems: string[];\n toggleSelectedItem: (id: string) => void;\n clearSelectedItems: () => void;\n\n // Sidebar collapse state\n sidebarCollapsed: boolean;\n toggleSidebar: () => void;\n\n // Shopping cart\n cart: CartEntry[];\n addToCart: (item: Omit<CartEntry, 'id' | 'quantity'>) => void;\n removeFromCart: (productId: string) => void;\n updateCartQuantity: (productId: string, quantity: number) => void;\n clearCart: () => void;\n getCartItemCount: () => number;\n\n // Wishlist\n wishlist: Set<string>;\n toggleWishlist: (id: string) => void;\n clearWishlist: () => void;\n}\n\nexport const useHealthyBowlStore = create<HealthyBowlState>()(\n devtools(\n persist(\n (set, get) => ({\n viewMode: 'grid',\n setViewMode: (mode) => set({ viewMode: mode }),\n\n activeModule: 'dashboard',\n setActiveModule: (module) => set({ activeModule: module }),\n\n searchQuery: '',\n setSearchQuery: (query) => set({ searchQuery: query }),\n\n selectedItems: [],\n toggleSelectedItem: (id) =>\n set((state) => ({\n selectedItems: state.selectedItems.includes(id)\n ? state.selectedItems.filter((item) => item !== id)\n : [...state.selectedItems, id],\n })),\n clearSelectedItems: () => set({ selectedItems: [] }),\n\n sidebarCollapsed: false,\n toggleSidebar: () => set((state) => ({ sidebarCollapsed: !state.sidebarCollapsed })),\n\n // Shopping cart\n cart: [],\n addToCart: (item) =>\n set((state) => {\n const existing = state.cart.find((c) => c.productId === item.productId);\n if (existing) {\n return {\n cart: state.cart.map((c) => (c.productId === item.productId ? { ...c, quantity: c.quantity + 1 } : c)),\n };\n }\n return {\n cart: [\n ...state.cart,\n {\n ...item,\n id: `cart-${Date.now()}-${item.productId}`,\n quantity: 1,\n },\n ],\n };\n }),\n removeFromCart: (productId) =>\n set((state) => ({\n cart: state.cart.filter((c) => c.productId !== productId),\n })),\n updateCartQuantity: (productId, quantity) =>\n set((state) => ({\n cart:\n quantity <= 0\n ? state.cart.filter((c) => c.productId !== productId)\n : state.cart.map((c) => (c.productId === productId ? { ...c, quantity } : c)),\n })),\n clearCart: () => set({ cart: [] }),\n getCartItemCount: () => get().cart.reduce((sum, c) => sum + c.quantity, 0),\n\n // Wishlist\n wishlist: new Set<string>(),\n toggleWishlist: (id) =>\n set((state) => {\n const next = new Set(state.wishlist);\n if (next.has(id)) {\n next.delete(id);\n } else {\n next.add(id);\n }\n return { wishlist: next };\n }),\n clearWishlist: () => set({ wishlist: new Set<string>() }),\n }),\n { name: 'healthybowl-store', storage: createProfileScopedStorage() }\n ),\n { name: 'healthybowl-store' }\n )\n);\n"],"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AE,MAAM,EAAE,EAAE,CAAC;CAClC,wBAAwB,GAAK,CAAC,KAAK,QAAQ,GAAK,MAAM,IAAM,EAAE,UAAU,EAAE;CAG1E,0BAAU,IAAI,KAAa;CAC3B,iBAAiB,MACf,GAAK,MAAU;EACb,IAAM,IAAO,IAAI,IAAI,EAAM,SAAS;AAMpC,SALI,EAAK,IAAI,EAAG,GACd,EAAK,OAAO,EAAG,GAEf,EAAK,IAAI,EAAG,EAEP,EAAE,UAAU,GAAM;GACzB;CACJ,qBAAqB,EAAI,EAAE,0BAAU,IAAI,KAAa,EAAE,CAAC;CAC1D,GACD;CAAE,MAAM;CAAqB,SAAS,GAA4B;CAAE,CACrE,EACD,EAAE,MAAM,qBAAqB,CAC9B,CACF"}
1
+ {"version":3,"file":"healthybowlStore.js","names":[],"sources":["../../../src/healthybowl/store/healthybowlStore.ts"],"sourcesContent":["/**\n * HealthyBowl Zustand Store\n * UI state management for the HealthyBowl microfrontend.\n * @module healthybowl\n */\n\nimport { create } from 'zustand';\nimport { devtools, persist } from 'zustand/middleware';\nimport { createProfileScopedStorage } from '@burdenoff/fe-libs/shared/utils';\n\nexport const VIEW_MODES = ['grid', 'list', 'table'] as const;\nexport type ViewMode = (typeof VIEW_MODES)[number];\n\nexport interface CartEntry {\n id: string;\n productId: string;\n name: string;\n price: number;\n unit: string;\n quantity: number;\n seller: string;\n}\n\nexport interface HealthyBowlState {\n // View preferences\n viewMode: ViewMode;\n setViewMode: (mode: ViewMode) => void;\n\n // Active module tracking\n activeModule: string;\n setActiveModule: (module: string) => void;\n\n // Search/filter state\n searchQuery: string;\n setSearchQuery: (query: string) => void;\n\n // Selected items (for bulk operations)\n selectedItems: string[];\n toggleSelectedItem: (id: string) => void;\n clearSelectedItems: () => void;\n\n // Sidebar collapse state\n sidebarCollapsed: boolean;\n toggleSidebar: () => void;\n\n // Shopping cart\n cart: CartEntry[];\n addToCart: (item: Omit<CartEntry, 'id' | 'quantity'>) => void;\n removeFromCart: (productId: string) => void;\n updateCartQuantity: (productId: string, quantity: number) => void;\n clearCart: () => void;\n getCartItemCount: () => number;\n\n // Wishlist\n wishlist: Set<string>;\n toggleWishlist: (id: string) => void;\n clearWishlist: () => void;\n}\n\nexport const useHealthyBowlStore = create<HealthyBowlState>()(\n devtools(\n persist(\n (set, get) => ({\n viewMode: 'grid',\n setViewMode: (mode) => set({ viewMode: mode }),\n\n activeModule: 'dashboard',\n setActiveModule: (module) => set({ activeModule: module }),\n\n searchQuery: '',\n setSearchQuery: (query) => set({ searchQuery: query }),\n\n selectedItems: [],\n toggleSelectedItem: (id) =>\n set((state) => ({\n selectedItems: state.selectedItems.includes(id)\n ? state.selectedItems.filter((item) => item !== id)\n : [...state.selectedItems, id],\n })),\n clearSelectedItems: () => set({ selectedItems: [] }),\n\n sidebarCollapsed: false,\n toggleSidebar: () => set((state) => ({ sidebarCollapsed: !state.sidebarCollapsed })),\n\n // Shopping cart\n cart: [],\n addToCart: (item) =>\n set((state) => {\n const existing = state.cart.find((c) => c.productId === item.productId);\n if (existing) {\n return {\n cart: state.cart.map((c) => (c.productId === item.productId ? { ...c, quantity: c.quantity + 1 } : c)),\n };\n }\n return {\n cart: [\n ...state.cart,\n {\n ...item,\n id: `cart-${Date.now()}-${item.productId}`,\n quantity: 1,\n },\n ],\n };\n }),\n removeFromCart: (productId) =>\n set((state) => ({\n cart: state.cart.filter((c) => c.productId !== productId),\n })),\n updateCartQuantity: (productId, quantity) =>\n set((state) => ({\n cart:\n quantity <= 0\n ? state.cart.filter((c) => c.productId !== productId)\n : state.cart.map((c) => (c.productId === productId ? { ...c, quantity } : c)),\n })),\n clearCart: () => set({ cart: [] }),\n getCartItemCount: () => get().cart.reduce((sum, c) => sum + c.quantity, 0),\n\n // Wishlist\n wishlist: new Set<string>(),\n toggleWishlist: (id) =>\n set((state) => {\n const next = new Set(state.wishlist);\n if (next.has(id)) {\n next.delete(id);\n } else {\n next.add(id);\n }\n return { wishlist: next };\n }),\n clearWishlist: () => set({ wishlist: new Set<string>() }),\n }),\n {\n name: 'healthybowl-store',\n storage: createProfileScopedStorage(),\n // Persist ONLY durable UI preferences. cart + wishlist are session-only\n // by design — the marketplace pages explicitly tell users they reset on\n // refresh — and `wishlist` is a `Set`, which JSON-serializes to `{}` and\n // rehydrates as a plain object with no `.has()` / no iterator. Persisting\n // the whole state (the previous behaviour) is what produced the\n // \"wishlist.has is not a function\" crash on the marketplace page (and a\n // \"object is not iterable\" on toggle).\n partialize: (state) => ({\n viewMode: state.viewMode,\n sidebarCollapsed: state.sidebarCollapsed,\n }),\n // Hydrate path: restore only the two safe prefs onto the fresh initial\n // state. This also rescues users who already have a poisoned\n // `wishlist: {}` (or a stale session cart) written by the earlier build —\n // those legacy fields are ignored rather than merged, so `wishlist` stays\n // the real `new Set()`. `partialize` alone cannot do this: it filters the\n // write path only, never the rehydrate merge.\n merge: (persisted, current) => {\n const saved = (persisted ?? {}) as Partial<Pick<HealthyBowlState, 'viewMode' | 'sidebarCollapsed'>>;\n // Validate persisted values — a corrupt/tampered localStorage value\n // (e.g. viewMode \"invalid\", sidebarCollapsed \"yes\") would otherwise\n // slip past a `??` guard. VIEW_MODES is the single source of truth.\n return {\n ...current,\n viewMode: saved.viewMode && VIEW_MODES.includes(saved.viewMode) ? saved.viewMode : current.viewMode,\n sidebarCollapsed:\n typeof saved.sidebarCollapsed === 'boolean' ? saved.sidebarCollapsed : current.sidebarCollapsed,\n };\n },\n }\n ),\n { name: 'healthybowl-store' }\n )\n);\n"],"mappings":";;;;AAUA,IAAa,IAAa;CAAC;CAAQ;CAAQ;CAAQ,EAiDtC,IAAsB,GAA0B,CAC3D,EACE,GACG,GAAK,OAAS;CACb,UAAU;CACV,cAAc,MAAS,EAAI,EAAE,UAAU,GAAM,CAAC;CAE9C,cAAc;CACd,kBAAkB,MAAW,EAAI,EAAE,cAAc,GAAQ,CAAC;CAE1D,aAAa;CACb,iBAAiB,MAAU,EAAI,EAAE,aAAa,GAAO,CAAC;CAEtD,eAAe,EAAE;C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AI,EAAG,EAEP,EAAE,UAAU,GAAM;GACzB;CACJ,qBAAqB,EAAI,EAAE,0BAAU,IAAI,KAAa,EAAE,CAAC;CAC1D,GACD;CACE,MAAM;CACN,SAAS,GAA4B;CAQrC,aAAa,OAAW;EACtB,UAAU,EAAM;EAChB,kBAAkB,EAAM;EACzB;CAOD,QAAQ,GAAW,MAAY;EAC7B,IAAM,IAAS,KAAa,EAAE;AAI9B,SAAO;GACL,GAAG;GACH,UAAU,EAAM,YAAY,EAAW,SAAS,EAAM,SAAS,GAAG,EAAM,WAAW,EAAQ;GAC3F,kBACE,OAAO,EAAM,oBAAqB,YAAY,EAAM,mBAAmB,EAAQ;GAClF;;CAEJ,CACF,EACD,EAAE,MAAM,qBAAqB,CAC9B,CACF"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@burdenoff/microfe-healthybowl",
3
- "version": "2026.610.5",
3
+ "version": "2026.611.1",
4
4
  "description": "Burdenoff HealthyBowl Microfrontend - Comprehensive organic farming and agro-foods management platform",
5
5
  "type": "module",
6
6
  "files": [