fix: resolve runtime errors and missing routes

- Fix $effect orphan error: move $effect calls from store constructors
  to initEffects() methods called from component context
- Fix icon rendering: create DynamicIcon component to render Lucide icons
  from name strings instead of displaying raw text
- Add /boards/new route for board creation
- Fix seed emails (admin@launcher.local / user@launcher.local) to pass
  Zod email validation
This commit is contained in:
2026-03-24 22:39:23 +03:00
parent e6b50fb4f1
commit bb3b1a5db7
13 changed files with 192 additions and 8 deletions
+3 -1
View File
@@ -1,4 +1,6 @@
<script lang="ts">
import DynamicIcon from '$lib/components/ui/DynamicIcon.svelte';
interface BoardSummary {
id: string;
name: string;
@@ -24,7 +26,7 @@
>
<div class="flex items-start gap-3">
{#if board.icon}
<span class="text-xl">{board.icon}</span>
<DynamicIcon name={board.icon} size={22} />
{:else}
<span class="flex h-8 w-8 items-center justify-center rounded-md bg-muted text-sm text-muted-foreground">
B
+3 -1
View File
@@ -1,4 +1,6 @@
<script lang="ts">
import DynamicIcon from '$lib/components/ui/DynamicIcon.svelte';
interface Props {
name: string;
description: string | null;
@@ -13,7 +15,7 @@
<div class="mb-6 flex items-start justify-between">
<div class="flex items-center gap-3">
{#if icon}
<span class="text-2xl">{icon}</span>
<DynamicIcon name={icon} size={28} />
{/if}
<div>
<h1 class="text-3xl font-bold text-foreground">{name}</h1>