2935 Commits
Author SHA1 Message Date
Brenda Wallace 6922b8c4f1 Revert "Predict first harvest from heat, using EcoCrop figures"
This reverts commit 218e792d87.
2026-11-05 13:58:48 +13:00
Brenda Wallace 218e792d87 Predict first harvest from heat, using EcoCrop figures 2026-11-05 13:33:28 +13:00
Brenda Wallace 51caa7cae6 Implement crop change functionality for seeds, including controller, views, and service logic 2026-11-04 21:24:13 +00:00
Brenda Wallace cdc05edf48 Include varieties' photos and plantings on the crop page (#5251) 2026-11-05 00:06:19 +10:30
Brenda Wallace e6625449ed Show archived gardens' jobs as a plain list (#5074) 2026-11-04 23:57:04 +10:30
Brenda Wallace 6dd5ff724c Add month sowing chips and update filters for responsive design 2026-11-04 07:39:36 +00:00
Brenda Wallace bd08ad6b3a Mock rendering of seed scope in SeedsHelper specs 2026-11-04 07:39:36 +00:00
Brenda Wallace d5ef4329e2 Enhance seed library functionality by integrating scope rendering and improving filter interactions 2026-11-04 07:39:36 +00:00
Brenda Wallace 6d41181c06 Add variety display to seed packets and enhance filtering options 2026-11-04 07:39:36 +00:00
Brenda Wallace 6dda38413c Refactor seed library filters and improve UI components
- Updated seed filtering logic in SeedsController to use new FILTER_PARAMS.
- Enhanced seed-field layout in _seeds.scss for better responsiveness.
- Introduced SeedFiltersHelper for managing filter parameters and paths.
- Revised views to utilize new helper methods for clearer filter management.
- Updated specs to reflect changes in filter logic and UI adjustments.
2026-11-04 07:39:36 +00:00
Brenda Wallace d4e0aecda8 huge tidy up of the seed filters 2026-11-04 07:39:36 +00:00
Daniel O'ConnorandBrenda Wallace 02f6a74fed Fix authorisation check (#5277)
Co-authored-by: Brenda Wallace <brenda@wallace.net.nz>
2026-11-03 19:04:58 +00:00
Brenda Wallace 6a6dfa6cf8 Add size_fact method to CropsHelper and update predictions view for crop dimensions 2026-11-04 07:53:48 +13:00
Brenda Wallace d0567f3516 Add published_job_templates method to Crop model and update related services and views for improved job template handling 2026-11-04 06:31:14 +13:00
Brenda Wallace a48c1678c4 Refactor crop job templates and related logic for improved clarity and functionality; update styles, remove unused code, and enhance season handling in job creation. 2026-11-04 06:31:14 +13:00
Brenda Wallace 2d58333b78 Add growing facts and sow months handling to crops, including UI updates and validations 2026-11-04 06:31:14 +13:00
Brenda Wallace ea46d88d3c Enhance crop lifespan and job templates display with new styles and functionality 2026-11-04 06:31:14 +13:00
Brenda Wallace 85fe7dde15 Add median lifespan display and job templates section to crop views 2026-11-04 06:31:14 +13:00
Brenda Wallace 7cbd5cf666 Add crop job season handling and warnings
- Introduced a new JavaScript module for crop job season management, including functions to describe planting days and update warnings based on selected dates.
- Updated the CropJobTemplate model to include methods for determining if a date is within the season for a given latitude.
- Enhanced the AddCropJobs service to support planting dates and adjust job due dates accordingly.
- Created a new view for displaying season warnings when adding crop jobs, allowing users to confirm adding jobs outside the specified season.
- Updated the job modal to prompt users for planting dates and display relevant warnings.
- Added tests for the new functionality, ensuring correct behavior for seasonal warnings and job creation based on planting dates.
2026-11-04 06:31:14 +13:00
Brenda Wallace b4d4a5ad5a Enhance crop job functionality with planting selection and UI updates
- Update AddCropJobs service to support planting selection for job creation.
- Modify CropJobsController to handle planting parameter during job addition.
- Improve job templates view to display plantings and allow adding jobs to specific plantings.
- Add relevant translations for new UI elements.
- Extend specs to cover new planting functionality and ensure correct behavior.
2026-11-04 06:31:14 +13:00
Brenda Wallace 7646f0ec6d Add pending? method to AddCropJobs service and update job templates view
- Implemented pending? method to check if there are jobs to add.
- Updated job templates view to conditionally display add button or message if jobs are already added.
- Enhanced specs for AddCropJobs service and crops controller to cover new functionality.
2026-11-04 06:31:14 +13:00
Brenda Wallace 011d2c46ce Implement crop job creation and associated features, including controller, service, views, and specs 2026-11-04 06:31:14 +13:00
Brenda Wallace 3f562662c4 Implement crop job templates styling and functionality, including helper methods and specs 2026-11-04 06:31:14 +13:00
Brenda Wallace d5c26db4a8 Add job templates rendering and associated specs for crop show page 2026-11-04 06:31:14 +13:00
Daniel O'Connorandgoogle-labs-jules[bot] 3b7196de27 Localize member contact partial across locales (#5261)
Extract hardcoded English strings in app/views/members/_contact.html.haml
into relative i18n keys and add translations across en, de, es, fr, ja,
and zh locale files. Add view spec to verify localized rendering.

Co-authored-by: google-labs-jules[bot] <161369871+google-labs-jules[bot]@users.noreply.github.com>
2026-11-03 16:25:15 +00:00
Daniel O'Connorandgoogle-labs-jules[bot] 7acb633070 Localize crop approval status message partial (#5267)
Extract hardcoded English strings in app/views/crops/_approval_status_message.html.haml
into relative i18n calls and add translations across all standard locales
(en, de, es, fr, ja, zh). Add view specs to verify localized rendering.

Co-authored-by: google-labs-jules[bot] <161369871+google-labs-jules[bot]@users.noreply.github.com>
2026-11-03 15:21:10 +10:30
Daniel O'Connorandgoogle-labs-jules[bot] b327c80c63 Redirect to page section after seed inline edit (#5266)
Ensure inline edits on the seed show page redirect back to the
relevant section (#facts or #notes) after saving.

Co-authored-by: google-labs-jules[bot] <161369871+google-labs-jules[bot]@users.noreply.github.com>
2026-11-03 14:27:36 +10:30
Daniel O'Connorandgoogle-labs-jules[bot] 508b2230ea Localize crop join banner across supported locales (#5257)
Co-authored-by: google-labs-jules[bot] <161369871+google-labs-jules[bot]@users.noreply.github.com>
2026-11-02 20:51:52 +10:30
Daniel O'Connorandgoogle-labs-jules[bot] 40349fa0f8 Render EcoCrop taxonomy with line breaks (#5256)
Split colon-delimited taxonomy ranks in EcoCrop data and render each on
its own line with line breaks instead of colons.

Co-authored-by: google-labs-jules[bot] <161369871+google-labs-jules[bot]@users.noreply.github.com>
2026-11-02 20:18:02 +10:30
Daniel O'Connorandgoogle-labs-jules[bot] 307ca1f095 Localize member email prompt component (#5253)
Extract hardcoded English strings in app/views/members/_email_prompt.html.haml
into relative i18n keys and add translations across en, de, es, fr, ja,
and zh locale files. Update view specs for unset email and pending reconfirmation.

Co-authored-by: google-labs-jules[bot] <161369871+google-labs-jules[bot]@users.noreply.github.com>
2026-11-02 09:31:15 +00:00
Brenda Wallace 40b04aa834 Fix assignment of last_edited_at in crop show spec 2026-11-02 21:25:37 +13:00
Brenda Wallace f679c74b1e Fix crops controller spec for the history page
The crop page no longer loads version members; the history page does.
2026-11-02 21:25:37 +13:00
Brenda Wallace e0f97a8edc Add crop history feature with join banner for non-signed-in users 2026-11-02 21:25:37 +13:00
04744008bf Add ecocrop_data table, import rake task, and crop show ecological requirements (#5239)
* Add ecocrop_data table, import rake task, and view table on crop show

- Add migration creating ecocrop_data table with columns matching CGIAR EcoCrop schema
- Add EcocropData model and Crop#ecocrop_data matching by scientific name
- Add import:ecocrop_data rake task to download parquet file and populate database
- Add _ecocrop_data partial displaying ecological requirements, CC-BY-4.0 license link, and FAO citation on crop show
- Add model, rake task, and view tests

Co-authored-by: CloCkWeRX <365751+CloCkWeRX@users.noreply.github.com>

* Make citation text smaller and URLs clickable in EcoCrop section

- Add small styling to citation text in _ecocrop_data partial
- Turn FAO and CGIAR dataset URLs into clickable links

Co-authored-by: CloCkWeRX <365751+CloCkWeRX@users.noreply.github.com>

---------

Co-authored-by: google-labs-jules[bot] <161369871+google-labs-jules[bot]@users.noreply.github.com>
2026-11-02 18:06:22 +10:30
Brenda Wallace 48296925b5 Refactor crop merging functionality to enhance plan generation and UI presentation 2026-11-02 19:22:15 +13:00
Brenda Wallace 2324a55c09 Implement crop merging functionality with controller, service, views, and specs 2026-11-02 19:22:15 +13:00
Daniel O'Connorandgoogle-labs-jules[bot] 2f11e87ff9 Localize crop alternate name modal (#5232)
Extract hardcoded English strings in app/views/crops/_alternate_name_modal.html.haml
into relative i18n keys and add translations in en, de, es, fr, ja, and
zh locale files. Add view specs for new and persisted alternate names.

Co-authored-by: google-labs-jules[bot] <161369871+google-labs-jules[bot]@users.noreply.github.com>
2026-11-02 06:08:17 +00:00
Brenda Wallace 0e172dea43 Implement claiming functionality for garden stalls with area restrictions and postage options 2026-11-02 18:06:42 +13:00
Brenda Wallace 5c9d9350e0 Implement claim functionality for garden stall packets with associated views, styles, and tests 2026-11-02 18:06:42 +13:00
Brenda Wallace 13e120f992 Add new seed packet functionality with UI updates and error handling 2026-11-02 18:06:42 +13:00
Brenda Wallace 0e4b317b44 Add about section for Growstuff and enhance stall sharing features 2026-11-02 18:06:42 +13:00
Brenda Wallace bb4bb1b591 Add offer options for stall seeds with UI updates and tests 2026-11-02 18:06:42 +13:00
Brenda Wallace 275ebd1bab Implement garden stall seed management feature with associated views, styles, and tests 2026-11-02 18:06:42 +13:00
Brenda Wallace f18fc64f03 Update stall opening logic and flash message handling
- Modify the create action in OpeningsController to use a localized notice for stall opening.
- Adjust the show action in StallsController to reflect the new opening logic.
- Enhance tests to verify the new flash message and UI behavior when the stall is opened.
2026-11-02 18:06:42 +13:00
Brenda Wallace 61e0200be4 Add garden stall owner display and update related views and styles 2026-11-02 18:06:42 +13:00
Brenda Wallace ae8fddbc7b Implement garden stall feature with opening/closing functionality and related UI components 2026-11-02 18:06:42 +13:00
Brenda Wallace 08fa57ca28 Fix crop photos display to ensure only child crop photos are shown, not parent crop photos 2026-11-02 17:10:09 +13:00
Brenda Wallace 41cbf29f78 Refactor admin crops spec for clarity and consistency in test structure 2026-11-02 16:32:06 +13:00
Brenda Wallace f38477572b Add recently edited crops feature with pagination and UI updates 2026-11-02 16:32:06 +13:00
Daniel O'Connorandgoogle-labs-jules[bot] 0e3386ca79 Release slug when a crop is rejected (#1628) (#5231)
When a crop is rejected, its slug is released by appending
a unique suffix so that the canonical slug becomes available
for future crops with that name.

Co-authored-by: google-labs-jules[bot] <161369871+google-labs-jules[bot]@users.noreply.github.com>
2026-11-02 03:00:06 +00:00