@burdenoff/microfe-healthybowl 2026.805.1 → 2026.805.2

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.
@@ -12,6 +12,7 @@ var i = "00000000-0000-0000-0000-000000000001", a = n`
12
12
  $granularity: HealthyBowlGrowthGranularity
13
13
  ) {
14
14
  healthyBowlLivestockFeed(context: $context, groupId: $groupId, from: $from, to: $to, granularity: $granularity) {
15
+ truncated
15
16
  buckets {
16
17
  at
17
18
  totalCost
@@ -51,6 +52,7 @@ function o(n = {}) {
51
52
  }), f = c?.healthyBowlLivestockFeed ?? null;
52
53
  return {
53
54
  feed: f,
55
+ truncated: f?.truncated ?? !1,
54
56
  buckets: f?.buckets ?? [],
55
57
  summary: f?.summary ?? null,
56
58
  loading: l,
@@ -1 +1 @@
1
- {"version":3,"file":"useHealthyBowlLivestockFeed.js","names":[],"sources":["../../../src/healthybowl/hooks/useHealthyBowlLivestockFeed.ts"],"sourcesContent":["/**\n * Livestock feed analytics — data hook (BOFF-5971, slice 2).\n *\n * Companion to `useHealthyBowlLivestockGrowth`: feed says what went in, growth says what came out.\n * The document is declared inline with `gql` for the same reason as its sibling — codegen validates\n * against the committed `graphql/wspace.graphql` snapshot, which does not yet carry this query.\n *\n * ⚠️ `totalKg` is null whenever the period mixes a non-mass unit (bags, litres). That is the\n * backend refusing to invent a total, not a loading state — render it as \"mixed units\", never as\n * zero.\n */\n\nimport { useMemo } from 'react';\nimport { gql } from '@apollo/client';\nimport { useQuery } from '@apollo/client/react';\nimport { useHealthyBowl } from '../context/HealthyBowlContext';\nimport type { GrowthGranularity } from './useHealthyBowlLivestockGrowth';\n\nconst FALLBACK_WORKSPACE_ID = '00000000-0000-0000-0000-000000000001';\n\nexport interface FeedUnitTotal {\n unit: string;\n quantity: number;\n}\n\nexport interface FeedBucket {\n at: string;\n totalCost: number;\n totalKg: number | null;\n byUnit: FeedUnitTotal[];\n records: number;\n}\n\nexport interface FeedSummary {\n totalCost: number;\n totalKg: number | null;\n totalGainKg: number | null;\n animalsCounted: number;\n feedConversionRatio: number | null;\n costPerKgGain: number | null;\n unitsSeen: string[];\n windowFrom: string | null;\n windowTo: string | null;\n granularity: GrowthGranularity;\n}\n\nexport interface LivestockFeed {\n buckets: FeedBucket[];\n summary: FeedSummary;\n}\n\ninterface HbContext {\n workspaceId: string;\n}\n\nconst GET_LIVESTOCK_FEED = gql`\n query HealthyBowlLivestockFeed(\n $context: ContextInput!\n $groupId: ID\n $from: String\n $to: String\n $granularity: HealthyBowlGrowthGranularity\n ) {\n healthyBowlLivestockFeed(context: $context, groupId: $groupId, from: $from, to: $to, granularity: $granularity) {\n buckets {\n at\n totalCost\n totalKg\n byUnit {\n unit\n quantity\n }\n records\n }\n summary {\n totalCost\n totalKg\n totalGainKg\n animalsCounted\n feedConversionRatio\n costPerKgGain\n unitsSeen\n windowFrom\n windowTo\n granularity\n }\n }\n }\n`;\n\nexport interface UseLivestockFeedOptions {\n enabled?: boolean;\n groupId?: string | null;\n from?: string | null;\n to?: string | null;\n granularity?: GrowthGranularity;\n}\n\nexport function useHealthyBowlLivestockFeed(options: UseLivestockFeedOptions = {}) {\n const { workspaceId } = useHealthyBowl();\n const effectiveWorkspaceId = workspaceId || FALLBACK_WORKSPACE_ID;\n const ctx = useMemo<HbContext>(() => ({ workspaceId: effectiveWorkspaceId }), [effectiveWorkspaceId]);\n\n const { data, loading, error, refetch } = useQuery<\n { healthyBowlLivestockFeed: LivestockFeed },\n {\n context: HbContext;\n groupId: string | null;\n from: string | null;\n to: string | null;\n granularity: GrowthGranularity;\n }\n >(GET_LIVESTOCK_FEED, {\n variables: {\n context: ctx,\n groupId: options.groupId ?? null,\n from: options.from ?? null,\n to: options.to ?? null,\n granularity: options.granularity ?? 'WEEK',\n },\n fetchPolicy: 'cache-and-network',\n skip: options.enabled === false,\n });\n\n const feed = data?.healthyBowlLivestockFeed ?? null;\n\n return {\n feed,\n buckets: feed?.buckets ?? [],\n summary: feed?.summary ?? null,\n loading,\n error,\n refetch,\n };\n}\n"],"mappings":";;;;;AAkBA,IAAM,IAAwB,wCAqCxB,IAAqB,CAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AA2C9B,SAAgB,EAA4B,IAAmC,EAAE,EAAE;CACjF,IAAM,EAAE,mBAAgB,GAAgB,EAClC,IAAuB,KAAe,GAGtC,EAAE,SAAM,YAAS,UAAO,eAAY,EASxC,GAAoB;EACpB,WAAW;GACT,SAbQ,SAA0B,EAAE,aAAa,GAAsB,GAAG,CAAC,EAAqB,CAAC;GAcjG,SAAS,EAAQ,WAAW;GAC5B,MAAM,EAAQ,QAAQ;GACtB,IAAI,EAAQ,MAAM;GAClB,aAAa,EAAQ,eAAe;GACrC;EACD,aAAa;EACb,MAAM,EAAQ,YAAY;EAC3B,CAAC,EAEI,IAAO,GAAM,4BAA4B;AAE/C,QAAO;EACL;EACA,SAAS,GAAM,WAAW,EAAE;EAC5B,SAAS,GAAM,WAAW;EAC1B;EACA;EACA;EACD"}
1
+ {"version":3,"file":"useHealthyBowlLivestockFeed.js","names":[],"sources":["../../../src/healthybowl/hooks/useHealthyBowlLivestockFeed.ts"],"sourcesContent":["/**\n * Livestock feed analytics — data hook (BOFF-5971, slice 2).\n *\n * Companion to `useHealthyBowlLivestockGrowth`: feed says what went in, growth says what came out.\n * The document is declared inline with `gql` for the same reason as its sibling — codegen validates\n * against the committed `graphql/wspace.graphql` snapshot, which does not yet carry this query.\n *\n * ⚠️ `totalKg` is null whenever the period mixes a non-mass unit (bags, litres). That is the\n * backend refusing to invent a total, not a loading state — render it as \"mixed units\", never as\n * zero.\n */\n\nimport { useMemo } from 'react';\nimport { gql } from '@apollo/client';\nimport { useQuery } from '@apollo/client/react';\nimport { useHealthyBowl } from '../context/HealthyBowlContext';\nimport type { GrowthGranularity } from './useHealthyBowlLivestockGrowth';\n\nconst FALLBACK_WORKSPACE_ID = '00000000-0000-0000-0000-000000000001';\n\nexport interface FeedUnitTotal {\n unit: string;\n quantity: number;\n}\n\nexport interface FeedBucket {\n at: string;\n totalCost: number;\n totalKg: number | null;\n byUnit: FeedUnitTotal[];\n records: number;\n}\n\nexport interface FeedSummary {\n totalCost: number;\n totalKg: number | null;\n totalGainKg: number | null;\n animalsCounted: number;\n feedConversionRatio: number | null;\n costPerKgGain: number | null;\n unitsSeen: string[];\n windowFrom: string | null;\n windowTo: string | null;\n granularity: GrowthGranularity;\n}\n\nexport interface LivestockFeed {\n /** True when the backend hit its row cap — results are incomplete (BOFF-6002). */\n truncated: boolean;\n buckets: FeedBucket[];\n summary: FeedSummary;\n}\n\ninterface HbContext {\n workspaceId: string;\n}\n\nconst GET_LIVESTOCK_FEED = gql`\n query HealthyBowlLivestockFeed(\n $context: ContextInput!\n $groupId: ID\n $from: String\n $to: String\n $granularity: HealthyBowlGrowthGranularity\n ) {\n healthyBowlLivestockFeed(context: $context, groupId: $groupId, from: $from, to: $to, granularity: $granularity) {\n truncated\n buckets {\n at\n totalCost\n totalKg\n byUnit {\n unit\n quantity\n }\n records\n }\n summary {\n totalCost\n totalKg\n totalGainKg\n animalsCounted\n feedConversionRatio\n costPerKgGain\n unitsSeen\n windowFrom\n windowTo\n granularity\n }\n }\n }\n`;\n\nexport interface UseLivestockFeedOptions {\n enabled?: boolean;\n groupId?: string | null;\n from?: string | null;\n to?: string | null;\n granularity?: GrowthGranularity;\n}\n\nexport function useHealthyBowlLivestockFeed(options: UseLivestockFeedOptions = {}) {\n const { workspaceId } = useHealthyBowl();\n const effectiveWorkspaceId = workspaceId || FALLBACK_WORKSPACE_ID;\n const ctx = useMemo<HbContext>(() => ({ workspaceId: effectiveWorkspaceId }), [effectiveWorkspaceId]);\n\n const { data, loading, error, refetch } = useQuery<\n { healthyBowlLivestockFeed: LivestockFeed },\n {\n context: HbContext;\n groupId: string | null;\n from: string | null;\n to: string | null;\n granularity: GrowthGranularity;\n }\n >(GET_LIVESTOCK_FEED, {\n variables: {\n context: ctx,\n groupId: options.groupId ?? null,\n from: options.from ?? null,\n to: options.to ?? null,\n granularity: options.granularity ?? 'WEEK',\n },\n fetchPolicy: 'cache-and-network',\n skip: options.enabled === false,\n });\n\n const feed = data?.healthyBowlLivestockFeed ?? null;\n\n return {\n feed,\n truncated: feed?.truncated ?? false,\n buckets: feed?.buckets ?? [],\n summary: feed?.summary ?? null,\n loading,\n error,\n refetch,\n };\n}\n"],"mappings":";;;;;AAkBA,IAAM,IAAwB,wCAuCxB,IAAqB,CAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AA4C9B,SAAgB,EAA4B,IAAmC,EAAE,EAAE;CACjF,IAAM,EAAE,mBAAgB,GAAgB,EAClC,IAAuB,KAAe,GAGtC,EAAE,SAAM,YAAS,UAAO,eAAY,EASxC,GAAoB;EACpB,WAAW;GACT,SAbQ,SAA0B,EAAE,aAAa,GAAsB,GAAG,CAAC,EAAqB,CAAC;GAcjG,SAAS,EAAQ,WAAW;GAC5B,MAAM,EAAQ,QAAQ;GACtB,IAAI,EAAQ,MAAM;GAClB,aAAa,EAAQ,eAAe;GACrC;EACD,aAAa;EACb,MAAM,EAAQ,YAAY;EAC3B,CAAC,EAEI,IAAO,GAAM,4BAA4B;AAE/C,QAAO;EACL;EACA,WAAW,GAAM,aAAa;EAC9B,SAAS,GAAM,WAAW,EAAE;EAC5B,SAAS,GAAM,WAAW;EAC1B;EACA;EACA;EACD"}
@@ -20,6 +20,7 @@ var i = "00000000-0000-0000-0000-000000000001", a = n`
20
20
  to: $to
21
21
  granularity: $granularity
22
22
  ) {
23
+ truncated
23
24
  series {
24
25
  animalId
25
26
  tagNumber
@@ -79,6 +80,7 @@ function o(n = {}) {
79
80
  }), f = c?.healthyBowlLivestockGrowth ?? null;
80
81
  return {
81
82
  growth: f,
83
+ truncated: f?.truncated ?? !1,
82
84
  series: f?.series ?? [],
83
85
  herdAverage: f?.herdAverage ?? [],
84
86
  summary: f?.summary ?? null,
@@ -1 +1 @@
1
- {"version":3,"file":"useHealthyBowlLivestockGrowth.js","names":[],"sources":["../../../src/healthybowl/hooks/useHealthyBowlLivestockGrowth.ts"],"sourcesContent":["/**\n * Livestock growth analytics — data hook (BOFF-5971).\n *\n * Feeds the growth chart: one weight curve per animal, a herd-average line, and the ADG leaders.\n * The document is declared inline with `gql` — the same escape hatch `useHealthyBowlLivestockDepth`\n * and `useHealthyBowlWithdrawal` use — because codegen validates against the committed\n * `graphql/wspace.graphql` snapshot, which does not yet carry this query.\n *\n * Types mirror `wspace-healthybowl-svc/src/modules/healthybowl/schema/livestock-depth.gql`.\n *\n * ⚠️ ADG here is computed over the requested window, so it can legitimately differ from the\n * lifetime ADG shown on the deep herd view — same formula, different span. Label it as such\n * wherever both appear on one screen.\n */\n\nimport { useMemo } from 'react';\nimport { gql } from '@apollo/client';\nimport { useQuery } from '@apollo/client/react';\nimport { useHealthyBowl } from '../context/HealthyBowlContext';\n\nconst FALLBACK_WORKSPACE_ID = '00000000-0000-0000-0000-000000000001';\n\n// ── types (mirror livestock-depth.gql) ────────────────────────────────────────\n\nexport type GrowthGranularity = 'DAY' | 'WEEK' | 'MONTH';\n\nexport interface GrowthPoint {\n at: string;\n weightKg: number;\n}\n\nexport interface GrowthSeries {\n animalId: string;\n tagNumber: string;\n name: string;\n type: string;\n groupId: string | null;\n groupName: string | null;\n points: GrowthPoint[];\n adgKgPerDay: number | null;\n latestWeightKg: number | null;\n latestWeightAt: string | null;\n}\n\nexport interface GrowthAveragePoint {\n at: string;\n avgWeightKg: number;\n animalCount: number;\n sampleSize: number;\n}\n\nexport interface GrowthLeader {\n animalId: string;\n name: string;\n tagNumber: string;\n adgKgPerDay: number;\n}\n\nexport interface GrowthSummary {\n animalsWithWeights: number;\n animalsWithoutWeights: number;\n medianAdgKgPerDay: number | null;\n fastestGrowing: GrowthLeader | null;\n slowestGrowing: GrowthLeader | null;\n windowFrom: string | null;\n windowTo: string | null;\n granularity: GrowthGranularity;\n}\n\nexport interface LivestockGrowth {\n series: GrowthSeries[];\n herdAverage: GrowthAveragePoint[];\n summary: GrowthSummary;\n}\n\ninterface HbContext {\n workspaceId: string;\n}\n\nconst GET_LIVESTOCK_GROWTH = gql`\n query HealthyBowlLivestockGrowth(\n $context: ContextInput!\n $groupId: ID\n $animalIds: [ID!]\n $from: String\n $to: String\n $granularity: HealthyBowlGrowthGranularity\n ) {\n healthyBowlLivestockGrowth(\n context: $context\n groupId: $groupId\n animalIds: $animalIds\n from: $from\n to: $to\n granularity: $granularity\n ) {\n series {\n animalId\n tagNumber\n name\n type\n groupId\n groupName\n points {\n at\n weightKg\n }\n adgKgPerDay\n latestWeightKg\n latestWeightAt\n }\n herdAverage {\n at\n avgWeightKg\n animalCount\n sampleSize\n }\n summary {\n animalsWithWeights\n animalsWithoutWeights\n medianAdgKgPerDay\n fastestGrowing {\n animalId\n name\n tagNumber\n adgKgPerDay\n }\n slowestGrowing {\n animalId\n name\n tagNumber\n adgKgPerDay\n }\n windowFrom\n windowTo\n granularity\n }\n }\n }\n`;\n\nexport interface UseLivestockGrowthOptions {\n enabled?: boolean;\n groupId?: string | null;\n animalIds?: string[] | null;\n from?: string | null;\n to?: string | null;\n granularity?: GrowthGranularity;\n}\n\nexport function useHealthyBowlLivestockGrowth(options: UseLivestockGrowthOptions = {}) {\n const { workspaceId } = useHealthyBowl();\n const effectiveWorkspaceId = workspaceId || FALLBACK_WORKSPACE_ID;\n const ctx = useMemo<HbContext>(() => ({ workspaceId: effectiveWorkspaceId }), [effectiveWorkspaceId]);\n\n const { data, loading, error, refetch } = useQuery<\n { healthyBowlLivestockGrowth: LivestockGrowth },\n {\n context: HbContext;\n groupId: string | null;\n animalIds: string[] | null;\n from: string | null;\n to: string | null;\n granularity: GrowthGranularity;\n }\n >(GET_LIVESTOCK_GROWTH, {\n variables: {\n context: ctx,\n groupId: options.groupId ?? null,\n animalIds: options.animalIds ?? null,\n from: options.from ?? null,\n to: options.to ?? null,\n granularity: options.granularity ?? 'WEEK',\n },\n fetchPolicy: 'cache-and-network',\n skip: options.enabled === false,\n });\n\n const growth = data?.healthyBowlLivestockGrowth ?? null;\n\n return {\n growth,\n series: growth?.series ?? [],\n herdAverage: growth?.herdAverage ?? [],\n summary: growth?.summary ?? null,\n loading,\n error,\n refetch,\n };\n}\n"],"mappings":";;;;;AAoBA,IAAM,IAAwB,wCA2DxB,IAAuB,CAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAuEhC,SAAgB,EAA8B,IAAqC,EAAE,EAAE;CACrF,IAAM,EAAE,mBAAgB,GAAgB,EAClC,IAAuB,KAAe,GAGtC,EAAE,SAAM,YAAS,UAAO,eAAY,EAUxC,GAAsB;EACtB,WAAW;GACT,SAdQ,SAA0B,EAAE,aAAa,GAAsB,GAAG,CAAC,EAAqB,CAAC;GAejG,SAAS,EAAQ,WAAW;GAC5B,WAAW,EAAQ,aAAa;GAChC,MAAM,EAAQ,QAAQ;GACtB,IAAI,EAAQ,MAAM;GAClB,aAAa,EAAQ,eAAe;GACrC;EACD,aAAa;EACb,MAAM,EAAQ,YAAY;EAC3B,CAAC,EAEI,IAAS,GAAM,8BAA8B;AAEnD,QAAO;EACL;EACA,QAAQ,GAAQ,UAAU,EAAE;EAC5B,aAAa,GAAQ,eAAe,EAAE;EACtC,SAAS,GAAQ,WAAW;EAC5B;EACA;EACA;EACD"}
1
+ {"version":3,"file":"useHealthyBowlLivestockGrowth.js","names":[],"sources":["../../../src/healthybowl/hooks/useHealthyBowlLivestockGrowth.ts"],"sourcesContent":["/**\n * Livestock growth analytics — data hook (BOFF-5971).\n *\n * Feeds the growth chart: one weight curve per animal, a herd-average line, and the ADG leaders.\n * The document is declared inline with `gql` — the same escape hatch `useHealthyBowlLivestockDepth`\n * and `useHealthyBowlWithdrawal` use — because codegen validates against the committed\n * `graphql/wspace.graphql` snapshot, which does not yet carry this query.\n *\n * Types mirror `wspace-healthybowl-svc/src/modules/healthybowl/schema/livestock-depth.gql`.\n *\n * ⚠️ ADG here is computed over the requested window, so it can legitimately differ from the\n * lifetime ADG shown on the deep herd view — same formula, different span. Label it as such\n * wherever both appear on one screen.\n */\n\nimport { useMemo } from 'react';\nimport { gql } from '@apollo/client';\nimport { useQuery } from '@apollo/client/react';\nimport { useHealthyBowl } from '../context/HealthyBowlContext';\n\nconst FALLBACK_WORKSPACE_ID = '00000000-0000-0000-0000-000000000001';\n\n// ── types (mirror livestock-depth.gql) ────────────────────────────────────────\n\nexport type GrowthGranularity = 'DAY' | 'WEEK' | 'MONTH';\n\nexport interface GrowthPoint {\n at: string;\n weightKg: number;\n}\n\nexport interface GrowthSeries {\n animalId: string;\n tagNumber: string;\n name: string;\n type: string;\n groupId: string | null;\n groupName: string | null;\n points: GrowthPoint[];\n adgKgPerDay: number | null;\n latestWeightKg: number | null;\n latestWeightAt: string | null;\n}\n\nexport interface GrowthAveragePoint {\n at: string;\n avgWeightKg: number;\n animalCount: number;\n sampleSize: number;\n}\n\nexport interface GrowthLeader {\n animalId: string;\n name: string;\n tagNumber: string;\n adgKgPerDay: number;\n}\n\nexport interface GrowthSummary {\n animalsWithWeights: number;\n animalsWithoutWeights: number;\n medianAdgKgPerDay: number | null;\n fastestGrowing: GrowthLeader | null;\n slowestGrowing: GrowthLeader | null;\n windowFrom: string | null;\n windowTo: string | null;\n granularity: GrowthGranularity;\n}\n\nexport interface LivestockGrowth {\n /** True when the backend hit its row cap — results are incomplete (BOFF-6002). */\n truncated: boolean;\n series: GrowthSeries[];\n herdAverage: GrowthAveragePoint[];\n summary: GrowthSummary;\n}\n\ninterface HbContext {\n workspaceId: string;\n}\n\nconst GET_LIVESTOCK_GROWTH = gql`\n query HealthyBowlLivestockGrowth(\n $context: ContextInput!\n $groupId: ID\n $animalIds: [ID!]\n $from: String\n $to: String\n $granularity: HealthyBowlGrowthGranularity\n ) {\n healthyBowlLivestockGrowth(\n context: $context\n groupId: $groupId\n animalIds: $animalIds\n from: $from\n to: $to\n granularity: $granularity\n ) {\n truncated\n series {\n animalId\n tagNumber\n name\n type\n groupId\n groupName\n points {\n at\n weightKg\n }\n adgKgPerDay\n latestWeightKg\n latestWeightAt\n }\n herdAverage {\n at\n avgWeightKg\n animalCount\n sampleSize\n }\n summary {\n animalsWithWeights\n animalsWithoutWeights\n medianAdgKgPerDay\n fastestGrowing {\n animalId\n name\n tagNumber\n adgKgPerDay\n }\n slowestGrowing {\n animalId\n name\n tagNumber\n adgKgPerDay\n }\n windowFrom\n windowTo\n granularity\n }\n }\n }\n`;\n\nexport interface UseLivestockGrowthOptions {\n enabled?: boolean;\n groupId?: string | null;\n animalIds?: string[] | null;\n from?: string | null;\n to?: string | null;\n granularity?: GrowthGranularity;\n}\n\nexport function useHealthyBowlLivestockGrowth(options: UseLivestockGrowthOptions = {}) {\n const { workspaceId } = useHealthyBowl();\n const effectiveWorkspaceId = workspaceId || FALLBACK_WORKSPACE_ID;\n const ctx = useMemo<HbContext>(() => ({ workspaceId: effectiveWorkspaceId }), [effectiveWorkspaceId]);\n\n const { data, loading, error, refetch } = useQuery<\n { healthyBowlLivestockGrowth: LivestockGrowth },\n {\n context: HbContext;\n groupId: string | null;\n animalIds: string[] | null;\n from: string | null;\n to: string | null;\n granularity: GrowthGranularity;\n }\n >(GET_LIVESTOCK_GROWTH, {\n variables: {\n context: ctx,\n groupId: options.groupId ?? null,\n animalIds: options.animalIds ?? null,\n from: options.from ?? null,\n to: options.to ?? null,\n granularity: options.granularity ?? 'WEEK',\n },\n fetchPolicy: 'cache-and-network',\n skip: options.enabled === false,\n });\n\n const growth = data?.healthyBowlLivestockGrowth ?? null;\n\n return {\n growth,\n truncated: growth?.truncated ?? false,\n series: growth?.series ?? [],\n herdAverage: growth?.herdAverage ?? [],\n summary: growth?.summary ?? null,\n loading,\n error,\n refetch,\n };\n}\n"],"mappings":";;;;;AAoBA,IAAM,IAAwB,wCA6DxB,IAAuB,CAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAwEhC,SAAgB,EAA8B,IAAqC,EAAE,EAAE;CACrF,IAAM,EAAE,mBAAgB,GAAgB,EAClC,IAAuB,KAAe,GAGtC,EAAE,SAAM,YAAS,UAAO,eAAY,EAUxC,GAAsB;EACtB,WAAW;GACT,SAdQ,SAA0B,EAAE,aAAa,GAAsB,GAAG,CAAC,EAAqB,CAAC;GAejG,SAAS,EAAQ,WAAW;GAC5B,WAAW,EAAQ,aAAa;GAChC,MAAM,EAAQ,QAAQ;GACtB,IAAI,EAAQ,MAAM;GAClB,aAAa,EAAQ,eAAe;GACrC;EACD,aAAa;EACb,MAAM,EAAQ,YAAY;EAC3B,CAAC,EAEI,IAAS,GAAM,8BAA8B;AAEnD,QAAO;EACL;EACA,WAAW,GAAQ,aAAa;EAChC,QAAQ,GAAQ,UAAU,EAAE;EAC5B,aAAa,GAAQ,eAAe,EAAE;EACtC,SAAS,GAAQ,WAAW;EAC5B;EACA;EACA;EACD"}
@@ -17,10 +17,10 @@ var h = [
17
17
  "WEEK",
18
18
  "MONTH"
19
19
  ], g = ({ groupId: g = null, className: _ }) => {
20
- let { t: v } = d(), [y, b] = u("WEEK"), { buckets: x, summary: S, loading: C, error: w } = l({
20
+ let { t: v } = d(), [y, b] = u("WEEK"), { buckets: x, summary: S, loading: C, error: w, truncated: T } = l({
21
21
  groupId: g,
22
22
  granularity: y
23
- }), T = x.length > 0, E = /* @__PURE__ */ p("div", {
23
+ }), E = x.length > 0, D = /* @__PURE__ */ p("div", {
24
24
  className: "flex items-center gap-1",
25
25
  children: h.map((e) => /* @__PURE__ */ p("button", {
26
26
  type: "button",
@@ -33,7 +33,7 @@ var h = [
33
33
  return /* @__PURE__ */ p(t, {
34
34
  title: v("healthybowl.livestock.feed.title", "Feed"),
35
35
  description: v("healthybowl.livestock.feed.description", "What the herd ate, what it cost, and how much weight it bought."),
36
- actions: E,
36
+ actions: D,
37
37
  className: _,
38
38
  children: w ? /* @__PURE__ */ m("div", {
39
39
  className: "py-8 text-center",
@@ -44,10 +44,10 @@ var h = [
44
44
  className: "mt-1 text-xs text-text-secondary",
45
45
  children: w.message
46
46
  })]
47
- }) : C && !T ? /* @__PURE__ */ p("p", {
47
+ }) : C && !E ? /* @__PURE__ */ p("p", {
48
48
  className: "py-8 text-center text-xs text-text-secondary",
49
49
  children: v("healthybowl.livestock.feed.loading", "Loading feed data…")
50
- }) : T ? /* @__PURE__ */ m(f, { children: [
50
+ }) : E ? /* @__PURE__ */ m(f, { children: [
51
51
  /* @__PURE__ */ p(r, {
52
52
  width: "100%",
53
53
  height: 240,
@@ -106,6 +106,10 @@ var h = [
106
106
  ]
107
107
  })
108
108
  }),
109
+ T && /* @__PURE__ */ p("p", {
110
+ className: "mt-2 rounded-md bg-bg-sunken/60 px-3 py-2 text-xs text-text-secondary",
111
+ children: v("healthybowl.livestock.feed.truncated", "This herd has more records than one view can load, so the totals below cover only part of the period. Narrow the date range or filter by group for an exact figure.")
112
+ }),
109
113
  S && /* @__PURE__ */ m("dl", {
110
114
  className: "mt-3 grid grid-cols-2 gap-3 border-t border-border-subtle pt-3 sm:grid-cols-4",
111
115
  children: [
@@ -1 +1 @@
1
- {"version":3,"file":"LivestockFeedCard.js","names":[],"sources":["../../../../src/healthybowl/pages/livestock/LivestockFeedCard.tsx"],"sourcesContent":["/**\n * Livestock feed chart (BOFF-5971, slice 2).\n *\n * Sits under the growth card: growth shows what came out, this shows what went in and what it cost.\n *\n * Deliberate choices:\n * - **Cost is the plotted series, not quantity.** `FeedRecord.unit` is free text, so a period can\n * mix kg with bags and litres; the backend refuses to total those into kilograms and returns\n * null. Currency always sums, so spend is the one series that is honest in every workspace.\n * Quantity appears in the tooltip, per unit.\n * - **\"Mixed units\" is rendered as a statement, never as 0 kg.** A null total means the backend\n * declined to invent a number, and showing zero would misreport intake as nothing.\n * - Feed conversion is shown beside cost-per-kg-gained, because a farm buying feed in bags can\n * still act on the second even when the first is uncomputable.\n */\n\nimport { useState, type FC } from 'react';\nimport { Bar, BarChart, CartesianGrid, ResponsiveContainer, Tooltip, XAxis, YAxis } from 'recharts';\nimport { useI18n } from '@burdenoff/fe-libs/shared/providers/shell/I18nProvider';\nimport { ChartCard } from '../../components/ChartCard';\nimport { formatNumber } from '../../utils/helpers';\nimport { useHealthyBowlLivestockFeed } from '../../hooks/useHealthyBowlLivestockFeed';\nimport type { GrowthGranularity } from '../../hooks/useHealthyBowlLivestockGrowth';\n\nconst GRANULARITIES: GrowthGranularity[] = ['DAY', 'WEEK', 'MONTH'];\n\ninterface LivestockFeedCardProps {\n groupId?: string | null;\n className?: string;\n}\n\nexport const LivestockFeedCard: FC<LivestockFeedCardProps> = ({ groupId = null, className }) => {\n const { t } = useI18n();\n const [granularity, setGranularity] = useState<GrowthGranularity>('WEEK');\n const { buckets, summary, loading, error } = useHealthyBowlLivestockFeed({ groupId, granularity });\n\n const hasData = buckets.length > 0;\n\n const granularityToggle = (\n <div className=\"flex items-center gap-1\">\n {GRANULARITIES.map((g) => (\n <button\n key={g}\n type=\"button\"\n onClick={() => setGranularity(g)}\n aria-pressed={granularity === g}\n className={`min-h-[32px] rounded-md px-2 py-1 text-xs transition-colors ${\n granularity === g\n ? 'bg-action-primary-bg text-action-primary-text'\n : 'text-text-secondary hover:bg-bg-sunken/50'\n }`}\n >\n {t(`healthybowl.livestock.feed.granularity.${g.toLowerCase()}`, g.charAt(0) + g.slice(1).toLowerCase())}\n </button>\n ))}\n </div>\n );\n\n /** Null kg means \"units cannot be totalled\", which must never render as 0. */\n const kgLabel = (kg: number | null): string =>\n kg === null ? t('healthybowl.livestock.feed.mixedUnits', 'mixed units') : `${formatNumber(kg)} kg`;\n\n return (\n <ChartCard\n title={t('healthybowl.livestock.feed.title', 'Feed')}\n description={t(\n 'healthybowl.livestock.feed.description',\n 'What the herd ate, what it cost, and how much weight it bought.'\n )}\n actions={granularityToggle}\n className={className}\n >\n {error ? (\n <div className=\"py-8 text-center\">\n <p className=\"text-sm text-text-primary\">\n {t('healthybowl.livestock.feed.error.title', 'Could not load feed data')}\n </p>\n <p className=\"mt-1 text-xs text-text-secondary\">{error.message}</p>\n </div>\n ) : loading && !hasData ? (\n <p className=\"py-8 text-center text-xs text-text-secondary\">\n {t('healthybowl.livestock.feed.loading', 'Loading feed data…')}\n </p>\n ) : !hasData ? (\n <div className=\"py-8 text-center\">\n <p className=\"text-sm text-text-primary\">\n {t('healthybowl.livestock.feed.empty.title', 'No feed recorded yet')}\n </p>\n <p className=\"mt-1 text-xs text-text-secondary\">\n {t(\n 'healthybowl.livestock.feed.empty.hint',\n 'Log what you feed the herd to see spend over time — and, with weights, what it costs to add a kilo.'\n )}\n </p>\n </div>\n ) : (\n <>\n <ResponsiveContainer width=\"100%\" height={240}>\n <BarChart data={buckets} margin={{ top: 5, right: 20, left: 0, bottom: 5 }}>\n <CartesianGrid strokeDasharray=\"3 3\" stroke=\"var(--color-border)\" />\n <XAxis dataKey=\"at\" tick={{ fontSize: 11 }} stroke=\"var(--color-muted-foreground)\" />\n <YAxis tick={{ fontSize: 11 }} stroke=\"var(--color-muted-foreground)\" />\n <Tooltip\n cursor={{ fill: 'var(--color-muted)', opacity: 0.2 }}\n contentStyle={{\n backgroundColor: 'var(--color-card)',\n border: '1px solid var(--color-border)',\n borderRadius: 8,\n fontSize: 12,\n }}\n labelStyle={{ color: 'var(--color-foreground)' }}\n formatter={(value: number | string, _name: string, item: { payload?: FeedTooltipPayload }) => {\n const p = item?.payload;\n const qty = (p?.byUnit ?? []).map((u) => `${formatNumber(u.quantity)} ${u.unit}`).join(', ');\n return [\n formatNumber(typeof value === 'number' ? value : Number(value)),\n t('healthybowl.livestock.feed.tooltip.cost', 'Spend — {{qty}} across {{n}} records', {\n qty: qty || '—',\n n: String(p?.records ?? 0),\n }),\n ];\n }}\n />\n <Bar dataKey=\"totalCost\" fill=\"var(--color-success)\" radius={[3, 3, 0, 0]} />\n </BarChart>\n </ResponsiveContainer>\n\n {summary && (\n <dl className=\"mt-3 grid grid-cols-2 gap-3 border-t border-border-subtle pt-3 sm:grid-cols-4\">\n <div>\n <dt className=\"text-xs text-text-secondary\">\n {t('healthybowl.livestock.feed.summary.spend', 'Total spend')}\n </dt>\n <dd className=\"text-sm font-medium text-text-primary\">{formatNumber(summary.totalCost)}</dd>\n </div>\n <div>\n <dt className=\"text-xs text-text-secondary\">\n {t('healthybowl.livestock.feed.summary.intake', 'Feed used')}\n </dt>\n <dd className=\"text-sm font-medium text-text-primary\">{kgLabel(summary.totalKg)}</dd>\n </div>\n <div>\n <dt className=\"text-xs text-text-secondary\">\n {t('healthybowl.livestock.feed.summary.fcr', 'Feed per kg gained')}\n </dt>\n <dd className=\"text-sm font-medium text-text-primary\">\n {summary.feedConversionRatio === null ? '—' : `${summary.feedConversionRatio} kg`}\n </dd>\n </div>\n <div>\n <dt className=\"text-xs text-text-secondary\">\n {t('healthybowl.livestock.feed.summary.costPerKg', 'Cost per kg gained')}\n </dt>\n <dd className=\"text-sm font-medium text-text-primary\">\n {summary.costPerKgGain === null ? '—' : formatNumber(summary.costPerKgGain)}\n </dd>\n </div>\n </dl>\n )}\n\n {summary && summary.totalKg === null && summary.unitsSeen.length > 1 && (\n <p className=\"mt-2 text-xs text-text-secondary\">\n {t(\n 'healthybowl.livestock.feed.mixedUnitsHint',\n 'Feed was recorded in {{units}}, so it cannot be totalled by weight — spend per kilo gained still is.',\n { units: summary.unitsSeen.join(', ') }\n )}\n </p>\n )}\n </>\n )}\n </ChartCard>\n );\n};\n\ninterface FeedTooltipPayload {\n byUnit?: { unit: string; quantity: number }[];\n records?: number;\n}\n"],"mappings":";;;;;;;;;;;;;;AAwBA,IAAM,IAAqC;CAAC;CAAO;CAAQ;CAAQ,EAOtD,KAAiD,EAAE,aAAU,MAAM,mBAAgB;CAC9F,IAAM,EAAE,SAAM,GAAS,EACjB,CAAC,GAAa,KAAkB,EAA4B,OAAO,EACnE,EAAE,YAAS,YAAS,YAAS,aAAU,EAA4B;EAAE;EAAS;EAAa,CAAC,EAE5F,IAAU,EAAQ,SAAS,GAE3B,IACJ,kB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AE,gDAAgD,qBAAqB;MACrE,CAAA,EACL,kBAAC,MAAD;MAAI,WAAU;gBACX,EAAQ,kBAAkB,OAAO,MAAM,EAAa,EAAQ,cAAc;MACxE,CAAA,CACD,EAAA,CAAA;KACH;;GAGN,KAAW,EAAQ,YAAY,QAAQ,EAAQ,UAAU,SAAS,KACjE,kBAAC,KAAD;IAAG,WAAU;cACV,EACC,6CACA,wGACA,EAAE,OAAO,EAAQ,UAAU,KAAK,KAAK,EAAE,CACxC;IACC,CAAA;GAEL,EAAA,CAAA,GArFH,kBAAC,OAAD;GAAK,WAAU;aAAf,CACE,kBAAC,KAAD;IAAG,WAAU;cACV,EAAE,0CAA0C,uBAAuB;IAClE,CAAA,EACJ,kBAAC,KAAD;IAAG,WAAU;cACV,EACC,yCACA,sGACD;IACC,CAAA,CACA;;EA6EE,CAAA"}
1
+ {"version":3,"file":"LivestockFeedCard.js","names":[],"sources":["../../../../src/healthybowl/pages/livestock/LivestockFeedCard.tsx"],"sourcesContent":["/**\n * Livestock feed chart (BOFF-5971, slice 2).\n *\n * Sits under the growth card: growth shows what came out, this shows what went in and what it cost.\n *\n * Deliberate choices:\n * - **Cost is the plotted series, not quantity.** `FeedRecord.unit` is free text, so a period can\n * mix kg with bags and litres; the backend refuses to total those into kilograms and returns\n * null. Currency always sums, so spend is the one series that is honest in every workspace.\n * Quantity appears in the tooltip, per unit.\n * - **\"Mixed units\" is rendered as a statement, never as 0 kg.** A null total means the backend\n * declined to invent a number, and showing zero would misreport intake as nothing.\n * - Feed conversion is shown beside cost-per-kg-gained, because a farm buying feed in bags can\n * still act on the second even when the first is uncomputable.\n */\n\nimport { useState, type FC } from 'react';\nimport { Bar, BarChart, CartesianGrid, ResponsiveContainer, Tooltip, XAxis, YAxis } from 'recharts';\nimport { useI18n } from '@burdenoff/fe-libs/shared/providers/shell/I18nProvider';\nimport { ChartCard } from '../../components/ChartCard';\nimport { formatNumber } from '../../utils/helpers';\nimport { useHealthyBowlLivestockFeed } from '../../hooks/useHealthyBowlLivestockFeed';\nimport type { GrowthGranularity } from '../../hooks/useHealthyBowlLivestockGrowth';\n\nconst GRANULARITIES: GrowthGranularity[] = ['DAY', 'WEEK', 'MONTH'];\n\ninterface LivestockFeedCardProps {\n groupId?: string | null;\n className?: string;\n}\n\nexport const LivestockFeedCard: FC<LivestockFeedCardProps> = ({ groupId = null, className }) => {\n const { t } = useI18n();\n const [granularity, setGranularity] = useState<GrowthGranularity>('WEEK');\n const { buckets, summary, loading, error, truncated } = useHealthyBowlLivestockFeed({ groupId, granularity });\n\n const hasData = buckets.length > 0;\n\n const granularityToggle = (\n <div className=\"flex items-center gap-1\">\n {GRANULARITIES.map((g) => (\n <button\n key={g}\n type=\"button\"\n onClick={() => setGranularity(g)}\n aria-pressed={granularity === g}\n className={`min-h-[32px] rounded-md px-2 py-1 text-xs transition-colors ${\n granularity === g\n ? 'bg-action-primary-bg text-action-primary-text'\n : 'text-text-secondary hover:bg-bg-sunken/50'\n }`}\n >\n {t(`healthybowl.livestock.feed.granularity.${g.toLowerCase()}`, g.charAt(0) + g.slice(1).toLowerCase())}\n </button>\n ))}\n </div>\n );\n\n /** Null kg means \"units cannot be totalled\", which must never render as 0. */\n const kgLabel = (kg: number | null): string =>\n kg === null ? t('healthybowl.livestock.feed.mixedUnits', 'mixed units') : `${formatNumber(kg)} kg`;\n\n return (\n <ChartCard\n title={t('healthybowl.livestock.feed.title', 'Feed')}\n description={t(\n 'healthybowl.livestock.feed.description',\n 'What the herd ate, what it cost, and how much weight it bought.'\n )}\n actions={granularityToggle}\n className={className}\n >\n {error ? (\n <div className=\"py-8 text-center\">\n <p className=\"text-sm text-text-primary\">\n {t('healthybowl.livestock.feed.error.title', 'Could not load feed data')}\n </p>\n <p className=\"mt-1 text-xs text-text-secondary\">{error.message}</p>\n </div>\n ) : loading && !hasData ? (\n <p className=\"py-8 text-center text-xs text-text-secondary\">\n {t('healthybowl.livestock.feed.loading', 'Loading feed data…')}\n </p>\n ) : !hasData ? (\n <div className=\"py-8 text-center\">\n <p className=\"text-sm text-text-primary\">\n {t('healthybowl.livestock.feed.empty.title', 'No feed recorded yet')}\n </p>\n <p className=\"mt-1 text-xs text-text-secondary\">\n {t(\n 'healthybowl.livestock.feed.empty.hint',\n 'Log what you feed the herd to see spend over time — and, with weights, what it costs to add a kilo.'\n )}\n </p>\n </div>\n ) : (\n <>\n <ResponsiveContainer width=\"100%\" height={240}>\n <BarChart data={buckets} margin={{ top: 5, right: 20, left: 0, bottom: 5 }}>\n <CartesianGrid strokeDasharray=\"3 3\" stroke=\"var(--color-border)\" />\n <XAxis dataKey=\"at\" tick={{ fontSize: 11 }} stroke=\"var(--color-muted-foreground)\" />\n <YAxis tick={{ fontSize: 11 }} stroke=\"var(--color-muted-foreground)\" />\n <Tooltip\n cursor={{ fill: 'var(--color-muted)', opacity: 0.2 }}\n contentStyle={{\n backgroundColor: 'var(--color-card)',\n border: '1px solid var(--color-border)',\n borderRadius: 8,\n fontSize: 12,\n }}\n labelStyle={{ color: 'var(--color-foreground)' }}\n formatter={(value: number | string, _name: string, item: { payload?: FeedTooltipPayload }) => {\n const p = item?.payload;\n const qty = (p?.byUnit ?? []).map((u) => `${formatNumber(u.quantity)} ${u.unit}`).join(', ');\n return [\n formatNumber(typeof value === 'number' ? value : Number(value)),\n t('healthybowl.livestock.feed.tooltip.cost', 'Spend — {{qty}} across {{n}} records', {\n qty: qty || '—',\n n: String(p?.records ?? 0),\n }),\n ];\n }}\n />\n <Bar dataKey=\"totalCost\" fill=\"var(--color-success)\" radius={[3, 3, 0, 0]} />\n </BarChart>\n </ResponsiveContainer>\n\n {truncated && (\n <p className=\"mt-2 rounded-md bg-bg-sunken/60 px-3 py-2 text-xs text-text-secondary\">\n {t(\n 'healthybowl.livestock.feed.truncated',\n 'This herd has more records than one view can load, so the totals below cover only part of the period. Narrow the date range or filter by group for an exact figure.'\n )}\n </p>\n )}\n\n {summary && (\n <dl className=\"mt-3 grid grid-cols-2 gap-3 border-t border-border-subtle pt-3 sm:grid-cols-4\">\n <div>\n <dt className=\"text-xs text-text-secondary\">\n {t('healthybowl.livestock.feed.summary.spend', 'Total spend')}\n </dt>\n <dd className=\"text-sm font-medium text-text-primary\">{formatNumber(summary.totalCost)}</dd>\n </div>\n <div>\n <dt className=\"text-xs text-text-secondary\">\n {t('healthybowl.livestock.feed.summary.intake', 'Feed used')}\n </dt>\n <dd className=\"text-sm font-medium text-text-primary\">{kgLabel(summary.totalKg)}</dd>\n </div>\n <div>\n <dt className=\"text-xs text-text-secondary\">\n {t('healthybowl.livestock.feed.summary.fcr', 'Feed per kg gained')}\n </dt>\n <dd className=\"text-sm font-medium text-text-primary\">\n {summary.feedConversionRatio === null ? '—' : `${summary.feedConversionRatio} kg`}\n </dd>\n </div>\n <div>\n <dt className=\"text-xs text-text-secondary\">\n {t('healthybowl.livestock.feed.summary.costPerKg', 'Cost per kg gained')}\n </dt>\n <dd className=\"text-sm font-medium text-text-primary\">\n {summary.costPerKgGain === null ? '—' : formatNumber(summary.costPerKgGain)}\n </dd>\n </div>\n </dl>\n )}\n\n {summary && summary.totalKg === null && summary.unitsSeen.length > 1 && (\n <p className=\"mt-2 text-xs text-text-secondary\">\n {t(\n 'healthybowl.livestock.feed.mixedUnitsHint',\n 'Feed was recorded in {{units}}, so it cannot be totalled by weight — spend per kilo gained still is.',\n { units: summary.unitsSeen.join(', ') }\n )}\n </p>\n )}\n </>\n )}\n </ChartCard>\n );\n};\n\ninterface FeedTooltipPayload {\n byUnit?: { unit: string; quantity: number }[];\n records?: number;\n}\n"],"mappings":";;;;;;;;;;;;;;AAwBA,IAAM,IAAqC;CAAC;CAAO;CAAQ;CAAQ,EAOtD,KAAiD,EAAE,aAAU,MAAM,mBAAgB;CAC9F,IAAM,EAAE,SAAM,GAAS,EACjB,CAAC,GAAa,KAAkB,EAA4B,OAAO,EACnE,EAAE,YAAS,YAAS,YAAS,UAAO,iBAAc,EAA4B;EAAE;EAAS;EAAa,CAAC,EAEvG,IAAU,EAAQ,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AAA,CACD,EAAA,CAAA;KACN,kBAAC,OAAD,EAAA,UAAA,CACE,kBAAC,MAAD;MAAI,WAAU;gBACX,EAAE,gDAAgD,qBAAqB;MACrE,CAAA,EACL,kBAAC,MAAD;MAAI,WAAU;gBACX,EAAQ,kBAAkB,OAAO,MAAM,EAAa,EAAQ,cAAc;MACxE,CAAA,CACD,EAAA,CAAA;KACH;;GAGN,KAAW,EAAQ,YAAY,QAAQ,EAAQ,UAAU,SAAS,KACjE,kBAAC,KAAD;IAAG,WAAU;cACV,EACC,6CACA,wGACA,EAAE,OAAO,EAAQ,UAAU,KAAK,KAAK,EAAE,CACxC;IACC,CAAA;GAEL,EAAA,CAAA,GA9FH,kBAAC,OAAD;GAAK,WAAU;aAAf,CACE,kBAAC,KAAD;IAAG,WAAU;cACV,EAAE,0CAA0C,uBAAuB;IAClE,CAAA,EACJ,kBAAC,KAAD;IAAG,WAAU;cACV,EACC,yCACA,sGACD;IACC,CAAA,CACA;;EAsFE,CAAA"}
@@ -17,15 +17,15 @@ var g = [
17
17
  "WEEK",
18
18
  "MONTH"
19
19
  ], _ = ({ groupId: _ = null, className: v }) => {
20
- let { t: y } = f(), [b, x] = d("WEEK"), { herdAverage: S, summary: C, loading: w, error: T } = l({
20
+ let { t: y } = f(), [b, x] = d("WEEK"), { herdAverage: S, summary: C, loading: w, error: T, truncated: E } = l({
21
21
  groupId: _,
22
22
  granularity: b
23
- }), E = u(() => [...S].sort((e, t) => e.at.localeCompare(t.at)).map((e) => ({
23
+ }), D = u(() => [...S].sort((e, t) => e.at.localeCompare(t.at)).map((e) => ({
24
24
  at: e.at,
25
25
  herd: e.avgWeightKg,
26
26
  animalCount: e.animalCount,
27
27
  sampleSize: e.sampleSize
28
- })), [S]), D = E.length > 0, O = /* @__PURE__ */ m("div", {
28
+ })), [S]), O = D.length > 0, k = /* @__PURE__ */ m("div", {
29
29
  className: "flex items-center gap-1",
30
30
  children: g.map((e) => /* @__PURE__ */ m("button", {
31
31
  type: "button",
@@ -38,7 +38,7 @@ var g = [
38
38
  return /* @__PURE__ */ m(t, {
39
39
  title: y("healthybowl.livestock.growth.title", "Growth"),
40
40
  description: y("healthybowl.livestock.growth.description", "Average herd weight over time, and how fast each animal is gaining."),
41
- actions: O,
41
+ actions: k,
42
42
  className: v,
43
43
  children: T ? /* @__PURE__ */ h("div", {
44
44
  className: "py-8 text-center",
@@ -49,109 +49,116 @@ var g = [
49
49
  className: "mt-1 text-xs text-text-secondary",
50
50
  children: T.message
51
51
  })]
52
- }) : w && !D ? /* @__PURE__ */ m("p", {
52
+ }) : w && !O ? /* @__PURE__ */ m("p", {
53
53
  className: "py-8 text-center text-xs text-text-secondary",
54
54
  children: y("healthybowl.livestock.growth.loading", "Loading growth data…")
55
- }) : D ? /* @__PURE__ */ h(p, { children: [/* @__PURE__ */ m(r, {
56
- width: "100%",
57
- height: 280,
58
- children: /* @__PURE__ */ h(c, {
59
- data: E,
60
- margin: {
61
- top: 5,
62
- right: 20,
63
- left: 0,
64
- bottom: 5
65
- },
55
+ }) : O ? /* @__PURE__ */ h(p, { children: [
56
+ /* @__PURE__ */ m(r, {
57
+ width: "100%",
58
+ height: 280,
59
+ children: /* @__PURE__ */ h(c, {
60
+ data: D,
61
+ margin: {
62
+ top: 5,
63
+ right: 20,
64
+ left: 0,
65
+ bottom: 5
66
+ },
67
+ children: [
68
+ /* @__PURE__ */ m(i, {
69
+ strokeDasharray: "3 3",
70
+ stroke: "var(--color-border)"
71
+ }),
72
+ /* @__PURE__ */ m(o, {
73
+ dataKey: "at",
74
+ tick: { fontSize: 11 },
75
+ stroke: "var(--color-muted-foreground)"
76
+ }),
77
+ /* @__PURE__ */ m(s, {
78
+ tick: { fontSize: 11 },
79
+ stroke: "var(--color-muted-foreground)",
80
+ label: {
81
+ value: "kg",
82
+ angle: -90,
83
+ position: "insideLeft",
84
+ fontSize: 11
85
+ }
86
+ }),
87
+ /* @__PURE__ */ m(n, {
88
+ contentStyle: {
89
+ backgroundColor: "var(--color-card)",
90
+ border: "1px solid var(--color-border)",
91
+ borderRadius: 8,
92
+ fontSize: 12
93
+ },
94
+ labelStyle: { color: "var(--color-foreground)" },
95
+ formatter: (t, n, r) => {
96
+ let i = typeof t == "number" ? e(t) : t;
97
+ if (n !== "herd") return [`${i} kg`, n];
98
+ let a = r?.payload?.animalCount, o = r?.payload?.sampleSize;
99
+ return [`${i} kg`, y("healthybowl.livestock.growth.tooltip.herd", "Herd average ({{count}} animals, {{samples}} readings)", {
100
+ count: String(a ?? "—"),
101
+ samples: String(o ?? "—")
102
+ })];
103
+ }
104
+ }),
105
+ /* @__PURE__ */ m(a, {
106
+ type: "monotone",
107
+ dataKey: "herd",
108
+ name: "herd",
109
+ stroke: "var(--color-success)",
110
+ strokeWidth: 2.5,
111
+ dot: { r: 2 },
112
+ connectNulls: !0
113
+ })
114
+ ]
115
+ })
116
+ }),
117
+ E && /* @__PURE__ */ m("p", {
118
+ className: "mt-2 rounded-md bg-bg-sunken/60 px-3 py-2 text-xs text-text-secondary",
119
+ children: y("healthybowl.livestock.growth.truncated", "This herd has more records than one view can load, so the average above covers only the most recent. Narrow the date range or filter by group for an exact figure.")
120
+ }),
121
+ C && /* @__PURE__ */ h("dl", {
122
+ className: "mt-3 grid grid-cols-2 gap-3 border-t border-border-subtle pt-3 sm:grid-cols-4",
66
123
  children: [
67
- /* @__PURE__ */ m(i, {
68
- strokeDasharray: "3 3",
69
- stroke: "var(--color-border)"
70
- }),
71
- /* @__PURE__ */ m(o, {
72
- dataKey: "at",
73
- tick: { fontSize: 11 },
74
- stroke: "var(--color-muted-foreground)"
75
- }),
76
- /* @__PURE__ */ m(s, {
77
- tick: { fontSize: 11 },
78
- stroke: "var(--color-muted-foreground)",
79
- label: {
80
- value: "kg",
81
- angle: -90,
82
- position: "insideLeft",
83
- fontSize: 11
84
- }
85
- }),
86
- /* @__PURE__ */ m(n, {
87
- contentStyle: {
88
- backgroundColor: "var(--color-card)",
89
- border: "1px solid var(--color-border)",
90
- borderRadius: 8,
91
- fontSize: 12
92
- },
93
- labelStyle: { color: "var(--color-foreground)" },
94
- formatter: (t, n, r) => {
95
- let i = typeof t == "number" ? e(t) : t;
96
- if (n !== "herd") return [`${i} kg`, n];
97
- let a = r?.payload?.animalCount, o = r?.payload?.sampleSize;
98
- return [`${i} kg`, y("healthybowl.livestock.growth.tooltip.herd", "Herd average ({{count}} animals, {{samples}} readings)", {
99
- count: String(a ?? "—"),
100
- samples: String(o ?? "—")
101
- })];
102
- }
103
- }),
104
- /* @__PURE__ */ m(a, {
105
- type: "monotone",
106
- dataKey: "herd",
107
- name: "herd",
108
- stroke: "var(--color-success)",
109
- strokeWidth: 2.5,
110
- dot: { r: 2 },
111
- connectNulls: !0
112
- })
124
+ /* @__PURE__ */ h("div", { children: [/* @__PURE__ */ m("dt", {
125
+ className: "text-xs text-text-secondary",
126
+ children: y("healthybowl.livestock.growth.summary.medianAdg", "Median gain")
127
+ }), /* @__PURE__ */ m("dd", {
128
+ className: "text-sm font-medium text-text-primary",
129
+ children: C.medianAdgKgPerDay === null ? "—" : `${C.medianAdgKgPerDay} kg/day`
130
+ })] }),
131
+ /* @__PURE__ */ h("div", { children: [/* @__PURE__ */ m("dt", {
132
+ className: "text-xs text-text-secondary",
133
+ children: y("healthybowl.livestock.growth.summary.fastest", "Fastest")
134
+ }), /* @__PURE__ */ m("dd", {
135
+ className: "text-sm font-medium text-text-primary",
136
+ children: C.fastestGrowing ? `${C.fastestGrowing.name} · ${C.fastestGrowing.adgKgPerDay} kg/day` : "—"
137
+ })] }),
138
+ /* @__PURE__ */ h("div", { children: [/* @__PURE__ */ m("dt", {
139
+ className: "text-xs text-text-secondary",
140
+ children: y("healthybowl.livestock.growth.summary.slowest", "Slowest")
141
+ }), /* @__PURE__ */ m("dd", {
142
+ className: "text-sm font-medium text-text-primary",
143
+ children: C.slowestGrowing ? `${C.slowestGrowing.name} · ${C.slowestGrowing.adgKgPerDay} kg/day` : "—"
144
+ })] }),
145
+ /* @__PURE__ */ h("div", { children: [/* @__PURE__ */ m("dt", {
146
+ className: "text-xs text-text-secondary",
147
+ children: y("healthybowl.livestock.growth.summary.unweighed", "Not weighed")
148
+ }), /* @__PURE__ */ h("dd", {
149
+ className: "text-sm font-medium text-text-primary",
150
+ children: [C.animalsWithoutWeights, /* @__PURE__ */ h("span", {
151
+ className: "text-xs text-text-secondary",
152
+ children: [
153
+ " ",
154
+ "/ ",
155
+ C.animalsWithWeights + C.animalsWithoutWeights
156
+ ]
157
+ })]
158
+ })] })
113
159
  ]
114
160
  })
115
- }), C && /* @__PURE__ */ h("dl", {
116
- className: "mt-3 grid grid-cols-2 gap-3 border-t border-border-subtle pt-3 sm:grid-cols-4",
117
- children: [
118
- /* @__PURE__ */ h("div", { children: [/* @__PURE__ */ m("dt", {
119
- className: "text-xs text-text-secondary",
120
- children: y("healthybowl.livestock.growth.summary.medianAdg", "Median gain")
121
- }), /* @__PURE__ */ m("dd", {
122
- className: "text-sm font-medium text-text-primary",
123
- children: C.medianAdgKgPerDay === null ? "—" : `${C.medianAdgKgPerDay} kg/day`
124
- })] }),
125
- /* @__PURE__ */ h("div", { children: [/* @__PURE__ */ m("dt", {
126
- className: "text-xs text-text-secondary",
127
- children: y("healthybowl.livestock.growth.summary.fastest", "Fastest")
128
- }), /* @__PURE__ */ m("dd", {
129
- className: "text-sm font-medium text-text-primary",
130
- children: C.fastestGrowing ? `${C.fastestGrowing.name} · ${C.fastestGrowing.adgKgPerDay} kg/day` : "—"
131
- })] }),
132
- /* @__PURE__ */ h("div", { children: [/* @__PURE__ */ m("dt", {
133
- className: "text-xs text-text-secondary",
134
- children: y("healthybowl.livestock.growth.summary.slowest", "Slowest")
135
- }), /* @__PURE__ */ m("dd", {
136
- className: "text-sm font-medium text-text-primary",
137
- children: C.slowestGrowing ? `${C.slowestGrowing.name} · ${C.slowestGrowing.adgKgPerDay} kg/day` : "—"
138
- })] }),
139
- /* @__PURE__ */ h("div", { children: [/* @__PURE__ */ m("dt", {
140
- className: "text-xs text-text-secondary",
141
- children: y("healthybowl.livestock.growth.summary.unweighed", "Not weighed")
142
- }), /* @__PURE__ */ h("dd", {
143
- className: "text-sm font-medium text-text-primary",
144
- children: [C.animalsWithoutWeights, /* @__PURE__ */ h("span", {
145
- className: "text-xs text-text-secondary",
146
- children: [
147
- " ",
148
- "/ ",
149
- C.animalsWithWeights + C.animalsWithoutWeights
150
- ]
151
- })]
152
- })] })
153
- ]
154
- })] }) : /* @__PURE__ */ h("div", {
161
+ ] }) : /* @__PURE__ */ h("div", {
155
162
  className: "py-8 text-center",
156
163
  children: [/* @__PURE__ */ m("p", {
157
164
  className: "text-sm text-text-primary",
@@ -1 +1 @@
1
- {"version":3,"file":"LivestockGrowthCard.js","names":[],"sources":["../../../../src/healthybowl/pages/livestock/LivestockGrowthCard.tsx"],"sourcesContent":["/**\n * Livestock growth chart (BOFF-5971).\n *\n * Plots the herd-average weight line from `healthyBowlLivestockGrowth`, with the ADG leaders and\n * the coverage gap beside it.\n *\n * Deliberate choices:\n * - Only the herd-average line is plotted. Per-animal curves were tried and pulled: herd points\n * are keyed by BUCKET START (Monday, for WEEK) while a weight is keyed by its measurement date,\n * so the two only align at DAY granularity — everywhere else the curves land on separate rows.\n * Bucketing the animal points here would duplicate the Monday-start rule that deliberately\n * lives in exactly one place (`livestock-depth/growth.ts`). The overlay returns when the chart\n * moves to a numeric time axis, or when the API carries a bucket key per point.\n * - `animalCount` / `sampleSize` ride in the tooltip. The backend averages each animal to itself\n * before averaging the herd, so a bucket built from one animal is honest but thin — the user\n * should be able to see that rather than read it as a solid trend.\n * - A query error is surfaced as an error, never as the empty state: \"no weights recorded\" is a\n * statement about the farm, and it must not be shown when the truth is \"we could not load\".\n */\n\nimport { useMemo, useState, type FC } from 'react';\nimport { CartesianGrid, Line, LineChart, ResponsiveContainer, Tooltip, XAxis, YAxis } from 'recharts';\nimport { useI18n } from '@burdenoff/fe-libs/shared/providers/shell/I18nProvider';\nimport { ChartCard } from '../../components/ChartCard';\nimport { formatNumber } from '../../utils/helpers';\nimport { useHealthyBowlLivestockGrowth, type GrowthGranularity } from '../../hooks/useHealthyBowlLivestockGrowth';\n\nconst GRANULARITIES: GrowthGranularity[] = ['DAY', 'WEEK', 'MONTH'];\n\ninterface LivestockGrowthCardProps {\n groupId?: string | null;\n className?: string;\n}\n\nexport const LivestockGrowthCard: FC<LivestockGrowthCardProps> = ({ groupId = null, className }) => {\n const { t } = useI18n();\n const [granularity, setGranularity] = useState<GrowthGranularity>('WEEK');\n const { herdAverage, summary, loading, error } = useHealthyBowlLivestockGrowth({ groupId, granularity });\n\n const chartData = useMemo(\n () =>\n [...herdAverage]\n .sort((a, b) => a.at.localeCompare(b.at))\n .map((p) => ({\n at: p.at,\n herd: p.avgWeightKg,\n animalCount: p.animalCount,\n sampleSize: p.sampleSize,\n })),\n [herdAverage]\n );\n\n const hasData = chartData.length > 0;\n\n const granularityToggle = (\n <div className=\"flex items-center gap-1\">\n {GRANULARITIES.map((g) => (\n <button\n key={g}\n type=\"button\"\n onClick={() => setGranularity(g)}\n aria-pressed={granularity === g}\n className={`min-h-[32px] rounded-md px-2 py-1 text-xs transition-colors ${\n granularity === g\n ? 'bg-action-primary-bg text-action-primary-text'\n : 'text-text-secondary hover:bg-bg-sunken/50'\n }`}\n >\n {t(`healthybowl.livestock.growth.granularity.${g.toLowerCase()}`, g.charAt(0) + g.slice(1).toLowerCase())}\n </button>\n ))}\n </div>\n );\n\n return (\n <ChartCard\n title={t('healthybowl.livestock.growth.title', 'Growth')}\n description={t(\n 'healthybowl.livestock.growth.description',\n 'Average herd weight over time, and how fast each animal is gaining.'\n )}\n actions={granularityToggle}\n className={className}\n >\n {error ? (\n <div className=\"py-8 text-center\">\n <p className=\"text-sm text-text-primary\">\n {t('healthybowl.livestock.growth.error.title', 'Could not load growth data')}\n </p>\n <p className=\"mt-1 text-xs text-text-secondary\">{error.message}</p>\n </div>\n ) : loading && !hasData ? (\n <p className=\"py-8 text-center text-xs text-text-secondary\">\n {t('healthybowl.livestock.growth.loading', 'Loading growth data…')}\n </p>\n ) : !hasData ? (\n <div className=\"py-8 text-center\">\n <p className=\"text-sm text-text-primary\">\n {t('healthybowl.livestock.growth.empty.title', 'No weights recorded yet')}\n </p>\n <p className=\"mt-1 text-xs text-text-secondary\">\n {t(\n 'healthybowl.livestock.growth.empty.hint',\n 'Record a weight against an animal — two measurements are enough to show a growth rate.'\n )}\n </p>\n </div>\n ) : (\n <>\n <ResponsiveContainer width=\"100%\" height={280}>\n <LineChart data={chartData} margin={{ top: 5, right: 20, left: 0, bottom: 5 }}>\n <CartesianGrid strokeDasharray=\"3 3\" stroke=\"var(--color-border)\" />\n <XAxis dataKey=\"at\" tick={{ fontSize: 11 }} stroke=\"var(--color-muted-foreground)\" />\n <YAxis\n tick={{ fontSize: 11 }}\n stroke=\"var(--color-muted-foreground)\"\n label={{ value: 'kg', angle: -90, position: 'insideLeft', fontSize: 11 }}\n />\n <Tooltip\n contentStyle={{\n backgroundColor: 'var(--color-card)',\n border: '1px solid var(--color-border)',\n borderRadius: 8,\n fontSize: 12,\n }}\n labelStyle={{ color: 'var(--color-foreground)' }}\n formatter={(value: number | string, name: string, item: { payload?: Record<string, unknown> }) => {\n const kg = typeof value === 'number' ? formatNumber(value) : value;\n if (name !== 'herd') return [`${kg} kg`, name];\n const count = item?.payload?.['animalCount'];\n const samples = item?.payload?.['sampleSize'];\n return [\n `${kg} kg`,\n t(\n 'healthybowl.livestock.growth.tooltip.herd',\n 'Herd average ({{count}} animals, {{samples}} readings)',\n {\n count: String(count ?? '—'),\n samples: String(samples ?? '—'),\n }\n ),\n ];\n }}\n />\n <Line\n type=\"monotone\"\n dataKey=\"herd\"\n name=\"herd\"\n stroke=\"var(--color-success)\"\n strokeWidth={2.5}\n dot={{ r: 2 }}\n connectNulls\n />\n </LineChart>\n </ResponsiveContainer>\n\n {summary && (\n <dl className=\"mt-3 grid grid-cols-2 gap-3 border-t border-border-subtle pt-3 sm:grid-cols-4\">\n <div>\n <dt className=\"text-xs text-text-secondary\">\n {t('healthybowl.livestock.growth.summary.medianAdg', 'Median gain')}\n </dt>\n <dd className=\"text-sm font-medium text-text-primary\">\n {summary.medianAdgKgPerDay === null ? '—' : `${summary.medianAdgKgPerDay} kg/day`}\n </dd>\n </div>\n <div>\n <dt className=\"text-xs text-text-secondary\">\n {t('healthybowl.livestock.growth.summary.fastest', 'Fastest')}\n </dt>\n <dd className=\"text-sm font-medium text-text-primary\">\n {summary.fastestGrowing\n ? `${summary.fastestGrowing.name} · ${summary.fastestGrowing.adgKgPerDay} kg/day`\n : '—'}\n </dd>\n </div>\n <div>\n <dt className=\"text-xs text-text-secondary\">\n {t('healthybowl.livestock.growth.summary.slowest', 'Slowest')}\n </dt>\n <dd className=\"text-sm font-medium text-text-primary\">\n {summary.slowestGrowing\n ? `${summary.slowestGrowing.name} · ${summary.slowestGrowing.adgKgPerDay} kg/day`\n : '—'}\n </dd>\n </div>\n <div>\n <dt className=\"text-xs text-text-secondary\">\n {t('healthybowl.livestock.growth.summary.unweighed', 'Not weighed')}\n </dt>\n <dd className=\"text-sm font-medium text-text-primary\">\n {summary.animalsWithoutWeights}\n <span className=\"text-xs text-text-secondary\">\n {' '}\n / {summary.animalsWithWeights + summary.animalsWithoutWeights}\n </span>\n </dd>\n </div>\n </dl>\n )}\n </>\n )}\n </ChartCard>\n );\n};\n"],"mappings":";;;;;;;;;;;;;;AA2BA,IAAM,IAAqC;CAAC;CAAO;CAAQ;CAAQ,EAOtD,KAAqD,EAAE,aAAU,MAAM,mBAAgB;CAClG,IAAM,EAAE,SAAM,GAAS,EACjB,CAAC,GAAa,KAAkB,EAA4B,OAAO,EACnE,EAAE,gBAAa,YAAS,YAAS,aAAU,EAA8B;EAAE;EAAS;EAAa,CAAC,EAElG,IAAY,QAEd,CAAC,GAAG,EAAY,CACb,MAAM,GAAG,MAAM,EAAE,GAAG,cAAc,EAAE,GAAG,CAAC,CACxC,KAAK,OAAO;EACX,IAAI,EAAE;EACN,MAAM,EAAE;E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,EAAQ,eAAe,KAAK,KAAK,EAAQ,eAAe,YAAY,WACvE;KACD,CAAA,CACD,EAAA,CAAA;IACN,kBAAC,OAAD,EAAA,UAAA,CACE,kBAAC,MAAD;KAAI,WAAU;eACX,EAAE,kDAAkD,cAAc;KAChE,CAAA,EACL,kBAAC,MAAD;KAAI,WAAU;eAAd,CACG,EAAQ,uBACT,kBAAC,QAAD;MAAM,WAAU;gBAAhB;OACG;OAAI;OACF,EAAQ,qBAAqB,EAAQ;OACnC;QACJ;OACD,EAAA,CAAA;IACH;KAEN,EAAA,CAAA,GAxGH,kBAAC,OAAD;GAAK,WAAU;aAAf,CACE,kBAAC,KAAD;IAAG,WAAU;cACV,EAAE,4CAA4C,0BAA0B;IACvE,CAAA,EACJ,kBAAC,KAAD;IAAG,WAAU;cACV,EACC,2CACA,yFACD;IACC,CAAA,CACA;;EAgGE,CAAA"}
1
+ {"version":3,"file":"LivestockGrowthCard.js","names":[],"sources":["../../../../src/healthybowl/pages/livestock/LivestockGrowthCard.tsx"],"sourcesContent":["/**\n * Livestock growth chart (BOFF-5971).\n *\n * Plots the herd-average weight line from `healthyBowlLivestockGrowth`, with the ADG leaders and\n * the coverage gap beside it.\n *\n * Deliberate choices:\n * - Only the herd-average line is plotted. Per-animal curves were tried and pulled: herd points\n * are keyed by BUCKET START (Monday, for WEEK) while a weight is keyed by its measurement date,\n * so the two only align at DAY granularity — everywhere else the curves land on separate rows.\n * Bucketing the animal points here would duplicate the Monday-start rule that deliberately\n * lives in exactly one place (`livestock-depth/growth.ts`). The overlay returns when the chart\n * moves to a numeric time axis, or when the API carries a bucket key per point.\n * - `animalCount` / `sampleSize` ride in the tooltip. The backend averages each animal to itself\n * before averaging the herd, so a bucket built from one animal is honest but thin — the user\n * should be able to see that rather than read it as a solid trend.\n * - A query error is surfaced as an error, never as the empty state: \"no weights recorded\" is a\n * statement about the farm, and it must not be shown when the truth is \"we could not load\".\n */\n\nimport { useMemo, useState, type FC } from 'react';\nimport { CartesianGrid, Line, LineChart, ResponsiveContainer, Tooltip, XAxis, YAxis } from 'recharts';\nimport { useI18n } from '@burdenoff/fe-libs/shared/providers/shell/I18nProvider';\nimport { ChartCard } from '../../components/ChartCard';\nimport { formatNumber } from '../../utils/helpers';\nimport { useHealthyBowlLivestockGrowth, type GrowthGranularity } from '../../hooks/useHealthyBowlLivestockGrowth';\n\nconst GRANULARITIES: GrowthGranularity[] = ['DAY', 'WEEK', 'MONTH'];\n\ninterface LivestockGrowthCardProps {\n groupId?: string | null;\n className?: string;\n}\n\nexport const LivestockGrowthCard: FC<LivestockGrowthCardProps> = ({ groupId = null, className }) => {\n const { t } = useI18n();\n const [granularity, setGranularity] = useState<GrowthGranularity>('WEEK');\n const { herdAverage, summary, loading, error, truncated } = useHealthyBowlLivestockGrowth({ groupId, granularity });\n\n const chartData = useMemo(\n () =>\n [...herdAverage]\n .sort((a, b) => a.at.localeCompare(b.at))\n .map((p) => ({\n at: p.at,\n herd: p.avgWeightKg,\n animalCount: p.animalCount,\n sampleSize: p.sampleSize,\n })),\n [herdAverage]\n );\n\n const hasData = chartData.length > 0;\n\n const granularityToggle = (\n <div className=\"flex items-center gap-1\">\n {GRANULARITIES.map((g) => (\n <button\n key={g}\n type=\"button\"\n onClick={() => setGranularity(g)}\n aria-pressed={granularity === g}\n className={`min-h-[32px] rounded-md px-2 py-1 text-xs transition-colors ${\n granularity === g\n ? 'bg-action-primary-bg text-action-primary-text'\n : 'text-text-secondary hover:bg-bg-sunken/50'\n }`}\n >\n {t(`healthybowl.livestock.growth.granularity.${g.toLowerCase()}`, g.charAt(0) + g.slice(1).toLowerCase())}\n </button>\n ))}\n </div>\n );\n\n return (\n <ChartCard\n title={t('healthybowl.livestock.growth.title', 'Growth')}\n description={t(\n 'healthybowl.livestock.growth.description',\n 'Average herd weight over time, and how fast each animal is gaining.'\n )}\n actions={granularityToggle}\n className={className}\n >\n {error ? (\n <div className=\"py-8 text-center\">\n <p className=\"text-sm text-text-primary\">\n {t('healthybowl.livestock.growth.error.title', 'Could not load growth data')}\n </p>\n <p className=\"mt-1 text-xs text-text-secondary\">{error.message}</p>\n </div>\n ) : loading && !hasData ? (\n <p className=\"py-8 text-center text-xs text-text-secondary\">\n {t('healthybowl.livestock.growth.loading', 'Loading growth data…')}\n </p>\n ) : !hasData ? (\n <div className=\"py-8 text-center\">\n <p className=\"text-sm text-text-primary\">\n {t('healthybowl.livestock.growth.empty.title', 'No weights recorded yet')}\n </p>\n <p className=\"mt-1 text-xs text-text-secondary\">\n {t(\n 'healthybowl.livestock.growth.empty.hint',\n 'Record a weight against an animal — two measurements are enough to show a growth rate.'\n )}\n </p>\n </div>\n ) : (\n <>\n <ResponsiveContainer width=\"100%\" height={280}>\n <LineChart data={chartData} margin={{ top: 5, right: 20, left: 0, bottom: 5 }}>\n <CartesianGrid strokeDasharray=\"3 3\" stroke=\"var(--color-border)\" />\n <XAxis dataKey=\"at\" tick={{ fontSize: 11 }} stroke=\"var(--color-muted-foreground)\" />\n <YAxis\n tick={{ fontSize: 11 }}\n stroke=\"var(--color-muted-foreground)\"\n label={{ value: 'kg', angle: -90, position: 'insideLeft', fontSize: 11 }}\n />\n <Tooltip\n contentStyle={{\n backgroundColor: 'var(--color-card)',\n border: '1px solid var(--color-border)',\n borderRadius: 8,\n fontSize: 12,\n }}\n labelStyle={{ color: 'var(--color-foreground)' }}\n formatter={(value: number | string, name: string, item: { payload?: Record<string, unknown> }) => {\n const kg = typeof value === 'number' ? formatNumber(value) : value;\n if (name !== 'herd') return [`${kg} kg`, name];\n const count = item?.payload?.['animalCount'];\n const samples = item?.payload?.['sampleSize'];\n return [\n `${kg} kg`,\n t(\n 'healthybowl.livestock.growth.tooltip.herd',\n 'Herd average ({{count}} animals, {{samples}} readings)',\n {\n count: String(count ?? '—'),\n samples: String(samples ?? '—'),\n }\n ),\n ];\n }}\n />\n <Line\n type=\"monotone\"\n dataKey=\"herd\"\n name=\"herd\"\n stroke=\"var(--color-success)\"\n strokeWidth={2.5}\n dot={{ r: 2 }}\n connectNulls\n />\n </LineChart>\n </ResponsiveContainer>\n\n {truncated && (\n <p className=\"mt-2 rounded-md bg-bg-sunken/60 px-3 py-2 text-xs text-text-secondary\">\n {t(\n 'healthybowl.livestock.growth.truncated',\n 'This herd has more records than one view can load, so the average above covers only the most recent. Narrow the date range or filter by group for an exact figure.'\n )}\n </p>\n )}\n\n {summary && (\n <dl className=\"mt-3 grid grid-cols-2 gap-3 border-t border-border-subtle pt-3 sm:grid-cols-4\">\n <div>\n <dt className=\"text-xs text-text-secondary\">\n {t('healthybowl.livestock.growth.summary.medianAdg', 'Median gain')}\n </dt>\n <dd className=\"text-sm font-medium text-text-primary\">\n {summary.medianAdgKgPerDay === null ? '—' : `${summary.medianAdgKgPerDay} kg/day`}\n </dd>\n </div>\n <div>\n <dt className=\"text-xs text-text-secondary\">\n {t('healthybowl.livestock.growth.summary.fastest', 'Fastest')}\n </dt>\n <dd className=\"text-sm font-medium text-text-primary\">\n {summary.fastestGrowing\n ? `${summary.fastestGrowing.name} · ${summary.fastestGrowing.adgKgPerDay} kg/day`\n : '—'}\n </dd>\n </div>\n <div>\n <dt className=\"text-xs text-text-secondary\">\n {t('healthybowl.livestock.growth.summary.slowest', 'Slowest')}\n </dt>\n <dd className=\"text-sm font-medium text-text-primary\">\n {summary.slowestGrowing\n ? `${summary.slowestGrowing.name} · ${summary.slowestGrowing.adgKgPerDay} kg/day`\n : '—'}\n </dd>\n </div>\n <div>\n <dt className=\"text-xs text-text-secondary\">\n {t('healthybowl.livestock.growth.summary.unweighed', 'Not weighed')}\n </dt>\n <dd className=\"text-sm font-medium text-text-primary\">\n {summary.animalsWithoutWeights}\n <span className=\"text-xs text-text-secondary\">\n {' '}\n / {summary.animalsWithWeights + summary.animalsWithoutWeights}\n </span>\n </dd>\n </div>\n </dl>\n )}\n </>\n )}\n </ChartCard>\n );\n};\n"],"mappings":";;;;;;;;;;;;;;AA2BA,IAAM,IAAqC;CAAC;CAAO;CAAQ;CAAQ,EAOtD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CACD,EAAA,CAAA;KACN,kBAAC,OAAD,EAAA,UAAA,CACE,kBAAC,MAAD;MAAI,WAAU;gBACX,EAAE,gDAAgD,UAAU;MAC1D,CAAA,EACL,kBAAC,MAAD;MAAI,WAAU;gBACX,EAAQ,iBACL,GAAG,EAAQ,eAAe,KAAK,KAAK,EAAQ,eAAe,YAAY,WACvE;MACD,CAAA,CACD,EAAA,CAAA;KACN,kBAAC,OAAD,EAAA,UAAA,CACE,kBAAC,MAAD;MAAI,WAAU;gBACX,EAAE,gDAAgD,UAAU;MAC1D,CAAA,EACL,kBAAC,MAAD;MAAI,WAAU;gBACX,EAAQ,iBACL,GAAG,EAAQ,eAAe,KAAK,KAAK,EAAQ,eAAe,YAAY,WACvE;MACD,CAAA,CACD,EAAA,CAAA;KACN,kBAAC,OAAD,EAAA,UAAA,CACE,kBAAC,MAAD;MAAI,WAAU;gBACX,EAAE,kDAAkD,cAAc;MAChE,CAAA,EACL,kBAAC,MAAD;MAAI,WAAU;gBAAd,CACG,EAAQ,uBACT,kBAAC,QAAD;OAAM,WAAU;iBAAhB;QACG;QAAI;QACF,EAAQ,qBAAqB,EAAQ;QACnC;SACJ;QACD,EAAA,CAAA;KACH;;GAEN,EAAA,CAAA,GAjHH,kBAAC,OAAD;GAAK,WAAU;aAAf,CACE,kBAAC,KAAD;IAAG,WAAU;cACV,EAAE,4CAA4C,0BAA0B;IACvE,CAAA,EACJ,kBAAC,KAAD;IAAG,WAAU;cACV,EACC,2CACA,yFACD;IACC,CAAA,CACA;;EAyGE,CAAA"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@burdenoff/microfe-healthybowl",
3
- "version": "2026.805.1",
3
+ "version": "2026.805.2",
4
4
  "description": "Burdenoff HealthyBowl Microfrontend - Comprehensive organic farming and agro-foods management platform",
5
5
  "type": "module",
6
6
  "files": [