Commit Graph
13034 Commits
Author SHA1 Message Date
Brenda Wallace 225a9057c5 Implement transplant functionality: refactor planting movement to record history of gardens, update modal for transplanting, and adjust related components and tests accordingly. 2026-10-17 22:57:38 +13:00
Brenda Wallace 3cfc80450d Refactor error handling and enhance seed packet selection: move errorMessages function to a dedicated file, implement SeedPacketList component for better seed selection UI, and update related components to utilize new error handling logic. 2026-10-17 22:34:15 +13:00
Brenda Wallace b620ca1ccc Enhance nursery functionality: add panel action for refreshing nursery in place, update nursery chip to exclude harvest and save seeds actions, and implement editing capability with modal dialog for batch updates. 2026-10-17 22:29:33 +13:00
Brenda Wallace f4107e2b8d Refactor nursery management: replace plant_out functionality with transplant modal
- Removed NurseryScoped concern and associated controllers for plant_out and leftovers.
- Introduced TransplantModal component for handling the transplanting of seedlings.
- Updated PlantingsController to support transplanting with a new date handling method.
- Modified GardensHelper to provide active gardens for transplanting.
- Updated NurseryChip component to include transplant functionality.
- Removed legacy plant_out views and associated routes.
- Adjusted tests to reflect the new transplanting workflow and removed obsolete tests related to plant_out.
2026-10-17 21:10:56 +13:00
Brenda Wallace 6b76260ac5 Fix nursery message: update content to say '2 seedlings left in the nursery' for clarity 2026-10-17 21:07:26 +13:00
Brenda Wallace 5129321364 Refactor plant out functionality: update show action to redirect if no moved seedlings, rename after_path to redirect_after, and enhance nursery chip with plant out action; update views and tests accordingly. 2026-10-17 20:45:43 +13:00
Brenda Wallace 3b617c815a Implement CachedAbility for efficient permission checks and update related serializers; enhance ability checks in gardens and plantings. 2026-10-17 20:45:32 +13:00
Brenda Wallace 7c51e410a2 Update nursery panel: change "Edit nursery" to "Bulk edit" and adjust related labels; rename test for clarity. 2026-10-17 20:26:21 +13:00
Brenda Wallace 6b1ce4df8b removing plannted plantings 2026-10-17 20:15:27 +13:00
Brenda Wallace fd1ce98dd8 Enhance NurseryChip component: add photo upload functionality and update tests for dialog interaction in nursery panel. 2026-10-17 18:13:02 +13:00
Brenda Wallace 445fa05a9d Fix link text for harvest action in nursery panel 2026-10-17 18:06:13 +13:00
Brenda Wallace 5f12637d82 Enhance nursery functionality: update styles for gardens section, improve NurseryChip component for better readability, and add tests for batch display and menu actions in nursery panel. 2026-10-17 18:06:07 +13:00
Brenda Wallace 074a72d719 Refactor nursery and planting features: introduce planned and sown scopes, enhance nursery chip component, update views for planned plantings, and improve test coverage for nursery functionality. 2026-10-17 17:57:21 +13:00
Brenda Wallace 7679025a82 Refactor nursery panel and seedling chip: rename CSS classes for clarity, update links for planned sowing, and enhance test coverage for planned sowing functionality. 2026-10-17 17:53:25 +13:00
Brenda Wallace d1ab663d7b Enhance nursery functionality: add planning feature for sowing, improve nursery editing experience, and update styles for better user interaction 2026-10-17 17:51:55 +13:00
Brenda Wallace 12633ac9e7 Refactor nursery management: Introduce NurseryScoped concern and restructure nursery-related controllers
- Created NurseryScoped module to handle nursery authentication and setup.
- Refactored GardensController to remove nursery-related actions and utilize the new NurseryScoped.
- Added new Nurseries::DeclinesController for handling nursery decline actions.
- Introduced Nurseries::LeftoversController for managing leftover plantings in the nursery.
- Created Nurseries::PlantOutsController for handling the planting out of seedlings from the nursery.
- Added NurseriesController to manage nursery display and creation.
- Updated routes to reflect new nursery structure and actions.
- Modified views to accommodate new nursery management flow and updated links.
- Enhanced models to support nursery functionality, including plant_out and finish_leftovers methods.
- Updated tests to reflect changes in nursery handling and ensure functionality.
2026-10-17 17:38:38 +13:00
Brenda Wallace 8e740b96ea Refactor nursery panel styles: remove unnecessary styles for improved layout and clarity, and enhance seedling selection functionality. 2026-10-17 17:34:50 +13:00
Brenda Wallace d05fbfc5ad Refactor styles for gardens and nursery panel: adjust margins and paddings for sections, enhance nursery seedlings display, and remove unnecessary styles for improved layout consistency. 2026-10-17 17:32:28 +13:00
Brenda Wallace 09d28ee103 Enhance nursery panel and seed packet display: add SeedPacket component for visual representation of seed packets, update nursery panel with new button for declining nursery, and improve styles for better user interaction. 2026-10-17 17:30:34 +13:00
Brenda Wallace a8d0ea9da3 Enhance nursery and gardens display: add styles for gardens page, integrate nursery panel with improved functionality, and update components for better user interaction and visual consistency. 2026-10-17 15:50:04 +13:00
Brenda Wallace 25988d8cbb Enhance nursery panel and sowing modal: update styles for nursery day display, add functionality for sowing directly into gardens with placement options, and improve helper methods for better grouping and display of seedlings. 2026-10-17 15:27:34 +13:00
Brenda Wallace 099f2f58c1 Merge remote-tracking branch 'origin/main' into nursery 2026-10-17 13:37:22 +13:00
Brenda Wallace c67e7f3740 Implement crop sowing information feature: add CropSowingInfoSerializer, update CropsController with sowing_info action, create CropDetails component for displaying crop details, enhance SowSeedsModal to show crop information, and add tests for new functionality. 2026-10-17 13:34:24 +13:00
Brenda Wallace 84c4c0c6ed Implement nursery plant-out functionality: enhance styles for sowing and planting out, update GardensController with new actions for managing planted batches, and create views for planted out seedlings. 2026-10-17 13:32:24 +13:00
Brenda Wallace dc47ba6b39 Implement plant out functionality: add plant_out and create_plant_out actions in GardensController, create plant_out view, update routes, and enhance Planting model for transplanting seedlings. 2026-10-17 13:16:07 +13:00
Brenda Wallace 310d7245a3 Implement nursery sowing functionality: add SowSeedsModal component, enhance planting logic to track seed usage, and update nursery views to display sown and planned seedlings. 2026-10-17 13:11:48 +13:00
Brenda Wallace bff15b335a Add nursery panel styles, helper methods, and update views for nursery management 2026-10-17 12:06:26 +13:00
Brenda Wallace ca7fd81439 Tidy/login signup (#4958)
* Add authentication dialogs for sign in and sign up

- Implemented AuthDialog component to manage sign in and sign up modals.
- Created SignInModal and SignUpModal components for handling respective authentication processes.
- Added AuthFields component for reusable form fields and error handling.
- Updated various views to utilize the new authentication dialogs instead of traditional links.
- Enhanced user experience by allowing sign in and sign up actions to occur without full page reloads.
- Added feature specs for testing the functionality of the new dialogs.

* Refactor modals and input fields for improved accessibility and styling; adjust button sizes and text formatting

* Refactor authentication forms and modals for improved usability and accessibility; integrate reCAPTCHA handling and enhance error messaging

* Refactor SignUpModal layout for improved responsiveness and accessibility; organize fields into rows and enhance styling

* Refactor session view spec to streamline field checks; remove redundant test and retain essential content expectations
2026-10-17 09:26:39 +10:30
Brenda Wallace 747efe4b4a Implement nursery feature: add nursery management actions in GardensController, create NurseryPlanter component, update views for nursery setup, and enhance member model for nursery acceptance and decline. 2026-10-16 23:38:20 +13:00
Brenda Wallace a2466f41cc Implement nursery functionality: add nursery actions in gardens controller, update routes, and enhance views; add ability to transplant seedlings and manage nursery state. 2026-10-16 23:34:38 +13:00
Brenda Wallace bd3c015f60 Add nursery functionality to gardens: implement nursery scope, validations, and migration; update member model to manage nursery creation and ensure uniqueness. 2026-10-16 23:14:28 +13:00
Brenda Wallace 0ff036dbff Enhance comment section: update comment button to link to form and ensure form is displayed on the page release98 2026-10-16 22:21:26 +13:00
Brenda Wallace 6b4b407e1f Refactor menus and modals to enhance usability and consistency; add error handling in modals and update actions menus with descriptive labels. 2026-10-16 22:21:26 +13:00
Brenda Wallace 2f20eb7258 Implement modal for editing activities and refactor form fields for improved usability 2026-10-16 22:21:26 +13:00
Brenda Wallace c3f9df44db Refactor photo editing components to use modal and streamline field rendering 2026-10-16 22:21:26 +13:00
Brenda Wallace 7280340850 Add photo label and dialog data methods to PhotosHelper for improved photo handling 2026-10-16 22:21:26 +13:00
Brenda Wallace 77437e262e Refactor photo button helpers to streamline path generation and remove unused icon method 2026-10-16 22:21:26 +13:00
Brenda Wallace 7e5113c82c Add edit modal for comments and update actions menu for consistency 2026-10-16 22:21:26 +13:00
Brenda Wallace 3deb7befbc Add modal form helper and update post actions to use modal for editing 2026-10-16 22:21:26 +13:00
Brenda Wallace b609911039 Remove unused edit button and button helper methods for cleaner code 2026-10-16 22:21:26 +13:00
Brenda Wallace a52ce59997 Refactor planting and activity action menus for improved structure and consistency 2026-10-16 22:21:26 +13:00
Brenda Wallace 9a9430048e Refactor action buttons for garden types and remove unused button partials 2026-10-16 22:21:26 +13:00
Brenda Wallace 3cfdbcd7bd Refactor menu icon implementation for consistency across edit links 2026-10-16 22:21:26 +13:00
Brenda Wallace 77f29bfab9 Remove unused post-actions styles and optimize imports in MarkFinishedModal 2026-10-16 22:21:26 +13:00
Brenda WallaceandClaude Sonnet 5.5 2374501758 Tidy the garden chooser and the crop page's "who's planted" list
The garden chooser lines names and notes up on the left and uses the shared
dialog padding. Under "who's planted" each row is the grower, then their
garden and place, without repeating the crop name, and the plant button
opens the garden chooser over the page.

Part of #4933

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-10-16 22:21:26 +13:00
Brenda WallaceandClaude Sonnet 5.5 b7dbb84ebd Add a garden and plant from the home page without leaving it
The garden dialog now adds a garden as well as edits one (new.json and
create.json on GardensController), and a GardenPicker button opens it from the
home page. A plant_picker helper replaces the home page's separate plant
links and the plant_button partial. The plant dialog asks when it was
planted (Today, Yesterday, Enter date), using a WhenPicker shared with the
harvest dialog. Members with no garden still get the full-page plant link.

Part of #4933

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-10-16 22:21:26 +13:00
Brenda WallaceandClaude Sonnet 5.5 a5156f6b9e Add the garden form dialog
One dialog for adding and editing a garden, replacing the edit-only dialog
in the next commit.

Part of #4933

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-10-16 22:21:26 +13:00
Brenda WallaceandClaude Sonnet 5.5 64c9bd3baa Open every add-photo link in the photo dialog
The dialog is mounted once in the layout and any link marked
data-photo-dialog opens it, naming its record in the heading. The gardens
and posts menus, the old planting card and add_photo_button now use it
instead of going to the new-photo page.

Part of #4933

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-10-16 22:21:26 +13:00
Brenda WallaceandClaude Sonnet 5.5 73bf8b5552 Write a comment on the post page itself
The comment form now sits under the post's comments instead of on a page of
its own; the Comment buttons jump to it.

Part of #4933

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-10-16 22:21:26 +13:00
Brenda WallaceandClaude Sonnet 5.5 5fed21e811 Keep menu icons in one place and remove unused helpers
The icon drawings were duplicated between Ruby and React; they now live in
app/javascript/menuIcons.json, read by both. Deletes the button and icon helpers
nothing calls any more, and their spec lines.

Part of #4933

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-10-16 22:21:26 +13:00