Commit Graph
5036 Commits
Author SHA1 Message Date
Brenda Wallace 5588bd2eb1 Add crop icons to job suggestions and update notepad UI for improved visibility 2026-10-22 18:25:25 +13:00
Brenda Wallace afd053465d Enhance job creation and notepad functionality to handle empty jobbable links and ensure Add button remains enabled during submission 2026-10-22 18:18:56 +13:00
Brenda Wallace 37ea0436fc Refactor job ordering in load_notepad and add spec for job order retention when crossed off 2026-10-22 18:16:17 +13:00
Brenda Wallace 7b67fd3dd6 Add snail animation and job completion caption to notepad 2026-10-22 18:15:35 +13:00
Brenda Wallace 51923aadd8 Add job celebration features with animations and notifications for completed tasks 2026-10-22 18:11:35 +13:00
Brenda Wallace 871c7ff9ce Enhance job notepad and linking functionality with UI improvements and code refactoring 2026-10-22 18:02:21 +13:00
Brenda Wallace d7d14cf65e Implement job linking functionality with crop suggestions and UI enhancements 2026-10-22 17:59:27 +13:00
Brenda Wallace 5b8d1f6483 Refactor JobList Group struct to include alias for droppable? method 2026-10-22 17:30:55 +13:00
Brenda Wallace 47476324b3 Enhance job notepad functionality with drag-and-drop support and UI updates 2026-10-22 17:24:48 +13:00
Brenda Wallace 06138569c6 Implement job notepad functionality with AJAX support for adding jobs 2026-10-22 17:19:31 +13:00
Brenda Wallace a0b24381ac Refactor activities to jobs across the application
- Renamed all instances of 'Activity' to 'Job' in views, controllers, and models.
- Updated routes to reflect the change from activities to jobs.
- Modified database schema to rename the activities table to jobs and adjusted related columns.
- Updated locale files to change activity-related translations to jobs.
- Adjusted tests to ensure they reference jobs instead of activities.
- Removed the category field from jobs as they are now a plain list.
- Updated seed data and sample data generation to create jobs instead of activities.
2026-10-22 17:16:25 +13:00
Brenda Wallace e037ea5cf9 Remove activity-related views and templates in preparation for renaming to jobs 2026-10-22 17:13:18 +13:00
Brenda Wallace 77bf9d5e92 Rename activities to jobs and update related files for consistency 2026-10-22 17:06:55 +13:00
Brenda Wallace ffacf8f236 Add crop job templates and steps models with associated migrations and tests 2026-10-22 16:56:47 +13:00
Brenda Wallace 3c87004a3c Fix mobile layout by enabling flex-wrap for harvest season months and adjusting row margins 2026-10-22 15:43:24 +13:00
Brenda Wallace 1753267819 Fix mobile layout issues by adjusting container width and margins 2026-10-22 15:43:24 +13:00
Brenda Wallace 977a984c24 Remove Elasticsearch integration and related code
- Deleted Elasticsearch gems from Gemfile and Gemfile.lock.
- Updated README and TECH documentation to reflect the removal of Elasticsearch.
- Removed Elasticsearch-related code from models, controllers, services, and factories.
- Adjusted tests to eliminate dependencies on Elasticsearch.
- Cleaned up Docker configuration and environment variables related to Elasticsearch.
- Added a TODO file for future gem reviews and potential removals.
2026-10-22 15:37:03 +13:00
Brenda Wallace 229cd7e5e1 Implement normalized name handling and search improvements in Postgres 2026-10-21 12:58:48 +13:00
Brenda Wallace 26a7b196f7 Move crop search to postgres (no elasticsearch) 2026-10-21 12:58:48 +13:00
Brenda Wallace 238880ef36 Revert "Refactor crop search functionality to use Postgres extensions for improved matching and update pagination logic"
This reverts commit 998a362b34.
2026-10-21 08:22:10 +13:00
Brenda Wallace 998a362b34 Refactor crop search functionality to use Postgres extensions for improved matching and update pagination logic 2026-10-21 08:06:42 +13:00
Brenda WallaceandClaude Sonnet 5.5 cec71ea328 Make the append-date datepicker pop up instead of rendering inline
bootstrap-datepicker 1.10 treats a non-input element as an inline calendar,
so the Mark as finished links never showed a picker. Ask for the dropdown.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-10-20 23:55:33 +13:00
Brenda Wallace 8948d0386a Add icon helper method and corresponding tests for icon rendering 2026-10-20 23:55:33 +13:00
Brenda Wallace e68c98fd38 Add JavaScript functionality for planting alternate names and tab navigation
- Implemented `planting_alternate_name.js` to load alternate names for crops in the planting form based on user input.
- Added `tab_navigation.js` to manage tab navigation and update the URL hash accordingly.

Update map rendering in member and place views

- Modified `_map.html.haml` to include a custom marker icon for member maps.
- Updated `index.html.haml` and `show.html.haml` to pass `places_map_data` to the map sections.

Refactor asset management in Rails application

- Removed Sprockets from the application configuration and adjusted asset paths.
- Updated asset precompilation settings and removed deprecated asset configurations from environment files.
- Added new build scripts for CSS and updated package dependencies in `package.json` for Bootstrap, Chart.js, and others.

Ensure React and CSS bundles are built before running tests

- Updated `react_bundle.rb` to check for the existence of both JavaScript and CSS bundles and build them if missing.
2026-10-20 23:55:33 +13:00
Brenda Wallace eb3f10132a Add tests for AlternateNames, GbifNameInput, NameFields, and ScientificNames components 2026-10-20 16:37:56 +13:00
Brenda Wallace 389efe9af4 Fix newRow function to handle undefined values correctly 2026-10-20 16:34:07 +13:00
Brenda Wallace ed193d088d Merge remote-tracking branch 'origin/main' into remove-coffee-rails 2026-10-20 16:33:41 +13:00
Brenda Wallace 3b4e6c6dd7 adding vitest, to test our react components 2026-10-20 13:48:29 +13:00
Brenda Wallace 3c5514a0cb Enhance GbifNameInput: improve match handling by tracking user input state and adjusting search conditions 2026-10-20 13:38:54 +13:00
Brenda Wallace 5aa751f0f3 Refactor crop name fields: replace manual input handling with reusable components for scientific and alternate names, and integrate GBIF name suggestions. 2026-10-20 13:11:49 +13:00
Brenda Wallace a5e717c699 Remove unused JavaScript files for scientific name auto-suggest and related functionality 2026-10-20 13:09:49 +13:00
Brenda Wallace 88624d2ac8 Implement alternate names functionality with React component and update related specs 2026-10-20 13:06:04 +13:00
Brenda Wallace 067fdcd12b re-write as vanilla js 2026-10-20 09:10:35 +13:00
Brenda Wallace 79aca3f7fc Refactor JavaScript files: consolidate planting and seed finish logic, remove unused CoffeeScript files, and add new scientific name auto-suggest functionality
- Deleted `crops.js.coffee`, `finish_planting.js.coffee`, and `finish_seed.js.coffee` as they are no longer needed.
- Introduced `finish_toggle.js` to handle the finished state for both planting and seed in a unified manner.
- Added `planting_alternate_name.js` to manage alternate names for crops in the planting form.
- Created `scientific_name_auto_suggest.js` to implement auto-suggest functionality for scientific names.
- Removed outdated dependencies from `package.json` and `yarn.lock`.
2026-10-20 09:06:36 +13:00
Brenda Wallace ab2cd134e4 Refactor neighbours styles and enhance season heading rendering with icons 2026-10-19 20:53:26 +13:00
Brenda Wallace 859c07a50c Enhance neighbours feature with entry lines and streamline season handling
- Introduced `entry_lines` method to format daily activities and photo groups in neighbours.
- Updated `_entry.html.haml` to utilize `entry_lines` for rendering activity summaries.
- Added `_line.html.haml` partial for rendering individual activity lines.
- Refactored `season_for` method in `SeasonsHelper` to improve hemisphere handling.
- Introduced `NARROW_SCOPES` in `Neighbours` service to clarify scope filtering logic.
- Cleaned up unused methods and improved localization strings in `en.yml`.
2026-10-19 20:53:26 +13:00
Brenda Wallace 7e8210173e Update activity icon to use Font Awesome calendar icon in neighbours helper 2026-10-19 20:53:26 +13:00
Brenda Wallace 60211cb52f Add harvest details display and update tests for neighbours feature 2026-10-19 20:53:26 +13:00
Brenda Wallace 77da6fd00c Refactor neighbours styles and enhance entry rendering
- Update styles for neighbours entry list and line items for better layout.
- Introduce grouping logic for neighbour activities in the helper.
- Modify entry rendering to display grouped activities and photos.
- Adjust locale keys for improved sentence structure in activity descriptions.
- Add tests for new grouping functionality and ensure date handling is consistent across time zones.
2026-10-19 20:53:26 +13:00
Brenda Wallace bcea793b66 Remove obsolete neighbour item view logic for various record types 2026-10-19 20:53:26 +13:00
Brenda Wallace d71b005ccc Add support for planned activities in neighbours and timeline services, update views and tests accordingly 2026-10-19 20:53:26 +13:00
Brenda Wallace a2358b10bf Enhance finished plantings query: include updates for plantings without finish dates and adjust selection criteria for better accuracy in timeline events. 2026-10-19 20:53:26 +13:00
Brenda Wallace fa33d7b911 Add seasonal features to neighbours: implement season markers and headings, enhance activity filtering for 'me' scope, and update styles for better visibility. 2026-10-19 20:53:26 +13:00
Brenda Wallace ecb84e35ba Add support for finished seeds in neighbours and timeline services
- Updated the Neighbours service to include 'seed_finished' in the feed kinds and event models.
- Enhanced the TimelineService to query finished seeds and include them in the timeline.
- Modified the neighbours view to display finished seeds with appropriate translations.
- Added tests to ensure finished seeds are correctly represented in both the neighbours feed and service specs.
2026-10-19 20:53:26 +13:00
Brenda WallaceandClaude Sonnet 5.5 356b83bd33 Add transplants, finished plantings and planned activities to friends and neighbours
Assisted-by: Claude Code:claude-sonnet-5-5
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-10-19 20:53:26 +13:00
Brenda Wallace e40e74e1e4 Enhance seed search functionality: implement responsive layout for seed search input and expired seeds checkbox, and update hint display for better user experience. 2026-10-18 11:33:48 +13:00
Brenda Wallace f27be9ce91 Add browser time zone support: implement timezone cookie handling in application.js and adjust ApplicationController to use browser time zone for date calculations. 2026-10-18 10:30:28 +13:00
Brenda Wallace 2d97aed868 Enhance seed packet selection and sowing process: update SeedPacketList to include expired seeds option, improve UI for seed selection, and modify SowSeedsModal to support multi-step sowing with notes. 2026-10-18 10:19:32 +13:00
Brenda Wallace 8c7eed345e Enhance transplant functionality: update JSON responses to include garden card details, implement event handling for garden card changes, and improve UI interactions in related components. 2026-10-18 10:10:25 +13:00
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