feat: add user credentials management and health monitoring features
Docker / Docker Build & Push (push) Failing after 28s
Lint / Lint (push) Failing after 6s
Tests / Go backend (push) Failing after 4s
Tests / Dashboard checks (push) Failing after 6s

- Implemented CredentialsDialog for updating user credentials.
- Created auth store with functions for managing authentication state.
- Added HealthWidget to display server health status.
- Introduced health monitoring functionality with polling.
- Developed AppShell layout to manage authentication and loading states.
- Added SettingsDialog for user preferences including theme and language.
- Created utility functions for list management and data fetching.
- Implemented dashboard view mode preferences.
- Integrated search functionality for filtering lists.
- Established theme management with local storage support.
- Added utility functions for class name management.
- Configured SvelteKit for static site generation with fallback.
- Set up Vite for development with proxy support for API calls.
- Created About and List detail pages with data fetching and display.
- Added favicon and updated project configuration files.
This commit is contained in:
Gabriel20xx committed 2026-08-03 22:38:45 +02:00
1 parent a4a3eeb5cc
commit 6c1ea2da47
80 files changed

No files matched your search

+3
View File
@@ -0,0 +1,3 @@
export const load = ({ params }) => {
return { id: params.id };
};
+119
View File
@@ -0,0 +1,119 @@
<script>
import { goto } from '$app/navigation';
import { resolve } from '$app/paths';
import { ArrowLeft, LoaderCircle } from '@lucide/svelte';
import Button from '$lib/components/ui/button.svelte';
import Paginator from '$lib/components/ui/paginator.svelte';
import { createOverviewData } from '$lib/features/lists/listsData.svelte.js';
import { listFieldsFor, listItemsFor, itemValuesFor, valueFor, fmtDate } from '$lib/features/lists/listHelpers.js';
let { data } = $props();
function goBack() {
if (typeof window !== 'undefined' && window.history.length > 1) {
window.history.back();
} else {
void goto(resolve('/'));
}
}
const overview = createOverviewData();
const list = $derived(overview.lists.find((l) => l.id === data.id));
const listFields = $derived(listFieldsFor(overview.fields, data.id));
const listItems = $derived(listItemsFor(overview.items, data.id));
let page = $state(1);
let pageSize = $state(24);
const pageItems = $derived(listItems.slice((page - 1) * pageSize, (page - 1) * pageSize + pageSize));
</script>
<div class="p-4">
<div class="mb-4 flex min-w-0 items-center gap-3">
<Button type="button" variant="secondary" size="sm" class="shrink-0" onclick={goBack}>
<ArrowLeft class="size-4" />
Back
</Button>
{#if list}
<h1 class="min-w-0 truncate text-lg font-semibold text-fg">{list.name}</h1>
{#if list.isDeleted}
<span class="shrink-0 rounded-full bg-danger/15 px-2 py-0.5 text-[11px] font-medium text-danger">Deleted</span>
{/if}
{/if}
</div>
{#if overview.isLoading}
<div class="rounded-lg border border-border bg-bg p-4">
<div class="flex flex-col items-center gap-3 py-12 text-center text-sm text-muted-fg">
<LoaderCircle class="size-8 animate-spin text-primary" />
Loading…
</div>
</div>
{:else if !list}
<div class="rounded-lg border border-border bg-bg p-4">
<p class="py-8 text-center text-sm text-muted-fg">List not found.</p>
</div>
{:else}
<div class="rounded-lg border border-border bg-bg p-4">
<div class="mb-2 text-xs text-muted-fg">
Created {fmtDate(list.createdAt)} · Updated {fmtDate(list.effectiveUpdatedAt ?? list.updatedAt)}
</div>
<div class="mb-4">
<div class="mb-1.5 text-sm font-medium text-fg">Fields ({listFields.length})</div>
{#if listFields.length === 0}
<p class="text-sm text-muted-fg">No fields</p>
{:else}
<div class="flex flex-wrap gap-2">
{#each listFields as f (f.id)}
<span class="rounded-md bg-primary/10 px-2.5 py-1 text-xs font-medium text-primary">
{f.name} ({f.fieldType})
</span>
{/each}
</div>
{/if}
</div>
<div class="mb-1.5 text-sm font-medium text-fg">Items ({listItems.length})</div>
{#if listItems.length === 0}
<p class="text-sm text-muted-fg">No items</p>
{:else}
<div class="overflow-x-auto rounded-lg border border-border">
<table class="min-w-max w-full text-left text-sm">
<thead>
<tr class="text-muted-fg">
<th class="py-2 pl-3 font-medium">Item ID</th>
{#each listFields as f (f.id)}
<th class="py-2 font-medium">{f.name}</th>
{/each}
<th class="py-2 pr-3 font-medium">Updated</th>
</tr>
</thead>
<tbody>
{#each pageItems as item (item.id)}
{@const itemValues = itemValuesFor(overview.values, item.id)}
<tr class="border-t border-border">
<td class="py-2 pl-3 font-mono text-xs text-muted-fg">{item.id.slice(0, 8)}…</td>
{#each listFields as f (f.id)}
<td class="py-2 text-fg">{valueFor(itemValues, item.id, f.id) ?? '—'}</td>
{/each}
<td class="py-2 pr-3 text-muted-fg">{fmtDate(item.updatedAt)}</td>
</tr>
{/each}
</tbody>
</table>
</div>
<Paginator
{page}
{pageSize}
pageLength={pageItems.length}
totalLength={listItems.length}
onPaging={(e) => {
page = e.page;
pageSize = e.pageSize;
}}
/>
{/if}
</div>
{/if}
</div>