walnuthq / cairovm.codes

Source code for cairovm.codes — a web app to compile Cairo programs into Sierra and CASM with step-through execution capabilities.
https://cairovm.codes
MIT License
29 stars 24 forks source link

chore: Improve permalinks #167

Closed mazurroman closed 1 month ago

mazurroman commented 2 months ago

TODO:

More context: Telegram

When I send cairovm.codes permalink as a link on Telegram, it won't work. It can be reproduced this way:

  1. Go to cairovm.codes and copy permalink
  2. Write some message on Telegram
  3. Highlight a word in the draft message, i.e. "link"
  4. Hit cmd+u to convert that word into a link
  5. Paste the permalink generated from cairovm.codes
  6. Hit "OK" and send the message
  7. Click the link in Telegram. It will open cairovm.codes with an error

More context: "Debug" mode in Telegram

When I switch the debug mode to "Sierra debug" in the top right dropdown, I would like this setting to be preserved in permalink. So that when I send the link to someone and they open it, it will open cairovm.codes with "Sierra debug" preselected.

melnikga commented 2 months ago

Can I take this?