Skip to content

fix: hide history load more when no next page#240

Open
momocentral wants to merge 1 commit into
mainfrom
fix/160-hide-load-more-history
Open

fix: hide history load more when no next page#240
momocentral wants to merge 1 commit into
mainfrom
fix/160-hide-load-more-history

Conversation

@momocentral

@momocentral momocentral commented May 23, 2026

Copy link
Copy Markdown
Collaborator

Summary

  • stop History pagination when the last loaded page contains fewer alerts than the configured page size
  • hide the Load more alerts button when there is no next page

Closes #160

Tests

  • pnpm exec eslint src/pages/HistoryPage.tsx --no-warn-ignored
  • git diff --check
  • pnpm build

See screenshot below. Load more history button doesn't appear when there's no more "next page"

Screenshot 2026-05-23 at 10 26 27 PM

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: No status

Development

Successfully merging this pull request may close these issues.

Button "Load more alerts" must not be displayed when there is less alerts than the initial max number of alert to display

2 participants