Collect run bar
Outside the canonThe bar across the top of an invoice while you go through a list of them one at a time (2026-11-12, after the By invoice review, whose reference was HubSpot's task queue). Left: back to the list and "Collecting payments" with what the run has done so far. Right: Previous, "Invoice 3 of 12", and one forward action — Skip while nothing has been done to the invoice, Next once something has (a payment, a credit applied, a payment request, the invoice emailed). It never moves on by itself: after a payment you may still email the invoice or sync the payment. Skip is tertiary; Next is the primary, since by then the panel's Charge has gone. On the last invoice they read "Skip and finish" and "Finish". A 2px navy line along its foot shows how far the run has got. Sticky: under the App band below lg, at the top of the page card from lg; 64px. In context: open any order on Collect payments › By invoice, or Start collecting. Outside the canon vocabulary.
App: Collect::RunBarComponent (suggested): links for Previous, Skip and Next (Skip a small form recording the skip), the position from the list's GET params. No Stimulus.
First invoice, nothing done yet
#startPrevious is disabled and the forward action is Skip. Try it: Skip moves on, "Take a payment" turns Skip into Next, Previous goes back.
After a payment
#after-paymentNext is the primary, and the run's line says what it has collected. It waits: email the invoice or sync the payment first if you want to.
Last invoice
#lastSkip and finish (or Finish, once something was done) ends the run and goes back to the list.
Props
| Name | Type | Default | Notes |
|---|---|---|---|
| back_href | string | — | Required. The list it returns to, with its query |
| back_label | string | — | Required. "By invoice" |
| position | number | — | Required. 1-based |
| total | number | — | Required |
| progress | string | — | What the run has done: "$2,345.00 collected · 1 skipped". Hidden below md |
| done_ratio | number | — | Required. Done or skipped over the total, 0 to 1: the navy line |
| onPrevious | () => void | — | Undefined on the first invoice, which disables Previous |
| handled | boolean | — | Required. Something was done to this invoice: Next instead of Skip |
| last | boolean | — | Required. Skip and finish / Finish |
| onSkip | () => void | — | Required |
| onNext | () => void | — | Required |