Skip to content

Conversation

@mkovalua
Copy link
Contributor

Purpose

When submitting a registration, users can attach files via a file picker field in the registration schema. However, this file picker currently only displays the first 10 files, which restricts access to additional files stored in the project and limits the user’s ability to select the appropriate file(s) for their submission.

Summary of Changes

  1. implement pagination for registration files

  2. update scrolling for registration files

  3. accumulate files data results in state on pagination calls

Screenshot(s)

a7f8-f1be-4398-910a-9d0b3bb2abff.mp4

Side Effects

QA Notes

}

getFilesWithoutFiltering(filesLink: string): Observable<FileModel[]> {
getFilesWithoutFiltering(filesLink: string, page = 1): Observable<{ files: FileModel[]; meta?: MetaJsonApi }> {
Copy link
Collaborator

@nsemets nsemets Nov 17, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Use PaginatedData<FileModel[]> instead of Observable<{ files: FileModel[]; meta?: MetaJsonApi }>

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Observable<{ files: FileModel[]; meta?: MetaJsonApi }>

is used for other calls on pagination too

image

I think it is ok or what is purpose of changings?

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We need it to have correct types and avoid any issues in future.

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.

2 participants