Repository navigation
order: filter the order list by status, search it, and keep each order's history with Undo - #1670
Merged
Merged
Conversation
…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>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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.
each status alone, Open checkouts, Expired checkouts, All. A checkout
nobody paid is told apart from an order cancelled after paying.
customer name, email, phone, address, country, tracking or note.
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.
change it: only Stripe moves it.
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