growstuff
growstuff copied to clipboard
Activities
Fix https://github.com/Growstuff/growstuff/issues/1165 Fix https://github.com/Growstuff/growstuff/issues/3451 (generally)
Add a very basic "Activities" model, which can work on a Garden and/or Planting or just be a general todo.
Probably missing a few places in the UI where there should be links or counts, but aren't
- [x] No RSS feed yet
- [x] No iCal feed yet
- [ ] No tests yet
So many typos from VSCode lagging.
rspec ./spec/views/gardens/show.html.haml_spec.rb:35 # gardens/show shows plantings on the garden page
rspec ./spec/views/gardens/show.html.haml_spec.rb:31 # gardens/show renders markdown in the description
rspec ./spec/views/gardens/show.html.haml_spec.rb:19 # gardens/show shows the location
rspec ./spec/views/gardens/show.html.haml_spec.rb:23 # gardens/show shows the area
rspec ./spec/views/gardens/show.html.haml_spec.rb:27 # gardens/show shows the description
rspec ./spec/requests/plantings_spec.rb:30 # Plantings with a member GET /members/x/plantings.ics works!
rspec ./spec/views/plantings/show.html.haml_spec.rb:53 # plantings/show shows photos
rspec ./spec/views/plantings/show.html.haml_spec.rb:84 # plantings/show no location set doesn't contain a () if no location is set
rspec ./spec/views/plantings/show.html.haml_spec.rb:80 # plantings/show no location set renders markdown in the description
rspec ./spec/views/plantings/show.html.haml_spec.rb:72 # plantings/show no location set renders the quantity planted
rspec ./spec/views/plantings/show.html.haml_spec.rb:76 # plantings/show no location set renders the description
rspec ./spec/views/plantings/show.html.haml_spec.rb:95 # plantings/show location set shows the member's location in parentheses
rspec ./spec/views/plantings/show.html.haml_spec.rb:66 # plantings/show shows a link to add photos
rspec ./spec/views/plantings/show.html.haml_spec.rb:29 # plantings/show sunniness shows the sunniness
rspec ./spec/views/plantings/show.html.haml_spec.rb:28 # plantings/show sunniness shows the sunniness
rspec ./spec/views/plantings/show.html.haml_spec.rb:39 # plantings/show planted from shows planted_from
rspec ./spec/views/plantings/show.html.haml_spec.rb:40 # plantings/show planted from shows planted_from
rspec ./spec/views/plantings/show.html.haml_spec.rb:49 # plantings/show planted from shows planted_from if blank
rspec ./spec/features/gardens/adding_gardens_spec.rb:7 # Gardens signed in is accessible
7) plantings/show shows photos
Failure/Error: - if @current_activities.size.positive?
However, that should be an activerecord collection rather than nil all of the time.
(have a bit of a play on staging)