Skip to content

ui-react: review media findings with previews and the five actions in hygiene review #2782

Closed

Description

@schlessera

Context

Part of the epic #1777 (resolve pending media through hygiene review). Read the epic for every maintainer ruling.

Blocked by #2781

Human-started hygiene review lives in Actions (createHygieneReviewRoutes, packages/ui-server/src/routes/hygiene-review.ts:8; HygieneFinding, packages/ui-react/src/components/activity/hygiene-review.tsx:398). This task adds media findings and their five actions to that review, on the inventory and effects children.

Design: rev 4 §8 (interaction, with §8.1 replaced by rev 5 §8.1), rev 5 §11 (route boundaries) and rev 6 §5 (interaction deltas).

Scope

  • Media finding cards in the existing review: contained path, size and type, known references, persistence status, pin linkage, and the five actions (Leave pending, Delete, Move to final location, Persist here, Keep a permanent copy) with each action's eligibility and refusal reason (rev 4 §4).
  • Preview through the authenticated raw files route mapped onto the existing ImageViewer and ZoomViewer hosts (rev 5 §8.1); scratch video/audio and LARGE previews deferred behind Load; named refusals returned as results, not errors (rev 5 §11).
  • Preview, approval, receipt and Undo states, keyboard bindings, live regions and focus order as specified, at 320px and desktop in dark and paper with 44px targets.

Out of scope

Acceptance criteria

  • Real-browser tests at 320px and 1280px in dark and paper cover each action's choose, preview, approve, receipt, refused, stale and Undo states, with the specified focus order and announcements.
  • A scratch MP4 makes no request until Load; an image error shows the fallback tile after exactly one request; Escape from the viewer returns focus to the frame button.
  • Route boundary tests prove principal checks, named refusals inside 200 bodies and unchanged existing error boundaries.
  • Media findings never preempt more severe eligible findings, and an all-deferred pass shows truthful counts.

Verification

bun run test packages/ui-server packages/ui-react
bun run build && bun run test:layout
bun run typecheck
bun run lint

Odysseus fixtures with the pinned 2026-07-12 date, offline.

Contract impact

Additive review routes and payloads per rev 5 §9 and §11: CONTRACT: commits, same-commit contract updates, minor changesets.

Activity

  1. added
    type: feat
    area: ui-server
    area: ui-react
    priority: p2
    agent-ready
    blocked
    contract
    on Oct 24, 2026
  2. removed
    blocked
    on Nov 4, 2026
  3. schlessera commented on Nov 4, 2026

    @schlessera
    OwnerAuthor

    Unblocked: #2781 closed when epic #1777's batch #3586 landed on main as b3c959370. #2781 was the only declared blocker, so I've removed blocked. agent-ready and the priority are unchanged.

  4. self-assigned this
    on Nov 4, 2026
  5. added this to the 0.45.0 milestone on Nov 4, 2026
  6. schlessera commented on Nov 4, 2026

    @schlessera
    OwnerAuthor

    Claim claim-2782-ui-7d1e. Branch feat/2782-media-review-ui from epic/1777-media-hygiene at b3c959370 (equal to main). The design is settled across rev 4 §8, rev 5 §8.1/§11 and rev 6 §5, with rev 3/3.1 for the ordinary card and the broader-rule approval, so no design label is needed. The cited HygieneFinding is now at hygiene-review.tsx:399 (one line of drift), and createHygieneReviewRoutes is at routes/hygiene-review.ts:8 as cited.

    Progress: #3592, against the epic branch (head a11a844eb), is marked ready for hosted proof. It adds the media card (bounded preview, facts, the five decisions with their reasons, latest-wins previews, stated outcomes, the receipt with Undo, and the media count line) plus a core ordering test. Its acceptance audit, failing-first evidence and mutation receipts are in the PR body.

    Two rev 5 details are filed as #3591: telling a 404 source apart from other image errors without a second request, and naming the gone copy's path in the R1 notice, which needs an additive hygiene next field. I'm keeping the claim while #3592 is live.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

agent-readyarea: ui-reactarea: ui-servercontractpriority: p2type: feat

Projects

No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions