Commit Graph
13034 Commits
Author SHA1 Message Date
4734702ba8 Update bin/dev and Procfile.dev for automatic asset watching (#5002)
* Add Procfile.dev and update bin/dev for dev asset watchers

- Create Procfile.dev to run web server and asset compilation watchers
  for JS (`yarn build:watch`) and CSS (`yarn build:css:watch`).
- Add `foreman` gem to `:development` group in Gemfile.
- Update `bin/dev` to run Procfile.dev using available process manager
  (overmind, hivemind, or foreman).
- Fix `build:css:watch` script in package.json to pass `--watch` to Sass.
- Update README.md to instruct running `bin/dev` in development.

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

* Add Procfile.dev and update bin/dev for dev asset watchers

- Create Procfile.dev to run web server and asset compilation watchers
  for JS (`yarn build:watch`) and CSS (`yarn build:css:watch`).
- Add `foreman` gem to `:development` group in Gemfile and Gemfile.lock.
- Update `bin/dev` to run Procfile.dev using available process manager
  (overmind, hivemind, or foreman).
- Fix `build:css:watch` script in package.json to pass `--watch` to Sass.
- Update README.md to instruct running `bin/dev` in development.

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

* Apply suggestion from @CloCkWeRX

* Apply suggestion from @CloCkWeRX

* Add Procfile.dev and update bin/dev for dev asset watchers

- Create Procfile.dev to run web server and asset compilation watchers
  for JS (`yarn build:watch`) and CSS (`yarn build:css:watch`).
- Add `foreman` gem to `:development` group in Gemfile and Gemfile.lock.
- Update `bin/dev` to run Procfile.dev using available process manager
  (overmind, hivemind, or foreman).
- Fix `build:css:watch` script in package.json to pass `--watch` to Sass.
- Update README.md to instruct running `bin/dev` in development.
- Keep .ruby-version unchanged.

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

* Apply suggestion from @CloCkWeRX

---------

Co-authored-by: google-labs-jules[bot] <161369871+google-labs-jules[bot]@users.noreply.github.com>
Co-authored-by: Brenda Wallace <brenda@wallace.net.nz>
2026-10-23 09:11:33 +10:30
Brenda Wallace 06ce7bfddb Remove bin/bundle binstub (#5008) 2026-10-23 09:09:36 +10:30
Brenda Wallace 91e605d2c5 Add suggestions feature for job notepad: implement crop name suggestions with @ syntax in both add and edit modes 2026-10-23 10:43:16 +13:00
Brenda Wallace d96594f812 Enhance job notepad and suggestions for garden context:
- Update styles for notepad title and job suggestions.
- Modify job suggestions controller to filter by garden plantings.
- Implement interactive suggestions in job notepad for crop linking.
- Add link to view all jobs in the garden's notepad.
- Extend tests for job suggestions in garden context.
2026-10-23 08:43:55 +13:00
Brenda Wallace 2165a63b1a Refactor notepad styles: adjust heading styles for better integration with garden context, removing background and box-shadow for h1 and h2 elements. 2026-10-23 08:39:45 +13:00
Brenda Wallace 23a0e6ea1f Implement garden-specific job notepad: add JobsNotepad service, update controllers and views to support garden context, and enhance tests for new functionality. 2026-10-23 08:38:47 +13:00
Brenda Wallace 5a601d6dec Enhance job handling in neighbours and timeline services: add support for finished jobs, update queries, and improve localization for job-related events. 2026-10-23 08:31:29 +13:00
Brenda Wallace ba3574b5fc Refactor job-related code: enhance job suggestions, improve notepad functionality, and update job form fields 2026-10-23 08:27:46 +13:00
Brenda Wallace 9e35db0207 Add tests for job notepad functionality: implement job addition, editing, and drag-and-drop interactions 2026-10-23 08:24:33 +13:00
Brenda Wallace a4e764b760 Add saving state indication for job rows: implement dimming and spinner during server interactions 2026-10-23 08:22:25 +13:00
Brenda Wallace 0dfe944842 Add saving state indication for job notepad: implement spinner and status message during job addition 2026-10-23 08:22:15 +13:00
Brenda Wallace 7f0b6fb989 Enhance job notepad functionality: implement job crossing off with date tracking, update job grouping logic, and improve UI elements for better user experience. 2026-10-23 08:20:48 +13:00
Brenda Wallace 93c7ba08b7 Add overdue and done job groups to notepad and update styles 2026-10-23 08:18:00 +13:00
Brenda Wallace d6d56787ca Implement inline editing for job names in notepad with appropriate styles and hints 2026-10-23 08:13:16 +13:00
Brenda Wallace 5312090a67 Merge remote-tracking branch 'origin/job-links-from-typing' into job-celebration 2026-10-23 08:04:26 +13:00
Brenda Wallace 07a86dfd3b Merge remote-tracking branch 'origin/main' into job-links-from-typing 2026-10-23 08:03:09 +13:00
Brenda Wallace b3a62b09e3 Rename activities to jobs, with a notepad page for your own jobs - #4990#4990
Rename activities to jobs, with a notepad page for your own jobs
2026-10-23 07:56:00 +13:00
Brenda Wallace 5b7624814e Merge remote-tracking branch 'origin/main' into rename-activities-to-jobs 2026-10-23 07:49:43 +13:00
Brenda Wallace 6c82213335 Add crop job templates and steps (models only) #4989
Add crop job templates and steps (models only)
2026-10-22 18:35:26 +00:00
Brenda Wallace ff7cbc450f Add activities table and remove jobs table from schema 2026-10-23 07:29:27 +13:00
Brenda Wallace 7c299b0f50 Merge remote-tracking branch 'origin/main' into rename-activities-to-jobs 2026-10-23 07:26:02 +13:00
Brenda Wallace 2b542eadf2 Merge remote-tracking branch 'origin/main' into crop-job-templates 2026-10-23 07:17:28 +13:00
Brenda Wallace 66b70180cd Add external_uri attribute to CropJobStep with validations and tests 2026-10-23 07:16:43 +13:00
Daniel O'Connorandgoogle-labs-jules[bot] 744ec9b7ec Display layout preview and edit/view controls on garden show (#5003)
Add `Garden#has_layout?` method to detect whether a garden has an
existing layout. On `gardens#show`, if a garden has a layout, display
an SVG preview of the layout (placed plants and features) inside the
teaser bed frame, remove the "New" badge, update the title to
"Garden layout", and offer "Edit layout →" or "View layout →" controls.
If no layout exists, preserve the original "Map out this bed" teaser
and "New" badge.

Co-authored-by: google-labs-jules[bot] <161369871+google-labs-jules[bot]@users.noreply.github.com>
2026-10-22 18:08:05 +00:00
Daniel O'Connor ed04f6ed44 Add UI changes section to AGENTS.md
Added guidelines for including visual evidence in pull requests.
2026-10-23 03:08:32 +10:30
Daniel O'Connor fd4e227690 Update AGENTS.md with dependencies section
Added a section on dependencies to avoid committing sandbox changes.
2026-10-23 03:07:50 +10:30
51feec8de1 Add comment support for plantings (#4984)
* Add comment support for plantings

- Add polymorphic comments association, subject, and author methods to Planting.
- Add comments_count column migration for Planting counter cache.
- Update CommentsController and comments view templates to support Planting.
- Render comments list and form on Planting show view.
- Add specs for Planting comments in models, controllers, and requests.

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

* put 4.0.7 back

* Opt comments on posts into record-page styling temporarily

* Drop hr

* Flatten comments

* Update schema

---------

Co-authored-by: google-labs-jules[bot] <161369871+google-labs-jules[bot]@users.noreply.github.com>
Co-authored-by: Brenda Wallace <brenda@wallace.net.nz>
2026-10-22 15:22:32 +00:00
Brenda Wallace e21c3ab1da Merge branch 'job-links-from-typing' into job-celebration 2026-10-22 20:21:44 +13:00
Brenda Wallace cef7322d7e Merge branch 'rename-activities-to-jobs' into job-links-from-typing 2026-10-22 20:18:29 +13:00
Brenda Wallace 29e9c71012 Refactor job handling: update due date logic, enhance notepad functionality, and adjust routing 2026-10-22 20:15:57 +13:00
Brenda Wallace f718f3e122 Refactor job handling and UI updates: streamline job path usage, enhance celebration text, and improve notepad interactions 2026-10-22 18:31:28 +13:00
Brenda Wallace be21f287a8 Merge branch 'job-links-from-typing' into job-celebration 2026-10-22 18:26:31 +13:00
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 1a1bd49265 Clarify planting trait association in job factory to ensure owner-specific planting 2026-10-22 18:18:38 +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 d1ea600117 Add additional mobile layout tests for crop and planting pages 2026-10-22 15:43:24 +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 72bfc62d1d Add mobile layout tests and overflow helpers for better responsiveness 2026-10-22 15:43:24 +13:00