triggerdotdev / jsonhero-web

JSON Hero is an open-source, beautiful JSON explorer for the web that lets you browse, search and navigate your JSON files at speed. 🚀. Built with 💜 by the Trigger.dev team.
https://jsonhero.io
Apache License 2.0
9.42k stars 512 forks source link

Feature request: collapse-all in tree view #149

Closed cueman closed 11 months ago

cueman commented 1 year ago

If you're working with a non-trivial JSON file in a tree view, then it's sometimes useful to be able to collapse everything (aka fold all) and then open only the nodes you want to.

Without that, it can be difficult to see what's there.

parthvnp commented 1 year ago

Happy to provide a fix for this!

ericallam commented 1 year ago

/bounty $200

algora-pbc[bot] commented 1 year ago

💎 $200 bounty created by ericallam 🙋 If you'd like to work on this issue, comment below to get assigned 👉 To claim this bounty, submit a pull request that includes the text /claim #149 somewhere in its body 📝 Before proceeding, please make sure you can receive payouts in your country 💵 Payment arrives in your account 2-5 days after the bounty is rewarded 💯 You keep 100% of the bounty award 🙏 Thank you for contributing to triggerdotdev/jsonhero-web!

roxanne-mackinnon commented 1 year ago

Currently working on this. /attempt #149

parthvnp commented 1 year ago

Might give it a try as well. /attempt #149

algora-pbc[bot] commented 1 year ago

Note: The user @roxanne-mackinnon is already attempting to complete issue #149 and claim the bounty. If you attempt to complete the same issue, there is a chance that @roxanne-mackinnon will complete the issue first, and be awarded the bounty. We recommend discussing with @roxanne-mackinnon and potentially collaborating on the same solution versus creating an alternate solution.

parthvnp commented 1 year ago

@ericallam I have finished most of the functionality for this. I am just wondering whether this feature should be exposed via a shortcut or a button on Tree View page or both?

ericallam commented 1 year ago

@parthvnp juat a keyboard shortcut for now:

A commonly used keyboard shortcut for collapsing all nodes in a tree view on both macOS and Windows is:

SSHari commented 1 year ago

I thought I might try my hand at this as well /attempt #149

algora-pbc[bot] commented 1 year ago

Note: The user @roxanne-mackinnon is already attempting to complete issue #149 and claim the bounty. If you attempt to complete the same issue, there is a chance that @roxanne-mackinnon will complete the issue first, and be awarded the bounty. We recommend discussing with @roxanne-mackinnon and potentially collaborating on the same solution versus creating an alternate solution.

algora-pbc[bot] commented 1 year ago

💡 @SSHari submitted a pull request that claims the bounty. You can visit your org dashboard to reward.

algora-pbc[bot] commented 1 year ago

🎉🎈 @SSHari has been awarded $200! 🎈🎊