[go: up one dir, main page]

Realtime update of pipeline status in Files view

Description

When using the the GitLab UI to edit files, after submitting changes, there's no easy way to jump to the CI/CD Pipeline resulting from the change. If you refresh the file page, there will be a little pipeline status next to the commit SHA. We should make that icon update in realtime so that it appears without needing to refresh.

Proposal

Update this pipeline icon in realtime in the commit widget shown at the top of any page in Repository > Files.

image

The simple and boring solution is:

  1. show no status icon for the "empty state" (page load)
  2. show no status icon for the "loading" state (waiting for async request)
  3. show the status icon returned by backend as soon as it is received
  4. update the status icon as soon as further requests (poll) return

Further improvements:

Design

Simply show nothing until we have actual information:

  • show no status icon for the "empty state" (page load)

  • show no status icon for the "loading" state (waiting for async request)

  • show the status icon returned by backend as soon as it is received

  • update the status icon as soon as further requests (poll) return

Edited by Dimitrie Hoekstra