This reintroduces the thread collapsing improvements as described in #2337.
It appears that commit cdddb16 broke thread collapsing by hiding the bodies of top level annotations. This has been fixed by a small adjustment to annotations.scss.
Revert "Revert "Merge pull request #2337 from hypothesis/thread-colla…
This reverts commit 561544e.
Code quality remained the same when pulling 5653095 on hypothesis:thread-collapsing-redux into 561544e on hypothesis:master.
Fix thread collapsing UX.
Clean up use of footer and body sections
Make the tags section use .annotation-body (because tags are a form of
body) and put the form actions, reply count, and license messages into
the footer so that these collpasing properly and uniformly.
Show a sign in message in unsaved annotations
Since there is no username, collapsing a draft when not signed in
had been causing the annotation to disappear completely. Now, there
is a clear prompt that holds the space.
Cool. I'm poking at this and found a couple rough edges. Collapsing annotations while they are being edited results in awkwardly having save/cancel buttons without the annotation body. Hiding these results in a small, excess margin on annotations being edited. Hiding this results in new drafts disappearing completely when collapsed if the user is not logged in. I've mostly addressed all these and I'll push in the morning for your review.