-
Notifications
You must be signed in to change notification settings - Fork 377
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
Fix live updates to footers on Textual TUIs #597
Conversation
These actions live on the app, not on the screen. Signed-off-by: Matt Wozniski <mwozniski@bloomberg.net>
Avoid proliferation of hacky code. Signed-off-by: Matt Wozniski <mwozniski@bloomberg.net>
This is necessary pre-factoring for fixing the approach we use for changing the descriptions of key bindings in the footer to work on the latest versions of Textual. Signed-off-by: Matt Wozniski <mwozniski@bloomberg.net>
adab098
to
599fb5a
Compare
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #597 +/- ##
==========================================
+ Coverage 92.55% 92.86% +0.30%
==========================================
Files 91 92 +1
Lines 11304 11234 -70
Branches 1581 2055 +474
==========================================
- Hits 10462 10432 -30
+ Misses 837 802 -35
+ Partials 5 0 -5
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. |
e6cc8a2
to
2fe80b1
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.
LGTM, but as discussed I would prefer for update_key_description
to be a shared function in a new file, e.g. src/memray/reporters/_textual_hacks.py
2fe80b1
to
fd479b0
Compare
In Textual 0.61, `App.namespace_bindings` was removed in favor of `Screen.active_bindings`. Update our implementation to work for both, since we still support Textual versions below 0.61. Signed-off-by: Matt Wozniski <mwozniski@bloomberg.net>
fd479b0
to
47e859c
Compare
In Textual 0.61,
App.namespace_bindings
was removed in favor ofScreen.active_bindings
. Update our implementation of dynamically updating footer descriptions to work for both, since we still support Textual versions below 0.61.