Skip to content

fix: keep older-blocks pagination in shadow delta view - #142

Open
jowparks wants to merge 1 commit into
mainfrom
fix/shadow-delta-older-blocks
Open

fix: keep older-blocks pagination in shadow delta view#142
jowparks wants to merge 1 commit into
mainfrom
fix/shadow-delta-older-blocks

Conversation

@jowparks

@jowparks jowparks commented Sep 2, 2026

Copy link
Copy Markdown
Contributor

The shadow-delta branch hardcoded nextCursor: null, so the "Older blocks →" button vanished whenever shadow delta was enabled. Derive the cursor from the oldest shadow block on a full page and thread the URL cursor through the shadow fetch so pagination works in both views.

Screenshots: not included — the affected route (/internal-explorer/blocks with Show shadow Δ) is internal-only and requires a live TIPS_*_SHADOW_METRICS_URL backend that isn't available locally. Behavior is locked by a unit test on the new nextShadowCursor helper instead.

The shadow-delta branch hardcoded nextCursor: null, so "Older blocks →"
disappeared whenever shadow delta was enabled. Derive the cursor from the
oldest shadow block on a full page (via the API's exclusive `before` param)
and thread the URL cursor through the shadow fetch so paging works.
@cb-heimdall

cb-heimdall commented Sep 2, 2026

Copy link
Copy Markdown
Collaborator

✅ Heimdall Review Status

Requirement Status More Info
Reviews 1/1
Denominator calculation
Show calculation
1 if user is bot 0
1 if user is external 0
2 if repo is sensitive 0
From .codeflow.yml 1
Additional review requirements
Show calculation
Max 0
0
From CODEOWNERS 0
Global minimum 0
Max 1
1
1 if commit is unverified 0
Sum 1

@vercel

vercel Bot commented Sep 2, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated
omni-ui Ready Ready Preview Sep 2, 2026 10:01pm UTC

Request Review

@jowparks
jowparks marked this pull request as ready for review September 2, 2026 23:06
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