iachat/app/javascript/dashboard/store
Pranav 7cddba2b08
feat: Add infinite scroll to contacts search page (#13376)
## Summary
- Add `has_more` to contacts search API response to enable infinite
scroll without expensive count queries
- Set `count` to the number of items in the current page instead of
total count
- Implement "Load more" button for contacts search results
- Keep existing contacts visible while loading additional pages

## Changes

### Backend
- Add `fetch_contacts_with_has_more` method that fetches N+1 records to
determine if more pages exist
- Return `has_more` in search endpoint meta response
- Set `count` to current page size instead of total count

### Frontend
- Add `APPEND_CONTACTS` mutation for appending contacts without clearing
existing ones
- Update search action to support `append` parameter
- Add `ContactsLoadMore` component with loading state
- Update `ContactsListLayout` to support infinite scroll mode
- Update `ContactsIndex` to use infinite scroll for search view
2026-01-27 18:55:19 -08:00
..
captain feat: add global config for captain settings (#13141) 2026-01-12 19:54:19 +05:30
modules feat: Add infinite scroll to contacts search page (#13376) 2026-01-27 18:55:19 -08:00
utils feat: Prevent saving preferences and status when impersonating (#11164) 2025-05-20 17:34:30 -07:00
constants.js fix: stale report value shown if summary fetch breaks (#11270) 2025-04-15 20:18:06 +05:30
index.js feat: Add Pinia support and relocate store factory (#12854) 2025-11-28 16:31:59 +05:30
mutation-types.js feat: Add infinite scroll to contacts search page (#13376) 2026-01-27 18:55:19 -08:00
storeFactory.js feat: Add Pinia support and relocate store factory (#12854) 2025-11-28 16:31:59 +05:30
storeFactory.spec.js feat: Add Pinia support and relocate store factory (#12854) 2025-11-28 16:31:59 +05:30
storeFactoryHelper.js feat: Add Pinia support and relocate store factory (#12854) 2025-11-28 16:31:59 +05:30