Skip to content

Feature/message pagination#146

Merged
SudiptaPaul-31 merged 2 commits into
Lumina-eX:mainfrom
BuildersWCT:feature/message-pagination
May 2, 2026
Merged

Feature/message pagination#146
SudiptaPaul-31 merged 2 commits into
Lumina-eX:mainfrom
BuildersWCT:feature/message-pagination

Conversation

@Ryjen1
Copy link
Copy Markdown

@Ryjen1 Ryjen1 commented Apr 30, 2026

📌 Pull Request

🔗 Related Issue

Closes #73

Ryjen1 added 2 commits April 30, 2026 15:50
- Add scroll-to-load pagination for chat messages
- Implement cursor-based pagination with 50 messages per page
- Add loading indicators for initial load and pagination
- Preserve scroll position when loading older messages
- Display 'Beginning of conversation' indicator when no more messages
- Update useMessages hook to support pagination with roomId
- Update MessageList component with scroll detection
- Integrate pagination into main chat page

Features:
- Scroll to top triggers automatic loading of older messages
- Smooth experience with no layout jumps
- Loading spinner shows during message fetch
- Maintains scroll position after loading older messages
- Auto-scroll to bottom for new messages

Resolves Lumina-eX#73
- Fix implicit any types in callback parameters
- Ensure proper type annotations for event handlers
- Maintain functionality while improving type safety
@SudiptaPaul-31 SudiptaPaul-31 merged commit 0f52e0c into Lumina-eX:main May 2, 2026
1 check 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.

Implement Message Pagination

2 participants