cds-snc / cds-snc/platform-forms-client

Refactor Response Display Pagination

Open
#4,819 0 comments 0 reactions 0 assignees View on GitHub
bug tech debt
Dominant language
TypeScript
Stars
46
Forks
16
Avg merge
1d 8h
Merged PRs (30d)
85

Description

Refactor the form-builder response page pagination to try and remove the need for url parameters and information from previous pages in order to navigate through the responses.

Possible tactics:
- Use scan Forward and Reverse functions to move forward and backward through the new status#createdAt Global Index to return chronological responses by status.
- Paginating forward could use the last response on the page in state (aka has not been downloaded or changed status) that becomes the unique start key for the next page.
- Paginating backward could use the first response on the page in state (aka has not been downloaded or changed status) as the unique start key for the previous page.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.