Skip to content

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

  1. Start the monitor: `rails runner scripts/internal_events/monitor.rb i_code_review_user_create_mr``
  2. Notice how the timestamp at the at the top is updating every second
  3. Press "p"
  4. Verify that the timestamp is no longer updating
  5. Verify that you can select and copy parts of the table data like this image
  6. Verify that the monitor starts refreshing if you press "p" again
  7. 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.

Edited by Jonas Larsen

Merge request reports