Commit Graph

1143 Commits

Author SHA1 Message Date
Daniel O'Connor
57f1fd34c9 Update garden.rb 2024-07-02 23:08:29 +09:30
Daniel O'Connor
067fb1671b Update predict_planting.rb 2024-07-02 23:07:48 +09:30
Daniel O'Connor
fa6df64221 Update garden.rb 2024-07-02 22:42:35 +09:30
Daniel O'Connor
3d524bb105 Update garden.rb 2024-07-02 17:37:17 +09:30
Daniel O'Connor
26189855cc Reduce visual impact of hover, and make snappier (#3712)
* Reduce visual impact of hover, and make snappier

* Better seed

* Improve seeding

* Fix codespaces login
2024-04-07 22:17:16 +09:30
Daniel O'Connor
725c146e2d Improve profile page on mobile (#3711)
* Avoid showing when there are 0 things

* Styling

* Styling

* Collapse stats by default on small screens

* Add ARIA skip links

* Refactoring out of partial, and use CSS to set order on mobile

* Remove partial

* Update expectations

* Fix visual appearance on Ban button on your own profile for admins

* Typo

* Stale expectation
2024-04-07 21:43:52 +09:30
Daniel O'Connor
5be0153c74 Activities (#3646)
* Implement activities

* Add activities to timeline

* Add factory

* Add coverage

* Fix misc issues

* Activities display

* Add activities to garden and plantings

* Add activities to garden and plantings

* Add planting

* Add to planting, harvest show

* More CRUD

* More CRUD

* index

* index

* Extract card view

* Permissions

* Add edit

* Remove workaround fro vs code

* Fix title

* CSV

* CSV

* Add RSS, ical

* Extend ical slightly

* Cleanup

* Rubocop

* Remove doubled form

* Change icon

* Fix short description

* Add menus

* Put homepage widget in

* Add activity icon - MIT licenced - https://www.svgrepo.com/svg/336823/plan

* Naming

* Missing files

* Revert VS Code lag induced change

* Update app/views/home/_harvests.html.haml

* Update activities_controller.rb

* Update activities_controller.rb

* Update app/controllers/activities_controller.rb

* Update index.html.haml

* Apply suggestions from code review

* Apply suggestions from code review

* Typo

* Translation

* Apply suggestions from code review

* Update app/views/plantings/index.ics.erb

* Update app/models/activity.rb

* Update plantings_spec.rb

* Update plantings_spec.rb

* We are now rendering an extra event, so check the next one for the old behaviour
2024-03-10 11:36:24 +10:30
Daniel O'Connor
cb670191d6 Merge pull request #3645 from Growstuff/planning
Planning future plantings - Minor UX changes
2024-03-01 06:27:32 +10:30
Daniel O'Connor
8593d2dfd9 Add rake task for clean up of old content (#3644) 2024-02-18 18:43:14 +10:30
Daniel O'Connor
c0bcafdf51 Deal with future plantings 2024-02-18 03:33:34 +00:00
Daniel O'Connor
50ba0f08b1 Fix Plantings > CSV output (#3616)
* Fix crash

* Add test coverage and index more

* Fix test
2024-02-04 15:09:30 +10:30
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
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
2a14ec64c2 Add presence validation 2023-08-15 17:27:18 +01:00
Daniel O'Connor
5722bfec59 Validate uniquness of name in the pending queue 2023-03-13 07:58:11 +00:00
Daniel O'Connor
5dc3a7e2f7 Rubocop 2022-11-08 00:25:29 +10:30
Daniel O'Connor
a8b8a58f33 Various rspec autocorrections 2022-11-08 00:09:50 +10:30
Daniel O'Connor
04f9cf1a7e Rails couldn't find a valid model for SentNotification association. Please provide the :class_name option on the association declaration. If :class_name is already provided, make sure it's an ActiveRecord::Base subclass. 2022-11-07 22:32:37 +10:30
Daniel O'Connor
05a1a23285 Revert "Brakeman"
This reverts commit edbd2c45f4.
2022-11-06 17:36:57 +10:30
Daniel O'Connor
2c5f2a2e8c Revert "Brakeman"
This reverts commit bf500c5a3b.
2022-11-06 17:36:52 +10:30
Daniel O'Connor
cb65c42d08 Revert "Brakeman"
This reverts commit df95ba0222.
2022-11-06 17:36:49 +10:30
Daniel O'Connor
fe3508327d Revert "Brakeman"
This reverts commit da76386bd1.
2022-11-06 17:36:45 +10:30
Daniel O'Connor
ec955f4f06 Revert "Brakeman complaint"
This reverts commit 35b08f88f5.
2022-11-06 17:36:42 +10:30
Daniel O'Connor
bd62d536a9 Revert "Brakeman complaint"
This reverts commit 314c7c1d3b.
2022-11-06 17:36:37 +10:30
Daniel O'Connor
a70b28fbe7 Revert "Brakeman complaint"
This reverts commit 93274c33f2.
2022-11-06 17:36:30 +10:30
Daniel O'Connor
5eb0ac9338 Revert "Fix Brakeman complaint"
This reverts commit 35068befe3.
2022-11-06 17:36:22 +10:30
Daniel O'Connor
1931be88e9 Revert "Fix Brakeman complaint"
This reverts commit a62a52540a.
2022-11-06 17:36:18 +10:30
Daniel O'Connor
892cd1c463 Revert "Fix Brakeman complaint"
This reverts commit 35f0488a46.
2022-11-06 17:36:11 +10:30
Daniel O'Connor
678eaa4d52 Revert "Fix Brakeman complaint"
This reverts commit c611a47d1f.
2022-11-06 17:36:06 +10:30
Daniel O'Connor
cd8ba1540e Revert "Fix brakeman complaint"
This reverts commit 817f957aac.
2022-11-06 17:35:18 +10:30
Daniel O'Connor
edbd2c45f4 Brakeman 2022-11-06 17:22:09 +10:30
Daniel O'Connor
bf500c5a3b Brakeman 2022-11-06 17:20:13 +10:30
Daniel O'Connor
df95ba0222 Brakeman 2022-11-06 17:09:22 +10:30
Daniel O'Connor
da76386bd1 Brakeman 2022-11-06 17:08:15 +10:30
Daniel O'Connor
35b08f88f5 Brakeman complaint 2022-11-06 17:07:06 +10:30
Daniel O'Connor
314c7c1d3b Brakeman complaint 2022-11-06 17:03:40 +10:30
Daniel O'Connor
93274c33f2 Brakeman complaint 2022-11-06 17:02:33 +10:30
Daniel O'Connor
35068befe3 Fix Brakeman complaint 2022-11-06 16:58:14 +10:30
Daniel O'Connor
a62a52540a Fix Brakeman complaint 2022-11-06 16:58:14 +10:30
Daniel O'Connor
35f0488a46 Fix Brakeman complaint 2022-11-06 16:58:14 +10:30
Daniel O'Connor
c611a47d1f Fix Brakeman complaint 2022-11-06 16:58:14 +10:30
Daniel O'Connor
817f957aac Fix brakeman complaint 2022-11-06 16:46:53 +10:30
Daniel O'Connor
b24b9f82e6 Rubocop - auto corrections 2022-11-06 16:34:36 +10:30
Daniel O'Connor
ab460f4f39 DEPRECATION WARNING: Date#to_s(:ymd) is deprecated. Please use Date#to_fs(:ymd) instead. 2022-11-06 16:31:13 +10:30
codefactor-io
84d02b169a [CodeFactor] Apply fixes 2021-01-05 19:46:07 +13:00
Brenda Wallace
60c74ddff3 Reconnecting stale flickr auth tokens 2021-01-05 19:46:07 +13:00
Brenda Wallace
cebec27e80 Prefer ary[n..] over ary[n..-1]. 2020-08-26 12:36:58 +12:00
Brenda
13c675d6f7 rewrote order by to not be raw sql 2020-08-26 12:36:58 +12:00
Brenda
5573fbfbb6 foreign key declarations not needed anymore 2020-08-26 12:36:58 +12:00
Brenda Wallace
9dbf8b7c8f New robocops 2020-08-26 12:36:58 +12:00