Add invite code pagination#830
Conversation
|
Visit the preview URL for this PR (updated for commit e625042):
(expires Wed, 13 May 2026 12:58:27 GMT) 🔥 via Firebase Hosting GitHub Action 🌎 Sign: 2149dad49ed83535217e50d5c18c0c8c90da629b |
|
Are we following the material guidelines on pagination widgets? Also for design consistency of the designer could you please check if we ever used fully rounded circular buttons? Or maybe rather than pagination we could switch to infinite scrolling? What do you think @johannesvedder |
|
Thank you for for reviewing @ibrahimozkn I'll adjust the UI accordingly. Pagination: Infinite scroll: My two cents: Pagination is better here. |
Description
The Invite Codes table could hang or crash when a study has a large number of invite codes because the Designer loaded the full invite list at once.
Fix
This adds server-side pagination for invite codes in the Designer Recruit page. Invite codes are now fetched from Supabase in batches of 50 instead of loading the entire invite array into memory.
The table also shows page navigation controls with previous/next buttons and the current page number.
Acceptance Criteria
Testing
flutter analyzeindesigner_v2Example images, where the pagination size was kept to 10 only for showing how it looks.
