@burdenoff/microfe-healthybowl 2026.902.30 → 2026.902.31
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/healthybowl/components/PageLayout.js +11 -10
- package/dist/healthybowl/components/PageLayout.js.map +1 -1
- package/dist/healthybowl/hooks/useHealthyBowlData.js +3 -0
- package/dist/healthybowl/hooks/useHealthyBowlData.js.map +1 -1
- package/dist/healthybowl/pages/GettingStartedPage.js +1 -0
- package/dist/healthybowl/pages/GettingStartedPage.js.map +1 -1
- package/dist/healthybowl/pages/crops/CropFieldsPage.js +2 -0
- package/dist/healthybowl/pages/crops/CropFieldsPage.js.map +1 -1
- package/dist/healthybowl/pages/crops/CropHarvestPage.js +316 -272
- package/dist/healthybowl/pages/crops/CropHarvestPage.js.map +1 -1
- package/dist/healthybowl/pages/crops/CropPlanningPage.js +6 -0
- package/dist/healthybowl/pages/crops/CropPlanningPage.js.map +1 -1
- package/dist/healthybowl/pages/crops/FieldDetailsPage.js +3 -0
- package/dist/healthybowl/pages/crops/FieldDetailsPage.js.map +1 -1
- package/dist/healthybowl/pages/crops/HarvestDetailsPage.js +376 -334
- package/dist/healthybowl/pages/crops/HarvestDetailsPage.js.map +1 -1
- package/dist/healthybowl/pages/farm/FarmProfilePage.js +1 -0
- package/dist/healthybowl/pages/farm/FarmProfilePage.js.map +1 -1
- package/dist/healthybowl/pages/fields/FieldMapPage.js +2 -0
- package/dist/healthybowl/pages/fields/FieldMapPage.js.map +1 -1
- package/package.json +1 -1
|
@@ -12,30 +12,31 @@ var d = (e, t) => {
|
|
|
12
12
|
/* @__PURE__ */ r(o, { children: t }),
|
|
13
13
|
e.slice(a + t.length)
|
|
14
14
|
] });
|
|
15
|
-
}, f = ({ title: o, description: f, actions: p, children: m, hero: h = !1, titleAccent: g, purpose: _, purposeIcon: v,
|
|
16
|
-
let
|
|
15
|
+
}, f = ({ title: o, description: f, actions: p, children: m, hero: h = !1, titleAccent: g, purpose: _, purposeIcon: v, testId: y, nextSteps: b, nextStepsKey: x, nextStepsTitle: S, helpPrompt: C, hideHelp: w = !1, className: T }) => {
|
|
16
|
+
let E = w ? null : /* @__PURE__ */ r(t, { prompt: C ?? `What is the ${o} page for, and how do I use it?` }), D = E || p ? /* @__PURE__ */ i(n, { children: [E, p] }) : void 0, O = /* @__PURE__ */ r(u, {
|
|
17
17
|
title: d(o, g),
|
|
18
18
|
description: f,
|
|
19
|
-
actions:
|
|
19
|
+
actions: D
|
|
20
20
|
});
|
|
21
21
|
return /* @__PURE__ */ i(c, {
|
|
22
|
-
className: e("space-y-6",
|
|
22
|
+
className: e("space-y-6", T),
|
|
23
|
+
"data-testid": y,
|
|
23
24
|
children: [
|
|
24
25
|
h ? /* @__PURE__ */ i("div", {
|
|
25
26
|
className: "relative overflow-hidden rounded-2xl border border-border-seam bg-hero-mesh px-6 py-5 shadow-pop",
|
|
26
27
|
children: [/* @__PURE__ */ r(a, { intensity: "subtle" }), /* @__PURE__ */ r("div", {
|
|
27
28
|
className: "relative z-10",
|
|
28
|
-
children:
|
|
29
|
+
children: O
|
|
29
30
|
})]
|
|
30
|
-
}) :
|
|
31
|
+
}) : O,
|
|
31
32
|
_ && /* @__PURE__ */ r(l, {
|
|
32
33
|
icon: v,
|
|
33
34
|
children: _
|
|
34
35
|
}),
|
|
35
|
-
|
|
36
|
-
steps:
|
|
37
|
-
storageKey:
|
|
38
|
-
title:
|
|
36
|
+
b && b.length > 0 && x && /* @__PURE__ */ r(s, {
|
|
37
|
+
steps: b,
|
|
38
|
+
storageKey: x,
|
|
39
|
+
title: S
|
|
39
40
|
}),
|
|
40
41
|
m
|
|
41
42
|
]
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"PageLayout.js","names":[],"sources":["../../../src/healthybowl/components/PageLayout.tsx"],"sourcesContent":["import type { FC, ReactNode } from 'react';\nimport { PageContainer, AuroraBackground, GradientText, PagePurpose, NextSteps } from '@burdenoff/fe-libs/ui';\nimport type { NextStep } from '@burdenoff/fe-libs/ui';\nimport { PageHeader } from '@burdenoff/fe-libs/chrome';\nimport { cn } from '../utils/helpers';\nimport { GetHelpButton } from './GetHelpButton';\n\ninterface PageLayoutProps {\n title: string;\n description?: string;\n actions?: ReactNode;\n children: ReactNode;\n /**\n * Contextual prompt for the always-present \"Get Help\" button in the header —\n * clicking it opens the AI assistant and asks about THIS page. Defaults to a\n * title-based question. Set `hideHelp` to drop the button where it doesn't fit.\n */\n helpPrompt?: string;\n /** Hide the header \"Get Help\" button (shown by default on every page). */\n hideHelp?: boolean;\n /**\n * Boff UI 2.0 hero header — wraps the page header in a glass card with a subtle\n * living AuroraBackground backdrop. Use on the MFE's PRIMARY page only (one\n * aurora per MFE). The backdrop sits behind the content (-z-10), never shifts\n * layout, and goes static under reduced-motion.\n */\n hero?: boolean;\n /**\n * Key noun of the title to render with GradientText (the one hero heading per\n * page). Must be a substring of `title`; the surrounding text stays plain.\n */\n titleAccent?: string;\n /**\n * Boff UI 2.0 page \"story\" — a concise, plain-language explanation of WHAT this\n * page is for and the use-case, rendered as a `PagePurpose` directly under the\n * header so every page is self-explanatory for a new user. Renders before any\n * loading/empty/content branch in `children`, so it is always visible.\n */\n purpose?: ReactNode;\n /** Optional icon for the page purpose. */\n purposeIcon?: ReactNode;\n /**\n * Boff UI 2.0 next-step guidance for COMPLEX pages (detail/dashboard/multi-tab):\n * a dismissable, reopenable `NextSteps` card recommending 2-4 concrete actions\n * wired to real handlers/links so new users aren't overwhelmed. Skip on trivial\n * single-action pages. Requires `nextStepsKey` to persist the dismissed state.\n */\n nextSteps?: NextStep[];\n /** localStorage key suffix for the NextSteps dismissed state (e.g. \"healthybowl-crops\"). */\n nextStepsKey?: string;\n /** Optional title for the NextSteps card. */\n nextStepsTitle?: string;\n className?: string;\n}\n\n/** Renders the title, highlighting `accent` (if present) with GradientText. */\nconst renderTitle = (title: string, accent?: string): ReactNode => {\n if (!accent) return title;\n const idx = title.indexOf(accent);\n if (idx === -1) return title;\n return (\n <>\n {title.slice(0, idx)}\n <GradientText>{accent}</GradientText>\n {title.slice(idx + accent.length)}\n </>\n );\n};\n\n/**\n * Standard page scaffold. Wraps the Boff `PageContainer` (background + padding)\n * and `PageHeader` (title/description/actions) so every page is theme-compliant.\n * With `hero`, the header is wrapped in a glassy mesh card with a living aurora\n * backdrop (Boff UI 2.0) for the MFE's primary page; `titleAccent` clips the key\n * noun into a brand gradient. `PageContainer` supplies the default page padding;\n * we re-add the inter-section vertical gap so header→content spacing is preserved.\n */\nexport const PageLayout: FC<PageLayoutProps> = ({\n title,\n description,\n actions,\n children,\n hero = false,\n titleAccent,\n purpose,\n purposeIcon,\n nextSteps,\n nextStepsKey,\n nextStepsTitle,\n helpPrompt,\n hideHelp = false,\n className,\n}) => {\n // Always-present contextual help button (general-mode assistant, asks about\n // this page). Rendered before any page-specific actions; opt out via hideHelp.\n const helpButton = hideHelp ? null : (\n <GetHelpButton prompt={helpPrompt ?? `What is the ${title} page for, and how do I use it?`} />\n );\n const headerActions =\n helpButton || actions ? (\n <>\n {helpButton}\n {actions}\n </>\n ) : undefined;\n const header = (\n <PageHeader title={renderTitle(title, titleAccent)} description={description} actions={headerActions} />\n );\n\n return (\n <PageContainer className={cn('space-y-6', className)}>\n {hero ? (\n <div className=\"relative overflow-hidden rounded-2xl border border-border-seam bg-hero-mesh px-6 py-5 shadow-pop\">\n <AuroraBackground intensity=\"subtle\" />\n <div className=\"relative z-10\">{header}</div>\n </div>\n ) : (\n header\n )}\n {purpose && <PagePurpose icon={purposeIcon}>{purpose}</PagePurpose>}\n {nextSteps && nextSteps.length > 0 && nextStepsKey && (\n <NextSteps steps={nextSteps} storageKey={nextStepsKey} title={nextStepsTitle} />\n )}\n {children}\n </PageContainer>\n );\n};\n"],"mappings":";;;;;;
|
|
1
|
+
{"version":3,"file":"PageLayout.js","names":[],"sources":["../../../src/healthybowl/components/PageLayout.tsx"],"sourcesContent":["import type { FC, ReactNode } from 'react';\nimport { PageContainer, AuroraBackground, GradientText, PagePurpose, NextSteps } from '@burdenoff/fe-libs/ui';\nimport type { NextStep } from '@burdenoff/fe-libs/ui';\nimport { PageHeader } from '@burdenoff/fe-libs/chrome';\nimport { cn } from '../utils/helpers';\nimport { GetHelpButton } from './GetHelpButton';\n\ninterface PageLayoutProps {\n title: string;\n description?: string;\n actions?: ReactNode;\n children: ReactNode;\n /**\n * Contextual prompt for the always-present \"Get Help\" button in the header —\n * clicking it opens the AI assistant and asks about THIS page. Defaults to a\n * title-based question. Set `hideHelp` to drop the button where it doesn't fit.\n */\n helpPrompt?: string;\n /** Hide the header \"Get Help\" button (shown by default on every page). */\n hideHelp?: boolean;\n /**\n * Boff UI 2.0 hero header — wraps the page header in a glass card with a subtle\n * living AuroraBackground backdrop. Use on the MFE's PRIMARY page only (one\n * aurora per MFE). The backdrop sits behind the content (-z-10), never shifts\n * layout, and goes static under reduced-motion.\n */\n hero?: boolean;\n /**\n * Key noun of the title to render with GradientText (the one hero heading per\n * page). Must be a substring of `title`; the surrounding text stays plain.\n */\n titleAccent?: string;\n /**\n * Boff UI 2.0 page \"story\" — a concise, plain-language explanation of WHAT this\n * page is for and the use-case, rendered as a `PagePurpose` directly under the\n * header so every page is self-explanatory for a new user. Renders before any\n * loading/empty/content branch in `children`, so it is always visible.\n */\n purpose?: ReactNode;\n /** Optional icon for the page purpose. */\n purposeIcon?: ReactNode;\n /**\n * Stable hook for E2E assertions (BOFF-6056).\n *\n * A `data-testid` passed to this component would be silently dropped — it does not spread its\n * props — so a spec asserting on one would fail for a reason unrelated to the page. An explicit\n * prop makes the contract visible and greppable.\n */\n testId?: string;\n /**\n * Boff UI 2.0 next-step guidance for COMPLEX pages (detail/dashboard/multi-tab):\n * a dismissable, reopenable `NextSteps` card recommending 2-4 concrete actions\n * wired to real handlers/links so new users aren't overwhelmed. Skip on trivial\n * single-action pages. Requires `nextStepsKey` to persist the dismissed state.\n */\n nextSteps?: NextStep[];\n /** localStorage key suffix for the NextSteps dismissed state (e.g. \"healthybowl-crops\"). */\n nextStepsKey?: string;\n /** Optional title for the NextSteps card. */\n nextStepsTitle?: string;\n className?: string;\n}\n\n/** Renders the title, highlighting `accent` (if present) with GradientText. */\nconst renderTitle = (title: string, accent?: string): ReactNode => {\n if (!accent) return title;\n const idx = title.indexOf(accent);\n if (idx === -1) return title;\n return (\n <>\n {title.slice(0, idx)}\n <GradientText>{accent}</GradientText>\n {title.slice(idx + accent.length)}\n </>\n );\n};\n\n/**\n * Standard page scaffold. Wraps the Boff `PageContainer` (background + padding)\n * and `PageHeader` (title/description/actions) so every page is theme-compliant.\n * With `hero`, the header is wrapped in a glassy mesh card with a living aurora\n * backdrop (Boff UI 2.0) for the MFE's primary page; `titleAccent` clips the key\n * noun into a brand gradient. `PageContainer` supplies the default page padding;\n * we re-add the inter-section vertical gap so header→content spacing is preserved.\n */\nexport const PageLayout: FC<PageLayoutProps> = ({\n title,\n description,\n actions,\n children,\n hero = false,\n titleAccent,\n purpose,\n purposeIcon,\n testId,\n nextSteps,\n nextStepsKey,\n nextStepsTitle,\n helpPrompt,\n hideHelp = false,\n className,\n}) => {\n // Always-present contextual help button (general-mode assistant, asks about\n // this page). Rendered before any page-specific actions; opt out via hideHelp.\n const helpButton = hideHelp ? null : (\n <GetHelpButton prompt={helpPrompt ?? `What is the ${title} page for, and how do I use it?`} />\n );\n const headerActions =\n helpButton || actions ? (\n <>\n {helpButton}\n {actions}\n </>\n ) : undefined;\n const header = (\n <PageHeader title={renderTitle(title, titleAccent)} description={description} actions={headerActions} />\n );\n\n return (\n <PageContainer className={cn('space-y-6', className)} data-testid={testId}>\n {hero ? (\n <div className=\"relative overflow-hidden rounded-2xl border border-border-seam bg-hero-mesh px-6 py-5 shadow-pop\">\n <AuroraBackground intensity=\"subtle\" />\n <div className=\"relative z-10\">{header}</div>\n </div>\n ) : (\n header\n )}\n {purpose && <PagePurpose icon={purposeIcon}>{purpose}</PagePurpose>}\n {nextSteps && nextSteps.length > 0 && nextStepsKey && (\n <NextSteps steps={nextSteps} storageKey={nextStepsKey} title={nextStepsTitle} />\n )}\n {children}\n </PageContainer>\n );\n};\n"],"mappings":";;;;;;AAgEA,IAAM,KAAe,GAAe,MAA+B;CACjE,IAAI,CAAC,GAAQ,OAAO;CACpB,IAAM,IAAM,EAAM,QAAQ,CAAM;CAEhC,OADI,MAAQ,KAAW,IAErB,kBAAA,GAAA,EAAA,UAAA;EACG,EAAM,MAAM,GAAG,CAAG;EACnB,kBAAC,GAAD,EAAA,UAAe,EAAqB,CAAA;EACnC,EAAM,MAAM,IAAM,EAAO,MAAM;CAChC,EAAA,CAAA;AAEN,GAUa,KAAmC,EAC9C,UACA,gBACA,YACA,aACA,UAAO,IACP,gBACA,YACA,gBACA,WACA,cACA,iBACA,mBACA,eACA,cAAW,IACX,mBACI;CAGJ,IAAM,IAAa,IAAW,OAC5B,kBAAC,GAAD,EAAe,QAAQ,KAAc,eAAe,EAAM,iCAAmC,CAAA,GAEzF,IACJ,KAAc,IACZ,kBAAA,GAAA,EAAA,UAAA,CACG,GACA,CACD,EAAA,CAAA,IACA,KAAA,GACA,IACJ,kBAAC,GAAD;EAAY,OAAO,EAAY,GAAO,CAAW;EAAgB;EAAa,SAAS;CAAgB,CAAA;CAGzG,OACE,kBAAC,GAAD;EAAe,WAAW,EAAG,aAAa,CAAS;EAAG,eAAa;YAAnE;GACG,IACC,kBAAC,OAAD;IAAK,WAAU;cAAf,CACE,kBAAC,GAAD,EAAkB,WAAU,SAAU,CAAA,GACtC,kBAAC,OAAD;KAAK,WAAU;eAAiB;IAAY,CAAA,CACzC;QAEL;GAED,KAAW,kBAAC,GAAD;IAAa,MAAM;cAAc;GAAqB,CAAA;GACjE,KAAa,EAAU,SAAS,KAAK,KACpC,kBAAC,GAAD;IAAW,OAAO;IAAW,YAAY;IAAc,OAAO;GAAiB,CAAA;GAEhF;EACY;;AAEnB"}
|
|
@@ -90,6 +90,9 @@ var Dt = a`
|
|
|
90
90
|
# BOFF-6095 — set once the harvest has been banked into inventory. Drives whether the
|
|
91
91
|
# harvest page offers "Add to inventory" or reports that it is already stock.
|
|
92
92
|
productId
|
|
93
|
+
# BOFF-6056 — the plan this harvest counts towards. Selected so the edit modal can show
|
|
94
|
+
# the current link rather than defaulting the select to "not linked".
|
|
95
|
+
plantingPlanId
|
|
93
96
|
}
|
|
94
97
|
updatedAt
|
|
95
98
|
}
|