Rethink the position of `erase job logs` button on job detail page

Release notes

Problem to solve

Instead of deleting only the log artifact, the Erase logs button is removing more than that. And this behavior is documented for the API counterpart: https://docs.gitlab.com/ee/api/jobs.html#erase-a-job

However, on the UI it is not clearly communicated what the users should really be expecting when erasing job logs.

A small change was made to add a hover tooltip to clarify in !75892 (merged) but placement should also be addressed.

Intended users

Metrics

User experience goal

Users should be aware of what an action would result into. !75892 (merged) does a good job at communicating to users about what all is deleted when they're clicking on the Erase job logs button.

Proposal

#347237[erase-job-logs.png]

  1. move delete button next to retry job button
  2. replace retry button with an icon button
  3. retain the tooltip on the erase button

!75892 (comment 753423489)

Further details

Permissions and Security

Documentation

Availability & Testing

Available Tier

What does success look like, and how can we measure that?

What is the type of buyer?

Is this a cross-stage feature?

Links / references

This page may contain information related to upcoming products, features and functionality. It is important to note that the information presented is for informational purposes only, so please do not rely on the information for purchasing or planning purposes. Just like with all projects, the items mentioned on the page are subject to change or delay, and the development, release, and timing of any products, features, or functionality remain at the sole discretion of GitLab Inc.

Edited by Veethika Mishra