From 4c8d29ee0166f0f1d072e85de816d0b57b322792 Mon Sep 17 00:00:00 2001 From: Ludovic DEHON Date: Wed, 29 Jan 2025 18:13:54 +0100 Subject: [PATCH 1/5] feat(ui): display attempts status on taskrun on left close #7030 --- ui/src/components/executions/TaskRunLine.vue | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/ui/src/components/executions/TaskRunLine.vue b/ui/src/components/executions/TaskRunLine.vue index dfa8692ba41..a4c5b4b29e9 100644 --- a/ui/src/components/executions/TaskRunLine.vue +++ b/ui/src/components/executions/TaskRunLine.vue @@ -139,17 +139,15 @@ /> -
+
+ +
- -
- -
From e8291719cfb2bf9721c673ae79dd35c8b9ad74bb Mon Sep 17 00:00:00 2001 From: Bart Ledoux Date: Wed, 29 Jan 2025 21:38:59 +0100 Subject: [PATCH 4/5] feat: parse docs is 2 steps to avoid user waiting with nothing --- ui/src/components/docs/ContextDocs.vue | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/ui/src/components/docs/ContextDocs.vue b/ui/src/components/docs/ContextDocs.vue index b8948c549c2..794c39a6f62 100644 --- a/ui/src/components/docs/ContextDocs.vue +++ b/ui/src/components/docs/ContextDocs.vue @@ -90,8 +90,15 @@ if (!("canShare" in navigator)) { content = content.replaceAll(/\s*web-share\s*/g, ""); } - const parse = await getMDCParser() - ast.value = await parse(content); + const parse = await getMDCParser(); + // this hack alleviates a little the parsing load of the first render on big docs + // by only rendering the first 50 lines of the doc on opening + // since they are the only ones visible in the beginning + const firstLinesOfContent = content.split("---\n")[2].split("\n").slice(0, 50).join("\n") + "\nLoading the rest...\n"; + ast.value = await parse(firstLinesOfContent); + setTimeout(async () => { + ast.value = await parse(content); + }, 50); } watch(docPath, async (val) => { From f9a749c0f4b101fa9ca13c85b1fb44d0a50939e7 Mon Sep 17 00:00:00 2001 From: Bart Ledoux Date: Thu, 30 Jan 2025 11:25:05 +0100 Subject: [PATCH 5/5] restore TaskRunLine --- ui/src/components/executions/TaskRunLine.vue | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/ui/src/components/executions/TaskRunLine.vue b/ui/src/components/executions/TaskRunLine.vue index a4c5b4b29e9..dfa8692ba41 100644 --- a/ui/src/components/executions/TaskRunLine.vue +++ b/ui/src/components/executions/TaskRunLine.vue @@ -139,15 +139,17 @@ /> -
- -
+
+ +
+ +