-
Notifications
You must be signed in to change notification settings - Fork 397
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Port the tree reporter to textual #499
Conversation
6738ca6
to
d95c3fe
Compare
Ya know... an alternative to the popup might be to split the window into two panes, both always shown - one would be focusable and let you navigate through the tree, and the other would always display info about the highlighted node. We could even support both - an always-on display for big terminals, and a popup when there's few enough rows/columns that we want to prioritize space efficiency over usability... |
@willmcgugan do you know if there is an easy way to have a |
@pablogsal Can't think of an straightforward way to do that, but it shouldn't be difficult to add to the TextArea. If you add a feature request to the repo, I think we could get it in the next version. |
39aeb42
to
7dc2156
Compare
Codecov ReportAttention:
Additional details and impacted files@@ Coverage Diff @@
## main #499 +/- ##
==========================================
+ Coverage 92.21% 92.30% +0.09%
==========================================
Files 91 91
Lines 11030 11212 +182
Branches 1526 1553 +27
==========================================
+ Hits 10171 10349 +178
- Misses 854 858 +4
Partials 5 5
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. |
7dc2156
to
55f0160
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
small nitpick: can we get a slightly bigger screenshot? It looks like the previous one was about 5000px wide, and the new one is only around 1800px wide. This makes the text harder to read.
Done |
c516375
to
fad088f
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I've pushed some more fixup commits that get this to a point where I'm happy to merge it. One last outstanding thing: the screenshot will need to be regenerated with those changes. I made some slight tweaks to the UI: the right column is a bit bigger (40% of the screen width, up to a maximum of 100 characters), and function names show up in bold white rather than in red/yellow/green to help them stand out better. Also, I fixed an issue where a node would get a folder icon even though it didn't have children (that doesn't seem to have affected the screenshot, but did affect some of the test snapshots).
When you regenerate the screenshot, please capture a node that includes text in the text box, so it's not just a weird empty box 😄
d623ef7
to
35d2000
Compare
Now that we are using Textual for the live mode, we can port the tree reporter to be a live Textual App. This has plenty of advantages over the static version as it offers interactive exploration of the tree, as well as the possibility of using different screens for showing detailed information about allocations such as the source and metadata. Signed-off-by: Pablo Galindo <[email protected]>
402f6f8
to
793cfe4
Compare
Now that we are using Textual for the live mode, we can port the tree
reporter to be a live Textual App. This has plenty of advantages over
the static version as it offers interactive exploration of the tree, as
well as the possibility of using different screens for showing detailed
information about allocations such as the source and metadata.
Signed-off-by: Pablo Galindo [email protected]
Issue number of the reported bug or feature request: #
Describe your changes
A clear and concise description of the changes you have made.
Testing performed
Describe the testing you have performed to ensure that the bug has been addressed, or that the new feature works as planned.
Additional context
Add any other context about your contribution here.