Skip to content

fix(admin-panel): go back to the first page when a table refresh finds its page empty - #1239

Merged
sven-n merged 2 commits into
masterfrom
claude/pr995-datatable-first-page
Oct 18, 2026
Merged

sven-n merged 2 commits into
masterfrom
claude/pr995-datatable-first-page

Conversation

@sven-n

@sven-n sven-n commented Oct 17, 2026

Copy link
Copy Markdown
Member

Split out of #995 (original commit by @OviedoMarcelo, authorship kept).

Problem

A DataTable reloads its current page when the data service raises DataChanged, e.g. after a filter changed. If the filtered results no longer reach that page (example: you're on page 7 of the plugins and filter down to a few entries), the refresh comes back empty. The table then showed no rows, the page number stayed at 7, and nothing indicated why.

Change

If a refresh of a page beyond the first finds no entries, DataTable loads page 1 instead.

Testing

  • New bUnit test DataTableTests.RefreshOfEmptyPage_StartsOverFromFirstPage: navigates to page 3, shrinks the data to 3 items and raises DataChanged. It expects page 1 with 3 rows. The test fails on the old component (page stays 3).
  • dotnet test tests/MUnique.OpenMU.Web.Tests: 243/243 passed.

Generated by Claude Code

OviedoMarcelo and others added 2 commits October 17, 2026 22:26
…s its page empty

After a filter reduced the results (e.g. plugins on page 7), the table showed nothing.

Split out of #995.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
@sven-n
sven-n merged commit ce29bad into master Oct 18, 2026
2 checks passed
@sven-n
sven-n deleted the claude/pr995-datatable-first-page branch October 18, 2026 09:38
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.

3 participants