Separating users from tasks + fixing weird ota bug

This commit is contained in:
2026-03-07 23:41:26 -05:00
parent 3fa879d007
commit ac95358561
14 changed files with 657 additions and 308 deletions

View File

@@ -3,6 +3,7 @@
import OTAUpdate from "./lib/OTAUpdate.svelte";
import Sidebar from "./lib/Sidebar.svelte";
import TaskManager from "./lib/TaskManager.svelte";
import UserManager from "./lib/UserManager.svelte";
/** @type {'loading' | 'ok' | 'error' | 'rebooting'} */
let status = $state("loading");
@@ -10,7 +11,7 @@
let showRebootConfirm = $state(false);
let isRecovering = $state(false);
/** @type {'dashboard' | 'tasks'} */
/** @type {'dashboard' | 'tasks' | 'users'} */
let currentView = $state("dashboard");
let systemInfo = $state({
@@ -144,7 +145,7 @@
<div class="w-full max-w-6xl mx-auto space-y-8">
<!-- Header -->
<div class="text-center">
<h1 class="text-2xl font-bold text-accent">Calendink Provider 🚀👑🥸</h1>
<h1 class="text-2xl font-bold text-accent">Calendink Provider 📅📅🚀🚀</h1>
<p class="text-text-secondary text-sm">ESP32-S3 System Dashboard v{__APP_VERSION__}</p>
<!-- Status Badge -->
@@ -323,6 +324,11 @@
<div class="bg-bg-card border border-border rounded-xl p-6 shadow-xl">
<TaskManager />
</div>
{:else if currentView === 'users'}
<!-- User Management View -->
<div class="bg-bg-card border border-border rounded-xl p-8 shadow-xl">
<UserManager mode="manager" />
</div>
{/if}
<!-- Reboot Confirmation Modal -->