Skip to content

fix(web): paginate incident queue results - #60

Open
Pranita1846 wants to merge 2 commits into
Gautam-aman:mainfrom
Pranita1846:fix/issue-9-incident-pagination
Open

Pranita1846 wants to merge 2 commits into
Gautam-aman:mainfrom
Pranita1846:fix/issue-9-incident-pagination

Conversation

@Pranita1846

Copy link
Copy Markdown

Summary

  • Add pagination controls to the incident queue.
  • Load additional incident pages without replacing previously loaded incidents.
  • Preserve previously loaded pages when refreshing the queue.
  • Track pagination state and prevent duplicate incidents.

Testing

  • npm run typecheck
  • npm run test — 62 tests passed
  • npm run build
  • git diff --check

Closes #9

@vercel

vercel Bot commented Oct 21, 2026

Copy link
Copy Markdown

@Pranita1846 is attempting to deploy a commit to the Aman's projects Team on Vercel.

A member of the Team first needs to authorize it.

@Gautam-aman

Copy link
Copy Markdown
Owner

Hey @Pranita1846, thanks for working on this! The pagination approach looks promising, and I appreciate you taking care of preserving loaded incidents during refreshes.

I noticed a few things that need attention before merging:

  1. Changing the search or status filter clears the queue, but doesn't immediately trigger a refresh.
  2. Older requests can still overwrite newer results when filters change or pagination and refresh happen together.
  3. Severity filtering is still page-local, so matching incidents on later pages can become inaccessible.
  4. Could you add regression tests for loading additional pages, filter changes, empty results, and refresh behavior?

Also, please use the existing Tailwind theme classes for the new pagination controls.

Once these are addressed and CI passes, I'll be happy to review it again. Thanks for contributing!

@Pranita1846

Copy link
Copy Markdown
Author

Hi, I've pushed the requested pagination and filtering fixes in commit 7f994b1. The tests, build, and lint passed locally. GitHub is showing three workflows awaiting maintainer approval, and the Vercel deployment requires authorization. Could you please approve the workflows and advise whether the Vercel deployment is required for this PR? Thank you!

@Gautam-aman

Copy link
Copy Markdown
Owner

Hey @Pranita1846, thanks for making the requested changes!

I reviewed the updated PR. The filter refresh, stale-request handling, and new pagination tests are good improvements. I also confirmed that the Web CI is passing.

There are just a few things I'd like us to address before merging:

  1. Severity filtering: The current implementation fetches every remaining page at once. Could we avoid unbounded parallel requests? This could become expensive as the incident count grows.
  2. Search pagination: I noticed the backend currently applies pagination both before and after filtering, which can cause later pages to return empty results even when matches exist. We need to make sure search pagination works correctly end to end.
  3. Regression coverage: Please add tests confirming that polling preserves loaded pages and that the load-more UI handles empty results and the final page correctly.

The remaining contributor-bot and Vercel authorization issues are repository-side, so I'll handle those separately.

Thanks again for the work you've put into this. We're getting close!

@github-actions

github-actions Bot commented Oct 23, 2026 •

Copy link
Copy Markdown

ResQNet Guardian — NEEDS_CHANGES

A reviewer requested changes, the branch has a conflict, or the pull request is still a draft.

  • Pull request: fix(web): paginate incident queue results #60 · head 7f994b1
  • Assignment policy: Linked issue assignment is compliant.
  • Checks: 1 expected check(s) passed.
  • Review: No current-head human approval yet. Approval is tracked separately from readiness.
  • AI review: not enabled — independent AI review is not part of this readiness decision

Findings

Finding Severity Title Detail
pr.merge-conflict blocker Merge conflict The branch conflicts with its base branch. Rebase or merge the base branch and resolve the conflict.
checks.optional-failed.github-actions-validate warning Optional check failed: validate GitHub reported 'failure' for 'validate'. This is repository automation, not a required code test. It is visible here but does not block readiness.
checks.optional-failed.legacy-status-vercel warning Optional check failed: Vercel GitHub reported 'failure' for 'Vercel'. This is Vercel authorization/deployment state, not a required repository test. It is visible here but does not block readiness.
checks.passed info Required checks passed 1 expected check(s) completed successfully (9 total observed).
policy.assignment-verified info Issue assignment verified The author is assigned to #9.
review.no-human-approval info No current-head human approval Approval is informational for Guardian readiness and is not required to request a maintainer review. Guardian does not approve or request reviewers automatically.

What happens next

Address the findings above, then push a new commit or ask the reviewer for a fresh review. Guardian does not dismiss human reviews.

Commands

  • /guardian status — show the last recorded readiness state.
  • /guardian explain — explain the current findings.
  • /guardian recheck — re-evaluate the pull request (repository write access required).
  • /guardian dismiss <finding-id> <reason> — dismiss a verified non-required finding (repository write access required). Policy, unknown-data, missing-expected-check, and security findings cannot be dismissed.
  • /guardian help — show command help.

Guardian is advisory. It never merges, approves, closes, deploys, or opens pull requests. Existing required checks and branch protection, when configured, remain authoritative.

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.

Web: incident queue is truncated at 25 results with no pagination

2 participants