michael-lazar / astrobotany

🌱 A community garden over the Gemini protocol
gemini://astrobotany.mozz.us
Other
133 stars 12 forks source link

Community Garden plants sorted by health status #100

Closed bjornwarmedal closed 2 years ago

bjornwarmedal commented 3 years ago

Garden Gnome Society feature in the Community Garden! Always up to date :D

This PR precludes the need for my other one. Decide which you like best.

michael-lazar commented 3 years ago

Hey ew0k!

I think I like this PR better, with the section headings for wilting, dead, etc. and all of the plants shown on the same page. When I do visit GGS, I like that I can visually skim through all of the dry, wilted, and dead plants without clicking through a bunch of links.

However, I don't want to change the main garden view because having them sorted by score and watching your plant climb the garden page is pretty much the only "reward" for playing the game.

What if we made this a separate view/template with a link from the current garden page kinda like this...

# Astrobotany - Community Garden

=>/app 🚶 Go back

## Filters

=> /app/visit/health 🌡 Sort plants by health

## Plants

=> ...

There could even be an item in the store that you need to purchase to gain access to that page. Like a "soil testing kit" or something like that. Maybe that's taking it too far lol.

bjornwarmedal commented 3 years ago

I've thought about the idea of different filters, and I like it. I don't think an extra item should be bought to display it, because that'd prompt me to buy it and proxy that view to the Garden Gnome Society ;)

This opens up the possibility for more filtered views, too. Filter by water level, or plant stage, for example. Although I guess those would force a change in how and when flower status is refreshed. As I wrote on the Message Board the other day:

@mozz on the Community Garden page the current stage is listed for each plant, but it "lags behind" since it's only recalculated when a plant is visited.

  • 🦄 ew0k, 2021-06-04

I'll scrap the other PR and re-implement this as a new view and we can take it from there :)

michael-lazar commented 3 years ago

This opens up the possibility for more filtered views, too. Filter by water level, or plant stage, for example. Although I guess those would force a change in how and when flower status is refreshed. As I wrote on the Message Board the other day:

I've got a PR in the works to refresh all of the plants every hour via a cron job. Not perfect, but it should help with keeping the garden view up to date.

bjornwarmedal commented 3 years ago

The Garden Gnome Society visits each plant four times a day, which means they're already updated at least that often (unless I have network issues) :)

bjornwarmedal commented 3 years ago

We can always add more sorted views later, but here's at least a first one :)

michael-lazar commented 2 years ago

Merged and deployed, thanks!!