feat: add paginator component for list navigation
Server CI / Lint (push) Successful in 12s
Server CI / Build & Push Docker Image (push) Failing after 20s

feat: implement select component for dropdown functionality

feat: create tooltip component for enhanced user interaction

feat: add TechStackSection to display technology stack information

feat: implement HealthWidget to monitor server health status

feat: create AppShell layout for consistent application structure

feat: add SettingsDialog for user preferences management

feat: implement list helpers for managing list data

feat: create overview data fetching for lists

feat: add view mode preferences for dashboard layout

feat: implement search functionality for filtering lists

feat: add theme management for light and dark modes

feat: create utility functions for class name management

chore: configure SvelteKit with static adapter and Vite

chore: add favicon for branding

chore: set up Vite configuration with Tailwind CSS and proxy settings
This commit is contained in:
Gabriel20xx committed 2026-07-31 18:26:08 +02:00
1 parent 55f9b89063
commit 6b14cebf4f
55 files changed
+5069 -521

No files matched your search

@@ -0,0 +1,21 @@
export function listFieldsFor(fields, listId) {
return fields.filter((f) => f.listId === listId && !f.isDeleted).sort((a, b) => (a.order ?? 0) - (b.order ?? 0));
}
export function listItemsFor(items, listId) {
return items.filter((i) => i.listId === listId && !i.isDeleted);
}
export function itemValuesFor(values, itemId) {
return values.filter((v) => v.itemId === itemId);
}
export function valueFor(values, itemId, fieldId) {
return values.find((v) => v.itemId === itemId && v.fieldId === fieldId)?.value ?? null;
}
export function fmtDate(v) {
if (v === null || v === undefined) return '—';
const d = new Date(v);
return Number.isNaN(d.getTime()) ? '—' : d.toLocaleString();
}
@@ -0,0 +1,42 @@
import { createQuery } from '@tanstack/svelte-query';
import { fetchOverview } from '$lib/api.js';
const pollIntervalMs = 5_000;
export function createOverviewData() {
const query = createQuery(() => ({
queryKey: ['Overview'],
queryFn: fetchOverview,
refetchInterval: pollIntervalMs,
}));
const lists = $derived(query.data?.lists ?? []);
const fields = $derived(query.data?.fields ?? []);
const items = $derived(query.data?.items ?? []);
const values = $derived(query.data?.values ?? []);
const stats = $derived(query.data?.stats ?? { lists: 0, fields: 0, items: 0, values: 0 });
return {
get lists() {
return lists;
},
get fields() {
return fields;
},
get items() {
return items;
},
get values() {
return values;
},
get stats() {
return stats;
},
get isLoading() {
return query.isLoading;
},
get error() {
return query.error;
},
};
}