Skip to content

feat(ui): make the review comparison editable — group with a master, click-to-copy, inline edit #802

Closed

Description

@athvin

Spec unit 2.8 (Review dialog merge) · parent #516

This is the bulk of what #516 has left, and the epic's phrase "only the specific review-dialog affordances" understates it: the dialog today displays a comparison but cannot edit one.

What exists

frontend/src/components/review/field-compare-grid.tsx (131 lines) renders the side-by-side comparison: two records, attribute by attribute, differing rows marked. It is well built for what it is — difference is signalled three ways (tint, icon, sr-only text) precisely because colour alone fails the a11y gate.

Around it: review-inbox.tsx, decision-panel.tsx, swipe-card.tsx, reviews-content.tsx, waterfall-chart.tsx, assertion-library.tsx.

The gap

FieldCompareGrid takes keyA/keyB and renders <span>s. Every affordance the spec names for this unit is absent:

Spec affordance State
master on the left, duplicates right no master concept — the columns are source_system A and B
click a value to copy it into master; click again to revert absent
inline edit: picklist, multi-picklist, lookup search, date, boolean absent — values render as text
change master by radio absent
skip to next group partly, via the inbox
persistent selection across pages absent
resizable columns, double-click to fit absent

There is also a shape gap, not just a feature list: the component early-returns on "This review is about an entity rather than a pair of records" (:41), so it is pair-only. The spec's dialog is an N-record group with a designated master. That is the change to design first — the affordances above are cheap once the data shape carries a group and a master, and awkward if bolted onto a pair.

Design constraint — the spec's colours do not port

The spec says conflicting values red and edited values green. The UI is strictly grayscale, ESLint-enforced, with --destructive the single exception. FieldCompareGrid already shows the house answer: signal twice, by tint plus icon plus assistive text. Edited-vs-conflicting must be distinguished by weight, scale, spacing or motion — see the frontend-design-system skill.

Done when

  • the comparison takes a group of N records with a designated master, not a pair
  • click-to-copy into master, and click-again-to-revert, both reflected in the merge the server performs
  • inline editing for the typed cases the spec names, as far as our attribute model has types for them
  • master reassignment from the dialog
  • a 3-record group merged from the dialog with copied values lands exactly as shown — the spec's own criterion, as an end-to-end test
  • no colour added; difference and edit distinguishable without hue, and the screen registered in the axe gate

Split out of the parent epic on 2026-11-07 by reading the spec's pillar table against this repo, file by file. Every "what exists" line below was grepped, not inferred — the parent epic's own body records a coverage figure that was once wrong because a stale design doc was trusted. Spec unit numbers refer to the DataGroomr Feature Parity Spec pillar tables. Estimates are mine and independent of the epic's total.

Activity

  1. added
    mvp
    docs-backlog
    on Nov 7, 2026
  2. self-assigned this
    on Nov 8, 2026
  3. athvin commented on Nov 8, 2026

    @athvin
    OwnerAuthor

    Claimed — working in #829 (draft). Closing that PR releases the claim.

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

Metadata

Metadata

Assignees

Labels

docs-backlogmvp

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions