jbenet / depviz

dependency visualizer for the web
https://jbenet.github.io/depviz
MIT License
49 stars 10 forks source link

ListView - compact representation #62

Open jbenet opened 7 years ago

jbenet commented 7 years ago

On seeing this, many people have requested a List View. I think this is a good idea. I've mocked this up.

Notes:


depviz mocks 013 depviz mocks 014 depviz mocks 015 depviz mocks 016


depends on #70

wking commented 7 years ago

For an issue list of any size, I expect having your related nodes all on screen is unlikely. We could keep your hover stuff, but add click-to-(un)select, which would hide all unrelated nodes. More on click-to-select in #30 and #45.

wking commented 7 years ago

Is the sort order something like:

function sortNumber() {
  return youAreOpen * bigNumber +
    sumOverDependants(dep.sortNumber()) / 2 +
    createdSecondsSinceEpoc / hugeNumber;
}

Where hugeNumber is big enough for creation time to just breaks ties, and bigNumber is big enough to avoid sorting a closed issue after an open issue.

wking commented 7 years ago

And is this orthogonal to expanded-ness? I.e. will links look like ?expanded=true&list=true or ?view=list? I like the former (with a wide version of the expanded card) because I really like seeing the title, and on non-phones we'll have a lot of spare width anyway.

An alternative would be to make the width responsive & add more data as we get space.

wking commented 7 years ago

And just to clarify, the dark red background and bold ID in your mocks are “this is the selected node”?

And the background grows to the right to represent the fraction of completed tasks within the issue (#18, like we have for both expanded, #8, and collapsed, #9, nodes now, although there the fill color is always green)? What happens when you select a task with tasks but no completed tasks? Is selection only shown through the bold ID? Or do we want to draw a border around only the selected card, or some such?

jbenet commented 7 years ago
wking commented 7 years ago

not sure on that sort function

What do you think of listSortKey?