-
-
Notifications
You must be signed in to change notification settings - Fork 7.6k
Group reordering causes incorrect expansion state of adjacent groups when pausing/resuming #6781
Description
📑 I have found these related issues/pull requests
Description:
When pausing or resuming a group, the group is automatically moved to the top or bottom of the sorted list.
If the group was expanded before the operation, this reordering causes unexpected changes to the expansion state of adjacent groups.
Observed behavior:
-
When pausing a group:
- The group below the paused group becomes expanded automatically
-
When resuming a group:
- The group above the resumed group becomes expanded automatically
This happens even though those adjacent groups were not interacted with.
Expected behavior:
- Pausing or resuming a group should not affect the expanded/collapsed state of other groups
- Group expansion state should remain consistent regardless of automatic reordering
Notes:
- The issue only occurs when the group was expanded before pausing or resuming
- The behavior is likely related to list reordering and state reuse
🛡️ Security Policy
- I have read and agree to Uptime Kuma's Security Policy.
📝 Description
When a group is paused or resumed, it is automatically moved to the top or bottom of the sorted group list.
If the group was expanded before the operation, this reordering causes the expanded/collapsed state of adjacent groups to change unexpectedly.
The issue results in unrelated groups being expanded without user interaction.
👟 Reproduction steps
- Create multiple groups.
- Expand one group (Group A).
- Ensure there is another group directly above or below Group A.
- Pause Group A.
- Observe the expansion state of the group that is now adjacent to Group A.
- Resume Group A.
- Observe the expansion state of the group adjacent to Group A again.
👀 Expected behavior
- Pausing or resuming a group should not affect the expanded/collapsed state of other groups.
- Group expansion states should remain consistent regardless of automatic reordering.
😓 Actual Behavior
- When pausing a group, the group that was originally below it becomes expanded automatically.
- When resuming a group, the group that was originally above it becomes expanded automatically.
- This occurs without any direct user interaction with those groups.
🐻 Uptime-Kuma Version
2.0.2
💻 Operating System and Arch
Red Hat Enterprise Linux 8.7 64bit
🌐 Browser
Google Chrome 143.0.7499.193