Loyal-Young opened a new pull request, #5790: URL: https://github.com/apache/rocketmq-dashboard/pull/5790
## What is the purpose of the change Fixes #5783. Recover query-history pagination when a new instance or a reopened drawer has fewer records than the selected page. Both message and trace history use the same fixed page size. ## Brief changelog - Clamp an out-of-range page using the returned total and reload the valid page. - Hide the page-size selector because requests are fixed at 20 records. - Cover both history tabs and the fixed-size pagination UI. ## Verifying this change - Reproduced the invalid page request for both tabs and the unsupported page-size selector before the fix. - All 9 MessageQueryHistoryDrawer tests passed after the fix. - TypeScript app check, changed-file ESLint, and git diff --check passed. - Full app build and backend tests were not rerun. ## Related work Checked #5156: its deletion-specific page adjustment does not handle a successful response with a reduced total after changing instance. This change does not add delete or clear operations. ## AI assistance AI assisted with tracing pagination state, drafting the bounded fix and component regressions, and checking test output. Tests exercise the rendered drawer and outgoing query parameters. -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
