From 0bf367bd3b3d31e45c864d5731f43f7e7f770574 Mon Sep 17 00:00:00 2001 From: Pierre-Olivier Mercier Date: Wed, 18 Sep 2024 11:55:13 +0200 Subject: [PATCH] qa: Handle single theme review --- qa/ui/src/lib/components/TableOverview.svelte | 44 +++++++++++++++++++ 1 file changed, 44 insertions(+) diff --git a/qa/ui/src/lib/components/TableOverview.svelte b/qa/ui/src/lib/components/TableOverview.svelte index 789387b6..ae842b4e 100644 --- a/qa/ui/src/lib/components/TableOverview.svelte +++ b/qa/ui/src/lib/components/TableOverview.svelte @@ -29,6 +29,7 @@ style="overflow-y: auto" > {#await themesP then themes} + {#if Object.keys(themes).length > 1} @@ -69,5 +70,48 @@ {/each} + {:else} + {#each Object.keys(themes) as tname} + {#if themes[tname].exercices} + {#each themes[tname].exercices as exercice} + + +

goto(`exercices/${exercice.exercice.id}`)} + > + {exercice.exercice.title} +

+ {#if exercice.reports} + {#each exercice.reports as report} + goto(`exercices/${exercice.exercice.id}/${report.report.id}`)} + > + + {report.report.subject} + {#if report.comments} + + {report.comments.length} + + {/if} + + + {/each} +
+ {/if} + +
+ {/each} + {/if} + {/each} + {/if} {/await}