Right now, our order actions are scattered and confusing. We're going to create one intuitive action block that shows exactly what users can do, when they can do it.
Core Functionality:
- Create a unified "Order Actions: [ORDER STATE]" block in the top sidebar
- Actions dynamically show/hide based on order state (Draft vs Completed)
- Replace page navigation with elegant modal forms - no more jarring page jumps
- Disabled actions get grouped under "Unavailable for [ORDER STATE] orders" - crystal clear
Action Behaviors by State:
Draft Orders:
✅ Reassign order (modal)
✅ Add order item (modal)
✅ Apply coupon (modal)
✅ Place order (modal)
✅ Cancel order (modal)
❌ Resend receipt (disabled - grouped in unavailable section)
Completed Orders:
✅ Resend receipt (modal)
✅ Reassign order (modal)
❌ Add order item (disabled)
❌ Apply coupon (disabled)
❌ Place order (hidden)
❌ Cancel order (hidden)
Technical Notes:
- Primarily UI/UX changes with modal implementations
- Modify onClick events to trigger modals instead of page navigation
- Reference attached wireframes for state-specific layouts
Success Criteria: Users should instantly understand what they can do with any order, without thinking twice.
| Comment | File | Size | Author |
|---|---|---|---|
| b9be2174-dcbf-4978-a605-f38eff8d318c.png | 67.6 KB | khiminrm | |
| 8e7b63a8-6b95-4897-a6ad-fd74ab435430.png | 53.57 KB | khiminrm |
Issue fork commerce-3551783
Show commands
Start within a Git clone of the project using the version control instructions.
Or, if you do not have SSH keys set up on git.drupalcode.org:
Comments
Comment #4
jsacksick commented