Skip to content

order: filter the order list by status, search it, and keep each order's history with Undo - #1670

Merged
jlcjak merged 1 commit into
mainfrom
backplane/admin-filters
Nov 24, 2026
Merged

jlcjak merged 1 commit into
mainfrom
backplane/admin-filters

Conversation

@jlcjak

@jlcjak jlcjak commented Nov 24, 2026

Copy link
Copy Markdown
Collaborator

The order list showed every order but open checkouts in one long page, most
of them checkouts that expired unpaid, and each with a status form whose
Save wrote at once with nothing kept. One Save turned an expired, never-paid
checkout into "paid" and nothing said what it had been before.

  • Tabs by status with counts: To do (paid, placed, shipped; the default),
    each status alone, Open checkouts, Expired checkouts, All. A checkout
    nobody paid is told apart from an order cancelled after paying.
  • A search box: every word must appear in the project, order or quote id,
    customer name, email, phone, address, country, tracking or note.
  • Every status, tracking or note change (the list's and Stripe's) goes in a
    new order_log table, shown as History on the order, with "Undo: back to
    " for the list's newest change. Stripe's are never undone.
  • A checkout nobody paid has no status form, and the server refuses to
    change it: only Stripe moves it.
  • Save and Undo return to the view they came from (checked: only /admin
    views, never another site). An unchanged Save writes nothing.

Tested: the order server suite (36 passed), with a new test for the views,
counts, search, the never-paid refusal, history, Undo, the return URL and
the admin cookie.

🤖 Generated with Claude Code

…r's history with Undo

The order list showed every order but open checkouts in one long page, most
of them checkouts that expired unpaid, and each with a status form whose
Save wrote at once with nothing kept. One Save turned an expired, never-paid
checkout into "paid" and nothing said what it had been before.

- Tabs by status with counts: To do (paid, placed, shipped; the default),
  each status alone, Open checkouts, Expired checkouts, All. A checkout
  nobody paid is told apart from an order cancelled after paying.
- A search box: every word must appear in the project, order or quote id,
  customer name, email, phone, address, country, tracking or note.
- Every status, tracking or note change (the list's and Stripe's) goes in a
  new order_log table, shown as History on the order, with "Undo: back to
  <status>" for the list's newest change. Stripe's are never undone.
- A checkout nobody paid has no status form, and the server refuses to
  change it: only Stripe moves it.
- Save and Undo return to the view they came from (checked: only /admin
  views, never another site). An unchanged Save writes nothing.

Tested: the order server suite (36 passed), with a new test for the views,
counts, search, the never-paid refusal, history, Undo, the return URL and
the admin cookie.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@jlcjak
jlcjak merged commit 689a5b7 into main Nov 24, 2026
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant