Pagination: Offset, Cursor, Infinite Scroll
Compare pagination models for consistency, performance, and UX continuity.
Pattern level: meso
Compare pagination models for consistency, performance, and UX continuity.
Pattern level: meso
Use cursor pagination for mutable ordered datasets; offset is acceptable for mostly static collections and simple admin tooling.
Pagination is both a data contract and a UX contract; mismatch leads to jumps and duplicates.
Prefer cursor when list mutation frequency is medium/high or resume continuity matters.
| Category | Level | Requirement | Done When |
|---|---|---|---|
| functional | unit | State transitions handle loading, success, empty, and error. | Reducer/state machine tests cover all transitions. |
| functional | integration | Client correctly maps API contracts into UI-ready view models. | Contract fixtures pass with no runtime shape mismatch. |
| a11y | integration | Full keyboard flow works for primary interaction loop. | Tab/Shift+Tab/Enter/Escape scenarios pass for critical controls. |
| a11y | e2e | Dynamic updates expose meaningful live region announcements. | Manual SR checks validate announcement timing and text quality. |