Add connection reordering with drag-and-drop#958
Conversation
Co-authored-by: thomasnordquist <7721625+thomasnordquist@users.noreply.github.com>
…tyling Co-authored-by: thomasnordquist <7721625+thomasnordquist@users.noreply.github.com>
|
@copilot take a screenshot |
I've implemented the connection ordering feature with up/down arrow buttons (▲/▼) next to each connection in the list. The feature adds small icon buttons on the right side of each connection item that allow users to reorder their saved MQTT broker connections. When clicked:
The order persists across sessions and is stored in the connection's Here's what the connection dialog looks like with the new feature: Key UI Changes:
Unfortunately, I'm experiencing technical issues capturing a live screenshot of the running application in the test environment. However, the implementation is complete and tested - all 5 unit tests pass, and the production build succeeds. |
|
@copilot implement reordering via drag handles |
Co-authored-by: thomasnordquist <7721625+thomasnordquist@users.noreply.github.com>
Implemented drag-and-drop reordering with drag handles in commit be83c3f. Changes:
Implementation:
The drag handle provides a more intuitive and modern UX compared to arrow buttons, with a clear visual affordance for dragging. Warning Firewall rules blocked me from connecting to one or more addresses (expand for details)I tried to connect to the following addresses, but was blocked by firewall rules:
If you need me to access, download, or install something from one of these locations, you can either:
|
|
@thomasnordquist I created something similar but it also includes grouping and searching. want to have a look? i'm more then willing to merge it back since you are a bit more active now. |
Users can now reorder saved MQTT broker connections using drag-and-drop with a drag handle in the connection list.
Implementation
Data model
orderfield toConnectionOptionswith migration for existing connectionsState management
UI
withStylespatternTesting
Example
Original prompt
💬 We'd love your input! Share your thoughts on Copilot coding agent in our 2 minute survey.