fix(ui): page skipped-PR audit feed by offset instead of growing limit#7506
fix(ui): page skipped-PR audit feed by offset instead of growing limit#7506RealDiligent wants to merge 2 commits into
Conversation
|
Superagent didn't find any vulnerabilities or security issues in this PR. |
Co-authored-by: Cursor <cursoragent@cursor.com>
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #7506 +/- ##
==========================================
- Coverage 91.41% 91.40% -0.02%
==========================================
Files 717 717
Lines 73038 73041 +3
Branches 21635 21639 +4
==========================================
- Hits 66768 66760 -8
- Misses 5227 5234 +7
- Partials 1043 1047 +4
Flags with carried forward coverage won't be shown. Click here to find out more.
|
Co-authored-by: Cursor <cursoragent@cursor.com>
|
Caution 🛑 LoopOver review result - reject/close recommendedReview updated: 2026-07-20 14:23:33 UTC
Review summary Blockers
Nits — 5 non-blocking
Why this is blocked
📋 Copy for AI agents — paste into your coding agentDecision drivers
Context & advisory signals — never blocks the verdict
Linked issue satisfactionAddressed Review context
Contributor next steps
Signal definitions
🧪 Chat with LoopOverAsk LoopOver a question about this PR directly in a comment — grounded only in the same cached, public-safe facts shown above, never a new claim.
Full command reference: https://loopover.ai/docs/loopover-commands 🧪 Experimental — new and may change. Visual preview
Click any thumbnail to open the full-size screenshot. Before = production · After = this PR's preview deploy. Scroll preview
A short scroll-through clip (desktop) — click either thumbnail to open the full animation. Evidence for scroll-linked behavior a single screenshot can't show. 🟩 Safe / merged · 🟦 Advisory · 🟨 Held for review · 🟥 Blocked / closed 💰 Earn for open-source contributions like this. Gittensor lets GitHub contributors earn for the work they already do — register to start earning →. Checked by LoopOver, a quiet PR intelligence layer for OSS maintainers.
|
|
LoopOver is closing this pull request on the maintainer's behalf (AI reviewers agree on a likely critical defect: apps/loopover-ui/src/components/site/audit-feed.tsx:107-140 (loadMore): if the user clicks 'Load more' and then changes/applies a filter before the in-flight request resolves, loadMore's closure still holds the pre-filter `data`/`repoFullName`/`reason`/`sinceIso`, so its response is appended on top of the already-replaced, correctly-filtered `data` — silently reverting the UI to a mix of stale rows and an old-filter page; guard with a request-generation counter or abort/ignore the loadMore response if `filterPath` changed since the request was issued.). This is an automated maintenance action — to pursue this change, please open a new pull request with the issues resolved. Closed PRs may be analyzed later to improve review accuracy, but they are not automatically reopened or re-reviewed. |

Summary
offsetquery parameter to/v1/app/skipped-pr-audit(and MCPloopover_get_skipped_pr_audit) so pages are sliced server-side instead of growinglimit.AuditFeed"Load more" to request the next offset page and append rows, so already-visible events never drop or reorder when newer skips land.offset=0and replace the list.Closes #7438
Scope
type(scope): short summaryConventional Commit format, for examplefix(api): restore profile access checks.CONTRIBUTING.mdand does not reintroduce GitHub Pages, VitePress,site/, orCNAME.Closes #123) — a linked open issue is required for every contributor PR.Validation
git diff --checknpm run actionlintnpm run typechecknpm run test:coveragelocally;codecov/patchrequires ≥99% coverage of the lines AND branches you changed (aim for 100% on your diff so CI variance does not fail near the threshold). Global coverage is a non-blocking trend with a loose 90% backstop, not the gate.npm run test:workersnpm run build:mcpnpm run test:mcp-packnpm run ui:openapi(regeneratedapps/loopover-ui/public/openapi.json)npm run ui:lintnpm run ui:typechecknpm run ui:buildnpm audit --audit-level=moderateIf any required check was skipped, explain why:
vitestforskipped-pr-audit,mcp-skipped-pr-audit, integration skipped-PR audit case, andaudit-feed.test.tsx(all green). Remaining checks deferred to CI.Safety
UI Evidencesection below with JPG/JPEG or PNG screenshots arranged as organized, captioned, clickable thumbnails. SVG screenshots are not used as review evidence. Review-only screenshots or recordings are not committed to the repository.UI Evidence
Behavior-only pagination fix on the auth-gated AuditFeed ("Load more" appends via
offset). No at-rest public visual delta — before/after are the same production dark-mode captures at each required viewport. loopover-ui is dark-mode-only.Notes
offsetrequest shape; AuditFeed keeps append UX (not Prev/Next page replace).