Commit Graph

11959 Commits

Author SHA1 Message Date
Daniel O'Connor
f87c5db40e Merge pull request #3597 from Growstuff/dependabot/bundler/selenium-webdriver-4.17.0
Bump selenium-webdriver from 4.16.0 to 4.17.0
2024-01-23 23:05:43 +10:30
Daniel O'Connor
581b85a300 Merge pull request #3598 from Growstuff/dependabot/bundler/haml_lint-0.54.0
Bump haml_lint from 0.53.0 to 0.54.0
2024-01-23 23:05:21 +10:30
Daniel O'Connor
32f39b47e2 Merge pull request #3596 from Growstuff/dependabot/bundler/axe-core-rspec-4.8.1
Bump axe-core-rspec from 4.8.0 to 4.8.1
2024-01-23 23:05:08 +10:30
Daniel O'Connor
29c614d31e Merge pull request #3595 from Growstuff/dependabot/bundler/axe-core-capybara-4.8.1
Bump axe-core-capybara from 4.8.0 to 4.8.1
2024-01-23 23:04:50 +10:30
dependabot[bot]
52012ea238 Bump haml_lint from 0.53.0 to 0.54.0
Bumps [haml_lint](https://github.com/sds/haml-lint) from 0.53.0 to 0.54.0.
- [Release notes](https://github.com/sds/haml-lint/releases)
- [Changelog](https://github.com/sds/haml-lint/blob/main/CHANGELOG.md)
- [Commits](https://github.com/sds/haml-lint/compare/v0.53.0...v0.54.0)

---
updated-dependencies:
- dependency-name: haml_lint
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2024-01-23 07:53:28 +00:00
dependabot[bot]
9aed6af772 Bump selenium-webdriver from 4.16.0 to 4.17.0
Bumps [selenium-webdriver](https://github.com/SeleniumHQ/selenium) from 4.16.0 to 4.17.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.16.0...selenium-4.17.0)

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

Signed-off-by: dependabot[bot] <support@github.com>
2024-01-23 07:37:55 +00:00
dependabot[bot]
53abbaddd7 Bump axe-core-rspec from 4.8.0 to 4.8.1
Bumps [axe-core-rspec](https://github.com/dequelabs/axe-core-gems) from 4.8.0 to 4.8.1.
- [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/compare/v4.8.0...v4.8.1)

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

Signed-off-by: dependabot[bot] <support@github.com>
2024-01-23 07:36:40 +00:00
dependabot[bot]
b443afc965 Bump axe-core-capybara from 4.8.0 to 4.8.1
Bumps [axe-core-capybara](https://github.com/dequelabs/axe-core-gems) from 4.8.0 to 4.8.1.
- [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/compare/v4.8.0...v4.8.1)

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

Signed-off-by: dependabot[bot] <support@github.com>
2024-01-23 07:33:10 +00:00
Daniel O'Connor
12ff09ad51 Add Accessibility assertions to rspec, replacing accessbility-lint + fixes (#3573)
* Add dep

* Add tests around accessibility

* Add examples in a few places

* Try to fix screenshots

* Remove redundant role

* Adjust rules, colors, etc so tests pass

* Update app/assets/stylesheets/overrides.scss

* Wrap in label

* Omit rule, which is failing with a false positive

* Update index.haml

* Update _blurb.html.haml
2024-01-22 22:09:27 +10:30
Daniel O'Connor
75aba7158f Merge pull request #3593 from Growstuff/rename
Rename spec/models/garden_type.rb
2024-01-22 22:08:49 +10:30
dependabot[bot]
093fa645fd Merge pull request #3591 from Growstuff/dependabot/bundler/recaptcha-5.16.0 2024-01-22 08:38:58 +00:00
Daniel O'Connor
1d52f8fcad Rename 2024-01-22 08:31:33 +00:00
dependabot[bot]
a134b1e3ab Bump recaptcha from 5.15.0 to 5.16.0
Bumps [recaptcha](https://github.com/ambethia/recaptcha) from 5.15.0 to 5.16.0.
- [Changelog](https://github.com/ambethia/recaptcha/blob/master/CHANGELOG.md)
- [Commits](https://github.com/ambethia/recaptcha/compare/v5.15.0...v5.16.0)

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

Signed-off-by: dependabot[bot] <support@github.com>
2024-01-22 08:22:25 +00:00
dependabot[bot]
c5694ad1ab Merge pull request #3592 from Growstuff/dependabot/bundler/sidekiq-7.2.1 2024-01-22 08:21:35 +00:00
dependabot[bot]
28bdf9adde Bump sidekiq from 7.2.0 to 7.2.1
Bumps [sidekiq](https://github.com/sidekiq/sidekiq) from 7.2.0 to 7.2.1.
- [Changelog](https://github.com/sidekiq/sidekiq/blob/main/Changes.md)
- [Commits](https://github.com/sidekiq/sidekiq/compare/v7.2.0...v7.2.1)

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

Signed-off-by: dependabot[bot] <support@github.com>
2024-01-22 07:51:40 +00:00
Daniel O'Connor
ae3747ce83 Merge pull request #3589 from Growstuff/jquery-ui-rails
Update jquery-ui-rails
2024-01-22 00:33:38 +10:30
Daniel O'Connor
50b6708c7f Update jquery-ui-rails 2024-01-21 13:42:48 +00:00
Daniel O'Connor
196b8078e6 Posts - Ensure responsive (#3584)
* Fix model validations and responsiveness

* Fix model validations and responsiveness

* Update app/models/post.rb
2024-01-21 16:05:14 +10:30
Daniel O'Connor
86cc678fc7 Add feature 2024-01-21 05:20:57 +00:00
Daniel O'Connor
91f8c2e0b3 Harvests - Compare dates to dates when determing how long ago something was (#3585)
* Compare dates to dates

* Adjust timeline display to check if Date or Time
2024-01-21 15:20:32 +10:30
Daniel O'Connor
8546794311 Recaptcha (#3586)
* add recaptcha on register view

Update new.html.haml to add it

* Update Gemfile to add recaptcha

* Update env-example to show recaptcha

* More view corrections for recaptcha

* Update registrations_controller.rb to add recaptcha

* Update env-example with test config

* Recaptcha help text

* Fix trailing spaces

* Fix trailing space

* Add Recaptcha to gemfile.lock

* Fixing Gemfile.lock space

* Typo on comments in view

* Update app/views/devise/registrations/new.html.haml

* Fix signup

---------

Co-authored-by: Cesy <cesy.avon@gmail.com>
2024-01-21 15:20:03 +10:30
Daniel O'Connor
b77df88df9 Issues/1475: Ensure we have pagination (#3193)
* Paginate, 100 at a time

* Limited i18n

* Paginate roles

* Pagination

* Pagination

* i18n and pagination

* Paginate alternate names

* Silence code climate

* Rewrite coverage as a feature

* Remove coverage in favour of crops/scientific_name_spec

* Add missing admin link

* Rewrite coverage as feature

* Rewrite coverage

---------

Co-authored-by: Brenda Wallace <brenda@wallace.net.nz>
2024-01-21 14:19:36 +10:30
Daniel O'Connor
1f0cfa9b6c Add GBIF to our scientific names, so that our crops can associate creative commons photos (#3559)
* Add GBIF cient

* Add lookup

* Add autocomplete for GBIF lookup

* Add extra detail to scientific names

* Autocomplete

* Add routes

* Rmeove mapping

* Add autocomplete

* Update GBIF data on save

* db/schema

* Style

* Extract service

* Add concern

* Add concern

* Save photos

* Initial coverage

* Coverage

* Add coverage

* Shut up, codeclimate

* Shut up, codeclimate

* Unused

* Shut up, codeclimate

* Apply suggestions from code review

* Remove localhost

* Fix rubocop

* Fix rubocop

* Add UI links

* Add rake

* Indent

* Update Gemfile.lock

* Update lib/tasks/gbif.rake

* Update app/views/crops/_scientific_names.html.haml

* Rubocop

* Expand edit photo form

* Fix error

* Add model validations

* Skip photos without backlinks

* Fix tests

* Add photo words

* Allow blank

* Rubocop and handle invalid legacy data

* Apply suggestions from code review

* Update lib/tasks/gbif.rake
2024-01-21 13:22:25 +10:30
Daniel O'Connor
1840e36d77 Merge pull request #3583 from Growstuff/active-plantings
Crops > Plantings - Show count of active only as the following page is active
2024-01-21 13:22:08 +10:30
Daniel O'Connor
c114f080a9 Active only as the following page is active 2024-01-21 01:58:53 +00:00
Daniel O'Connor
4aae30309b Merge pull request #3582 from Growstuff/add-label
Accessibility: Wrap checkbox in label
2024-01-21 12:10:11 +10:30
Daniel O'Connor
09a7ce6483 Wrap in label 2024-01-21 01:21:09 +00:00
Daniel O'Connor
adb0ed041b Merge pull request #3580 from Growstuff/headings
Drop use of h5
2024-01-20 21:22:05 +10:30
Daniel O'Connor
d663d0ffa3 Drop use of h5 2024-01-20 04:28:10 +00:00
Daniel O'Connor
756d35f29b Merge pull request #3579 from Growstuff/CloCkWeRX-patch-1
Update gardens_spec.rb
2024-01-20 14:40:41 +10:30
Daniel O'Connor
b5ad9b51db Update gardens_spec.rb 2024-01-20 13:01:08 +10:30
Daniel O'Connor
8ee4b5f1aa Update _menu.haml
Fix accessibility issue
2024-01-19 19:22:37 +10:30
Daniel O'Connor
edc52774f4 Merge pull request #3576 from Growstuff/dependabot/bundler/rubocop-1.60.1
Bump rubocop from 1.60.0 to 1.60.1
2024-01-18 22:59:36 +10:30
Daniel O'Connor
f4f32301fc Merge pull request #3577 from Growstuff/dependabot/github_actions/actions/cache-4
Bump actions/cache from 3 to 4
2024-01-18 22:59:20 +10:30
dependabot[bot]
af354f2f67 Bump actions/cache from 3 to 4
Bumps [actions/cache](https://github.com/actions/cache) from 3 to 4.
- [Release notes](https://github.com/actions/cache/releases)
- [Changelog](https://github.com/actions/cache/blob/main/RELEASES.md)
- [Commits](https://github.com/actions/cache/compare/v3...v4)

---
updated-dependencies:
- dependency-name: actions/cache
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
2024-01-18 07:53:35 +00:00
dependabot[bot]
d64e1ea06f Bump rubocop from 1.60.0 to 1.60.1
Bumps [rubocop](https://github.com/rubocop/rubocop) from 1.60.0 to 1.60.1.
- [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.60.0...v1.60.1)

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

Signed-off-by: dependabot[bot] <support@github.com>
2024-01-18 07:41:29 +00:00
Daniel O'Connor
58a5b6ce5c Merge pull request #3568 from Growstuff/CloCkWeRX-patch-1
Darken green buttons, headings etc for Accessbility contrast ratios
2024-01-18 13:05:06 +10:30
Daniel O'Connor
1174846b72 Merge pull request #3575 from Growstuff/CloCkWeRX-patch-2
Accessibility Update _avatar.html.haml
2024-01-18 13:02:17 +10:30
Daniel O'Connor
4a45acf79b Update _avatar.html.haml
Fix naming
2024-01-18 08:32:49 +10:30
Daniel O'Connor
59d800bd93 Merge pull request #3574 from Growstuff/landmark
Accessibility: Landmarks
2024-01-18 08:29:48 +10:30
Daniel O'Connor
c771713b0b Merge branch 'dev' into CloCkWeRX-patch-1 2024-01-18 07:55:05 +10:30
Daniel O'Connor
5cc6135b2d Mark breadcrumbs as a nav 2024-01-17 21:13:41 +00:00
Daniel O'Connor
6e23aff347 Add main landmark to document 2024-01-17 21:11:43 +00:00
Daniel O'Connor
e4e1d3e674 Merge pull request #3569 from Growstuff/upgrade-webdrivers
Update webdrivers in devcontainer
2024-01-18 00:36:13 +10:30
Daniel O'Connor
ea3349fc85 Merge branch 'dev' of https://github.com/Growstuff/growstuff into upgrade-webdrivers 2024-01-17 13:39:21 +00:00
Daniel O'Connor
2f027f4f0d Make capybara work in the devcontainer 2024-01-17 13:38:19 +00:00
Daniel O'Connor
a1637c4259 Merge pull request #3570 from Growstuff/upgrade-rails
Bump installed rails in dev container
2024-01-17 23:39:14 +10:30
Daniel O'Connor
cc3961ed26 Merge pull request #3572 from Growstuff/fix-capybara-initialisation
Avoid trying to connect to selenium for non selenium tests
2024-01-17 23:38:55 +10:30
Daniel O'Connor
006e7553e5 Merge branch 'fix-capybara-initialisation' into upgrade-webdrivers 2024-01-17 12:50:17 +00:00
Daniel O'Connor
12fdb95c6a Avoid trying to connect to selenium for non selenium tests 2024-01-17 12:48:24 +00:00