Commit Graph
13034 Commits
Author SHA1 Message Date
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 cd9aa9f651 Remove Elasticsearch configuration and related scripts 2026-10-22 15:37:03 +13:00
dependabot[bot] 526e815bcb Bump cancancan from 3.6.2 to 3.7.0 (#4965)
Bumps [cancancan](https://github.com/CanCanCommunity/cancancan) from 3.6.2 to 3.7.0.
- [Release notes](https://github.com/CanCanCommunity/cancancan/releases)
- [Changelog](https://github.com/coorasse/cancancan/blob/main/CHANGELOG.md)
- [Commits](https://github.com/CanCanCommunity/cancancan/compare/3.6.2...3.7.0)

---
updated-dependencies:
- dependency-name: cancancan
  dependency-version: 3.7.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2026-10-21 03:16:22 +00:00
dependabot[bot] c7bb47331c Bump rubocop-capybara from 3.0.0 to 3.1.0
Bumps [rubocop-capybara](https://github.com/rubocop/rubocop-capybara) from 3.0.0 to 3.1.0.
- [Release notes](https://github.com/rubocop/rubocop-capybara/releases)
- [Changelog](https://github.com/rubocop/rubocop-capybara/blob/main/CHANGELOG.md)
- [Commits](https://github.com/rubocop/rubocop-capybara/compare/v3.0.0...v3.1.0)

---
updated-dependencies:
- dependency-name: rubocop-capybara
  dependency-version: 3.1.0
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2026-10-21 16:04:10 +13:00
dependabot[bot] ddb7d989d6 Bump faraday from 2.14.3 to 2.15.0 (#4980)
Bumps [faraday](https://github.com/lostisland/faraday) from 2.14.3 to 2.15.0.
- [Release notes](https://github.com/lostisland/faraday/releases)
- [Changelog](https://github.com/lostisland/faraday/blob/main/CHANGELOG.md)
- [Commits](https://github.com/lostisland/faraday/compare/v2.14.3...v2.15.0)

---
updated-dependencies:
- dependency-name: faraday
  dependency-version: 2.15.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2026-10-21 13:01:59 +10:30
Brenda Wallace ec8f32cc9a Fix flaky specs by adding DetachedNodeRetry module and disabling Rack::Attack during tests (#4983) 2026-10-21 13:01:35 +10:30
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 5ccbbf770a Merge pull request #4977 from Growstuff/remove-coffee-rails
Remove coffee-rails: convert coffee files to JS, make crop name fields React islands
2026-10-20 17:25:47 +13:00
Brenda Wallace 4d6b903f6d Add mock for GBIF suggestions in crop creation specs and update name field test for highlighted match 2026-10-20 17:06:34 +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 9d54380e22 Add feature specs for crop name rows and seed finishing functionality 2026-10-20 09:16:11 +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 2e347e4668 Remove crowdin-cli gem (#4973)
* Remove crowdin-cli gem

Last released in 2018. Crowdin now ships its own standalone CLI, which
reads crowdin.yml and doesn't need the gem. Also drops the dependencies
only it used (rest-client, gli, crowdin-api and friends).

* Removes the crowdin-cli gem (last released 2018), the dependencies only
it needed, and crowdin.yml. Crowdin was never set up: the config still
has a placeholder project ID and nothing else in the repo mentions it.

Assisted by Claude
2026-10-19 21:00:14 +10:30
Brenda Wallace 5670ede0ec Remove unused webrat gem
Last released in 2011. Nothing requires it; the specs use Rails'
assert_select and Capybara matchers. Only generator comments mention it.
2026-10-19 23:23:33 +13:00
Daniel O'Connorandgoogle-labs-jules[bot] 565241d7a1 Fix flaky conversations request spec ID mismatch (#4975)
Co-authored-by: google-labs-jules[bot] <161369871+google-labs-jules[bot]@users.noreply.github.com>
2026-10-19 20:44:17 +10:30
dependabot[bot] ccead281d2 Bump axe-core-capybara from 4.13.0 to 4.14.0 (#4967)
Bumps [axe-core-capybara](https://github.com/dequelabs/axe-core-gems) from 4.13.0 to 4.14.0.
- [Release notes](https://github.com/dequelabs/axe-core-gems/releases)
- [Changelog](https://github.com/dequelabs/axe-core-gems/blob/develop/CHANGELOG.md)
- [Commits](https://github.com/dequelabs/axe-core-gems/commits)

---
updated-dependencies:
- dependency-name: axe-core-capybara
  dependency-version: 4.14.0
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2026-10-19 20:43:49 +10:30
Brenda Wallace 8b6cf25375 Remove memcachier gem from Gemfile and Gemfile.lock 2026-10-19 22:51:14 +13:00
Brenda Wallace b912b13e40 Remove rails_12factor gem (#4969)
Last released in 2014. Rails 5+ does this via RAILS_SERVE_STATIC_FILES
and RAILS_LOG_TO_STDOUT, which production.rb already reads.
2026-10-19 19:58:47 +10:30
Brenda Wallace 793759c7af Remove unused bluecloth gem (#4968)
* Remove unused bluecloth gem

Last released in 2011. It was only required, never called; kramdown
renders the markdown.

* Add specs for Tilt markdown rendering and posts markdown partial
2026-10-19 19:36:32 +10:30
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 0ca8c08f0b Merge pull request #4962 from Growstuff/nursery
sowing in a nursery
2026-10-18 15:59:14 +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