Skip to content

Dashboard: clear the time ticker selection when other rows are shown, and confirm Delete Selected - #303

Merged
msx752 merged 2 commits into
developfrom
fix/dashboard-selection-and-bulk-delete
Nov 26, 2026
Merged

msx752 merged 2 commits into
developfrom
fix/dashboard-selection-and-bulk-delete

Conversation

@msx752

@msx752 msx752 commented Nov 26, 2026

Copy link
Copy Markdown
Owner

On the Time Tickers page, the row selection was kept when the page, the page size or a filter changed. "Delete Selected" was still offered and deleted rows that were no longer on screen, without asking: a row selected on page 1 was deleted from page 2 with one click.

Change

  • The selection is cleared when the operator shows other rows (page, page size, search, status filter, Clear).
  • After each reload (a live update, a delete elsewhere), the selection keeps only the rows that are still shown.
  • Delete Selected opens a confirmation that says how many time tickers it deletes ("Delete 1 time ticker? … This cannot be undone."). The selection is taken and cleared before the request, so a second click sends nothing; it is put back if the request fails.

What does not change

  • The batch delete endpoint, single-row delete, Select All, the server.

Testing

  • In a browser (sample app, 25 seeded time tickers):
    • before: select a row on page 1, go to page 2, "Delete Selected (1)" deletes the unseen row without a confirmation;
    • after: on page 2 there is no Delete Selected; on page 1 it asks first, Cancel keeps the row, "Delete 1" deletes it; three time tickers added from outside push the selected row to page 2 and the selection is dropped.
    • A mutant without the clear on page change shows "Delete Selected (1)" on page 2 again.
  • The dashboard suite passes (330 tests), vue-tsc --build clean, no new lint messages, every .NET test project passes, the scenario solution builds.
  • An independent review of the diff; its finding (live reloads kept rows that left the page selected) is fixed in the second commit.

… and confirm Delete Selected

The selection of the Time Tickers page was kept when the page, the page
size or a filter changed. "Delete Selected" was still offered and deleted
rows that were no longer on screen, without asking.

The selection is now cleared whenever the page, the page size or the
filters change, and Delete Selected opens a confirmation that says how
many time tickers it deletes.
… a reload

A live update or a delete elsewhere reloads the page and can move a
selected row off it. After each load, the selection keeps only the rows
that are still shown. Delete Selected takes and clears the selection
before its request, so a second click sends nothing, and puts it back if
the request fails.
@msx752
msx752 merged commit 1cce609 into develop Nov 26, 2026
6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant