From 9733e5c122b37f24ba93d954831a06d0ae1cf741 Mon Sep 17 00:00:00 2001 From: "alexei.dolgolyov" Date: Sat, 25 Apr 2026 02:15:34 +0300 Subject: [PATCH] feat(redesign): subpage hero header + iconpicker portal + tighter gaps MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Three threads bundled: - PageHeader.svelte upgraded to a glass-card subpage hero matching the dashboard hero language, scaled down. New optional props (all backward-compatible — old callers keep working): emphasis (italic gradient word appended to title), crumb (uppercase mono kicker), count + countLabel (right-side mono meter), pills (status chips with tones: mint / sky / orchid / coral / citrus / primary). - Providers page wired up first as the test surface: pulls live online/offline/checking counts from the existing health probe and shows a type-count pill. Locale keys added (en + ru) for the new copy ('Service / providers' wordmark, longer description). - IconPicker dropdown was suffering the same backdrop-filter containing-block bug as IconGridSelect — repositioned popups rendered inside any glass form panel got clipped or floated to the bottom of the page. Now portals to via the shared $lib/portal action and uses Aurora glass styling end-to-end (solid surface, gradient-active cell, glass-strong search input). - Layout gaps tightened to match the mockup: * sidebar→content horizontal gap is now 18px flat (was 50px: the 18px shell-gap PLUS another 32px wrapper padding on each child of main). Dropped px-4/md:px-8 from the topbar wrapper and the per-page content wrapper — main's children sit flush at the column boundary. * topbar→content vertical gap reduced to 12px (was 16px / pt-4). Build clean, 0 errors. --- frontend/src/lib/components/IconPicker.svelte | 174 ++++++++++++-- frontend/src/lib/components/PageHeader.svelte | 214 ++++++++++++++++-- frontend/src/lib/i18n/en.json | 7 +- frontend/src/lib/i18n/ru.json | 7 +- frontend/src/routes/+layout.svelte | 4 +- frontend/src/routes/providers/+page.svelte | 24 +- 6 files changed, 378 insertions(+), 52 deletions(-) diff --git a/frontend/src/lib/components/IconPicker.svelte b/frontend/src/lib/components/IconPicker.svelte index d2c2ee3..fb15921 100644 --- a/frontend/src/lib/components/IconPicker.svelte +++ b/frontend/src/lib/components/IconPicker.svelte @@ -1,5 +1,6 @@ -