diff --git a/frontend/src/App.svelte b/frontend/src/App.svelte index 354de6d..730cb7f 100644 --- a/frontend/src/App.svelte +++ b/frontend/src/App.svelte @@ -9,7 +9,7 @@ import HistoryPanel from "./components/HistoryPanel.svelte"; import LibraryPanel from "./components/library/LibraryPanel.svelte"; import AutomationList from "./routes/automation/AutomationList.svelte"; - import { Menu } from "lucide-svelte"; + import { Menu, AlertTriangle, AlertCircle } from "lucide-svelte"; import ToastHost from "./components/ToastHost.svelte"; import { healthCheck } from "./lib/api.js"; import { currentTheme, themes } from "./lib/themeStore.js"; @@ -124,7 +124,7 @@ > {#if isMobile && sidebarOpen}
(sidebarOpen = false)} aria-hidden="true" >
@@ -139,39 +139,38 @@ /> -
+
{#if isMobile && !sidebarOpen} -
+
{/if} + + {#if !apiReachable} -
-
-

{apiErrorMessage}

-
+
+ +

{apiErrorMessage}

{:else if !apiConfigured && currentView === "scanner"} -
-
-

- Configure a metadata source in Settings > Integrations to get - started -

-
+
+ +

+ Configure a metadata source in Settings › Integrations to get started +

{/if} -
+
{#if currentView === "settings"} {:else if currentView === "history"} diff --git a/frontend/src/components/AppSidebar.svelte b/frontend/src/components/AppSidebar.svelte index 0b16227..01ee6d8 100644 --- a/frontend/src/components/AppSidebar.svelte +++ b/frontend/src/components/AppSidebar.svelte @@ -21,186 +21,136 @@ export let open = true; export let collapsed = false; export let isMobile = false; + + const navItems = [ + { id: "scanner", label: "Scanner", icon: Scan }, + { id: "automation", label: "Automations", icon: Zap }, + { id: "history", label: "History", icon: History }, + { id: "library", label: "Library", icon: Library }, + { id: "settings", label: "Settings", icon: Settings }, + ]; diff --git a/frontend/src/components/SettingsPanel.svelte b/frontend/src/components/SettingsPanel.svelte index 3a55f8e..6b6405c 100644 --- a/frontend/src/components/SettingsPanel.svelte +++ b/frontend/src/components/SettingsPanel.svelte @@ -18,11 +18,11 @@ let successMessage = null; const sections = [ - { id: "general", label: "General", icon: "settings" }, - { id: "folder-rules", label: "Folder Rules", icon: "folder" }, - { id: "cleanup", label: "Cleanup", icon: "wand" }, - { id: "integrations", label: "Integrations", icon: "plug" }, - { id: "tasks", label: "Tasks", icon: "bolt" }, + { id: "general", label: "General", icon: Settings }, + { id: "folder-rules", label: "Folder Rules", icon: Folder }, + { id: "cleanup", label: "Cleanup", icon: Wand2 }, + { id: "integrations", label: "Integrations", icon: Plug }, + { id: "tasks", label: "Tasks", icon: Bolt }, ]; onMount(async () => { @@ -81,98 +81,80 @@
-
-
- - - +
+
+ {#each Array(5) as _} + + {/each}
-
+
-
+
-
- - - -
{:else}
-

Settings

+

Settings

Configure metadata sources, cleanup rules, and scheduled scans.

-
+
-