Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Revamp "connections panel" with something entirely different #195

Merged
merged 14 commits into from
May 19, 2020
Merged

Conversation

srid
Copy link
Owner

@srid srid commented May 18, 2020

This is a major UI change.

  • Inverse tree view, positioned above zettels, as improvement over 'Up' links
  • Drop connections panel
  • Retain backlinks, but dimmed
  • Lift container width, but only for the inverse tree view.
  • Is the tree on top bothersome in regards to space (esp. for simple zettelkastens)?
    • [ ] Consider folding it with a linear breadcrumb as accordion?
    • [ ] Or use dual UI (tree vs linear breadcrumbs), picking one from neuron.dhall
    • Scroll past the tree on page load
  • Use the folgezettel unicode branch icon (rendered next to zettel link) only in folgezettel links
    • This addresses the removal of 'Down' links
  • Figure out if the z-index tree can be improved
  • Refactor
  • Docs and terminology

srid added 3 commits May 17, 2020 21:05
* Show footer in all pages
* Flip Up/Down link groups horizontally
* Rename connection pane link group titles
@srid srid added the Web Interface UI related label May 18, 2020
@srid srid self-assigned this May 18, 2020
@srid srid mentioned this pull request May 18, 2020
5 tasks
@srid
Copy link
Owner Author

srid commented May 18, 2020

Here's an example from my own Zettelkasten. Turns out that a "bird's eye" view of a branching backlink tree like this is actually more useful, in regards to quickly gathering the context of a zettel, than the current connections pane.

The challenge however is that for simple sites (like reddit.zettel.page or haskell.zettel.page) this may be an UI overkill. Their branching backlink tree would mostly be a linear path tree, which is basically breadcrumbs. I'm wondering how to consolidate these two requirements.

image

Uses JS to scroll to the zettel title.
@srid
Copy link
Owner Author

srid commented May 18, 2020

I implemented an automatic scroll to option, that now scrolls past the uplink tree on page load. It seems like this would be sufficient to address the "overkill" case.

@Nadrieril
Copy link
Contributor

Nadrieril commented May 18, 2020

I'm worried of the opposite: in a large zettelkasten, this would take a lot of space on top of what we're actually interested about which is the text. I'd rather it wasn't on top.
EDIT: ah, auto-scrolling kind of makes this less painful, but I'm still not a fan

@Nadrieril
Copy link
Contributor

Why not display that tree on the left instead? On mobile it would be in a left panel that opens with a swipe from the edge. The tree would be rotated 90 degrees so that the root nodes are on the left instead of the top.

@srid
Copy link
Owner Author

srid commented May 18, 2020

Why not display that tree on the left instead? On mobile it would be in a left panel that opens with a swipe from the edge. The tree would be rotated 90 degrees so that the root nodes are on the left instead of the top.

Got any simple CSS/HTML prototype of it?

@Nadrieril
Copy link
Contributor

Got any simple CSS/HTML prototype of it?

This is not a thing I know how to do, sadly

@srid
Copy link
Owner Author

srid commented May 18, 2020

The tree would be rotated 90 degrees so that the root nodes are on the left instead of the top.

I gave this a try, but with this approach the text would be rotated as well, which would make it hard to read with a normal head position.

@Nadrieril
Copy link
Contributor

I imagined the text would stay horizontal; I meant to say that the layout of the tree is rotated. That said, I can imagine that would take a lot of space

@srid
Copy link
Owner Author

srid commented May 19, 2020

The following sites (among others) have been updated to use the new design:

@jaygray0919
Copy link

jaygray0919 commented May 19, 2020

The Google AMP project has a sidebar library, used on many mobile sites.
see: https://amp.dev/documentation/components/amp-sidebar/
It is possible to build a fairly detailed tree to run in sidebar, with open/close selectors.
The code is open source, although it has dependencies that may make it difficult to reuse stand alone.
But we might find other libs with zero dependencies (no jQuery) that could do the work.
IOHO a show/hide sidebar is a better navigation method than 'hierachical breadcrumbs'

@srid srid merged commit 7b5d651 into master May 19, 2020
@srid srid deleted the conn-ui branch May 19, 2020 16:41
@srid srid mentioned this pull request May 24, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Web Interface UI related
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants