Commit Graph

606 Commits

Author SHA1 Message Date
domthor
88ad6d8de9 fix space in "function ()" 2024-04-26 18:08:03 -04:00
domthor
c5df760ce4 change double quotes to single quotes 2024-04-26 18:04:13 -04:00
domthor
d9500eff16 fix let in js 2024-04-26 17:59:34 -04:00
domthor
31fafe6a74 fix unexpected function() token 2024-04-26 17:57:37 -04:00
domthor
f87b83bdd1 fix const error 2024-04-26 17:56:06 -04:00
domthor
88e458077b fix unexpected token linting error 2024-04-26 17:54:12 -04:00
domthor
a713d2936c fix linting errors 2024-04-26 17:48:09 -04:00
domthor
9fd7e145b5 Added javascript to fix edit profile tab issue. Fixes #497 2024-04-26 21:35:34 +00:00
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
c7de9a4d91 Improve readibility 2024-03-24 09:50:56 +00:00
Daniel O'Connor
7c6508e387 Overflow of location badges (#3685)
* Swap to CSS for truncation

* Adjust styling on mobile

* Contain more

* Contain more

* All badges clip

* Adjust badges to truncate again

* Adjust badges to truncate again

* Apply suggestions from code review
2024-03-24 20:16:56 +10:30
Awesome Code
4d25de4663 Auto corrected by following Lint Javascript unicorn/prefer-prototype-methods 2024-03-10 01:19:43 +00:00
Daniel O'Connor
7d63234841 Upgrade to bootstrap 5 (#3605)
* Upgrade boostrap

* Remove deprecated bootstrap toggles

* Migrate other details

* Avoid accidentally including bootstrap twice

* Avoid accidentally including bootstrap twice

* Avoid accidentally including bootstrap twice

* Fix spec

* Fix spec, where the size of the screen has gone to a partial breakpoint/you can't click on your own name in tablet view

* Fix spec

* Cleanup

* Cleanup
2024-03-10 11:49:22 +10: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
c0dbe9616a Flex into column mode on medium screens 2024-02-04 05:37:12 +00:00
Brenda Wallace
30626859c3 Auto corrected by following Format Css Code (#3594)
Co-authored-by: Awesome Code <team@xinminlabs.com>
Co-authored-by: Daniel O'Connor <daniel.oconnor@gmail.com>
2024-01-26 23:01:55 +10:30
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
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
d663d0ffa3 Drop use of h5 2024-01-20 04:28:10 +00:00
Daniel O'Connor
9171892d0b Darken green buttons, headings etc for Accessbility contrast ratios
#2067
2024-01-17 22:17:40 +10:30
Daniel O'Connor
8a2f47ac75 Remove 2023-08-16 10:01:47 +01:00
Daniel O'Connor
e1fb08707a Issue/2419: Limit map to the most recent plantings only (#3191)
* For now, drop mapbox for OSM tiles

* For now, drop mapbox for OSM tiles

* Use OSM tiles

* Remove mapbox secrets for now. If we bring back mapbox; we should re-enstate

* Only show up to 200 plantings

* Update app/assets/javascripts/members.js.erb

* [CodeFactor] Apply fixes

* Update production.rb

---------

Co-authored-by: codefactor-io <support@codefactor.io>
2023-03-13 15:13:28 +10:30
Daniel O'Connor
449c6c4487 Issue/3189: Fix map displays by dropping mapbox (#3190)
* For now, drop mapbox for OSM tiles

* For now, drop mapbox for OSM tiles

* Use OSM tiles

* Remove mapbox secrets for now. If we bring back mapbox; we should re-enstate

* Update members.js.erb

* Change placeholder
2023-03-13 13:04:16 +10:30
Daniel O'Connor
e23a274ce7 Revert "Accessibility: Nav bar’s icon links" 2021-10-05 21:32:33 +10:30
le-jun
96fe52e916 Updated pear.png
Updated the old file with an export from the svg
2021-08-06 14:59:01 +02:00
le-jun
b573515124 Delete pear.png 2021-08-06 14:58:14 +02:00
le-jun
ddfae74013 Added new image files
Converted the old "pear logo" into an svg file and replaced the two Facebook’s pictures.
2021-08-06 14:12:00 +02:00
le-jun
511795b979 Delete facebook-thumbnail.png
Deleted old png
2021-08-06 14:09:11 +02:00
le-jun
2fc2466669 Delete facebook-login-splash.png
Deleted old png
2021-08-06 14:08:58 +02:00
Awesome Code
b6f8eba243 Auto corrected by following Format Css Code 2020-11-03 07:01:06 +13:00
Brenda Wallace
fae896e38e Merge remote-tracking branch 'upstream/mainline' into dev
Conflicts:
	Gemfile.lock
	app/assets/stylesheets/overrides.scss
2020-10-29 09:37:42 +13:00
Awesome Code
8bd8904baa Auto corrected by following Format Css Code 2020-10-20 12:18:51 +13:00
Brenda Wallace
7d1e1dd29f Cards raised on hover 2020-10-20 12:03:06 +13:00
Brenda Wallace
7c526d4b11 Cards raised on hover 2020-10-16 15:46:34 +13:00
Awesome Code
10f72d2b21 Auto corrected by following Format Css Code 2020-08-26 12:39:47 +12:00
codefactor-io
311004af50 [CodeFactor] Apply fixes 2020-06-03 03:31:15 +00:00
Brenda Wallace
38e6e2cfab Added manifest.js, because rails-sprockets need it now 2020-06-03 15:26:38 +12:00
ImgBotApp
d33db24f3c [ImgBot] Optimize images
*Total -- 7.73kb -> 7.71kb (0.24%)

/app/assets/images/icons/plant_parts/other.svg -- 0.96kb -> 0.96kb (0.41%)
/app/assets/images/icons/plant_parts/seed.svg -- 1.86kb -> 1.86kb (0.26%)
/app/assets/images/icons/plant_parts/stem.svg -- 2.29kb -> 2.28kb (0.21%)
/app/assets/images/icons/plant_parts/root.svg -- 2.62kb -> 2.62kb (0.19%)

Signed-off-by: ImgBotApp <ImgBotHelp@gmail.com>
2020-03-01 22:50:49 +00:00
Brenda Wallace
85d473d65c Adding descriptions 2020-03-02 11:49:50 +13:00
Brenda Wallace
33091fbadc Merge branch 'dev' into feature/crop-action-modals 2020-02-26 11:38:38 +13:00
Brenda
9abb84ccba Harvesting modal form 2020-02-24 11:51:37 +13:00
Brenda Wallace
71ccd52c59 Fix harvest thumbnails 2020-02-23 12:03:14 +13:00
Brenda
36bad1cda0 Fix mobile display of member profiles 2020-02-23 11:42:07 +13:00
Brenda
3ab67786e0 Wrapping the whole layout, to center the page 2020-02-20 22:39:12 +13:00
Brenda
88615a55f4 CSS for seeds cards 2020-02-15 10:05:14 +13:00
Brenda Wallace
abecbab6c5 Tidy up mobile display on homepage, including member cards changes (#2417)
* Tidy up mobile display on homepage, including member cards changes
2020-02-09 22:38:12 +13:00
Brenda Wallace
54778d9884 Likes popuplating from elastic, no more extra look ups 2020-01-01 08:38:27 +13:00
Brenda Wallace
7d4d257097 fixed logo display on small screens 2019-12-06 19:55:42 +13:00
Brenda Wallace
58d2510613 Fix signin/signout on mobile 2019-12-01 12:46:44 +13:00
Brenda Wallace
723fd8aa79 Remove Calistoga font from headers 2019-12-01 08:08:40 +13:00