Files
warmbly/web
Matthew Meszaros 7950da5023 feat(admin-ui): worker tags + auto-derived smart labels
Two complementary axes for organizing the fleet, on one shared
mechanism:

  User tags (workers.tags)
    Free-form lowercase strings the admin applies for whatever they
    care about — region (eu-west, fra), provider (hetzner, ovh),
    role (warmup-only, burst-capacity), customer cohort. Edited via
    a chip-style input with autocomplete from existing tags. Saved
    to the worker_tags table.

  Smart labels (computed client-side)
    Auto-derived from the worker row so they're always in sync:
      type:shared / type:dedicated
      tier:free / tier:premium       (shared only)
      pool:clean / pool:risky / pool:quarantine  (shared only)
      state:installed / state:error / ...
      ver:v1.2.3                     (if image_version set)
      liveness:online / stale / offline
    Rendered with tone-aware backgrounds (red for offline / error
    / quarantine, amber for risky / stale, green for online).

Workers list:
  - new Tags column showing user tags + the high-signal smart labels
    (offline, error, risky, quarantine) with a "+N" overflow
  - "filter by tag" chip strip above the table built from the
    frequency of every tag (user + smart) in the current result. One
    click filters; click again to clear.

Worker detail:
  - Tags section near the top showing all smart labels and a full
    TagEditor (chip input + autocomplete + suggestions dropdown +
    Save button). Saving propagates to the list via react-query
    cache invalidation.

The smart labels are never written to the database — they're
recomputed every render. Means renaming an enum value (e.g. risk
pool name changes) doesn't require a backfill.
2026-05-20 14:18:20 +00:00
..
2026-02-11 17:54:49 +01:00
2026-02-14 05:38:27 +01:00

Warmbly Web App

React + TypeScript frontend for Warmbly.

Stack

  • React 19
  • Vite (Rolldown)
  • TypeScript
  • TanStack Query
  • Zustand
  • Tailwind CSS 4

Prerequisites

  • Node.js 20+
  • pnpm 10+

Setup

cd web
pnpm install
cp .env.example .env

Run

pnpm dev

Default dev URL: http://localhost:5173

Quality Checks

pnpm lint
pnpm test:run
pnpm build

Project Layout

  • src/app route pages and layouts
  • src/components UI and feature components
  • src/lib/api API clients, hooks, and models
  • src/stores Zustand store slices