Skip to content

Add pause runner button to runner view

Miguel Rincon requested to merge 347856-runner-read-only-pause-button into master

What does this MR do and why?

This change adds a "Pause" button to the runner read-only view, it does this by repurposing the "Pause" button in the runner list so it can be reused.

Screenshots or screen recordings

Before After
Screen_Shot_2022-01-24_at_1.33.05_PM Screen_Shot_2022-01-24_at_1.32.30_PM
See responsive behavior

In this "extreme" case we have wrap the long runner details to keep the buttons in the same line

2022-01-24_13.42.28

How to set up and validate locally

  1. With some runners added

  2. In rails console ($ rails c) enable the the view runner page

    Feature.enable(:runner_read_only_admin_view)
  3. Visit Admin -> Runners

  4. Visit any Group Runner page such as http://gdk.test:3000/admin/runners/108

MR acceptance checklist

This checklist encourages us to confirm any changes have been analyzed to reduce risks in quality, performance, reliability, security, and maintainability.

Related to #347856 (closed)

Edited by Miguel Rincon

Merge request reports