Skip to content
Submitted 19 days ago

Kanban board with Svelte 5, Tailwind v4, pointer-event drag and drop

svelte, tailwind-css, vite, playwright, accessibility
P
LVL 4
@ounokoya
A solution to the Kanban task management web app challenge

Solution retrospective


What are you most proud of, and what would you do differently next time?

I'm most proud of the drag and drop. It is written with pointer events and no library, and it works with the mouse, with touch (hold a card for 300 ms to pick it up, otherwise the board scrolls) and with the keyboard (Alt + arrow keys); every move is announced to screen readers. The 116 tests were written before the code, from a spec built on the Figma file, and their first run found real bugs. Next time I would compare the design's content with data.json earlier: a few counters and one subtask differ between the mockup and the data, and some of my tests first copied the mockup's values.

What challenges did you encounter, and how did you overcome them?

Touch: sliding a finger on a card should scroll the board, while a long press should drag it. The card keeps the browser's default touch-action, and a non-passive touchmove listener cancels the scroll only once a drag has started. Another one: in the design, the task menu overflows the "View Task" dialog, but a dialog that scrolls clips its content. The tests missed it because the menu buttons stayed inside the dialog; a walk-through in a real browser caught it, and the menu is now positioned in the window, under its button, with a test that checks its four corners.

What specific areas of your project would you like help with?

Feedback is welcome on the drag and drop on real touch devices, iOS Safari in particular, and on the keyboard alternative: are Alt + arrow keys easy enough to discover, or would a "Move to..." option in the task dialog be clearer?

Code
Loading...

Please log in to post a comment

Log in

Community feedback

No feedback yet. Be the first to give feedback on Koya Esdras’s solution.

Join our Discord community

Join thousands of Frontend Mentor community members taking the challenges, sharing resources, helping each other, and chatting about all things front-end!

Join our Discord