Commit 0ea3c377 authored by Jose Ivan Vargas's avatar Jose Ivan Vargas

Merge branch '340627-rename-trace-css-jobs' into 'master'

Change trace to log in CSS to align with external language [RUN-AS-IF-FOSS]

See merge request gitlab-org/gitlab!71587
parents 3fc8d136 3b1bc5ae
...@@ -97,7 +97,7 @@ export default { ...@@ -97,7 +97,7 @@ export default {
<scroll-button :disabled="isScrolledToBottom" direction="down" @click="scrollDown" /> <scroll-button :disabled="isScrolledToBottom" direction="down" @click="scrollDown" />
</div> </div>
</div> </div>
<pre ref="buildJobLog" class="build-trace mb-0 h-100 mr-3" @scroll="scrollBuildLog"> <pre ref="buildJobLog" class="build-log mb-0 h-100 mr-3" @scroll="scrollBuildLog">
<code <code
v-show="!detailJob.isLoading" v-show="!detailJob.isLoading"
class="bash" class="bash"
......
...@@ -279,7 +279,7 @@ export default { ...@@ -279,7 +279,7 @@ export default {
<!-- job log --> <!-- job log -->
<div <div
v-if="hasJobLog" v-if="hasJobLog"
class="build-trace-container gl-relative" class="build-log-container gl-relative"
:class="{ 'gl-mt-3': !job.archived }" :class="{ 'gl-mt-3': !job.archived }"
> >
<log-top-bar <log-top-bar
......
...@@ -214,7 +214,7 @@ export default { ...@@ -214,7 +214,7 @@ export default {
<template #items> <template #items>
<pre <pre
ref="logTrace" ref="logTrace"
class="build-trace" class="build-log"
><code class="bash js-build-output"><div v-if="showLoader" class="build-loader-animation js-build-loader-animation"> ><code class="bash js-build-output"><div v-if="showLoader" class="build-loader-animation js-build-loader-animation">
<div class="dot"></div> <div class="dot"></div>
<div class="dot"></div> <div class="dot"></div>
......
...@@ -112,7 +112,7 @@ code { ...@@ -112,7 +112,7 @@ code {
border-radius: $border-radius-default; border-radius: $border-radius-default;
.code > &, .code > &,
.build-trace & { .build-log & {
background-color: inherit; background-color: inherit;
padding: unset; padding: unset;
} }
......
...@@ -5,10 +5,10 @@ ...@@ -5,10 +5,10 @@
font-size: 13px; font-size: 13px;
word-break: break-all; word-break: break-all;
word-wrap: break-word; word-wrap: break-word;
color: color-yiq($builds-trace-bg); color: color-yiq($builds-log-bg);
border-radius: $border-radius-small; border-radius: $border-radius-small;
min-height: 42px; min-height: 42px;
background-color: $builds-trace-bg; background-color: $builds-log-bg;
} }
.log-line { .log-line {
......
...@@ -239,7 +239,7 @@ ...@@ -239,7 +239,7 @@
/* /*
* Mixin that handles the container for the job logs (CI/CD and kubernetes pod logs) * Mixin that handles the container for the job logs (CI/CD and kubernetes pod logs)
*/ */
@mixin build-trace($background: $black) { @mixin build-log($background: $black) {
background: $background; background: $background;
color: $gray-darkest; color: $gray-darkest;
white-space: pre; white-space: pre;
...@@ -253,13 +253,13 @@ ...@@ -253,13 +253,13 @@
display: block; display: block;
} }
&.build-trace-rounded { &.build-log-rounded {
border-radius: $gl-border-radius-base; border-radius: $gl-border-radius-base;
} }
} }
// Used in EE for Web Terminal // Used in EE for Web Terminal
@mixin build-trace-bar($height) { @mixin build-log-bar($height) {
height: $height; height: $height;
min-height: $height; min-height: $height;
background: var(--gray-50, $gray-50); background: var(--gray-50, $gray-50);
...@@ -268,8 +268,8 @@ ...@@ -268,8 +268,8 @@
padding: $grid-size; padding: $grid-size;
} }
@mixin build-trace-top-bar($height) { @mixin build-log-top-bar($height) {
@include build-trace-bar($height); @include build-log-bar($height);
position: -webkit-sticky; position: -webkit-sticky;
position: sticky; position: sticky;
......
...@@ -697,7 +697,7 @@ $blame-blue: #254e77; ...@@ -697,7 +697,7 @@ $blame-blue: #254e77;
/* /*
* Builds * Builds
*/ */
$builds-trace-bg: #111; $builds-log-bg: #111;
$job-log-highlight-height: 18px; $job-log-highlight-height: 18px;
$job-log-line-padding: 55px; $job-log-line-padding: 55px;
$job-line-number-width: 50px; $job-line-number-width: 50px;
......
...@@ -4,7 +4,7 @@ ...@@ -4,7 +4,7 @@
height: 100%; height: 100%;
.top-bar { .top-bar {
@include build-trace-bar(35px); @include build-log-bar(35px);
top: 0; top: 0;
font-size: 12px; font-size: 12px;
......
@import 'mixins_and_variables_and_functions'; @import 'mixins_and_variables_and_functions';
.build-page { .build-page {
.build-trace { .build-log {
@include build-trace(); @include build-log();
} }
.archived-job { .archived-job {
...@@ -18,7 +18,7 @@ ...@@ -18,7 +18,7 @@
} }
.top-bar { .top-bar {
@include build-trace-top-bar(50px); @include build-log-top-bar(50px);
&.has-archived-block { &.has-archived-block {
top: $header-height + 28px; top: $header-height + 28px;
......
...@@ -44,14 +44,14 @@ ...@@ -44,14 +44,14 @@
line-height: initial; line-height: initial;
} }
.build-trace-row td { .build-log-row td {
border-top: 0; border-top: 0;
border-bottom-width: 1px; border-bottom-width: 1px;
border-bottom-style: solid; border-bottom-style: solid;
padding-top: 0; padding-top: 0;
} }
.build-trace { .build-log {
width: 100%; width: 100%;
text-align: left; text-align: left;
margin-top: $gl-padding; margin-top: $gl-padding;
...@@ -93,7 +93,7 @@ ...@@ -93,7 +93,7 @@
} }
.build-state, .build-state,
.build-trace-row { .build-log-row {
> td:last-child { > td:last-child {
padding-right: 0; padding-right: 0;
} }
...@@ -108,12 +108,12 @@ ...@@ -108,12 +108,12 @@
margin-top: 2 * $gl-padding; margin-top: 2 * $gl-padding;
} }
.build-trace-container { .build-log-container {
padding-top: $gl-padding; padding-top: $gl-padding;
padding-bottom: $gl-padding; padding-bottom: $gl-padding;
} }
.build-trace { .build-log {
margin-bottom: 0; margin-bottom: 0;
margin-top: 0; margin-top: 0;
} }
...@@ -221,8 +221,8 @@ ...@@ -221,8 +221,8 @@
} }
.test-reports-table { .test-reports-table {
.build-trace { .build-log {
@include build-trace(); @include build-log();
} }
} }
......
...@@ -40,8 +40,8 @@ ...@@ -40,8 +40,8 @@
height: 100%; height: 100%;
} }
.build-trace { .build-log {
@include build-trace($black); @include build-log($black);
} }
.gl-infinite-scroll-legend { .gl-infinite-scroll-legend {
......
...@@ -70,10 +70,10 @@ ...@@ -70,10 +70,10 @@
= link_to retry_project_job_path(build.project, build, return_to: request.original_url), method: :post, title: _('Retry'), class: 'gl-button btn btn-default btn-icon' do = link_to retry_project_job_path(build.project, build, return_to: request.original_url), method: :post, title: _('Retry'), class: 'gl-button btn btn-default btn-icon' do
= sprite_icon('repeat', css_class: 'gl-icon') = sprite_icon('repeat', css_class: 'gl-icon')
- if can?(current_user, :read_build, job) - if can?(current_user, :read_build, job)
%tr.build-trace-row.responsive-table-border-end %tr.build-log-row.responsive-table-border-end
%td %td
%td.responsive-table-cell.build-trace-container{ colspan: 4 } %td.responsive-table-cell.build-log-container{ colspan: 4 }
%pre.build-trace.build-trace-rounded %pre.build-log.build-log-rounded
%code.bash.js-build-output %code.bash.js-build-output
= build_summary(build) = build_summary(build)
......
%pre.build-trace#build-trace %pre.build-log
%code.bash.js-build-output %code.bash.js-build-output
.build-loader-animation.js-build-refresh .build-loader-animation.js-build-refresh
.dot .dot
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment