Add keyboard commands to monitor
What does this MR do and why?
When the monitor is refreshing every second, it is impossible to select and copy text from the interface.
With this change the user can press 'p' to toggle if refreshing is paused or not.
To add a tiny bit more of user friendliness you can now also press 'q' to quit the monitor.
How to set up and validate locally
- Start the monitor: `rails runner scripts/internal_events/monitor.rb i_code_review_user_create_mr``
- Notice how the timestamp at the at the top is updating every second
- Press "p"
- Verify that the timestamp is no longer updating
- Verify that you can select and copy parts of the table data like this
- Verify that the monitor starts refreshing if you press "p" again
- Verify that you can quit the monitor by pressing "q"
MR acceptance checklist
This checklist encourages us to confirm any changes have been analyzed to reduce risks in quality, performance, reliability, security, and maintainability.
-
I have evaluated the MR acceptance checklist for this MR.
Edited by Jonas Larsen