Files
pad/web
xarmian 02cbfd5a01 fix(web): 44px touch targets at phone width: strip, card ⋯, status chip (TASK-2244) (#1674)
* fix(web): collection strip controls are 44x44 at phone width (TASK-2244 U-a)

Dave's ruling (day 83, option 1): at <=768px every control in the
collection strip grows visibly to 44x44. A transparent hit area would
overlap the neighbour 4px away. Desktop is unchanged, and the e2e pins
the base sizes.

Co-Authored-By: Claude <noreply@anthropic.com>

* fix(web): the mobile view chip drops its visible View: prefix so the strip fits one row (TASK-2244 U-a)

The lead's ruling on the 360 checkpoint (option B). The aria-label
'Change view' is unchanged. The e2e pins one row at 390 (list and
board) and at 360 (board). It was red on the previous commit's binary
at 390 list and 360 board, and it is green here.

Co-Authored-By: Claude <noreply@anthropic.com>

* fix(web): a mobile card has one 44x44 ⋯ carrying star, copy and reorder (TASK-2244 U-b)

Dave's ruling (day 83, option 3). At <=768px the card's star, copy-ref
and ⋮ could not each reach 44x44 without overlapping. One ⋯ replaces
them on every ItemCard host, including the starred, tags and roles pages,
which have no reorder. Star and Copy item ID are its first entries. A
starred card shows a passive ★, which is not a control. Desktop is
unchanged, and the e2e pins its sizes.

Claude-Session: https://claude.ai/code/session_01WiJ1kQCbNUdFRyq2FEi4tL

* fix(web): the card status chip gets an invisible 44x44 touch area that spares the tags (TASK-2244 U-c)

Dave's ruling (day 83): the status chip gets an invisible ::after
extender at <=768px. It grows upward from the chip, into the title (the
card link), because a centred one landed 20 of the first tag's 40
sampled points on the chip. The e2e probes both sides with
elementFromPoint: the 44x44 area hits the chip, and no point of a tag or
of the card ⋯ lands on it. The card legs now seed a collection of their
own, because the shared Tasks lane put seeded cards out of view.

Claude-Session: https://claude.ai/code/session_01WiJ1kQCbNUdFRyq2FEi4tL

* test(web): desktop legs pin only CSS-fixed sizes (TASK-2244)

CI failed the desktop legs on text- and glyph-sized widths, which depend
on the machine's fonts (view 77.6 vs 75, + New 101.1 vs 93.8, ⚡ 34.4 vs
41, ⋮ 18 vs 8, star 11.9 vs 13). Pinned now: every strip height (28), the
three icon buttons' widths (30), and the copy button (22x22). The
glyph-sized card controls must stay below 44. Run with the phone rule in
force, the same assertions fail on every control.

Claude-Session: https://claude.ai/code/session_01WiJ1kQCbNUdFRyq2FEi4tL

* fix(web): the phone realtime dot is a badge on the collection menu button, so the strip is one row at 360 in both views (TASK-2244, Dave's gate)

---------

Co-authored-by: Claude <noreply@anthropic.com>
2026-09-30 16:16:51 -04:00
..
2026-03-26 01:52:36 +00:00
2026-03-26 01:52:36 +00:00
2026-03-26 01:52:36 +00:00

Pad Web UI

SvelteKit 2 + Svelte 5 frontend for Pad, compiled to static files and embedded into the Go binary.

Development

npm install
npm run dev          # Dev server at localhost:5173 (proxies API to localhost:7777)
npm run build        # Production build to build/
npm run check        # Type checking with svelte-check

When developing, run the Go backend separately with make dev from the project root.

Building for Production

Do not build in isolation. Always use make build from the project root — this builds the web frontend, then compiles the Go binary with the build output embedded via //go:embed.

Stack

  • Svelte 5 with runes ($state, $derived, $effect)
  • SvelteKit 2 with adapter-static (SPA mode)
  • Tiptap block editor with markdown round-trip
  • svelte-dnd-action for drag-and-drop in board/list views
  • SSE for real-time updates
  • TypeScript throughout

Structure

src/
  routes/                    SvelteKit pages
    +layout.svelte           App shell (sidebar + main)
    +page.svelte             Landing/redirect
    [workspace]/
      +page.svelte           Dashboard (collections, phases, activity)
      +layout.svelte         SSE connection per workspace
      [collection]/
        +page.svelte         Collection view (board/list)
      [collection]/[item]/
        +page.svelte         Item detail + editor
      conventions/            Purpose-built conventions page
      playbooks/              Purpose-built playbooks page
      settings/               Workspace settings
  lib/
    api/client.ts            HTTP API client
    components/
      layout/                Sidebar, navigation
      editor/                Tiptap editor, raw markdown editor
      fields/                FieldEditor, relation picker
      items/                 ItemCard, ItemDetail
      collections/           BoardView, ListView
      common/                StatusBadge, badges, modals
      search/                CommandPalette
    stores/                  Svelte 5 reactive stores
      workspace.svelte.ts    Workspace state
      collections.svelte.ts  Collection + item state
      ui.svelte.ts           Sidebar, mobile state
    types/index.ts           TypeScript types and constants
  app.css                    Global styles and design tokens