Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

PADV-1927 feat: add page size param to services #144

Merged
merged 1 commit into from
Dec 30, 2024
Merged

Conversation

AuraAlba
Copy link
Contributor

Ticket

https://agile-jira.pearson.com/browse/PADV-1927

Description

add page size param to services

Changes made

Add page size param to services, to get max 200 records
Add spinner loaders where is missing
Update test

How to test

Clone the Institution Portal MFE
Run npm install.
Run npm run start
Go to http://localhost:1980/institution-portal

Copy link
Contributor

@01001110J 01001110J left a comment

Choose a reason for hiding this comment

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

This change won't be added to events?

Comment on lines 53 to 62
{isLoadingClasses && (
<div className="w-100 h-100 d-flex justify-content-center align-items-center">
<Spinner
animation="border"
className="mie-3"
screenReaderText="loading"
/>
</div>
)}
{!isLoadingClasses && classCards.map(classInfo => <ClassCard data={classInfo} key={classInfo?.classId} />)}
Copy link
Contributor

Choose a reason for hiding this comment

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

Great addition, but I would like to suggest that changes outside the scope of the issue should go into a separate PR. This way, changes won't get mixed, and it will make the review process easier by avoiding unrelated updates to the issue's scope. Additionally, if a revert is needed, it would only affect a specific change rather than multiple changes at once.

@AuraAlba
Copy link
Contributor Author

This change won't be added to events?

Same as instructors portal, we don't need pages in this component and we already implement a function to call all pages, so we don't change to avoid performance issues

@AuraAlba AuraAlba merged commit 9076f12 into master Dec 30, 2024
2 checks passed
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