Skip to content

[fix] keep monitor selection across pages in monitor list#4170

Open
Duansg wants to merge 5 commits into
apache:masterfrom
Duansg:fix-4164
Open

[fix] keep monitor selection across pages in monitor list#4170
Duansg wants to merge 5 commits into
apache:masterfrom
Duansg:fix-4164

Conversation

@Duansg

@Duansg Duansg commented Jun 21, 2026

Copy link
Copy Markdown
Member

What's changed?

close #4164

Batch-selecting hosts across pages didn't work — paging cleared the previous page's checkboxes.

Fix

fix the selection set was wiped on every page load. Now it persists across pagination/refresh and only resets when the filter (app/label/search) changes.

Improve

  1. Show a live "N selected" count with a one-click Clear, so the cross-page selection stays visible and easy to reset.
  2. Move the pagination feature to the bottom of the list so users no longer have to scroll back to the top to load the next page.
  3. Keep the select-all / count / clear together in the bottom-left, shown only when at least one item is selected. i18n added for 5 locales.

Testing

The existing features have been tested and all passed: (cross-page) export, import, (cross-page) bulk pause, (cross-page) bulk resume, clear, etc

Checklist

  • I have read the Contributing Guide
  • I have written the necessary doc or comment.
  • I have added the necessary unit tests and all cases have passed.

Add or update API

  • I have added the necessary e2e tests and all cases have passed.
Jun-21-2026 11-59-04

Duansg added 5 commits June 20, 2026 08:49
The batch-select checkboxes lost their checked state when paging: every
table reload (pagination, auto-refresh, post-CRUD) eagerly cleared
checkedMonitorIds, so selections made on a previous page disappeared.

Persist the selection Set across reloads and only reset it when the
result set actually changes (filter/app/label switch). The header
"select all" is now a getter computed over the current page, toggling
only this page's selectable monitors, and batch ops deselect just the
ids they acted on.
…election

With selection now persisting across pages, users could not tell how many
monitors were selected or deselect them without paging back. Show a live
"N selected" count and a one-click clear in the list header (i18n in 5
locales) so the cross-page selection stays visible and easy to reset.
The pager sat above the card list, so after scrolling through a page the
user had to scroll back up to load the next one. Move it below the list
and show page numbers plus the total count, matching the usual list
pagination placement.
A bare checkbox sitting alone in the list header looked out of place when
nothing was selected. Add a "Select this page" label (i18n in 5 locales)
so it reads as a clear action.
Consolidate the select-all checkbox, selected count and clear action into
the footer next to the pager, removing the near-empty top header. All
list controls now live in one row at the bottom: selection on the left,
pagination on the right.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[BUG] Issue of selector missing when selecting across pages in the monitoring list

1 participant