From 58d85fbc4087b9da87d925f06429181abf353665 Mon Sep 17 00:00:00 2001
From: "coderabbit-steward[bot]"
<359343172+coderabbit-steward[bot]@users.noreply.github.com>
Date: Thu, 26 Nov 2026 21:39:31 +0000
Subject: [PATCH] review(src): unreviewed delta (13 files)
---
src/app.css | 31 +-
src/app.html | 17 ++
src/lib/components/AttentionPanel.svelte | 77 +++++
src/lib/components/CategorySection.svelte | 65 ++---
src/lib/components/Header.svelte | 101 +++++++
src/lib/components/LayoutToggle.svelte | 14 +-
src/lib/components/WeatherWidget.svelte | 65 +++++
src/lib/config.ts | 255 +++++++++++++++++
src/lib/data/attention.ts | 101 +++++++
src/lib/index.ts | 6 +
src/lib/poll.ts | 47 +++
src/lib/portal.ts | 330 ++++++++++++++++++++++
src/routes/+layout.svelte | 7 +
13 files changed, 1047 insertions(+), 69 deletions(-)
create mode 100644 src/app.html
create mode 100644 src/lib/components/AttentionPanel.svelte
create mode 100644 src/lib/components/Header.svelte
create mode 100644 src/lib/components/WeatherWidget.svelte
create mode 100644 src/lib/config.ts
create mode 100644 src/lib/data/attention.ts
create mode 100644 src/lib/index.ts
create mode 100644 src/lib/poll.ts
create mode 100644 src/lib/portal.ts
create mode 100644 src/routes/+layout.svelte
diff --git a/src/app.css b/src/app.css
index 75a5100..435441c 100644
--- a/src/app.css
+++ b/src/app.css
@@ -1,29 +1,24 @@
@import "tailwindcss";
@import "@kleinbem/web-config/theme";
@import "@kleinbem/web-config/base.css";
-@import "@kleinbem/web-config/badges.css";
-/* App-level names for web-config's tokens; without these the *-brand, bg-bg-surface and
- text-text-primary utilities generate no CSS. */
-@theme inline {
- --color-bg-surface: var(--color-bg);
- --color-bg-elevated: var(--color-surface);
- --color-text-primary: var(--color-heading);
- --color-border-subtle: var(--color-line);
- --color-brand: var(--color-accent);
-}
-
-@custom-variant dark (&:where([data-theme="dark"], [data-theme="dark"] *, .dark, .dark *));
+@source "../node_modules/@kleinbem/web-config";
-/* Glassmorphism utility for modern card and navbar styling */
.glass-panel {
- background: color-mix(in srgb, var(--color-bg-elevated, #18181b) 75%, transparent);
+ background: color-mix(in srgb, var(--color-surface, #151a21) 80%, transparent);
backdrop-filter: blur(12px);
-webkit-backdrop-filter: blur(12px);
- border: 1px solid var(--color-border-subtle, rgba(255, 255, 255, 0.08));
+ border: 1px solid var(--color-line, rgba(255, 255, 255, 0.08));
+}
+
+dialog:modal {
+ overscroll-behavior: contain;
}
-.light .glass-panel, [data-theme="light"] .glass-panel {
- background: color-mix(in srgb, #ffffff 80%, transparent);
- border: 1px solid var(--color-border-subtle, rgba(0, 0, 0, 0.06));
+dialog::backdrop {
+ background: rgb(9 9 11 / 0.6);
+ backdrop-filter: blur(4px);
+ -webkit-backdrop-filter: blur(4px);
+ overflow: hidden;
+ overscroll-behavior: contain;
}
diff --git a/src/app.html b/src/app.html
new file mode 100644
index 0000000..43612ce
--- /dev/null
+++ b/src/app.html
@@ -0,0 +1,17 @@
+
+
+
+
+
+
+
+ Foyer
+
+
+
+ %sveltekit.head%
+
+
+ %sveltekit.body%
+
+
diff --git a/src/lib/components/AttentionPanel.svelte b/src/lib/components/AttentionPanel.svelte
new file mode 100644
index 0000000..6aef592
--- /dev/null
+++ b/src/lib/components/AttentionPanel.svelte
@@ -0,0 +1,77 @@
+
+
+{#if items.length > 0}
+
+
+
Needs attention
+ {items.length}
+
+
+
+
+ {#if items.length > COLLAPSED_COUNT}
+
+ {/if}
+
+{/if}
diff --git a/src/lib/components/CategorySection.svelte b/src/lib/components/CategorySection.svelte
index 4290ea0..2ee620d 100644
--- a/src/lib/components/CategorySection.svelte
+++ b/src/lib/components/CategorySection.svelte
@@ -1,74 +1,51 @@
{#if services.length > 0}
-
{getCategoryIcon(category)}
-
+ {getCategoryIcon(category, categoryIcons)}
+
{category}
-
+
({services.length})
-
+
{#each services as service (service.id)}
{@const health = resolveHealth(service, healthMap)}
-
+
{/each}
diff --git a/src/lib/components/Header.svelte b/src/lib/components/Header.svelte
new file mode 100644
index 0000000..2e87c90
--- /dev/null
+++ b/src/lib/components/Header.svelte
@@ -0,0 +1,101 @@
+
+
+ {
+ if (!document.hidden) now = new Date();
+ }}
+/>
+
+
+
+
+
๐
+
+
+
+ {title}
+
+ {#if badge}
+
+ {badge}
+
+ {/if}
+
+ {#if subtitle}
+
+ {subtitle}
+
+ {/if}
+
+
+
+
+
+
+
+ {timeStr}
+ {dateStr}
+
+
+ {#if weather}
+
+
+
+ {/if}
+
+
+
+
+
+
+
diff --git a/src/lib/components/LayoutToggle.svelte b/src/lib/components/LayoutToggle.svelte
index 73147e4..b64c02d 100644
--- a/src/lib/components/LayoutToggle.svelte
+++ b/src/lib/components/LayoutToggle.svelte
@@ -15,15 +15,15 @@
}
-
+