From 7e5ee310885732ef0823d77c1f61e6ba43e2c214 Mon Sep 17 00:00:00 2001 From: Phillip Dykman Date: Mon, 3 Jun 2024 22:54:46 -0700 Subject: [PATCH 01/18] Implement task progress indication to Board view --- .../Board/components/Board/CardList.svelte | 14 ++++++++--- .../Board/components/Board/boardHelpers.ts | 24 +++++++++++++++++++ 2 files changed, 35 insertions(+), 3 deletions(-) diff --git a/src/ui/views/Board/components/Board/CardList.svelte b/src/ui/views/Board/components/Board/CardList.svelte index ffa37cbf..c035cee0 100644 --- a/src/ui/views/Board/components/Board/CardList.svelte +++ b/src/ui/views/Board/components/Board/CardList.svelte @@ -1,5 +1,5 @@ + +
+ + {#if content} + {content} + {/if} +
+ + \ No newline at end of file diff --git a/src/ui/components/Indicator/index.ts b/src/ui/components/Indicator/index.ts new file mode 100644 index 00000000..d1ff3db3 --- /dev/null +++ b/src/ui/components/Indicator/index.ts @@ -0,0 +1 @@ +export { default as Indicator } from "./Indicator.svelte"; diff --git a/src/ui/views/Board/components/Board/CardList.svelte b/src/ui/views/Board/components/Board/CardList.svelte index 107de0fd..b69a614a 100644 --- a/src/ui/views/Board/components/Board/CardList.svelte +++ b/src/ui/views/Board/components/Board/CardList.svelte @@ -29,6 +29,7 @@ OnRecordCheck, OnRecordDrop, } from "./types"; + import { Indicator } from "src/ui/components/Indicator"; export let items: DataRecord[]; export let onRecordClick: OnRecordClick; @@ -147,18 +148,12 @@
{#await getTaskProgress(item.id) then taskProgress} {#if taskProgress} -
- - {taskProgress} -
+ {/if} {/await} - {#if weight > 1 } -
- - {weight} -
+ {#if weight > 1} + {/if}
@@ -168,8 +163,7 @@ \ No newline at end of file + diff --git a/src/ui/views/Board/components/Board/CardList.svelte b/src/ui/views/Board/components/Board/CardList.svelte index 968c8317..071e2473 100644 --- a/src/ui/views/Board/components/Board/CardList.svelte +++ b/src/ui/views/Board/components/Board/CardList.svelte @@ -149,11 +149,14 @@
{#if taskProgress} - + + {taskProgress} + {/if} - {#if weight > 1} - + + {weight} + {/if}
@@ -162,14 +165,16 @@