diff --git a/src/lib/components/Checkbox/Checkbox.svelte b/src/lib/components/Checkbox/Checkbox.svelte index 003b9fbb7..9935e411d 100644 --- a/src/lib/components/Checkbox/Checkbox.svelte +++ b/src/lib/components/Checkbox/Checkbox.svelte @@ -27,7 +27,7 @@ appearance: none; border: 0; border-radius: 4px; - display: grid; + display: inline-grid; place-content: center; } diff --git a/src/routes/+layout.svelte b/src/routes/+layout.svelte index 8fa258c64..5aef79a4c 100644 --- a/src/routes/+layout.svelte +++ b/src/routes/+layout.svelte @@ -84,7 +84,7 @@ -
+
diff --git a/src/routes/projects_new/[projectId]/+page.svelte b/src/routes/projects_new/[projectId]/+page.svelte index e25245a3e..78d2a02fa 100644 --- a/src/routes/projects_new/[projectId]/+page.svelte +++ b/src/routes/projects_new/[projectId]/+page.svelte @@ -1,11 +1,13 @@ - - - +
+ + +
diff --git a/src/routes/projects_new/[projectId]/Board.svelte b/src/routes/projects_new/[projectId]/Board.svelte index 8ab7408e6..f488d6ddd 100644 --- a/src/routes/projects_new/[projectId]/Board.svelte +++ b/src/routes/projects_new/[projectId]/Board.svelte @@ -1,38 +1,26 @@
(columns = e.detail.items)} + on:finalize={(e) => (columns = e.detail.items)} > - {#each columns as { id, name, items }, idx (id)} + {#each columns.filter((c) => c.active) as { id, name, items }, idx (id)}
- handleItemFinalize(idx, newItems)} /> +
{/each}
diff --git a/src/routes/projects_new/[projectId]/Lane.svelte b/src/routes/projects_new/[projectId]/Lane.svelte index eb6832a4e..8143d18a7 100644 --- a/src/routes/projects_new/[projectId]/Lane.svelte +++ b/src/routes/projects_new/[projectId]/Lane.svelte @@ -2,35 +2,27 @@ import { flip } from 'svelte/animate'; import { dndzone } from 'svelte-dnd-action'; import type { FileCard } from './board'; - const flipDurationMs = 150; + export let name: string; export let items: FileCard[]; - export let onDrop: (items: FileCard[]) => void; - function handleDndConsiderCards(e: { detail: { items: FileCard[] } }) { - console.warn('got consider', name); - items = e.detail.items; - } - function handleDndFinalizeCards(e: { detail: { items: FileCard[] } }) { - onDrop(e.detail.items); - } + const flipDurationMs = 150; -
-
+
+
{name}
(items = e.detail.items)} + on:finalize={(e) => (items = e.detail.items)} > {#each items as item (item.id)}
{item.name}
diff --git a/src/routes/projects_new/[projectId]/Tray.svelte b/src/routes/projects_new/[projectId]/Tray.svelte new file mode 100644 index 000000000..5fde53874 --- /dev/null +++ b/src/routes/projects_new/[projectId]/Tray.svelte @@ -0,0 +1,18 @@ + + +
+ {#each columns as column (column.id)} +
+ + {column.name} +
+ {/each} +
diff --git a/src/routes/projects_new/[projectId]/board.ts b/src/routes/projects_new/[projectId]/board.ts index f0c3a2e13..52b4fc68b 100644 --- a/src/routes/projects_new/[projectId]/board.ts +++ b/src/routes/projects_new/[projectId]/board.ts @@ -6,5 +6,6 @@ export type FileCard = { export type BranchLane = { id: string; name: string; + active: boolean; items: FileCard[]; };