ZDDC/tests
ZDDC 0847c7a844 feat(classifier): paste a "current name" column → match files by name
Add a 4th paste column and use it to assign tracking numbers reliably. The old
auto-matcher keyed on "the tracking number appears in the filename" — backwards
for unorganized files that don't yet carry their number. The pasted current name
is an authoritative join key the user already has.

- parsePastedRows: FIXED schema by position — tracking_number · rev (status) ·
  title · current name. Dropped the variant guessing (status-column merge,
  single-filename split); a header row is still skipped, trailing columns may be
  omitted. Rows carry currentName.
- proposeMatches: PRIMARY signal is now the current name (nameScore: exact on the
  normalized, extension-dropped key = conf 1; token-coverage 0.6–0.95; clean
  substring 0.7), FALLBACK is the old tracking-in-filename heuristic for rows
  without a current name. Each proposal carries `auto` — true only for an exact
  1:1 match (unique conf-1 for both its file and its row), the only kind safe to
  assign unprompted. Duplicate names → not auto.
- Paste dialog: 4th preview column; on Add, exact 1:1 matches are auto-assigned
  and a summary toast points to Match names for the rest. Match dialog pre-checks
  only the exact matches, shows confidence + name/tracking#, flags the review-only
  ones. New read-only "Current name" column in the worklist table.

Tests: fixed-schema parse, current-name exact(auto)+token match, ambiguous
duplicate (not auto), and the tracking fallback still holds. Suite 342 green.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
2026-06-15 08:52:48 -05:00
..
data ZDDC: document-control tools + zddc-server 2026-06-11 13:32:31 -05:00
fixtures ZDDC: document-control tools + zddc-server 2026-06-11 13:32:31 -05:00
lib ZDDC: document-control tools + zddc-server 2026-06-11 13:32:31 -05:00
archive-cascade.spec.js ZDDC: document-control tools + zddc-server 2026-06-11 13:32:31 -05:00
archive.spec.js ZDDC: document-control tools + zddc-server 2026-06-11 13:32:31 -05:00
browse.spec.js chore: clear tech debt — green the suite + delete dead code 2026-06-13 12:02:51 -05:00
build-label.spec.js ZDDC: document-control tools + zddc-server 2026-06-11 13:32:31 -05:00
cap.spec.js feat(server,shared): tell denied users who can — subtly, before wasted effort 2026-06-12 14:58:20 -05:00
classifier.spec.js ZDDC: document-control tools + zddc-server 2026-06-11 13:32:31 -05:00
classify.spec.js feat(classifier): paste a "current name" column → match files by name 2026-06-15 08:52:48 -05:00
conflict.spec.js ZDDC: document-control tools + zddc-server 2026-06-11 13:32:31 -05:00
diff.spec.js ZDDC: document-control tools + zddc-server 2026-06-11 13:32:31 -05:00
form-safety.spec.js ZDDC: document-control tools + zddc-server 2026-06-11 13:32:31 -05:00
landing.spec.js ZDDC: document-control tools + zddc-server 2026-06-11 13:32:31 -05:00
logo.spec.js ZDDC: document-control tools + zddc-server 2026-06-11 13:32:31 -05:00
schema.spec.js ZDDC: document-control tools + zddc-server 2026-06-11 13:32:31 -05:00
tables-mdl.spec.js feat(tables): "Add from archive" on the project MDL rollup 2026-06-11 15:48:22 -05:00
tables.spec.js ZDDC: document-control tools + zddc-server 2026-06-11 13:32:31 -05:00
toast.spec.js chore: clear tech debt — green the suite + delete dead code 2026-06-13 12:02:51 -05:00
tokens.spec.js chore: clear tech debt — green the suite + delete dead code 2026-06-13 12:02:51 -05:00
transmittal-drag-drop.spec.js ZDDC: document-control tools + zddc-server 2026-06-11 13:32:31 -05:00
transmittal-init-check.spec.js ZDDC: document-control tools + zddc-server 2026-06-11 13:32:31 -05:00
transmittal-validation.spec.js ZDDC: document-control tools + zddc-server 2026-06-11 13:32:31 -05:00
transmittal.spec.js ZDDC: document-control tools + zddc-server 2026-06-11 13:32:31 -05:00
zddc-filter.spec.js ZDDC: document-control tools + zddc-server 2026-06-11 13:32:31 -05:00
zddc-source.spec.js ZDDC: document-control tools + zddc-server 2026-06-11 13:32:31 -05:00
zddc.spec.js ZDDC: document-control tools + zddc-server 2026-06-11 13:32:31 -05:00