Skip to content

Migrate afx open (templates/open.html) onto @cluesmith/codev-artifact-canvas — retire the bespoke annotator #1386

Open

Description

@amrmelsayed

Problem

afx open serves templates/open.html — a bespoke annotator with its own markdown rendering and annotation system that predates the canvas package. Spec 945 explicitly deferred 'dashboard host integration' to a future issue; #859 delivered the VS Code host only. That deferral is now materially expensive: every canvas improvement of the last month exists only in the VS Code webview — the in-row add-comment affordance (#1343), keyboard-first review with jump keys (#1237), the cursor and sizing fixes (#1232/#1236), and the upcoming horizontal reading mode (#1380) — while the afx open browser surface runs the legacy renderer with none of them. The gap widens with every canvas feature shipped.

Goal

afx open renders documents through @cluesmith/codev-artifact-canvas, the bespoke renderer retires, and the browser surface inherits the canvas feature set — current and future — from the single implementation.

Requirements (architect-provided; builder's spec/plan elaborates)

  1. The served page hosts the canvas package (it is already React; bundling strategy for a Tower-served page is a design decision — inline bundle vs served assets).
  2. Annotation continuity: existing open.html annotations (storage format, write-back path through Tower) either migrate to the canvas marker system or the adapters bridge them — no user-visible loss of existing annotations. This is the heart of the migration and the main risk.
  3. Tower adapter wiring: the canvas's MarkerAdapter seam (spec 945's D-series contracts) implemented against Tower's annotation endpoints.
  4. Toolbar/feature parity audit: whatever open.html offers today that the canvas lacks gets an explicit keep/drop/replace decision — no silent capability loss.
  5. The legacy renderer is deleted in the same arc (single source of truth), with the template reduced to a canvas host shell.
  6. Feature inheritance verified: the artifact-canvas: full-row '+' affordance (GitHub-diff pattern) — structurally eliminate the hover travel-gap bug class #1343 affordance, artifact-canvas: keyboard-first review navigation — jump keys, focus management audit, minimap focusability #1237 keyboard flow, and (once merged) artifact-canvas: horizontal multi-column reading mode for spec/plan review (toggleable, vertical stays default) #1380's reading modes work in the served page.

Sequencing

Independent of #1380 (which delivers column mode in the canvas package + VS Code host; this issue is the delivery path for afx-open parity). Touches packages/artifact-canvas only as a consumer — Track-A single-lane constraint applies loosely (coordinate, don't block).

Origin

Surfaced by spir-1380's spec-phase ground-truthing (2026-08-10): the issue's 'both hosts' requirement assumed canvas adoption that never happened. Architect ruling A on that scope question made this the separately-tracked migration.

Activity

  1. added
    area/dashboard
    on Aug 10, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    area/dashboard

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions