From 5bd822b0daca5bb1ec815dfd8fb3967ab6176ac7 Mon Sep 17 00:00:00 2001 From: Steven Guiheux Date: Tue, 25 Jun 2019 14:49:05 +0200 Subject: [PATCH] fix(ui): css in sidebar and logs --- engine/api/workflow/dao.go | 7 ++++--- .../workflow.sidebar.run.node.component.html | 19 +++++++++++-------- .../workflow.sidebar.run.node.component.scss | 6 +++++- .../run/node/pipeline/step/step.log.html | 2 +- 4 files changed, 21 insertions(+), 13 deletions(-) diff --git a/engine/api/workflow/dao.go b/engine/api/workflow/dao.go index a757edec2a..e0447fe022 100644 --- a/engine/api/workflow/dao.go +++ b/engine/api/workflow/dao.go @@ -516,13 +516,14 @@ func load(ctx context.Context, db gorp.SqlExecutor, store cache.Store, proj *sdk dbRes := Workflow{} _, next := observability.Span(ctx, "workflow.load.selectOne") - if err := db.SelectOne(&dbRes, query, args...); err != nil { + err := db.SelectOne(&dbRes, query, args...) + next() + if err != nil { if err == sql.ErrNoRows { return nil, sdk.ErrWorkflowNotFound } return nil, sdk.WrapError(err, "Unable to load workflow") } - next() res := sdk.Workflow(dbRes) if proj.Key == "" { @@ -538,11 +539,11 @@ func load(ctx context.Context, db gorp.SqlExecutor, store cache.Store, proj *sdk // Load groups _, next = observability.Span(ctx, "workflow.load.loadWorkflowGroups") gps, err := group.LoadWorkflowGroups(db, res.ID) + next() if err != nil { return nil, sdk.WrapError(err, "Unable to load workflow groups") } res.Groups = gps - next() res.Pipelines = map[int64]sdk.Pipeline{} res.Applications = map[int64]sdk.Application{} diff --git a/ui/src/app/shared/workflow/sidebar/run-node/workflow.sidebar.run.node.component.html b/ui/src/app/shared/workflow/sidebar/run-node/workflow.sidebar.run.node.component.html index f0ef37dba1..533d7c02f0 100644 --- a/ui/src/app/shared/workflow/sidebar/run-node/workflow.sidebar.run.node.component.html +++ b/ui/src/app/shared/workflow/sidebar/run-node/workflow.sidebar.run.node.component.html @@ -72,14 +72,17 @@

{{currentWorkflowNodeRun.start | amLocal | amDateFormat: 'DD/MM/YYYY HH:mm' }} -
- - - - -
+ +
+
+ + + + +
+
+

diff --git a/ui/src/app/shared/workflow/sidebar/run-node/workflow.sidebar.run.node.component.scss b/ui/src/app/shared/workflow/sidebar/run-node/workflow.sidebar.run.node.component.scss index 52560026a5..1d5a93eb83 100644 --- a/ui/src/app/shared/workflow/sidebar/run-node/workflow.sidebar.run.node.component.scss +++ b/ui/src/app/shared/workflow/sidebar/run-node/workflow.sidebar.run.node.component.scss @@ -18,6 +18,10 @@ padding: 10px; } + .stageContainer { + overflow-y: auto; + } + .steps { :host-context(.night) & { background-color: $darkTheme_grey_1; @@ -39,4 +43,4 @@ pre { white-space: pre-line; } -} \ No newline at end of file +} diff --git a/ui/src/app/views/workflow/run/node/pipeline/step/step.log.html b/ui/src/app/views/workflow/run/node/pipeline/step/step.log.html index a7ed76428e..2e970e1256 100644 --- a/ui/src/app/views/workflow/run/node/pipeline/step/step.log.html +++ b/ui/src/app/views/workflow/run/node/pipeline/step/step.log.html @@ -50,7 +50,7 @@ [class.active]="selectedLine === logLine.lineNumber" id="L{{job.pipeline_stage_id}}-{{job.pipeline_action_id}}-{{stepOrder}}-{{logLine.lineNumber}}" *ngIf="!last"> - {{logLine.lineNumber}} + {{logLine.lineNumber}}