mirror of
https://github.com/Growstuff/growstuff.git
synced 2026-11-01 10:49:12 -05:00
Mostly copy and flow changes from the tidy-up, but two real bugs came out of running them. Bugs fixed: - planting_actions_props didn't pass planted_at or today, which MarkFinishedModal needs to decide whether "today" may be offered and where the date box starts. Without them the dialog threw while rendering, and with no error boundary React tore down the whole island, so the actions menu vanished entirely. - The dialogs reloaded the page from inside the save callback, tearing the page down while the dialog was still finishing its own update. They now close first and reload on the next tick. Menu items are lower-cased in CSS, as the garden cards already do it, rather than by calling downcase on the shared button translations. That was mangling labels other pages show in sentence case. Specs: - Menu, dialog and section-heading flows updated: the actions menu opens dialogs rather than navigating, so recording a harvest, marking a planting finished, editing and transplanting all drive the dialog. - Copy: "grows this in", "day 14 of 50", "Planned" for a future planting, "4 of 5", the new harvest-months wording, and the add-photo dialog naming what it adds to. - The parent-seed example asserted a link to the planting, which came from the breadcrumb; the last crumb is the page you are on, so it is plain text now and the example checks the seed link instead. - Removed spec/features/shared_examples/append_date.rb. It drove the old datepicker finish flow and had one caller. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>