added sidebar component, added individual workspace page

This commit is contained in:
xyroscar
2025-11-24 13:58:50 -08:00
parent 3f7d58d4fe
commit ed2ae939a6
75 changed files with 2199 additions and 1 deletions

View File

@@ -12,6 +12,7 @@
import * as Dialog from "$lib/components/ui/dialog/index.js";
import { Input } from "$lib/components/ui/input/index.js";
import { Label } from "$lib/components/ui/label/index.js";
import { goto } from "$app/navigation";
$effect(() => {
get_workspaces().then((ws) => {
@@ -48,6 +49,10 @@
dialogOpen = true;
}
function handleWorkspaceClick(id: string) {
goto(`/workspaces/${id}`)
}
async function handleDialogSubmit() {
let success = false;
if (dialogMode === "create") {
@@ -123,7 +128,7 @@
</Card.Description>
</Card.Header>
<Card.Footer class="flex items-center justify-center gap-2">
<Button size="sm" class="justify-center">Open</Button>
<Button size="sm" class="justify-center" onclick={() => handleWorkspaceClick(workspace.Id)}>Open</Button>
<Button
size="sm"
class="justify-center"