Commit Graph

11216 Commits

Author SHA1 Message Date
google-labs-jules[bot]
f2421bf4c7 Here's the plan to add polymorphic comments and update related functionality:
This change introduces polymorphic comments, allowing you to comment on Photos, Plantings, Harvests, and Activities, in addition to Posts.

Key changes include:

-   **Comment Model:**
    -   Made `Comment.commentable` a polymorphic association.
    -   Added a data migration to move existing post comments to the new structure.
    -   Updated notification creation logic for polymorphic commentables.
-   **CommentsController:**
    -   Refactored to handle various commentable types using a `find_commentable` method.
-   **Ability Model:**
    -   Updated permissions for comment creation, editing (author/admin), and deletion (author/commentable owner/admin).
-   **Routes:**
    -   Added nested comment routes for Photos, Plantings, Harvests, Activities, and Posts using a `commentable` concern with shallow routes.
-   **Views:**
    -   Created generic partials for comment forms (`_form.html.haml`) and display (`_comment.html.haml`, `_comments.html.haml`).
    -   Integrated these partials into the show pages of all commentable types.
    -   Updated `comments/new` and `comments/edit` views to be generic.
    -   Relevant parent controller `show` actions now eager-load comments.
-   **Testing:**
    -   Added extensive model, controller (using shared examples), and feature tests to cover the new polymorphic comment functionality, including permissions and UI interactions for all commentable types.
    -   Updated and created factories as needed.

This fulfills the issue requirements for adding comments to multiple resource types with appropriate permissions.
2025-05-25 02:03:17 +00:00
Daniel O'Connor
bdad7bd222 Merge pull request #4059 from Growstuff/dependabot/bundler/rubocop-rails-2.32.0
Bump rubocop-rails from 2.31.0 to 2.32.0
2025-05-19 18:12:40 +09:30
dependabot[bot]
b07fff72d0 Bump rubocop-rails from 2.31.0 to 2.32.0
Bumps [rubocop-rails](https://github.com/rubocop/rubocop-rails) from 2.31.0 to 2.32.0.
- [Release notes](https://github.com/rubocop/rubocop-rails/releases)
- [Changelog](https://github.com/rubocop/rubocop-rails/blob/master/CHANGELOG.md)
- [Commits](https://github.com/rubocop/rubocop-rails/compare/v2.31.0...v2.32.0)

---
updated-dependencies:
- dependency-name: rubocop-rails
  dependency-version: 2.32.0
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-05-19 07:57:24 +00:00
Daniel O'Connor
bff516d413 Merge pull request #4057 from Growstuff/dependabot/bundler/bullet-8.0.7
Bump bullet from 8.0.6 to 8.0.7
2025-05-16 19:20:41 +09:30
dependabot[bot]
add339a09f Bump bullet from 8.0.6 to 8.0.7
Bumps [bullet](https://github.com/flyerhzm/bullet) from 8.0.6 to 8.0.7.
- [Changelog](https://github.com/flyerhzm/bullet/blob/main/CHANGELOG.md)
- [Commits](https://github.com/flyerhzm/bullet/compare/8.0.6...8.0.7)

---
updated-dependencies:
- dependency-name: bullet
  dependency-version: 8.0.7
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-05-16 07:04:53 +00:00
dependabot[bot]
c59226c1f0 Merge pull request #4056 from Growstuff/dependabot/bundler/jquery-ui-rails-8.0.0 2025-05-14 10:11:20 +00:00
dependabot[bot]
7f8170d230 Bump jquery-ui-rails from 413265e to 8.0.0
Bumps [jquery-ui-rails](https://github.com/jquery-ui-rails/jquery-ui-rails) from `413265e` to 8.0.0. This release includes the previously tagged commit.
- [Release notes](https://github.com/jquery-ui-rails/jquery-ui-rails/releases)
- [Commits](413265e81f...v8.0.0)

---
updated-dependencies:
- dependency-name: jquery-ui-rails
  dependency-version: 8.0.0
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-05-14 08:01:14 +00:00
dependabot[bot]
4d12b9afd7 Merge pull request #4055 from Growstuff/dependabot/bundler/loofah-2.24.1 2025-05-13 10:51:19 +00:00
dependabot[bot]
0f8be52bdd Bump loofah from 2.24.0 to 2.24.1
Bumps [loofah](https://github.com/flavorjones/loofah) from 2.24.0 to 2.24.1.
- [Release notes](https://github.com/flavorjones/loofah/releases)
- [Changelog](https://github.com/flavorjones/loofah/blob/main/CHANGELOG.md)
- [Commits](https://github.com/flavorjones/loofah/compare/v2.24.0...v2.24.1)

---
updated-dependencies:
- dependency-name: loofah
  dependency-version: 2.24.1
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-05-13 08:18:09 +00:00
dependabot[bot]
88098db188 Merge pull request #4045 from Growstuff/dependabot/bundler/faraday-2.13.1 2025-05-13 08:16:58 +00:00
dependabot[bot]
97fc9eb150 Bump faraday from 2.13.0 to 2.13.1
Bumps [faraday](https://github.com/lostisland/faraday) from 2.13.0 to 2.13.1.
- [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.13.0...v2.13.1)

---
updated-dependencies:
- dependency-name: faraday
  dependency-version: 2.13.1
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-05-13 08:08:49 +00:00
dependabot[bot]
d0bdc1178e Merge pull request #4053 from Growstuff/dependabot/bundler/bullet-8.0.6 2025-05-13 08:07:37 +00:00
dependabot[bot]
02b0c1617f Bump bullet from 8.0.5 to 8.0.6
Bumps [bullet](https://github.com/flyerhzm/bullet) from 8.0.5 to 8.0.6.
- [Changelog](https://github.com/flyerhzm/bullet/blob/main/CHANGELOG.md)
- [Commits](https://github.com/flyerhzm/bullet/compare/8.0.5...8.0.6)

---
updated-dependencies:
- dependency-name: bullet
  dependency-version: 8.0.6
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-05-13 07:59:30 +00:00
dependabot[bot]
93ea4af8d5 Merge pull request #4054 from Growstuff/dependabot/bundler/jquery-ui-rails-8.0.0 2025-05-13 07:58:17 +00:00
dependabot[bot]
7ccdb7ed66 Bump jquery-ui-rails from 413265e to 8.0.0
Bumps [jquery-ui-rails](https://github.com/jquery-ui-rails/jquery-ui-rails) from `413265e` to 8.0.0. This release includes the previously tagged commit.
- [Release notes](https://github.com/jquery-ui-rails/jquery-ui-rails/releases)
- [Commits](413265e81f...v8.0.0)

---
updated-dependencies:
- dependency-name: jquery-ui-rails
  dependency-version: 8.0.0
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-05-12 07:09:37 +00:00
Daniel O'Connor
6660181142 Merge pull request #4049 from Growstuff/dependabot/bundler/jquery-ui-rails-8.0.0
Bump jquery-ui-rails from `413265e` to 8.0.0
2025-05-09 00:38:51 +09:30
dependabot[bot]
b6cc950575 Merge pull request #4052 from Growstuff/dependabot/bundler/selenium-webdriver-4.32.0 2025-05-08 15:02:56 +00:00
dependabot[bot]
e699108d2a Bump selenium-webdriver from 4.31.0 to 4.32.0
Bumps [selenium-webdriver](https://github.com/SeleniumHQ/selenium) from 4.31.0 to 4.32.0.
- [Release notes](https://github.com/SeleniumHQ/selenium/releases)
- [Changelog](https://github.com/SeleniumHQ/selenium/blob/trunk/rb/CHANGES)
- [Commits](https://github.com/SeleniumHQ/selenium/compare/selenium-4.31.0...selenium-4.32.0)

---
updated-dependencies:
- dependency-name: selenium-webdriver
  dependency-version: 4.32.0
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-05-08 14:53:31 +00:00
dependabot[bot]
67c44fb17e Merge pull request #4048 from Growstuff/dependabot/bundler/rspec-rails-8.0.0 2025-05-08 14:49:53 +00:00
dependabot[bot]
11f2fbd399 Bump jquery-ui-rails from 413265e to 8.0.0
Bumps [jquery-ui-rails](https://github.com/jquery-ui-rails/jquery-ui-rails) from `413265e` to 8.0.0. This release includes the previously tagged commit.
- [Release notes](https://github.com/jquery-ui-rails/jquery-ui-rails/releases)
- [Commits](413265e81f...v8.0.0)

---
updated-dependencies:
- dependency-name: jquery-ui-rails
  dependency-version: 8.0.0
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-05-08 14:40:13 +00:00
dependabot[bot]
540941f3b7 Bump rspec-rails from 7.1.1 to 8.0.0
Bumps [rspec-rails](https://github.com/rspec/rspec-rails) from 7.1.1 to 8.0.0.
- [Changelog](https://github.com/rspec/rspec-rails/blob/main/Changelog.md)
- [Commits](https://github.com/rspec/rspec-rails/compare/v7.1.1...v8.0.0)

---
updated-dependencies:
- dependency-name: rspec-rails
  dependency-version: 8.0.0
  dependency-type: direct:development
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-05-08 14:39:22 +00:00
dependabot[bot]
c8797cd0db Merge pull request #4050 from Growstuff/dependabot/bundler/rubocop-1.75.5 2025-05-08 14:38:12 +00:00
dependabot[bot]
871535e902 Bump rubocop from 1.75.4 to 1.75.5
Bumps [rubocop](https://github.com/rubocop/rubocop) from 1.75.4 to 1.75.5.
- [Release notes](https://github.com/rubocop/rubocop/releases)
- [Changelog](https://github.com/rubocop/rubocop/blob/master/CHANGELOG.md)
- [Commits](https://github.com/rubocop/rubocop/compare/v1.75.4...v1.75.5)

---
updated-dependencies:
- dependency-name: rubocop
  dependency-version: 1.75.5
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-05-08 13:33:09 +00:00
dependabot[bot]
be0ce48be2 Merge pull request #4051 from Growstuff/dependabot/bundler/active_median-0.6.0 2025-05-08 13:31:54 +00:00
dependabot[bot]
24f8f99691 Bump active_median from 0.5.0 to 0.6.0
Bumps [active_median](https://github.com/ankane/active_median) from 0.5.0 to 0.6.0.
- [Changelog](https://github.com/ankane/active_median/blob/master/CHANGELOG.md)
- [Commits](https://github.com/ankane/active_median/compare/v0.5.0...v0.6.0)

---
updated-dependencies:
- dependency-name: active_median
  dependency-version: 0.6.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-05-05 08:09:42 +00:00
dependabot[bot]
0988e598f4 Merge pull request #4046 from Growstuff/dependabot/bundler/net-imap-0.4.20 2025-04-29 14:36:52 +00:00
Daniel O'Connor
2e94ee9c6d Merge branch 'dev' into dependabot/bundler/net-imap-0.4.20 2025-04-29 23:59:10 +09:30
Daniel O'Connor
8d42aed06f Merge pull request #4043 from Growstuff/dependabot/bundler/jquery-ui-rails-7.0.0
Bump jquery-ui-rails from `413265e` to 7.0.0
2025-04-29 22:00:54 +09:30
dependabot[bot]
fbbef7747a Bump net-imap from 0.4.19 to 0.4.20
Bumps [net-imap](https://github.com/ruby/net-imap) from 0.4.19 to 0.4.20.
- [Release notes](https://github.com/ruby/net-imap/releases)
- [Commits](https://github.com/ruby/net-imap/compare/v0.4.19...v0.4.20)

---
updated-dependencies:
- dependency-name: net-imap
  dependency-version: 0.4.20
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-04-29 12:25:22 +00:00
dependabot[bot]
9297484c48 Merge pull request #4041 from Growstuff/dependabot/bundler/nokogiri-1.18.8 2025-04-29 12:24:02 +00:00
dependabot[bot]
8a507cb0bc Bump jquery-ui-rails from 413265e to 7.0.0
Bumps [jquery-ui-rails](https://github.com/jquery-ui-rails/jquery-ui-rails) from `413265e` to 7.0.0. This release includes the previously tagged commit.
- [Release notes](https://github.com/jquery-ui-rails/jquery-ui-rails/releases)
- [Commits](413265e81f...v7.0.0)

---
updated-dependencies:
- dependency-name: jquery-ui-rails
  dependency-version: 7.0.0
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-04-29 12:10:28 +00:00
dependabot[bot]
12dc2cbff4 Bump nokogiri from 1.18.7 to 1.18.8
Bumps [nokogiri](https://github.com/sparklemotion/nokogiri) from 1.18.7 to 1.18.8.
- [Release notes](https://github.com/sparklemotion/nokogiri/releases)
- [Changelog](https://github.com/sparklemotion/nokogiri/blob/main/CHANGELOG.md)
- [Commits](https://github.com/sparklemotion/nokogiri/compare/v1.18.7...v1.18.8)

---
updated-dependencies:
- dependency-name: nokogiri
  dependency-version: 1.18.8
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-04-29 12:09:33 +00:00
dependabot[bot]
60cc7e6867 Merge pull request #4042 from Growstuff/dependabot/bundler/bullet-8.0.5 2025-04-29 12:08:22 +00:00
dependabot[bot]
29cb393c62 Bump bullet from 8.0.3 to 8.0.5
Bumps [bullet](https://github.com/flyerhzm/bullet) from 8.0.3 to 8.0.5.
- [Changelog](https://github.com/flyerhzm/bullet/blob/main/CHANGELOG.md)
- [Commits](https://github.com/flyerhzm/bullet/compare/8.0.3...8.0.5)

---
updated-dependencies:
- dependency-name: bullet
  dependency-version: 8.0.5
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-04-29 11:59:00 +00:00
dependabot[bot]
88b0c9748c Merge pull request #4047 from Growstuff/dependabot/bundler/rubocop-1.75.4 2025-04-29 11:57:51 +00:00
dependabot[bot]
d60ae89e5a Bump rubocop from 1.75.2 to 1.75.4
Bumps [rubocop](https://github.com/rubocop/rubocop) from 1.75.2 to 1.75.4.
- [Release notes](https://github.com/rubocop/rubocop/releases)
- [Changelog](https://github.com/rubocop/rubocop/blob/master/CHANGELOG.md)
- [Commits](https://github.com/rubocop/rubocop/compare/v1.75.2...v1.75.4)

---
updated-dependencies:
- dependency-name: rubocop
  dependency-version: 1.75.4
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-04-29 07:45:46 +00:00
dependabot[bot]
37b0831bdb Merge pull request #4030 from Growstuff/dependabot/bundler/jquery-ui-rails-7.0.0 2025-04-21 15:41:33 +00:00
dependabot[bot]
6b99d20e50 Bump jquery-ui-rails from 413265e to 7.0.0
Bumps [jquery-ui-rails](https://github.com/jquery-ui-rails/jquery-ui-rails) from `413265e` to 7.0.0. This release includes the previously tagged commit.
- [Release notes](https://github.com/jquery-ui-rails/jquery-ui-rails/releases)
- [Commits](413265e81f...v7.0.0)

---
updated-dependencies:
- dependency-name: jquery-ui-rails
  dependency-version: 7.0.0
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-04-21 10:13:53 +00:00
dependabot[bot]
cb0ee4e3b7 Merge pull request #4039 from Growstuff/dependabot/bundler/rubocop-rspec-3.6.0 2025-04-21 10:11:44 +00:00
dependabot[bot]
4074078560 Bump rubocop-rspec from 3.5.0 to 3.6.0
Bumps [rubocop-rspec](https://github.com/rubocop/rubocop-rspec) from 3.5.0 to 3.6.0.
- [Release notes](https://github.com/rubocop/rubocop-rspec/releases)
- [Changelog](https://github.com/rubocop/rubocop-rspec/blob/master/CHANGELOG.md)
- [Commits](https://github.com/rubocop/rubocop-rspec/compare/v3.5.0...v3.6.0)

---
updated-dependencies:
- dependency-name: rubocop-rspec
  dependency-version: 3.6.0
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-04-21 08:44:32 +00:00
dependabot[bot]
2745948c46 Merge pull request #4036 from Growstuff/dependabot/bundler/axe-core-capybara-4.10.3 2025-04-16 09:33:45 +00:00
dependabot[bot]
0fb10cfd24 Bump axe-core-capybara from 4.10.2 to 4.10.3
Bumps [axe-core-capybara](https://github.com/dequelabs/axe-core-gems) from 4.10.2 to 4.10.3.
- [Release notes](https://github.com/dequelabs/axe-core-gems/releases)
- [Changelog](https://github.com/dequelabs/axe-core-gems/blob/v4.10.3/CHANGELOG.md)
- [Commits](https://github.com/dequelabs/axe-core-gems/compare/v4.10.2...v4.10.3)

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

Signed-off-by: dependabot[bot] <support@github.com>
2025-04-16 07:59:16 +00:00
dependabot[bot]
172dff42c6 Merge pull request #4035 from Growstuff/dependabot/bundler/chartkick-5.1.5 2025-04-16 07:58:01 +00:00
dependabot[bot]
6d5238c1ce Bump chartkick from 5.1.4 to 5.1.5
Bumps [chartkick](https://github.com/ankane/chartkick) from 5.1.4 to 5.1.5.
- [Changelog](https://github.com/ankane/chartkick/blob/master/CHANGELOG.md)
- [Commits](https://github.com/ankane/chartkick/compare/v5.1.4...v5.1.5)

---
updated-dependencies:
- dependency-name: chartkick
  dependency-version: 5.1.5
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-04-16 07:47:42 +00:00
dependabot[bot]
3f78c15fc9 Merge pull request #4032 from Growstuff/dependabot/bundler/dotenv-rails-3.1.8 2025-04-14 10:24:48 +00:00
dependabot[bot]
bc1476b4fe Bump dotenv-rails from 3.1.7 to 3.1.8
Bumps [dotenv-rails](https://github.com/bkeepers/dotenv) from 3.1.7 to 3.1.8.
- [Release notes](https://github.com/bkeepers/dotenv/releases)
- [Changelog](https://github.com/bkeepers/dotenv/blob/main/Changelog.md)
- [Commits](https://github.com/bkeepers/dotenv/compare/v3.1.7...v3.1.8)

---
updated-dependencies:
- dependency-name: dotenv-rails
  dependency-version: 3.1.8
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-04-14 10:09:54 +00:00
dependabot[bot]
98e7226d67 Merge pull request #4031 from Growstuff/dependabot/bundler/faraday-2.13.0 2025-04-14 10:08:41 +00:00
dependabot[bot]
70c28b3468 Bump faraday from 2.12.2 to 2.13.0
Bumps [faraday](https://github.com/lostisland/faraday) from 2.12.2 to 2.13.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.12.2...v2.13.0)

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

Signed-off-by: dependabot[bot] <support@github.com>
2025-04-14 10:00:27 +00:00
Daniel O'Connor
49e3180d17 Merge pull request #4033 from Growstuff/dependabot/bundler/icalendar-2.11.0
Bump icalendar from 2.10.3 to 2.11.0
2025-04-14 19:29:16 +09:30
dependabot[bot]
2b2dc853df Bump icalendar from 2.10.3 to 2.11.0
Bumps [icalendar](https://github.com/icalendar/icalendar) from 2.10.3 to 2.11.0.
- [Changelog](https://github.com/icalendar/icalendar/blob/main/CHANGELOG.md)
- [Commits](https://github.com/icalendar/icalendar/compare/v2.10.3...v2.11.0)

---
updated-dependencies:
- dependency-name: icalendar
  dependency-version: 2.11.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-04-14 09:04:02 +00:00