Garden container plant count is wrong #3

Closed
opened 2026-07-03 23:55:02 -05:00 by ginnoir · 0 comments
Owner

Container shows "0 plants" despite containing a plant; fix count query and audit siblings.

Background / current behavior

A garden container (e.g. "plantie cabinet") shows "0 plants" when it contains at least one plant. Likely a query/join or container-association bug.

Relevant: src/modules/garden/server/queries.ts, container list/detail components.

Expected behavior

Container plant counts match the number of plants associated with that container. Any other count displays sharing the same bug are fixed too.

Acceptance criteria

  • Container with N plants displays N (not 0).
  • Audit other garden counts (lists, widgets) for the same pattern; fix or file follow-ups.
  • Playwright: extend tests/e2e/garden.spec.ts — plant in container → count ≥ 1.

Priority

P1 (batch step 3). Task brief: docs/tasks/82-garden-plant-count.md.

<brief>Container shows "0 plants" despite containing a plant; fix count query and audit siblings.</brief> ## Background / current behavior A garden container (e.g. "plantie cabinet") shows "0 plants" when it contains at least one plant. Likely a query/join or container-association bug. Relevant: `src/modules/garden/server/queries.ts`, container list/detail components. ## Expected behavior Container plant counts match the number of plants associated with that container. Any other count displays sharing the same bug are fixed too. ## Acceptance criteria - [ ] Container with N plants displays N (not 0). - [ ] Audit other garden counts (lists, widgets) for the same pattern; fix or file follow-ups. - [ ] Playwright: extend `tests/e2e/garden.spec.ts` — plant in container → count ≥ 1. ## Priority P1 (batch step 3). Task brief: `docs/tasks/82-garden-plant-count.md`.
ginnoir added the bugpriority/p1 labels 2026-07-03 23:55:02 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: ginnoir/famapp#3