Board: drag a card between columns #35
Labels
No labels
accessibility
authentication
breaking change
bug
documentation
enhancement
interface
internationalisation
observability
security
tier
1
tier
2
tier
3
tier/4
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
Postulo/postulo#35
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Why
Moving a card on the board is a
<select>on the card (applications/partials/application_card.html, lines 34–37) that submits its form as soon as it changes, through thedata-autosubmithandler inapp.js. It works, it needs no JavaScript of consequence, and it feels like filling in a form rather than moving a card. A board is asked to be dragged.Shape
app.jslike everything else there:dragstarton[data-card],dragoveranddropon[data-board-column]. No library, no inline handlers (the CSP forbids them), about sixty lines.<select>to the column's status andrequestSubmit()the form that is already there. The server path is unchanged —applications:status, throughchange_status, so the timeline event is written exactly as before.Classification
Enhancement. Not breaking: progressive, on top of the form that already works.
Open questions