Skip to content
quarry Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: 473bc6d0dda0d8f896edd7d072423ccf29b37e2fc63dd3ca8ba5b084770695b2
Ticket: cf8bc23c0ba7438b6eeb55c7c6f53caf2b3f00b9
Kanban view for tickets, as a toggle rather than a replacement
User & Date: dmestas on 2026-08-19 01:31:36
Changes

  1. icomment:
    Correcting the "no drag in v1" reasoning recorded when this was filed. It said dragging needs JavaScript beyond the one script quarry allows. That is wrong: **drag needs no new script.**
    
    Datastar's `on` plugin ends in `addEventListener(kebab(key))`, so it binds ANY DOM event — `dragstart`, `dragover`, `drop` — and it carries a `prevent` modifier, which is exactly what native drag-and-drop requires on `dragover` to permit a drop. The browser's drag API does the dragging; Datastar only wires the handlers and posts the result. Nothing is vendored.
    
    So the script budget is not the reason to defer drag. Two real reasons remain, and they change the DESIGN rather than the schedule:
    
    1. **Native HTML5 drag does not work on touch.** Mobile browsers do not synthesise drag events from touch gestures. A drag-only board is unusable on a phone.
    2. **Native drag is not keyboard operable.** This is most of why Morpheus's own sortable is 52 KB of TypeScript: it adds a keyboard drag path and a shadow-DOM live region so screen readers are told what moved. We would not be reimplementing that, so we must not depend on drag as the only way to move a card.
    
    ## What that means for the build
    
    The per-card status control is NOT a no-JS fallback. It is the primary mechanism, present for everyone, always:
    
    - **Base**: each card carries a status `<select>` that submits. Works with scripting off, on touch, and from the keyboard.
    - **Enhancement**: `draggable="true"` on the card plus `data-on:dragstart`, `data-on:dragover__prevent`, `data-on:drop="@post(...)"`. A mouse user gets dragging; everyone else loses nothing.
    
    Treating the select as a fallback to hide once JavaScript loads would reproduce exactly the trap the tooltip work already hit — an affordance that exists only for people with a pointer.
    
    ## Order
    
    Board first, read-only and grouped, with the select. Drag second, as a genuine enhancement over a board that already works.
    
  2. mimetype: "text/x-markdown"