@burdenoff/microfe-healthybowl 2026.1125.2 → 2026.1125.3

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.
Files changed (185) hide show
  1. package/dist/healthybowl/HealthyBowlRoutes.js +1 -2
  2. package/dist/healthybowl/pageTwins/CropsRail.d.ts +16 -0
  3. package/dist/healthybowl/pageTwins/CropsRail.js +30 -0
  4. package/dist/healthybowl/pageTwins/PageTwins.d.ts +16 -0
  5. package/dist/healthybowl/pageTwins/PageTwins.js +266 -0
  6. package/dist/healthybowl/pageTwins/RouteLoader.d.ts +12 -0
  7. package/dist/healthybowl/pageTwins/RouteLoader.js +21 -0
  8. package/dist/healthybowl/pageTwins/chips.d.ts +39 -0
  9. package/dist/healthybowl/pageTwins/chips.js +36 -0
  10. package/dist/healthybowl/pageTwins/skeletons.d.ts +28 -0
  11. package/dist/healthybowl/pageTwins/skeletons.js +63 -0
  12. package/dist/healthybowl/pages/GettingStartedPage.js +5 -5
  13. package/dist/healthybowl/pages/HomePage.js +32 -36
  14. package/dist/healthybowl/pages/agri-inputs/AgriInputsStorePage.js +158 -158
  15. package/dist/healthybowl/pages/ai/AiDecisionsPage.js +36 -36
  16. package/dist/healthybowl/pages/ai/FarmAttentionPage.js +42 -42
  17. package/dist/healthybowl/pages/analytics/AnalyticsDashboardPage.js +5 -5
  18. package/dist/healthybowl/pages/analytics/AnalyticsOverviewPage.js +5 -5
  19. package/dist/healthybowl/pages/analytics/ExportPage.js +7 -7
  20. package/dist/healthybowl/pages/analytics/InsightsPage.js +5 -5
  21. package/dist/healthybowl/pages/analytics/ReportsPage.js +9 -9
  22. package/dist/healthybowl/pages/catalog/PlantCatalogPage.js +5 -5
  23. package/dist/healthybowl/pages/compliance/CertificatesOfOriginPage.js +12 -12
  24. package/dist/healthybowl/pages/compliance/CertificationStandardDetailPage.js +14 -14
  25. package/dist/healthybowl/pages/compliance/ComplianceAlertsPage.js +24 -24
  26. package/dist/healthybowl/pages/compliance/ComplianceAuditsPage.js +13 -13
  27. package/dist/healthybowl/pages/compliance/ComplianceDocumentsPage.js +11 -11
  28. package/dist/healthybowl/pages/compliance/ComplianceOverviewPage.js +10 -10
  29. package/dist/healthybowl/pages/compliance/IcsGroupDetailPage.js +26 -26
  30. package/dist/healthybowl/pages/compliance/IcsGroupsPage.js +81 -81
  31. package/dist/healthybowl/pages/compliance/IcsGrowerDetailPage.js +12 -12
  32. package/dist/healthybowl/pages/compliance/IcsGrowerWizardPage.js +9 -9
  33. package/dist/healthybowl/pages/compliance/InspectionCalendarPage.js +6 -6
  34. package/dist/healthybowl/pages/compliance/OrganicCertificationPage.js +9 -9
  35. package/dist/healthybowl/pages/compliance/ResidueTestsPage.js +13 -13
  36. package/dist/healthybowl/pages/compliance/SubstanceRulesPage.js +11 -11
  37. package/dist/healthybowl/pages/consultant/ConsultantClientsPage.js +17 -17
  38. package/dist/healthybowl/pages/consultant/ConsultantDiagnosisPage.js +184 -184
  39. package/dist/healthybowl/pages/consultant/FarmerAdvisorsPage.js +7 -7
  40. package/dist/healthybowl/pages/contacts/ContactDetailPage.js +19 -19
  41. package/dist/healthybowl/pages/contacts/ContactsPage.js +17 -17
  42. package/dist/healthybowl/pages/contracts/ContractsPage.js +103 -103
  43. package/dist/healthybowl/pages/coop/AggregationLotBuilderPage.js +14 -14
  44. package/dist/healthybowl/pages/coop/CoopMemberDetailPage.js +13 -13
  45. package/dist/healthybowl/pages/coop/CoopOverviewPage.js +17 -17
  46. package/dist/healthybowl/pages/crops/CropDetailsPage.js +5 -5
  47. package/dist/healthybowl/pages/crops/CropFieldsPage.js +19 -19
  48. package/dist/healthybowl/pages/crops/CropHarvestPage.js +158 -158
  49. package/dist/healthybowl/pages/crops/CropPlanningPage.js +510 -510
  50. package/dist/healthybowl/pages/crops/CropsPage.js +74 -94
  51. package/dist/healthybowl/pages/crops/FieldDetailsPage.js +21 -21
  52. package/dist/healthybowl/pages/crops/HarvestDetailsPage.js +407 -407
  53. package/dist/healthybowl/pages/crops/PlanningDetailsPage.js +409 -409
  54. package/dist/healthybowl/pages/crops/PlantingCalendarPage.js +3 -3
  55. package/dist/healthybowl/pages/distribution/CsaPlanDetailPage.js +60 -60
  56. package/dist/healthybowl/pages/distribution/CsaPlansPage.js +49 -49
  57. package/dist/healthybowl/pages/distribution/DeliveryRouteDetailPage.js +19 -19
  58. package/dist/healthybowl/pages/distribution/DeliveryRoutesPage.js +16 -16
  59. package/dist/healthybowl/pages/distribution/DistributionOverviewPage.js +18 -18
  60. package/dist/healthybowl/pages/distribution/PickupLocationsPage.js +20 -20
  61. package/dist/healthybowl/pages/distribution/PickupManifestPage.js +14 -14
  62. package/dist/healthybowl/pages/distribution/WholesaleOrdersPage.js +44 -44
  63. package/dist/healthybowl/pages/farm/FarmProfilePage.js +6 -6
  64. package/dist/healthybowl/pages/field-capture/ObservationLogPage.js +11 -11
  65. package/dist/healthybowl/pages/fields/FieldMapPage.js +881 -881
  66. package/dist/healthybowl/pages/financial/AccountingIntegrationsPage.js +11 -11
  67. package/dist/healthybowl/pages/financial/BankReconciliationPage.js +18 -18
  68. package/dist/healthybowl/pages/financial/BudgetManagementPage.js +178 -178
  69. package/dist/healthybowl/pages/financial/ChartOfAccountsPage.js +6 -6
  70. package/dist/healthybowl/pages/financial/CostByCropPage.js +10 -10
  71. package/dist/healthybowl/pages/financial/FarmAccountingPage.js +11 -11
  72. package/dist/healthybowl/pages/financial/FinancialDashboardPage.js +6 -9
  73. package/dist/healthybowl/pages/financial/FinancierAccessPage.js +60 -60
  74. package/dist/healthybowl/pages/financial/GeneralLedgerPage.js +6 -6
  75. package/dist/healthybowl/pages/financial/InvoiceManagementPage.js +17 -17
  76. package/dist/healthybowl/pages/financial/MachinerySpendPage.js +4 -4
  77. package/dist/healthybowl/pages/financial/TransactionsPage.js +15 -15
  78. package/dist/healthybowl/pages/financier/FinancierPage.js +21 -21
  79. package/dist/healthybowl/pages/government-schemes/ApplicationTrackingPage.js +119 -119
  80. package/dist/healthybowl/pages/government-schemes/CommunicationPage.js +218 -218
  81. package/dist/healthybowl/pages/government-schemes/GovernmentDashboardPage.js +10 -10
  82. package/dist/healthybowl/pages/government-schemes/SchemeAdminPage.js +193 -193
  83. package/dist/healthybowl/pages/government-schemes/SchemeDetailsPage.js +50 -50
  84. package/dist/healthybowl/pages/government-schemes/SchemeDiscoveryPage.js +13 -13
  85. package/dist/healthybowl/pages/government-schemes/SchemesOverviewPage.js +48 -48
  86. package/dist/healthybowl/pages/government-schemes/TrainingProgramsPage.js +48 -48
  87. package/dist/healthybowl/pages/inputs-insurance/ClaimDetailPage.js +6 -6
  88. package/dist/healthybowl/pages/inputs-insurance/InputsInsuranceOverviewPage.js +71 -71
  89. package/dist/healthybowl/pages/inputs-insurance/LoanAccountingDetailPage.js +249 -249
  90. package/dist/healthybowl/pages/inputs-insurance/LoanFacilitationPage.js +8 -8
  91. package/dist/healthybowl/pages/inputs-insurance/PolicyClaimsPage.js +6 -6
  92. package/dist/healthybowl/pages/irrigation/IrrigationPage.js +462 -462
  93. package/dist/healthybowl/pages/labour/LabourRosterPage.js +226 -226
  94. package/dist/healthybowl/pages/learn/LearnCatalogPage.js +5 -5
  95. package/dist/healthybowl/pages/livestock/AnimalDepthPage.js +10 -10
  96. package/dist/healthybowl/pages/livestock/AnimalDetailsPage.js +507 -507
  97. package/dist/healthybowl/pages/livestock/BreedingManagementPage.js +13 -13
  98. package/dist/healthybowl/pages/livestock/FeedManagementPage.js +24 -24
  99. package/dist/healthybowl/pages/livestock/GrazingPage.js +245 -245
  100. package/dist/healthybowl/pages/livestock/HealthRecordsPage.js +409 -409
  101. package/dist/healthybowl/pages/livestock/HerdDepthPage.js +14 -14
  102. package/dist/healthybowl/pages/livestock/LivestockDashboardPage.js +228 -244
  103. package/dist/healthybowl/pages/livestock/MedicationLibraryPage.js +10 -10
  104. package/dist/healthybowl/pages/livestock/ProductionTrackingPage.js +15 -15
  105. package/dist/healthybowl/pages/livestock/VaccinationSchedulePage.js +13 -13
  106. package/dist/healthybowl/pages/livestock/WithdrawalAlertsPage.js +114 -114
  107. package/dist/healthybowl/pages/livestock/WithdrawalCalendarPage.js +4 -4
  108. package/dist/healthybowl/pages/market/MarketPricesPage.js +164 -164
  109. package/dist/healthybowl/pages/marketplace/AuctionsView.js +25 -25
  110. package/dist/healthybowl/pages/marketplace/CartPage.js +218 -218
  111. package/dist/healthybowl/pages/marketplace/MarketplacePage.js +49 -49
  112. package/dist/healthybowl/pages/marketplace/OrdersPage.js +18 -18
  113. package/dist/healthybowl/pages/marketplace/ProductDetailPage.js +11 -11
  114. package/dist/healthybowl/pages/marketplace/SharedMarketView.js +15 -15
  115. package/dist/healthybowl/pages/marketplace/ShipmentTrackingPanel.js +4 -4
  116. package/dist/healthybowl/pages/marketplace/WishlistPage.js +11 -11
  117. package/dist/healthybowl/pages/network/CohortsPage.js +136 -136
  118. package/dist/healthybowl/pages/network/CommunityPage.js +280 -280
  119. package/dist/healthybowl/pages/network/EventsPage.js +207 -207
  120. package/dist/healthybowl/pages/network/ExpertsPage.js +18 -18
  121. package/dist/healthybowl/pages/network/MentorsPage.js +504 -504
  122. package/dist/healthybowl/pages/network/NetworkOverviewPage.js +22 -22
  123. package/dist/healthybowl/pages/nursery/NurseryProvenancePage.js +10 -10
  124. package/dist/healthybowl/pages/pest-management/PestIssuesPage.js +14 -14
  125. package/dist/healthybowl/pages/pest-management/PestMonitoringPage.js +9 -9
  126. package/dist/healthybowl/pages/pest-management/PestOverviewPage.js +11 -11
  127. package/dist/healthybowl/pages/pest-management/TreatmentLibraryPage.js +12 -12
  128. package/dist/healthybowl/pages/production/ProductionBatchesPage.js +11 -11
  129. package/dist/healthybowl/pages/production/ProductionPlanningPage.js +10 -10
  130. package/dist/healthybowl/pages/production/ProductionSchedulePage.js +5 -5
  131. package/dist/healthybowl/pages/production/RecipeManagementPage.js +12 -12
  132. package/dist/healthybowl/pages/production/ValueAddedProductsPage.js +8 -8
  133. package/dist/healthybowl/pages/products/BatchesPage.js +247 -247
  134. package/dist/healthybowl/pages/products/InventoryPage.js +8 -8
  135. package/dist/healthybowl/pages/products/ProductsOverviewPage.js +279 -279
  136. package/dist/healthybowl/pages/products/QualityPage.js +17 -17
  137. package/dist/healthybowl/pages/reports-api/ReportsApiPage.js +10 -10
  138. package/dist/healthybowl/pages/satellite/CropHealthAlertsPage.js +5 -5
  139. package/dist/healthybowl/pages/satellite/NdviComparePanel.js +11 -11
  140. package/dist/healthybowl/pages/satellite/SatelliteCropHealthPage.js +17 -17
  141. package/dist/healthybowl/pages/satellite/SatelliteFieldDetailPage.js +188 -188
  142. package/dist/healthybowl/pages/satellite/SatelliteSettingsPage.js +8 -8
  143. package/dist/healthybowl/pages/soil/FieldSensorsPage.js +14 -14
  144. package/dist/healthybowl/pages/soil/SoilDashboardPage.js +8 -8
  145. package/dist/healthybowl/pages/soil/SoilMonitoringPage.js +5 -5
  146. package/dist/healthybowl/pages/soil/SoilRecommendationsPage.js +14 -14
  147. package/dist/healthybowl/pages/soil/SoilTestsPage.js +12 -12
  148. package/dist/healthybowl/pages/storage/StorageLotDetailPage.js +10 -10
  149. package/dist/healthybowl/pages/storage/StoragePage.js +6 -6
  150. package/dist/healthybowl/pages/suppliers/SuppliersPage.js +430 -430
  151. package/dist/healthybowl/pages/sustainability/CarbonCreditLedgerPage.js +12 -12
  152. package/dist/healthybowl/pages/sustainability/CarbonGhgPage.js +165 -165
  153. package/dist/healthybowl/pages/sustainability/EudrDueDiligencePage.js +8 -8
  154. package/dist/healthybowl/pages/sustainability/GenerateCreditWizardPage.js +6 -6
  155. package/dist/healthybowl/pages/sustainability/SoilCarbonPage.js +101 -101
  156. package/dist/healthybowl/pages/sustainability/SustainabilityOverviewPage.js +130 -130
  157. package/dist/healthybowl/pages/tasks/JobCardPage.js +11 -11
  158. package/dist/healthybowl/pages/tasks/TasksPage.js +36 -36
  159. package/dist/healthybowl/pages/terrace/CareSchedulePage.js +8 -8
  160. package/dist/healthybowl/pages/terrace/CompostInputsPage.js +247 -247
  161. package/dist/healthybowl/pages/terrace/GardenDashboardPage.js +12 -12
  162. package/dist/healthybowl/pages/terrace/GardenJournalPage.js +9 -9
  163. package/dist/healthybowl/pages/terrace/GrowSpacesPage.js +8 -8
  164. package/dist/healthybowl/pages/terrace/HarvestsPage.js +44 -44
  165. package/dist/healthybowl/pages/terrace/MyGardensPage.js +8 -8
  166. package/dist/healthybowl/pages/terrace/PlantingDetailPage.js +11 -11
  167. package/dist/healthybowl/pages/terrace/PlantingsPage.js +9 -9
  168. package/dist/healthybowl/pages/terrace/WhatToGrowPage.js +25 -25
  169. package/dist/healthybowl/pages/traceability/BatchTrackingPage.js +193 -193
  170. package/dist/healthybowl/pages/traceability/QRCodesPage.js +8 -8
  171. package/dist/healthybowl/pages/traceability/SupplyChainPage.js +7 -7
  172. package/dist/healthybowl/pages/traceability/TraceScanActivityPage.js +4 -4
  173. package/dist/healthybowl/pages/traceability/TraceTrackingPage.js +7 -7
  174. package/dist/healthybowl/pages/traceability/UnifiedTraceBatchPage.js +4 -4
  175. package/dist/healthybowl/pages/wallet/CreditsWalletPage.js +27 -27
  176. package/dist/healthybowl/pages/weather/FrostRiskCalendarPage.js +6 -6
  177. package/dist/healthybowl/pages/weather/WeatherAlertHistoryPage.js +10 -10
  178. package/dist/healthybowl/pages/weather/WeatherAlertRulesPage.js +18 -18
  179. package/dist/healthybowl/pages/weather/WeatherAlertsPage.js +16 -16
  180. package/dist/healthybowl/pages/weather/WeatherAnomalyReportPage.js +10 -10
  181. package/dist/healthybowl/pages/weather/WeatherForecastPage.js +6 -6
  182. package/dist/healthybowl/pages/weather/WeatherHistoryPage.js +140 -140
  183. package/dist/healthybowl/pages/weather/WeatherOverviewPage.js +31 -31
  184. package/dist/healthybowl/pages/weather/WeatherSettingsPage.js +4 -4
  185. package/package.json +1 -1
@@ -3,8 +3,7 @@ import { lazyOfflineRoute as n } from "./offline/offlineRoutes.js";
3
3
  import { useBasePath as r } from "./hooks/useBasePath.js";
4
4
  import { useHealthyBowl as i } from "./context/HealthyBowlContext.js";
5
5
  import { useTr as a } from "../shared/hooks/useTr.js";
6
- import { PageLoader as o } from "./components/PageLoader.js";
7
- import "./components/index.js";
6
+ import { RouteLoader as o } from "./pageTwins/RouteLoader.js";
8
7
  import { HomePage as s } from "./pages/HomePage.js";
9
8
  import { Suspense as ee, lazy as c } from "react";
10
9
  import { Leaf as l, Tractor as u } from "lucide-react";
@@ -0,0 +1,16 @@
1
+ import { FC } from 'react';
2
+ export interface CropsRailChip {
3
+ id: string;
4
+ label: string;
5
+ /** Absent until the counts are known. */
6
+ count: number | undefined;
7
+ attention?: boolean;
8
+ }
9
+ interface CropsRailProps {
10
+ chips: readonly CropsRailChip[];
11
+ activeId: string;
12
+ ariaLabel: string;
13
+ onChoose: (id: string) => void;
14
+ }
15
+ export declare const CropsRail: FC<CropsRailProps>;
16
+ export {};
@@ -0,0 +1,30 @@
1
+ import { formatNumber as e } from "../utils/helpers.js";
2
+ import { AlertTriangle as t } from "lucide-react";
3
+ import { jsx as n, jsxs as r } from "react/jsx-runtime";
4
+ // src/healthybowl/pageTwins/CropsRail.tsx
5
+ var i = ({ chips: i, activeId: a, ariaLabel: o, onChoose: s }) => /* @__PURE__ */ n("div", {
6
+ role: "group",
7
+ "aria-label": o,
8
+ className: "flex gap-2 overflow-x-auto pb-1",
9
+ children: i.map((i) => {
10
+ let o = a === i.id;
11
+ return /* @__PURE__ */ r("button", {
12
+ type: "button",
13
+ "aria-pressed": o,
14
+ onClick: () => s(i.id),
15
+ className: `inline-flex shrink-0 items-center gap-1.5 rounded-full border px-3 py-1.5 text-sm font-medium transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-[var(--color-focus-ring)] ${o ? "border-action-primary-bg bg-action-primary-bg text-action-primary-text" : i.attention ? "border-status-warning-border bg-status-warning-bg-subtle text-status-warning-text hover:bg-bg-sunken" : "border-border-subtle bg-bg-surface text-text-primary hover:bg-bg-sunken"}`,
16
+ children: [
17
+ i.attention ? /* @__PURE__ */ n(t, {
18
+ className: "size-3.5",
19
+ "aria-hidden": "true"
20
+ }) : null,
21
+ i.label,
22
+ i.count === void 0 ? null : /* @__PURE__ */ n("span", {
23
+ className: "tabular-nums opacity-80",
24
+ children: e(i.count)
25
+ })
26
+ ]
27
+ }, i.id);
28
+ })
29
+ });
30
+ export { i as CropsRail };
@@ -0,0 +1,16 @@
1
+ import { FC } from 'react';
2
+ import { TwinnedPage } from './chips';
3
+ /** The Dashboard while it loads: header, the cards' titles over grey rows, the five numbers, the crops. */
4
+ export declare const DashboardPageTwin: FC;
5
+ /** The Crops list while it loads: header, status chips (no counts yet), the search line, then the grey cards. */
6
+ export declare const CropsPageTwin: FC;
7
+ /** Livestock while it loads: the header (its purpose and next steps as the page shows them), then the grey regions. */
8
+ export declare const LivestockPageTwin: FC;
9
+ /** Weather while it loads: the header (the page hides "Change location" until the forecast is in), then the grey regions. */
10
+ export declare const WeatherPageTwin: FC;
11
+ /** Finance & Schemes' dashboard while it loads: the header with the period chips and buttons, then the grey regions. */
12
+ export declare const FinancePageTwin: FC;
13
+ /** The twin of one of the five pages. */
14
+ export declare const HealthyBowlPageTwin: FC<{
15
+ page: TwinnedPage;
16
+ }>;
@@ -0,0 +1,266 @@
1
+ import { useTr as e } from "../../shared/hooks/useTr.js";
2
+ import { GetHelpButton as t } from "../components/GetHelpButton.js";
3
+ import { PageLayout as n } from "../components/PageLayout.js";
4
+ import { CardSkeleton as r, DashCard as i } from "../pages/dashboard/DashboardParts.js";
5
+ import { getHbFormatLocale as a } from "../utils/helpers.js";
6
+ import { LIVESTOCK_NEXT_STEPS as o, LIVESTOCK_NEXT_STEPS_KEY as s, LIVESTOCK_NEXT_STEPS_TITLE as c, LIVESTOCK_PURPOSE as l, makeInert as u } from "./chips.js";
7
+ import { CropsRail as d } from "./CropsRail.js";
8
+ import { CropsGridSkeleton as f, CropsToolbarSkeleton as p, DashboardNumbersSkeleton as m, FinanceBodySkeleton as h, LivestockBodySkeleton as g, WeatherBodySkeleton as _ } from "./skeletons.js";
9
+ import { AlertTriangle as v, ChevronDown as y, ClipboardList as b, Cloud as x, Coins as S, FileText as C, LineChart as w, MoreHorizontal as T, Plus as E } from "lucide-react";
10
+ import { Fragment as D, jsx as O, jsxs as k } from "react/jsx-runtime";
11
+ import { Button as A, GlassCard as j, PageContainer as M, Skeleton as N } from "@burdenoff/fe-libs/ui";
12
+ import { PageHeader as P } from "@burdenoff/fe-libs/chrome";
13
+ // src/healthybowl/pageTwins/PageTwins.tsx
14
+ var F = () => {}, I = ({ page: e, children: t }) => /* @__PURE__ */ O("div", {
15
+ "data-page-twin": e,
16
+ ref: u,
17
+ children: t
18
+ }), L = () => {
19
+ let t = e(), o = /* @__PURE__ */ new Date(), s = a(), c = o.toLocaleDateString(s, {
20
+ weekday: "long",
21
+ day: "numeric",
22
+ month: "long"
23
+ }), l = o.toLocaleDateString(s, { month: "long" });
24
+ return /* @__PURE__ */ O(I, {
25
+ page: "dashboard",
26
+ children: /* @__PURE__ */ k(n, {
27
+ title: t("healthybowl.home.pageTitle", "Dashboard"),
28
+ description: c,
29
+ actions: /* @__PURE__ */ k(A, {
30
+ className: "min-h-[40px] gap-2",
31
+ tabIndex: -1,
32
+ children: [
33
+ /* @__PURE__ */ O(E, {
34
+ className: "size-4",
35
+ "aria-hidden": !0
36
+ }),
37
+ t("healthybowl.home.primaryAction", "Add"),
38
+ /* @__PURE__ */ O(y, {
39
+ className: "size-4",
40
+ "aria-hidden": !0
41
+ })
42
+ ]
43
+ }),
44
+ children: [
45
+ /* @__PURE__ */ k("div", {
46
+ className: "grid grid-cols-1 gap-6 lg:grid-cols-2",
47
+ children: [/* @__PURE__ */ O(i, {
48
+ title: t("healthybowl.home.needsAttention.title", "Needs attention"),
49
+ icon: /* @__PURE__ */ O(v, {}),
50
+ children: /* @__PURE__ */ O(r, {})
51
+ }), /* @__PURE__ */ O(i, {
52
+ title: t("healthybowl.home.today.title", "Today"),
53
+ icon: /* @__PURE__ */ O(b, {}),
54
+ children: /* @__PURE__ */ O(r, {})
55
+ })]
56
+ }),
57
+ /* @__PURE__ */ O(m, {}),
58
+ /* @__PURE__ */ k("section", {
59
+ className: "space-y-3",
60
+ children: [/* @__PURE__ */ O("div", {
61
+ className: "flex items-baseline gap-2",
62
+ children: /* @__PURE__ */ O("h2", {
63
+ className: "text-base font-semibold text-text-primary",
64
+ children: t("healthybowl.home.crops.title", "Crops in progress")
65
+ })
66
+ }), /* @__PURE__ */ O(r, { rows: 2 })]
67
+ }),
68
+ /* @__PURE__ */ k("div", {
69
+ className: "grid grid-cols-1 gap-6 lg:grid-cols-3",
70
+ children: [
71
+ /* @__PURE__ */ O(i, {
72
+ title: t("healthybowl.home.week.title", "This week"),
73
+ icon: /* @__PURE__ */ O(x, {}),
74
+ children: /* @__PURE__ */ O(r, {})
75
+ }),
76
+ /* @__PURE__ */ k(j, {
77
+ className: "flex h-full flex-col gap-3 border-border-seam p-4",
78
+ children: [/* @__PURE__ */ O(N, { className: "h-5 w-40" }), /* @__PURE__ */ O(r, {})]
79
+ }),
80
+ /* @__PURE__ */ O(i, {
81
+ title: t("healthybowl.home.money.title", "Money in {{month}}", { month: l }),
82
+ icon: /* @__PURE__ */ O(S, {}),
83
+ children: /* @__PURE__ */ O(r, {})
84
+ })
85
+ ]
86
+ })
87
+ ]
88
+ })
89
+ });
90
+ }, R = () => {
91
+ let n = e(), r = [
92
+ {
93
+ id: "all",
94
+ label: n("healthybowl.crops.list.rail.all", "All"),
95
+ count: void 0
96
+ },
97
+ {
98
+ id: "growing",
99
+ label: n("healthybowl.crops.list.rail.growing", "Growing"),
100
+ count: void 0
101
+ },
102
+ {
103
+ id: "planned",
104
+ label: n("healthybowl.crops.list.rail.planned", "Planned"),
105
+ count: void 0
106
+ },
107
+ {
108
+ id: "harvested",
109
+ label: n("healthybowl.crops.list.rail.harvested", "Harvested"),
110
+ count: void 0
111
+ },
112
+ {
113
+ id: "attention",
114
+ label: n("healthybowl.crops.list.rail.attention", "Needs attention"),
115
+ count: void 0,
116
+ attention: !0
117
+ }
118
+ ];
119
+ return /* @__PURE__ */ O(I, {
120
+ page: "crops",
121
+ children: /* @__PURE__ */ O(M, {
122
+ variant: "canvas",
123
+ children: /* @__PURE__ */ k("div", {
124
+ className: "mx-auto flex w-full max-w-[1840px] flex-col gap-4",
125
+ children: [
126
+ /* @__PURE__ */ O(P, {
127
+ title: n("healthybowl.crops.list.pageTitle", "Crops"),
128
+ actions: /* @__PURE__ */ k(D, { children: [/* @__PURE__ */ O(t, { prompt: "" }), /* @__PURE__ */ k(A, {
129
+ tabIndex: -1,
130
+ children: [
131
+ /* @__PURE__ */ O(E, { className: "h-4 w-4" }),
132
+ " ",
133
+ n("healthybowl.crops.list.actions.addCrop", "Add a crop")
134
+ ]
135
+ })] })
136
+ }),
137
+ /* @__PURE__ */ O(d, {
138
+ chips: r,
139
+ activeId: "all",
140
+ ariaLabel: n("healthybowl.crops.list.rail.aria", "Show crops by status"),
141
+ onChoose: F
142
+ }),
143
+ /* @__PURE__ */ O(p, {}),
144
+ /* @__PURE__ */ O(f, {})
145
+ ]
146
+ })
147
+ })
148
+ });
149
+ }, z = () => {
150
+ let t = e();
151
+ return /* @__PURE__ */ O(I, {
152
+ page: "livestock",
153
+ children: /* @__PURE__ */ O(n, {
154
+ title: t("healthybowl.livestock.dashboard.title", "Livestock Management"),
155
+ description: t("healthybowl.livestock.dashboard.description", "Monitor and manage your livestock operations"),
156
+ purpose: l,
157
+ nextStepsKey: s,
158
+ nextStepsTitle: c,
159
+ nextSteps: o.map(({ id: e, label: t, description: n }) => ({
160
+ id: e,
161
+ label: t,
162
+ description: n,
163
+ onClick: F
164
+ })),
165
+ actions: /* @__PURE__ */ k("div", {
166
+ className: "flex items-center gap-2",
167
+ children: [/* @__PURE__ */ k(A, {
168
+ variant: "outline",
169
+ tabIndex: -1,
170
+ children: [/* @__PURE__ */ O(w, { className: "h-4 w-4" }), t("healthybowl.livestock.dashboard.actions.analytics", "View Analytics")]
171
+ }), /* @__PURE__ */ k(A, {
172
+ variant: "default",
173
+ tabIndex: -1,
174
+ children: [/* @__PURE__ */ O(E, { className: "h-4 w-4" }), t("healthybowl.livestock.dashboard.actions.addAnimal", "Add Animal")]
175
+ })]
176
+ }),
177
+ children: /* @__PURE__ */ O(g, {})
178
+ })
179
+ });
180
+ }, B = () => {
181
+ let t = e();
182
+ return /* @__PURE__ */ O(I, {
183
+ page: "weather",
184
+ children: /* @__PURE__ */ O(n, {
185
+ title: t("healthybowl.weather.overview.pageTitle", "Weather"),
186
+ className: "mx-auto w-full max-w-[1600px]",
187
+ actions: /* @__PURE__ */ O(A, {
188
+ variant: "outline",
189
+ size: "icon-sm",
190
+ tabIndex: -1,
191
+ "aria-label": t("healthybowl.weather.overview.menu.label", "More weather actions"),
192
+ children: /* @__PURE__ */ O(T, {
193
+ className: "h-4 w-4",
194
+ "aria-hidden": "true"
195
+ })
196
+ }),
197
+ children: /* @__PURE__ */ O(_, {})
198
+ })
199
+ });
200
+ }, V = () => {
201
+ let t = e(), r = [
202
+ t("healthybowl.financial.dashboard.period.monthShort", "This month"),
203
+ t("healthybowl.financial.dashboard.period.quarterShort", "This quarter"),
204
+ t("healthybowl.financial.dashboard.period.yearShort", "This year")
205
+ ];
206
+ return /* @__PURE__ */ O(I, {
207
+ page: "financial",
208
+ children: /* @__PURE__ */ O(n, {
209
+ title: t("healthybowl.financial.dashboard.heading", "Financial"),
210
+ actions: /* @__PURE__ */ k("div", {
211
+ className: "flex flex-wrap items-center gap-2",
212
+ children: [
213
+ /* @__PURE__ */ O("div", {
214
+ className: "flex items-center gap-2",
215
+ role: "group",
216
+ "aria-label": t("healthybowl.financial.dashboard.period.label", "Period"),
217
+ children: r.map((e, t) => /* @__PURE__ */ O("button", {
218
+ type: "button",
219
+ tabIndex: -1,
220
+ "aria-pressed": t === 0,
221
+ className: t === 0 ? "rounded-md bg-action-primary-bg px-3 py-1.5 text-xs font-medium text-action-primary-text" : "rounded-md border border-border-subtle px-3 py-1.5 text-xs font-medium text-text-secondary",
222
+ children: e
223
+ }, e))
224
+ }),
225
+ /* @__PURE__ */ k(A, {
226
+ variant: "outline",
227
+ size: "sm",
228
+ tabIndex: -1,
229
+ children: [
230
+ /* @__PURE__ */ O(C, { className: "h-4 w-4" }),
231
+ " ",
232
+ t("healthybowl.financial.dashboard.actions.reports", "Reports")
233
+ ]
234
+ }),
235
+ /* @__PURE__ */ k(A, {
236
+ size: "sm",
237
+ tabIndex: -1,
238
+ children: [
239
+ /* @__PURE__ */ O(E, { className: "h-4 w-4" }),
240
+ " ",
241
+ t("healthybowl.financial.dashboard.actions.record", "Record")
242
+ ]
243
+ }),
244
+ /* @__PURE__ */ O(A, {
245
+ variant: "outline",
246
+ size: "icon-sm",
247
+ tabIndex: -1,
248
+ "aria-label": t("healthybowl.financial.dashboard.actions.more", "More"),
249
+ children: /* @__PURE__ */ O(T, { className: "h-4 w-4" })
250
+ })
251
+ ]
252
+ }),
253
+ children: /* @__PURE__ */ O(h, {})
254
+ })
255
+ });
256
+ }, H = {
257
+ dashboard: L,
258
+ crops: R,
259
+ livestock: z,
260
+ weather: B,
261
+ financial: V
262
+ }, U = ({ page: e }) => {
263
+ let t = H[e];
264
+ return /* @__PURE__ */ O(t, {});
265
+ };
266
+ export { R as CropsPageTwin, L as DashboardPageTwin, V as FinancePageTwin, U as HealthyBowlPageTwin, z as LivestockPageTwin, B as WeatherPageTwin };
@@ -0,0 +1,12 @@
1
+ import { TwinnedPage } from './chips';
2
+ /**
3
+ * A page loading (BOFF-16595). Under the loading system, the five main pages (Dashboard, Crops,
4
+ * Livestock, Weather, Finance) load as their own outline (their twin: the header as it will be, grey
5
+ * blocks where the data goes); every other route keeps the generic loader. Without the opt-in,
6
+ * today's loader.
7
+ */
8
+ export declare function RouteLoader(): import('react').JSX.Element;
9
+ /** A page's loader: its twin under the route loader, or the generic loader when it has none. */
10
+ export declare function PageLoading({ page }: {
11
+ page: TwinnedPage | null;
12
+ }): import('react').JSX.Element;
@@ -0,0 +1,21 @@
1
+ import { useTr as e } from "../../shared/hooks/useTr.js";
2
+ import { PageLoader as t } from "../components/PageLoader.js";
3
+ import { useHealthyBowl as n } from "../context/HealthyBowlContext.js";
4
+ import { twinnedPageAt as r } from "./chips.js";
5
+ import { HealthyBowlPageTwin as i } from "./PageTwins.js";
6
+ import { useLocation as a } from "react-router";
7
+ import { jsx as o } from "react/jsx-runtime";
8
+ import { RouteSkeleton as s, useLoadingSystem as c } from "@burdenoff/fe-libs/ui";
9
+ // src/healthybowl/pageTwins/RouteLoader.tsx
10
+ function l() {
11
+ let e = c(), { basePath: t } = n(), { pathname: i } = a();
12
+ return /* @__PURE__ */ o(u, { page: e ? r(i, t) : null });
13
+ }
14
+ function u({ page: n }) {
15
+ let r = e();
16
+ return n === null ? /* @__PURE__ */ o(t, {}) : /* @__PURE__ */ o(s, {
17
+ label: r("healthybowl.routes.loading.ariaLabel", "Loading the page"),
18
+ children: /* @__PURE__ */ o(i, { page: n })
19
+ });
20
+ }
21
+ export { u as PageLoading, l as RouteLoader };
@@ -0,0 +1,39 @@
1
+ /**
2
+ * Plain values the page twins and their pages share (BOFF-16595), kept apart from the components so
3
+ * the modules that hold components export components only.
4
+ */
5
+ /** The five pages that have a twin, by the name the route loader uses for them. */
6
+ export declare const TWINNED_PAGES: readonly ["dashboard", "crops", "livestock", "weather", "financial"];
7
+ /** One of the five pages with a twin. */
8
+ export type TwinnedPage = (typeof TWINNED_PAGES)[number];
9
+ /**
10
+ * The twinned page a location is, or `null` for every other route (they keep the generic loader).
11
+ * Only the page's own route counts: `crops/fields` and `weather/forecast` are other pages.
12
+ */
13
+ export declare function twinnedPageAt(pathname: string, basePath: string | undefined): TwinnedPage | null;
14
+ /**
15
+ * A twin is a picture: nothing in it takes focus or clicks. Set as an attribute so it holds under
16
+ * React 18 too (which drops a boolean `inert` prop).
17
+ */
18
+ export declare function makeInert(node: HTMLElement | null): void;
19
+ /** The Livestock page's header words that are not (yet) keyed: the page and its twin say the same. */
20
+ export declare const LIVESTOCK_PURPOSE = "The health of your animal operation at a glance \u2014 herd size, health flags and production. Start here each day, then dive into the registry, health, breeding or feed sections as needed.";
21
+ /** The Livestock page's "next steps" card (words as the page has had them; the twin shows the same card). */
22
+ export declare const LIVESTOCK_NEXT_STEPS_KEY = "healthybowl-livestock-dashboard";
23
+ export declare const LIVESTOCK_NEXT_STEPS_TITLE = "Run your herd day to day";
24
+ export declare const LIVESTOCK_NEXT_STEPS: readonly [{
25
+ readonly id: "registry";
26
+ readonly label: "Register your animals";
27
+ readonly description: "Build the herd registry so every record links to an animal.";
28
+ readonly path: "livestock/animals";
29
+ }, {
30
+ readonly id: "health";
31
+ readonly label: "Log health & vaccinations";
32
+ readonly description: "Keep treatment and vaccination history in one place.";
33
+ readonly path: "livestock/health";
34
+ }, {
35
+ readonly id: "production";
36
+ readonly label: "Track production";
37
+ readonly description: "Record milk, eggs or other yields to watch trends.";
38
+ readonly path: "livestock/production";
39
+ }];
@@ -0,0 +1,36 @@
1
+ // src/healthybowl/pageTwins/chips.ts
2
+ var e = {
3
+ "": "dashboard",
4
+ crops: "crops",
5
+ livestock: "livestock",
6
+ weather: "weather",
7
+ financial: "financial"
8
+ };
9
+ function t(t, n) {
10
+ let r = (n ?? "").replace(/\/+$/, "");
11
+ return e[(t.startsWith(r) ? t.slice(r.length) : t).replace(/^\/+|\/+$/g, "")] ?? null;
12
+ }
13
+ function n(e) {
14
+ e?.setAttribute("inert", "");
15
+ }
16
+ var r = "The health of your animal operation at a glance — herd size, health flags and production. Start here each day, then dive into the registry, health, breeding or feed sections as needed.", i = "healthybowl-livestock-dashboard", a = "Run your herd day to day", o = [
17
+ {
18
+ id: "registry",
19
+ label: "Register your animals",
20
+ description: "Build the herd registry so every record links to an animal.",
21
+ path: "livestock/animals"
22
+ },
23
+ {
24
+ id: "health",
25
+ label: "Log health & vaccinations",
26
+ description: "Keep treatment and vaccination history in one place.",
27
+ path: "livestock/health"
28
+ },
29
+ {
30
+ id: "production",
31
+ label: "Track production",
32
+ description: "Record milk, eggs or other yields to watch trends.",
33
+ path: "livestock/production"
34
+ }
35
+ ];
36
+ export { o as LIVESTOCK_NEXT_STEPS, i as LIVESTOCK_NEXT_STEPS_KEY, a as LIVESTOCK_NEXT_STEPS_TITLE, r as LIVESTOCK_PURPOSE, n as makeInert, t as twinnedPageAt };
@@ -0,0 +1,28 @@
1
+ import { FC } from 'react';
2
+ /** A row of number tiles (the dashboard's five, Livestock's and Finance's four) while they load. */
3
+ export declare const NumberTilesSkeleton: FC<{
4
+ className: string;
5
+ count: number;
6
+ tileClassName?: string;
7
+ }>;
8
+ /** The dashboard's five numbers. */
9
+ export declare const DashboardNumbersSkeleton: FC;
10
+ /** Livestock's four key numbers. */
11
+ export declare const LivestockNumbersSkeleton: FC;
12
+ /** Finance's four numbers. */
13
+ export declare const FinanceNumbersSkeleton: FC;
14
+ /** A glass card with a title line and some grey under it, for the charts and lists on a page. */
15
+ export declare const CardBlockSkeleton: FC<{
16
+ className?: string;
17
+ bodyClassName?: string;
18
+ }>;
19
+ /** The crops list's grid of cards while the first page loads (the list's own `skeleton`). */
20
+ export declare const CropsGridSkeleton: FC;
21
+ /** The toolbar's search line while the crops list is a picture (the page draws the real toolbar). */
22
+ export declare const CropsToolbarSkeleton: FC;
23
+ /** Livestock's body while the herd loads: four numbers, two charts, then the health and actions row. */
24
+ export declare const LivestockBodySkeleton: FC;
25
+ /** Weather's body while the forecast loads: the now-and-week card, then the advice and the quieter cards. */
26
+ export declare const WeatherBodySkeleton: FC;
27
+ /** Finance's body while the books load: four numbers, then the chart and ranked bars beside the three lists. */
28
+ export declare const FinanceBodySkeleton: FC;
@@ -0,0 +1,63 @@
1
+ import { cn as e } from "../utils/helpers.js";
2
+ import { Fragment as t, jsx as n, jsxs as r } from "react/jsx-runtime";
3
+ import { GlassCard as i, RichCardGrid as a, Skeleton as o } from "@burdenoff/fe-libs/ui";
4
+ // src/healthybowl/pageTwins/skeletons.tsx
5
+ var s = ({ className: e, count: t, tileClassName: r = "h-24 w-full" }) => /* @__PURE__ */ n("div", {
6
+ className: e,
7
+ "aria-busy": "true",
8
+ children: Array.from({ length: t }, (e, t) => /* @__PURE__ */ n(o, { className: r }, t))
9
+ }), c = () => /* @__PURE__ */ n(s, {
10
+ className: "grid grid-cols-2 gap-4 lg:grid-cols-5",
11
+ count: 5
12
+ }), l = () => /* @__PURE__ */ n(s, {
13
+ className: "grid grid-cols-1 gap-4 sm:grid-cols-2 lg:grid-cols-4",
14
+ count: 4
15
+ }), u = () => /* @__PURE__ */ n(s, {
16
+ className: "grid grid-cols-2 gap-3 lg:grid-cols-4",
17
+ count: 4
18
+ }), d = ({ className: t, bodyClassName: a = "h-48 w-full" }) => /* @__PURE__ */ r(i, {
19
+ treatment: "glass",
20
+ className: e("flex flex-col gap-3 border-border-seam p-4", t),
21
+ children: [/* @__PURE__ */ n(o, { className: "h-4 w-40" }), /* @__PURE__ */ n(o, { className: a })]
22
+ }), f = () => /* @__PURE__ */ n(a, {
23
+ minCardWidth: "20rem",
24
+ children: Array.from({ length: 6 }, (e, t) => /* @__PURE__ */ n(o, { className: "h-60 w-full rounded-xl" }, t))
25
+ }), p = () => /* @__PURE__ */ r("div", {
26
+ className: "flex flex-wrap items-center gap-2",
27
+ "aria-busy": "true",
28
+ children: [
29
+ /* @__PURE__ */ n(o, { className: "h-10 w-full sm:max-w-md sm:flex-1" }),
30
+ /* @__PURE__ */ n(o, { className: "h-10 w-24" }),
31
+ /* @__PURE__ */ n(o, { className: "h-10 w-24" })
32
+ ]
33
+ }), m = () => /* @__PURE__ */ r(t, { children: [
34
+ /* @__PURE__ */ n(l, {}),
35
+ /* @__PURE__ */ r("div", {
36
+ className: "grid grid-cols-1 gap-6 lg:grid-cols-2",
37
+ children: [/* @__PURE__ */ n(d, { bodyClassName: "h-56 w-full" }), /* @__PURE__ */ n(d, { bodyClassName: "h-56 w-full" })]
38
+ }),
39
+ /* @__PURE__ */ r("div", {
40
+ className: "grid grid-cols-1 gap-6 lg:grid-cols-3",
41
+ children: [/* @__PURE__ */ n(d, {
42
+ className: "lg:col-span-2",
43
+ bodyClassName: "h-32 w-full"
44
+ }), /* @__PURE__ */ n(d, { bodyClassName: "h-32 w-full" })]
45
+ })
46
+ ] }), h = () => /* @__PURE__ */ r(t, { children: [/* @__PURE__ */ n(o, { className: "h-56 w-full rounded-xl" }), /* @__PURE__ */ r("div", {
47
+ className: "grid grid-cols-1 gap-4 lg:grid-cols-2",
48
+ children: [/* @__PURE__ */ n(d, { bodyClassName: "h-40 w-full" }), /* @__PURE__ */ n(d, { bodyClassName: "h-40 w-full" })]
49
+ })] }), g = () => /* @__PURE__ */ r(t, { children: [/* @__PURE__ */ n(u, {}), /* @__PURE__ */ r("div", {
50
+ className: "grid gap-6 lg:grid-cols-[minmax(0,3fr)_minmax(0,2fr)]",
51
+ children: [/* @__PURE__ */ r("div", {
52
+ className: "space-y-6",
53
+ children: [/* @__PURE__ */ n(d, { bodyClassName: "h-64 w-full" }), /* @__PURE__ */ n(d, { bodyClassName: "h-48 w-full" })]
54
+ }), /* @__PURE__ */ r("div", {
55
+ className: "space-y-6",
56
+ children: [
57
+ /* @__PURE__ */ n(d, { bodyClassName: "h-28 w-full" }),
58
+ /* @__PURE__ */ n(d, { bodyClassName: "h-28 w-full" }),
59
+ /* @__PURE__ */ n(d, { bodyClassName: "h-28 w-full" })
60
+ ]
61
+ })]
62
+ })] });
63
+ export { d as CardBlockSkeleton, f as CropsGridSkeleton, p as CropsToolbarSkeleton, c as DashboardNumbersSkeleton, g as FinanceBodySkeleton, u as FinanceNumbersSkeleton, m as LivestockBodySkeleton, l as LivestockNumbersSkeleton, s as NumberTilesSkeleton, h as WeatherBodySkeleton };
@@ -1,8 +1,8 @@
1
1
  import { PageLayout as e } from "../components/PageLayout.js";
2
2
  import "../components/index.js";
3
- import { ErrorState as t } from "../components/ErrorState.js";
4
- import { ToastContainer as n } from "../components/Toast.js";
5
- import { PageLoader as r } from "../components/PageLoader.js";
3
+ import { PageLoader as t } from "../components/PageLoader.js";
4
+ import { ErrorState as n } from "../components/ErrorState.js";
5
+ import { ToastContainer as r } from "../components/Toast.js";
6
6
  import { useToast as i } from "../hooks/useToast.js";
7
7
  import { useBasePath as a } from "../hooks/useBasePath.js";
8
8
  import { useHealthyBowlData as o } from "../hooks/useHealthyBowlData.js";
@@ -66,7 +66,7 @@ var v = {
66
66
  titleAccent: b("healthybowl.gettingStarted.titleAccent", "Started"),
67
67
  description: b("healthybowl.gettingStarted.description", "Set up your farm to start tracking operations"),
68
68
  purpose: "New here? This is the quickest way to get going. Create your farm, then add a field and your first crop — once that's done, the dashboard, weather, finances and the rest of HealthyBowl come to life with your own data.",
69
- children: [C.dashboard ? /* @__PURE__ */ p(r, {}) : w.dashboard ? /* @__PURE__ */ p(t, { onRetry: T }) : /* @__PURE__ */ m("div", {
69
+ children: [C.dashboard ? /* @__PURE__ */ p(t, {}) : w.dashboard ? /* @__PURE__ */ p(n, { onRetry: T }) : /* @__PURE__ */ m("div", {
70
70
  className: "mx-auto max-w-2xl space-y-6",
71
71
  children: [
72
72
  F && /* @__PURE__ */ m(h, {
@@ -242,7 +242,7 @@ var v = {
242
242
  ]
243
243
  })
244
244
  ]
245
- }), /* @__PURE__ */ p(n, {
245
+ }), /* @__PURE__ */ p(r, {
246
246
  toasts: O,
247
247
  onDismiss: A
248
248
  })]