Getǣl — Read-only macOS home directory disk usage cartography & APFS telemetry service
getael DESIGN.md
16 kB · 142 lines
Markdown
at dev

Design System — Getǣl #

Design Read: Reading this as a precision storage cartography & macOS APFS telemetry instrument for a technical Mac power user, with a machined Dark Obsidian default language (and 27 curated dark/light color-only themes), leaning toward custom Tailwind v4 tokens + Geist / Geist Mono + Canvas 2D / SVG data instruments and restrained spring motion.

  • Dials: DESIGN_VARIANCE: 7 (purposeful asymmetric deck, zero cookie-cutter symmetry) · MOTION_INTENSITY: 6 (spring-damped zoom/drill-down transitions, quiet live pulse) · VISUAL_DENSITY: 7 (high-signal telemetry without clutter; numbers breathe in tabular monospace).
  • Reference Brand Board: docs/brand/getael-brand-board.jpg

1. Visual Theme & Atmosphere #

Getǣl should feel like a machined optical and cartographic instrument — part astronomical astrolabe, part geological survey table, part Apple-grade systems utility. Never a generic SaaS dashboard, never a neon cyber-slop theme. Every pixel earns its space by answering: "Where did my disk space go, how old is it, and what is changing right now?"

  • Double-Bezel Hardware Framing: Primary deck modules sit inside a subtle machined enclosure — outer shell (var(--bg-shell), 1px border var(--bezel-outer-border), radius 16px, 5px inset) housing an inner core (var(--bg-surface), concentric radius 11px, top inner specular hairline inset 0 1px 0 var(--bezel-inner-highlight)).
  • Fixed Subtle Film Grain: One position: fixed; inset: 0; pointer-events: none; opacity: 0.025 SVG noise texture on the root canvas — never on scrolling containers.
  • Color-Only Theme System (28 Built-In Themes): Obsidian is the default dark palette. Users may switch via the Preferences pane among 28 curated color-only themes (Obsidian, 8 seasonal Madoromi Dark/Light palettes haru, natsu, aki, fuyu inspired by Pilot Iroshizuku inks from okami.mom/albedo, 13 popular dark palettes, and 6 popular light palettes), persisted client-side in localStorage. Each active theme locks the entire page consistently (never mixing light sections mid-page inside a dark theme or vice versa) and introduces zero non-color preferences.

2. Color Palette & Roles #

All UI chrome and visualization palettes resolve dynamically through semantic CSS custom properties on :root (and useTheme() for Canvas 2D / SVG instruments). The Obsidian default values are listed below:

Token Obsidian Default Functional Role
--bg-canvas #0A0B0D Root canvas substrate (never pure #000000)
--bg-shell #0E1014 Outer bezel tray for major instrument modules
--bg-surface #121418 Primary machined inner surface
--bg-elevated #181B21 Hover rows, popovers, command palette (⌘K), snapshot drawer
--border-hairline rgba(255, 255, 255, 0.07) Structural 1px grid and ledger dividers
--border-strong rgba(255, 255, 255, 0.14) Active cell outlines, keyboard focus rings
--bezel-outer-border rgba(255, 255, 255, 0.06) Outer Double-Bezel perimeter hairline
--bezel-inner-highlight rgba(255, 255, 255, 0.08) Inner Double-Bezel top specular hairline
--hover-tint rgba(255, 255, 255, 0.06) Interactive row/button hover fill
--subtle-tint rgba(255, 255, 255, 0.04) Subtle pill/badge surface fill
--scrim rgba(0, 0, 0, 0.60) Modal backdrop overlay (⌘K, shortcuts legend)
--text-primary #ECEEF2 Primary headings, active directory names, key byte readouts (>= 4.5:1 contrast)
--text-secondary #8A919E Path breadcrumbs, timestamps, secondary telemetry (>= 4.5:1 contrast)
--text-muted #5B6270 Grid ticks, axis labels, subtle dividers
--accent #E59A2B Sole vivid UI accent (saturation < 80%): active lens indicator, live FSEvents pulse, focused breadcrumb, shrink-pin warning
--status-ok #4F8F7D Healthy/purgeable status indicators, negative size deltas
--status-warn #C98A3A Reclaimable/purgeable warnings
--status-danger #B86552 Error banners and NO ACCESS badges
--bar-other #3A404D Storage ribbon segment for other/system data
--bar-free #242933 Storage ribbon segment for strictly free space

Cartographic Data-Viz Palette (Muted, Harmonized, Colorblind-Conscious) #

Used only inside charts and compact category swatches — never as loud page chrome. Switching themes updates all 8 --cat-* tokens (and derived age/depth spectra) cohesively across DOM, SVG, and Canvas 2D lenses:

  • --cat-code-builds (code_builds): Steel Blue #5A82A6
  • --cat-media-video (media_video): Rust Clay #B86552
  • --cat-models-data (models_data): Signal Ochre #C98A3A
  • --cat-archives-images (archives_images): Slate Violet #7A7399
  • --cat-caches-logs (caches_logs): Verdigris #4F8F7D
  • --cat-apps-binaries (apps_binaries): Pewter Cyan #548A94
  • --cat-documents (documents): Warm Stone #9A9080
  • --cat-other (other): Graphite Mist #636A78

3. Typography Rules (100% Self-Hosted, Zero External Fonts) #

Bundle Geist and Geist Mono .woff2 files directly in web/src/assets/fonts/ so the single binary works completely offline.

  • Display / Instrument Titles: Geist, tight tracking (-0.025em), medium/semibold weight (500–600).
  • UI & Labels: Geist, 14px base (0.875rem), clean leading (1.45).
  • Telemetry & All Numbers: Geist Mono with font-variant-numeric: tabular-nums mandatory on every byte size, percentage, file count, XID, timestamp, and axis tick so live SSE updates never cause layout jitter.
  • Explicitly Banned: Inter, Roboto, Arial, Helvetica, Open Sans, generic serifs, and emojis anywhere in UI text or icons.
  • Iconography: Phosphor Icons (Light weight, 1.5px stroke) bundled locally (@phosphor-icons/react or inline SVG sprite from Phosphor Light — never lucide-react, never hand-drawn icon paths).

4. Page Composition & Dual Layout Modes #

Getǣl opens in its Default Dashboard Layout (maximized = false) and provides an opt-in Maximised Lens View (maximized = true, toggled via the F shortcut, the CornersOut / CornersIn button in CommandRail, or ?maximized=1 in the URL). Both modes share the same ResizeObserver-driven responsive lenses so toggling between them resizes every Canvas 2D and SVG instrument smoothly without page reload.

Default Dashboard Layout (maximized = false, Default at /) #

Centered max-w-[1600px] shell ordered top-to-bottom:

  1. Instrument Masthead (<header>): AstrolabeMark + Getǣl + READ-ONLY APFS INSTRUMENT (or READ-ONLY STORAGE INSTRUMENT on non-macOS) on the left; active display path + active directory byte readout on the right.
  2. Error / SSE Status Banner: Shown when disconnected or an API error occurs.
  3. Top Telemetry Deck (TopTelemetryDeck): Mounted Device Capacity (md:col-span-8, md:col-span-12 on Linux/Windows) + Time Machine Local Snapshots (md:col-span-4, macOS only, with S-toggled Snapshots Ledger drawer).
  4. Command & Lens Rail (CommandRail): Sticky rounded bar (sticky top-2 z-30 rounded-xl) with interactive breadcrumbs, copy-path button, 8-Lens switcher tabs (1–8), ⌘K search, Physical / Logical (M), Hidden, Live/Session Movers, and the Maximise Lens toggle (F).
  5. Main Stage (<main>): Side-by-side 12-column grid (lg:grid-cols-12):
    • Active Lens (lg:col-span-8): DoubleBezel (h-[540px]) hosting the active ResizeObserver-driven Lens.
    • Directory Ledger (lg:col-span-4): Sortable list of direct children and indexed top files (Size, Name, Count, Mtime) with HIDDEN, CLOUD, and NO ACCESS badges, synchronized hover, and click-to-drill-down.
  6. Insights Row (lg:grid-cols-12): RecentMoversPane (lg:col-span-8 when bloat hints exist, lg:col-span-12 otherwise) + BloatRadarCard (lg:col-span-4 when hints exist).
  7. Preferences (PreferencesPane): Color-only 28-theme selector at the bottom of the page.

Maximised Lens View (maximized = true, ?maximized=1 or F Toggle) #

Zone A — Compact Sticky Top Bar (CommandRail, Full Width, min-h-[48px]) #

  • Single-Row Sticky Header (sticky top-0 z-30 w-full border-b): Remains pinned across both the full-window main stage and the scrollable lower deck.
  • Left Cluster (Brand & Breadcrumb Trail): Compact AstrolabeMark + Getǣl title (READ-ONLY APFS INSTRUMENT / READ-ONLY STORAGE INSTRUMENT tooltip), interactive path breadcrumbs (~ / Projects / getael; click any ancestor to jump, Backspace steps up), copy-path button, and active directory byte badge.
  • Center Cluster (8-Lens Switcher Tabs, keys 1–8): Always-visible tabs switching between Spatial (1–4) and Analytical (5–8) lenses.
  • Right Cluster (Controls):
    • ⌘K Quick Jump Search (instant cached directory/file jump)
    • Physical / Logical segmented toggle (M shortcut)
    • Hidden Files toggle (Hidden)
    • Live FSEvents Pulse: Calm status dot + expandable Session Movers popover showing recent live cache deltas.
    • Exit Maximised Lens View toggle (CornersIn icon, F shortcut).

Zone B — Full-Window Main Cartography Stage (100vw × Remaining Viewport Height) #

  • Above-the-Fold Dominance (min-h-[calc(100dvh-49px)] flex flex-col): Full-width Double-Bezel primary stage (flex-1, min-h-[480px], zero max-w clamp above the fold) filling the entire browser width and remaining viewport height below the sticky top bar.
  • Responsive Lens Viewport: All 8 lenses resize dynamically via ResizeObserver (flex-1 w-full h-full min-h-[460px]), scaling HiDPI devicePixelRatio Canvas 2D surfaces and viewBox SVG instruments cleanly across desktop (1280×800, 1920×1080, 2560×1440) and narrow (< 768px) viewports with overflow-x: clip and zero horizontal overflow.

Zone C — Scrollable Centered Lower Deck (max-w-[1600px] Centered Below the Fold) #

Ordered top-to-bottom below the main visualization stage:

  1. Directory Ledger + Insights (lg:col-span-12 Asymmetric Grid):
    • Directory Ledger (lg:col-span-8): Sortable list of direct children and indexed top files (Size, Name, Count, Mtime). Hovering a row highlights its region in the active Lens; clicking a directory drills down in both. Badges for HIDDEN, CLOUD (dataless), and NO ACCESS (TCC-protected).
    • Right-Column Insights Slot (lg:col-span-4, directly below <main>):
      • Recent Movers (RecentMoversPane, top of right column): Rolling 5m / 1h / 24h ranked plain list of largest +/- directory and >= 64 KiB file byte changes (All / Dirs / Files filter pills, subtle inline proportional +/- bars, signed Geist Mono tabular-nums deltas, relative timestamps, click-to-navigate, hover sync with active Lens, SSE + 30s rolling refresh).
      • Bloat Radar (BloatRadarCard, stacked below Recent Movers when hints exist): Read-only target/, node_modules/, .venv/, DerivedData, Caches, .gguf/model caches with exact byte totals and Copy action.
  2. Volume & Time Machine Local Snapshots Telemetry (md:col-span-12 Grid, Collapses to 1-Col < 768px):
    • Mounted Device Capacity Module (md:col-span-8, md:col-span-12 on Linux/Windows): Volume name, device identifier, scan status badge, tabular Strictly Free / Reclaimable / Total readouts, and Precision Segmented Storage Ribbon with APFS sibling volumes drawer.
    • Time Machine Local Snapshots Module (md:col-span-4, macOS only): Purgeable Space Pool, Snapshot Count, age span, XID Activity Sparkline, and expandable Snapshots Ledger Drawer (toggled and scrolled smoothly into view via S).
  3. Preferences — Color Theme: Color-only 28-theme selector with All / Dark / Light tabs and 5-swatch preview cards.

5. The Eight Lenses (Signature Delight) #

Every Lens supports synchronized hover inspection, click-to-drill-down (where hierarchical), Physical/Logical switching, and empty/loading skeleton states.

Key Lens Name Algorithm & Rendering What It Reveals Best
1 Cell Map Weighted Voronoi Treemap (iterative Power Diagram / centroidal Voronoi tessellation on Canvas 2D, deterministic seed per path so layout stays stable across refreshes!) Organic polygonal cells with near-1:1 aspect ratios—zero unreadable skinny slivers. Feels genuinely novel and handcrafted.
2 Topography Van Wijk Cushion Treemap (squarified treemap with recursive parabolic surface shading rendered via offscreen ImageData on Canvas 2D) Tactile 3D ridges make multi-level folder nesting obvious without thick borders eating pixels.
3 Astrolabe Zoomable Radial Sunburst (SVG/Canvas concentric arcs radiating from active directory center, animated spring arc interpolation on drill-down, center telemetry readout) Instant grasp of directory depth and branch dominance around a focal hub.
4 Strata Icicle / Flame Cross-Section (horizontal stacked layers from active directory downward, width proportional to bytes, crisp vertical alignment) Fastest way to trace a deep bloated chain (~ → Library → Developer → Xcode → DerivedData).
5 Fossils & Dust Age × Size Log-Scatter Plot (Canvas 2D scatter: X-axis = log age since last modified from <1d to 5y+; Y-axis = log file/folder size; color = semantic category; shaded top-right "Ancient Giants" quadrant) Surfaces huge forgotten files and stale build artifacts untouched for months or years.
6 Block Tapestry Hilbert Space-Filling Curve (order-6/7 Hilbert grid on Canvas 2D mapping depth-first byte spans continuously along a fractal curve; color-by Category, Age, or Depth switcher) Turns the entire home directory into an unmistakable visual fingerprint / cartographic quilt where contiguous folders form recognizable clusters.
7 Storage River Alluvial / Sankey Flow Diagram (3-column cubic Bézier ribbons: Active Directory → Top 10 Subdirs + Other → 8 Semantic Categories) Answers "what kind of stuff is inside my biggest folders?" at a single glance.
8 Constellations Zoomable Circle Packing (nested tangent circles on Canvas 2D with hairline orbital rings and smooth focus-zoom interpolation) Emphasizes containment and clustering—spot dense galaxies of small files vs. solitary giant planets.

6. Motion, Accessibility & Anti-Patterns #

  • Motivated Spring Physics: Drill-down zoom, breadcrumb transitions, and drawer reveals use damped spring curves (cubic-bezier(0.22, 1, 0.36, 1), 280–420 ms) animating transform and opacity only. Honor prefers-reduced-motion.
  • Skeleton Loaders: During first-ever cold scan (before SQLite has data), show geometric wireframe skeletons matching the active Lens + live progress counter (Scanned 84,210 files · 142.6 GB) via SSE — never a generic spinner.
  • Keyboard First: 1–8 switch Lens · Backspace drill up · ⌘K or / quick search · M toggle Physical/Logical · S toggle Snapshots drawer · F toggle Maximised Lens View · Esc close overlays (or exit Maximised Lens View when no overlay is open).
  • Contrast & Touch: WCAG AA minimum (>= 4.5:1) on all text, badges, and buttons; desktop nav/tabs stay single-line; explicit single-column collapse below 768px.
  • Strictly Forbidden: Emojis, Inter/Roboto, pure #000000, AI purple/neon glows, generic 3-card hero fluff, fake/invented metrics, external CDN requests, or any button that implies modifying/deleting user files.