Restore collapsible sections in job log viewer

What does this MR do and why?

Restore collapsible sections in job log viewer

Changelog: fixed

Additional validation

I tested this against the following raw log, which contains sections like:

remote: Compressing objects:  98% (118747/121170)        <CR>
remote: Compressing objects:  99% (119959/121170)        <CR>
remote: Compressing objects: 100% (121170/121170)        <CR>
remote: Compressing objects: 100% (121170/121170), done.        

To show progress, so it works well for the cases shown by !153704 (merged).

MR acceptance checklist

Please evaluate this MR against the MR acceptance checklist. It helps you analyze changes to reduce risks in quality, performance, reliability, security, and maintainability.

Screenshots or screen recordings

Notice the arrows to collapse:

Before After
image image

How to set up and validate locally

  1. Create a job log that contains message with carriage returns, e.g. a git clone
  2. Open the job log in the viewer by adding /viewer (e.g. http://gdk.test:3000/my-group/my-project/-/jobs/2166/viewer)
  3. See that the problem is fixed

Related to #474089 (closed)

Edited by Miguel Rincon

Merge request reports

Loading