diff --git a/frontend/src/App.svelte b/frontend/src/App.svelte index 776835f..5e1298b 100644 --- a/frontend/src/App.svelte +++ b/frontend/src/App.svelte @@ -360,8 +360,7 @@ along with this program. If not, see .

Historial

Builds recientes en Jenkins. Esto lo conseguimos gracias a que Jenkins nos - expone una API REST muy maja para consultar información de los jobs y - builds. + expone una API REST para consultar información de los jobs y builds.

{#if loadingHistory} @@ -371,39 +370,44 @@ along with this program. If not, see . {#if buildHistory.length}
- {#each buildHistory as build} -
+ {#each buildHistory as build, i} +
#{build.number} - {build.branch} + + {#if build.commits.length === 0} + Ejecución manual + {:else} + + {build.commits[0].commit} · {build.commits[0].author} + + {/if}
+
- #{build.commit} - {build.finished_at} + + {new Date(build.finished_at).toLocaleDateString()} +
+
-

- Autor - {build.author} -

+ {#if build.commits.length > 0} +

+ Mensaje + {build.commits[0].message} +

+ {/if} +

Duración {build.duration_seconds} s

- {#if build.status === 'failed'} -

- Stage - {build.failed_stage} -

-

- {build.fun_message} -

+ + {#if build.status === 'failure'} +

Build fallida

{:else}

Correcto

{/if} diff --git a/frontend/src/styles/app.css b/frontend/src/styles/app.css index 412cea7..89e48c6 100644 --- a/frontend/src/styles/app.css +++ b/frontend/src/styles/app.css @@ -691,7 +691,7 @@ li { color: #f8fafc; } -.summary-branch { +.summary-commit { color: #a5b4fc; font-weight: 700; font-size: 0.95rem; @@ -718,7 +718,7 @@ li { box-shadow: 0 0 8px rgba(34, 197, 94, 0.6); } -.status-dot.failed { +.status-dot.failure { background: #f87171; box-shadow: 0 0 8px rgba(248, 113, 113, 0.5); } @@ -766,7 +766,7 @@ li { border-color: rgba(34, 197, 94, 0.3); } -.history-item.failed { +.history-item.failure { border-color: rgba(248, 113, 113, 0.35); }