Open jbenet opened 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.
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.
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.
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?
not sure on that sort function
What do you think of listSortKey
?
On seeing this, many people have requested a List View. I think this is a good idea. I've mocked this up.
Notes:
depends on #70