upsiflu / matsite

2 stars 0 forks source link

Ui framework needs to be reintegrated #23

Open upsiflu opened 1 year ago

upsiflu commented 1 year ago
upsiflu commented 1 year ago

Revisiting the view code to check for requirements

  1. Decide how to represent the 'perspectives' (paths). Probably we simply use a custom Ui where we grab the path and view the accordion accordiongly. This would be a potential primitive in Restrictive. Simply :(Url->Ui)->Ui and done. Note: implemented as experimental Ui.page

  2. Implement other viewModes such as history or overview with toggle-able windows. Easzy.

  3. Upgrade the custom elements. Specifically, we want auto-nav:

    • At the moment, the centering does not involve a path-change, which is a bit bad. In fact, it only changes the current (highlighted) element within the parent.
    • This behavior can be formalized by serialising the current cursor into an optional hash, and each hash-change would navigate through the accordion.
    • A nice side-effect is that we can then easily define the ArrowKey-TabOrder by making Arrow-keys affect the hash directly.
  4. For the hash to store the current element, we need to have the aforementioned :(Url->Ui)->Ui Ui.byUrl. -> new issue!

upsiflu commented 1 year ago

Concerning centering, we had good experience in https://github.com/upsiflu/multimedia