describe_garden: list each plop's position, so a move can keep the layout
Build image / build-and-push (push) Successful in 6s
Gadfly review (reusable) / review (pull_request) Successful in 4m29s
Adversarial Review (Gadfly) / review (pull_request) Successful in 4m29s

Asked to move four tomatoes planted in a column "keeping the same spacing",
the live assistant re-laid them as two pairs: the per-plop listing said
"north" and "south" and nothing else. Each listed plop (and list_plantings)
now carries xCm/yCm in the object's local frame.

Co-Authored-By: Claude Fable 5 <[email protected]>
This commit is contained in:
2026-08-23 00:37:23 -04:00
co-authored by Claude Fable 5
parent d884f62762
commit 8b161c5f6d
3 changed files with 21 additions and 9 deletions
+4
View File
@@ -632,6 +632,10 @@ func TestDescribeGardenGroupsByPlant(t *testing.T) {
if e.PlantedAt == "" || e.Version == 0 || e.ID == 0 {
t.Errorf("listed plop %+v is missing id, version or date", e)
}
// The position is what lets a move keep the layout; "south" alone can't.
if e.YCM < 100 || (e.XCM != -100 && e.XCM != 0 && e.XCM != 100) {
t.Errorf("listed plop %+v doesn't carry the position it was placed at", e)
}
}
// The big group's ids are a call away, narrowed to one plant.