Skip to content

Batch surfaces: success-filled list bar, and a single-job batch detail without the job layer #789

Description

@JArmandoAnaya

Two batch surfaces change shape, and the leftovers of the job-accordion change (#783) are settled with them.

The list bar

The batches list draws each row's annotation progress as a success fill on a muted track with a border hairline, 8 px tall, so an empty bar reads as an empty track rather than as nothing. The batch detail header draws the same bar. Per-job bars in a multi-job accordion take the same variant. Ingest and model-download bars keep the primary fill they have today. A draft row shows the empty track and the words "Not approved yet" instead of a count of work that does not exist yet.

The batch detail with exactly one job

A batch with one job renders no job accordion and no job-level bar. The job's controls — Continue (or Annotate / View by job state), Pre-label, and the assignee — sit at batch level under the header, with the status filter, Order, the segment strip and the frame grid below them. The batch bar is the only progress bar on the page; the strip is the breakdown. With one job the assignee shows as an inline editable line ("Assigned to " / "Unassigned") rather than a button.

A batch with two or more jobs keeps the accordion as it is at 9399430, each header showing its assignee, and "Assign" stays a button in the open panel.

In scope from the accordion change

The three items PR #783 recorded as found but not fixed are part of this issue, not separate ones: the JobPanels and GalleryScreen import cycle; a closed panel's header pointing aria-controls at an unmounted node, and the per-job filter and selection resetting when the open job changes; and BatchOut.of supplying a default for pre_label_run instead of reading it. Feedback.tsx also leaves forwardRef while it is being edited.

The rule in the information-architecture skill that reads "the gallery is an accordion of jobs" and "the gallery header carries the transition and nothing that opens the editor" is amended in the same pull request, together with the product docs that restate it.

Done means

Every test that asserted the old shape is rewritten to assert the new one or listed in the PR body as a revoked guard with its reason; none is deleted silently or skipped. No document describes the old shape. Nothing from this work is left for a later issue.

Activity

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

    frontendannotator / ui-core / app packagesui-corefrontend/ui-core work

    Type

    No type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions