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

+27
View File
@@ -0,0 +1,27 @@
package main
import "testing"
func TestNormalizeTimestampConvertsSeconds(t *testing.T) {
const now = int64(1_700_000_000_000)
if got := normalizeTimestamp(1_700_000_000, 0, now); got != 1_700_000_000_000 {
t.Fatalf("normalizeTimestamp() = %d, want %d", got, 1_700_000_000_000)
}
}
func TestNormalizeTimestampClampsFutureValues(t *testing.T) {
t.Setenv("SYNC_MAX_FUTURE_SKEW_MS", "0")
const now = int64(1_700_000_000_000)
if got := normalizeTimestamp(now+1000, 0, now); got != now {
t.Fatalf("normalizeTimestamp() = %d, want %d", got, now)
}
}
func TestNormalizeEntityTimestampsKeepsUpdatedAfterCreated(t *testing.T) {
t.Setenv("SYNC_MAX_FUTURE_SKEW_MS", "0")
const now = int64(1_700_000_000_000)
created, updated := normalizeEntityTimestamps(now-100, now-200, now)
if created != now-100 || updated != created {
t.Fatalf("timestamps = (%d, %d), want (%d, %d)", created, updated, now-100, now-100)
}
}