Skip to content

fix(dashboard): paginate delivery attempt history - #2891

Merged
mekilis merged 2 commits into
mainfrom
smart/delivery-attempt-history
Oct 21, 2026
Merged

mekilis merged 2 commits into
mainfrom
smart/delivery-attempt-history

Conversation

@mekilis

@mekilis mekilis commented Oct 21, 2026

Copy link
Copy Markdown
Collaborator

Delivery details previously stopped at the newest ten attempts even when the delivery had retried twenty times. Add cursor pagination and automatic loading as users scroll through the attempts sidebar, preserving the selected attempt and keeping the sidebar height bounded.

Pagination is opt-in (paginated=true and before), preserving the existing array response for API consumers. Pages use (created_at, id) ordering, include older embedded history, and retain header redaction and delivery ownership checks. Failed loads keep the current history visible and offer a retry. A load button remains available for keyboard users and browsers without automatic loading support.

Validation: delivery-attempt and response-model Go tests, 12 focused dashboard tests, Go vet, lint, and generated API spec validation. Regression coverage includes exactly 20 attempts, timestamp ties, new retries between pages, foreign cursors, deleted records, embedded history, and observer cleanup/error handling.

Fixes #2890.

@mekilis
mekilis merged commit 7e2a900 into main Oct 21, 2026
37 checks passed
@mekilis
mekilis deleted the smart/delivery-attempt-history branch October 21, 2026 15:52
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.

[Bug report]: Delivery attempts detail page shows only 10 records while list shows 20 attempts, with no pagination.

1 participant