Products · Human Review V1

Human review

Review only the fields the system is unsure about, with the evidence beside each one.

Version 1 · A person checks flagged fieldsDesigned, not builtModule 5 of 15

DesignUI ComponentsSections

UI Components Live gallery

What the Human Review service ships for apps to use, as the package packages/ui-review.

Each built component is shown live, from its package, in each of its states. Pick a state to see it; every state has its own stand-in for the service's API, with made-up data (CORE-V1-E0-19).

  • Components call only the Human Review API. Re-checking values against document rules is the app's step, through the LLM Extraction service.
  • They ship as the package packages/ui-review and work for any set of fields: labels come from field names, checks from field types.
  • Keyboard on desktop: Enter accepts, E edits, ↓ moves to the next field, with the shortcuts listed on screen. On phones every action is a button at least 44 pixels tall.
  • Evidence (the quote and page) is always beside the value it supports.
  • Every request has a loading state that keeps the layout still, and a failure state with a plain-language message and a retry.
  • Keyboard reachable, visible focus, labelled controls, progress announced to screen readers, WCAG AA contrast, usable at 320 pixels wide, in light and dark mode.

ReviewQueue

The task's fields, flagged first, each with its value, reason, evidence and the three decisions, with the 'N of M resolved' counter.

Inputs

taskIdstring
The task.
showAllboolean, optional
Include unflagged fields. Default false; a 'Show all fields' toggle is built in.
allowShowAllboolean, optional
Whether the 'Show all fields' toggle is offered. Default true; an app can hide it, for example until something is paid for.

States

  • Loading: placeholder rows
  • Open: fields with their status
  • All resolved: a short 'All checked' message
  • Completed: marked 'Finished', values still editable
  • Failed: 'Couldn't load this review.' and Retry

Calls

  • GET /tasks/{taskId}

FieldDecision

One field's value with Accept, Edit and Not on document; the edit box checks the value as the person types.

Inputs

fieldField
The field.
onDecided(field) => void
Called after the decision is saved.

States

  • Pending
  • Editing, with the format hint for the field's type
  • Invalid: the message under the box
  • Saving: buttons disabled
  • Decided: accepted, edited (shows original and new) or not present
  • Failed: the message and Retry

Calls

  • PATCH /tasks/{taskId}/fields/{fieldId}

ResolvedCounter

'N of M resolved', with a bar.

Inputs

resolved, totalnumbers
From the task.

States

  • Partly resolved
  • All resolved

Calls

  • None.

CompleteReviewButton

Completes the task; disabled until every flagged field is decided. Can carry the person's confirmation that failing values are as printed.

Inputs

taskIdstring
The task.
checksOverriddenboolean, optional
Set by the app when the person confirmed.
onCompleted(result) => void
Called with the final values.

States

  • Disabled with 'N fields left'
  • Ready
  • Working
  • Completed
  • Failed: the message and Retry

Calls

  • POST /tasks/{taskId}/complete

EvalCandidatesTable

For an admin, inside the app: corrections with both values, Approve and Reject.

Inputs

statusstring, optional
Which candidates to show. Default candidate.

States

  • Loading
  • Empty: 'No corrections waiting.'
  • Loaded
  • Deciding
  • Not an admin: 'Not found'
  • Failed: Retry

Calls

  • GET /admin/eval-candidates
  • PATCH /admin/eval-candidates/{candidateId}

AccuracyReport

For an admin: per field, how often people corrected it and how well flagging caught it, as numbers only.

Inputs

sincedate, optional
Start of the period. Default 30 days ago.

States

  • Loading
  • Shown
  • Empty: 'No reviews in this period.'
  • Not an admin: 'Not found'
  • Failed: Retry

Calls

  • GET /admin/accuracy