Description
Currently, to reorder sequence steps in the builder, users must manually change step order settings. We want to implement a smooth drag-and-drop feature to reorder campaign steps visually.
User & Contributor Value
- Contributors: Frontend list manipulations, drag-and-drop event APIs, and sync state updates.
- Users: Significantly improved campaign building experience.
Code Locations
- frontend/campaign-builder.html
Implementation Guide
- Enable
draggable="true" on campaign step cards.
- Listen to drag-and-drop events (
dragstart, dragover, drop). Reorder the steps array in memory based on where the card was dropped.
- Re-render the editor steps layout and trigger a PATCH request to save the updated
step_order values.
Description
Currently, to reorder sequence steps in the builder, users must manually change step order settings. We want to implement a smooth drag-and-drop feature to reorder campaign steps visually.
User & Contributor Value
Code Locations
Implementation Guide
draggable="true"on campaign step cards.dragstart,dragover,drop). Reorder the steps array in memory based on where the card was dropped.step_ordervalues.