So this blew up, I decided to give the page some small improvements. Changes:
- The bars are now ordered correctly based on votes
- Tooltip now shows comment.substring(0, 100)
- Show direct childs of the selected comment
- Added paddings and some small info notations
- New cached data for the default link (> 3500 comments now, it would take a good 15 mins if loaded manually from your browser)
It is still a crappy code, and there are many improvements can be made. Most importantly a proper navigation behavior with back button. I'll get back to this if I have more time!
The code is on my GitHub [1], feel free to send PR or just create your own page.
The old page is still available in [2] just in case someone don't want/agree with my improvements :)
I would use this every day as a browser extension for HN/reddit. the vertical minimap would probably be the ideal implementation.
Fly-to navigation for narrowing scope makes sense. IMO, a complete feature-set would still include something like ctrl-scroll for vertical expand and shift-scroll for horizontal expand.
Realistically, maybe, for minimap-on-focus:
"a"+"scroll": zoom
"s"+"scroll": expand-vertical
"d"+"scroll": expand-horizontal
Thanks! I have some ideas on how improve this for later (maybe). The main purpose is still to be able to scan major discussions on a big thread. A big vertical minimap like your suggestion is also great! :).
I'm not sure why GitHub doesn't load the page when the "index.html" part is missing, but I have to go now so I don't have time to check it, maybe later.
I also enjoy the double entendre of “flame graph” here for the flame war that you chose :).
It’s not clear to me that I’d label the “functions” with the username. I’m not sure what other very short summary you might use, but I’d prefer something content related rather than poster.
I almost love it; clicking on a comment zooms in the graph, which loses context and is not what I usually want.
But I think if you just made it so that hover loaded the complete comment either as a popup or actually down below, and click zoomed the context, this would be perfect, and by far my favorite way to browse large comment threads (on any website).
Thanks for the feedback. I realized most HN comments are not that long, so I updated the page to show all the comment in the tooltip (instead of only 100 first chars previously).
I do not think visually, I tend to think in very structured complex sentences, as such being able to interpret what this image means is extremely difficult for someone who thinks in the way I do.
I decided to launch my macOS app even if it was only about "40% complete" as of my expectation. It turned out people still love it, and the launch gave me a huge confidence boost!
My app (offline toolbox for dev with a bunch of small utilities):
Space bar as push to talk in Zoom is terrible. After countless time it sends the spaces to the chat box while I'm talking, I'm now back to reliable mouse click.
- The bars are now ordered correctly based on votes
- Tooltip now shows comment.substring(0, 100)
- Show direct childs of the selected comment
- Added paddings and some small info notations
- New cached data for the default link (> 3500 comments now, it would take a good 15 mins if loaded manually from your browser)
It is still a crappy code, and there are many improvements can be made. Most importantly a proper navigation behavior with back button. I'll get back to this if I have more time!
The code is on my GitHub [1], feel free to send PR or just create your own page.
The old page is still available in [2] just in case someone don't want/agree with my improvements :)
[1] https://github.com/trungdq88/hn-big-threads
[2] https://trungdq88.github.io/hn-big-threads/old.html
Thanks!