Skip to content

Conversation

@TheBestPartOfMe
Copy link

@TheBestPartOfMe TheBestPartOfMe commented Oct 24, 2025

❗ Important Announcements

Click here for more details:

⚠️ Please Note: We do not accept all types of pull requests, and we want to ensure we don’t waste your time. Before submitting, make sure you have read our pull request guidelines: Pull Request Rules

🚫 Please Avoid Unnecessary Pinging of Maintainers

We kindly ask you to refrain from pinging maintainers unless absolutely necessary. Pings are for critical/urgent pull requests that require immediate attention.

📋 Overview

  • What problem does this pull request address?
    • Existing monitoring entities cannot be sorted into groups using drag and drop.
  • What features or functionality does this pull request introduce or enhance?
    • Elements should be able to be dragged and dropped into and out of groups to enable intuitive sorting and restructuring.

🛠️ Type of change

  • 🐛 Bugfix (a non-breaking change that resolves an issue)
  • ✨ New feature (a non-breaking change that adds new functionality)
  • ⚠️ Breaking change (a fix or feature that alters existing functionality in a way that could cause issues)
  • 🎨 User Interface (UI) updates
  • 📄 New Documentation (addition of new documentation)
  • 📄 Documentation Update (modification of existing documentation)
  • 📄 Documentation Update Required (the change requires updates to related documentation)
  • 🔧 Other (please specify):
    • Provide additional details here.

📄 Checklist

  • 🔍 My code adheres to the style guidelines of this project.
  • 🦿 I have indicated where (if any) I used an LLM for the contributions
  • ✅ I ran ESLint and other code linters for modified files.
  • 🛠️ I have reviewed and tested my code.
  • 📝 I have commented my code, especially in hard-to-understand areas (e.g., using JSDoc for methods).
  • ⚠️ My changes generate no new warnings.
  • 🤖 My code needed automated testing. I have added them (this is an optional task).
  • 📄 Documentation updates are included (if applicable).
  • 🔒 I have considered potential security impacts and mitigated risks.
  • 🧰 Dependency updates are listed and explained.
  • 📚 I have read and understood the Pull Request guidelines.

📷 Screenshots or Visual Changes

image

@TheBestPartOfMe
Copy link
Author

I hope it's okay if I add the screenshots once I've implemented the issue.

I'm also unsure whether I should have marked the request as a draft and whether the correct branch has been selected as the target, but according to the contributing guidelines, I understand that I should have done so.

Issue #6196 describes the whole thing very clearly in my opinion, but I am open to further comments.

@TheBestPartOfMe TheBestPartOfMe force-pushed the feature/drag-and-drop-for-groups branch from c7ca4be to 5862ea6 Compare October 25, 2025 11:50
@TheBestPartOfMe
Copy link
Author

I used GitHub Copilot to assist with parts of the code implementation, and ChatGPT for refining comments.
Where should I indicate that? Directly as comments in code or should I list the comments in the pull request? I'm sorry, this is my first time and I don't want to post this unmarked here.

@CommanderStorm
Copy link
Collaborator

CommanderStorm commented Oct 25, 2025

The empty draft pr is only necessary for larger scale changes (where a short discussion saves lots of Dev time on both sides).
This PR does not require it.

The "have you used AI" is to give a reviewer a heads up what to look out for.
Humans make much different messes than LLMs.
It was primarily designed to cut down on slop, but I don't think it is as effective as we hoped.

Both parts could be worded clearer, I do not have the best technical writing skills yet

@TheBestPartOfMe TheBestPartOfMe marked this pull request as ready for review October 25, 2025 20:17
@cyril59310
Copy link
Contributor

I tested the PR and didn’t encounter any particular issues with its functionality.
However, I’d like to suggest an improvement to the visual effect, because in its current state, it’s not very intuitive. If you don’t already know that this feature exists, it’s not obvious that you can drag and drop into another group
image

@TheBestPartOfMe TheBestPartOfMe force-pushed the feature/drag-and-drop-for-groups branch from 83dd420 to 4617984 Compare October 26, 2025 10:46
@TheBestPartOfMe
Copy link
Author

I tested the PR and didn’t encounter any particular issues with its functionality. However, I’d like to suggest an improvement to the visual effect, because in its current state, it’s not very intuitive. If you don’t already know that this feature exists, it’s not obvious that you can drag and drop into another group image

Thank you for the feedback!
I agree that the current visual effect may not be intuitive enough for users who are unfamiliar with the drag-and-drop grouping feature.
A helpful next step might be to add a tooltip or subtle help text visible to the user during the drag operation.
This would likely also require i18n support.
Would this be worth a new issue in terms of scope, or should I implement it here?

@cyril59310
Copy link
Contributor

cyril59310 commented Oct 26, 2025

I agree that the current visual effect may not be intuitive enough for users who are unfamiliar with the drag-and-drop grouping feature.
A helpful next step might be to add a tooltip or subtle help text visible to the user during the drag operation.
This would likely also require i18n support.
Would this be worth a new issue in terms of scope, or should I implement it here?

Here’s an example of something that could make the visuals nicer:

When you pick up a monitor, the groups could be slightly highlighted.
image

And when hovering over a group with the monitor, that group could be emphasized with a small tooltip saying 'Drop here' to indicate to the user that it can be dropped into that group
image

@TheBestPartOfMe
Copy link
Author

All right, I'll try to implement it something like that. Should I just ping you when I've made the commit? It'll probably be tonight :D

@cyril59310
Copy link
Contributor

All right, I'll try to implement it something like that. Should I just ping you when I've made the commit? It'll probably be tonight :D

You can just make the commit, I’ll be notified 😉

Copy link
Collaborator

@CommanderStorm CommanderStorm left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice work!

lets add the correct pointer.
Otherwise people won't know this is draggable and this fixes 95% of the "knowing the feature exists" issue 😉

I would merge with the pointers fixed.
The dropzone being highlighted like @cyril59310 noted would be going above and beyond and improve the UX a ton.
(no need to spend tons of time on the tooltip if this turns out being difficult, the highlighting should not be so difficult likely)

@CommanderStorm CommanderStorm added A:ui/ux Issues or PRs related to the interface and User Experience issues and removed looking-for-testers labels Oct 26, 2025
@TheBestPartOfMe TheBestPartOfMe force-pushed the feature/drag-and-drop-for-groups branch from 1fbb582 to 464bf2d Compare October 26, 2025 20:31
@CommanderStorm CommanderStorm added the pr:please address review comments this PR needs a bit more work to be mergable label Oct 27, 2025
@TheBestPartOfMe TheBestPartOfMe force-pushed the feature/drag-and-drop-for-groups branch 2 times, most recently from c960cf9 to 180150a Compare October 27, 2025 14:36
…g monitors

Implements Issue louislam#6196. Allows monitors to be reorganized into groups
using drag-and-drop. Includes socket sync and local state updates with
fallback handling for failed emits.
…ariable

Replaced the previous custom cyan color with the primary theme color for better consistency with the existing Uptime Kuma design.
Allows group elements to be moved via drag and drop, similar to monitors.
- Introduce .draggable-item CSS class for draggable elements
- Set cursor to 'grab' on hover and 'grabbing' while dragging
@TheBestPartOfMe TheBestPartOfMe force-pushed the feature/drag-and-drop-for-groups branch from 180150a to 001ad62 Compare October 27, 2025 17:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

A:ui/ux Issues or PRs related to the interface and User Experience issues pr:please address review comments this PR needs a bit more work to be mergable

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Drag & drop feature for groups

4 participants