michael-lazar / astrobotany

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

Remove all "go back" links #37

Open michael-lazar opened 3 years ago

michael-lazar commented 3 years ago

For the culture

cloudrac3r commented 3 years ago

Not sure what culture this solves. I miss the links. Are there any clients at all with "go up a level" buttons?

aaadonai commented 3 years ago

Hi Michael, I am on the same page as cloudrac3r. I am actually curious about what you mean by "for the culture". Do you mean that on Gemini the back button should be used more often for navigation? Is that the culture? What I am experience is that if I go and visit my plant, water it, shake it and pick a pedal now I need to click three times on the back button on my browser (assuming I am using a graphic browser) to be able to go back to the main menu and go into Store for example. I am sorry if I am missing something. I am pretty new to the Gemini protocol and I am actually using your code to try to understand what is possible and how to build software for the protocol. Thanks for all your work on this project.

michael-lazar commented 3 years ago

Are there any clients at all with "go up a level" buttons?

Elaho actually does now, but I understand your point and I have also felt the pain on lagrange & kristall. I'll revert the change until I can come up with a better solution!

I am actually curious about what you mean by "for the culture"

This was just a stupid tongue in cheek comment that I made one night when I was tipsy. Don't take it too seriously, I get lonely on this issue tracker all by myself 😄

The general sentiment that I have is that the necessity for "go back" buttons is a design smell in Astrobotany. Like you have pointed out, the way that I'm using redirects breaks backwards navigation by forcing repeated loads of the same page, e.g.

  1. /app/plant
  2. /app/plant/water (redirects to /app/plant)
  3. /app/plant

In the initial versions of astrobotany I didn't use redirects for this, and plant actions returned a simple text response page.

Request

/app/plant/water

Response

20 text/gemini
You sprinkle some water over your plant.

The idea was that you would see the response, and then click the "back" history button in your gemini browser to return to the previous page The downside was that this required an extra click and it didn't look as seamless. So I was playing around with redirects to try to make things as "app like" as possible and mimic the UI experience of the original botany terminal application.

Upon reflection, my original design was probably the more clean and "gemini" way to do it. There were extra clicks needed without the automatic redirects, but at least everything was deliberate and you couldn't accidentally water your plant twice.

cloudrac3r commented 3 years ago

I totally think that clients should have a "go up" button next to back and forward, but most of them don't, so, yeah, we're stuck with this unless we want to make a whole lot of pull requests.

aaadonai commented 3 years ago

Thank you for the breakdown michael-lazar. I was unaware of the "go up" button. It is interesting and it is something to considering when developing or even writing a static capsule. After you mentioned Elaho, I went and check it out and found that some capsules don't have the index.gmi on the folder and Elaho is point to the /folder/ when you press the "go up" button and you end up with a not found folder. Anyway I look forward to get the Go Back button back. :-)

Juliaria08 commented 10 months ago

I think I got another possibility, set the go back link to be able to be configured in the settings, and have the following possibilities:

As with some actions pressing back may retrigger them, there should be a way to have it such that the action triggering doesn't recause the action, maybe with some nonce or something, I don't know, but this should probably be a optional thing, (ie, for being able to easily fetch data)