Commit graph

2 commits

Author SHA1 Message Date
Anish Sarkar
3a1fa25a6f refactor: streamline markAllAsRead method in notifications API service
- Simplified the return statement in the markAllAsRead method for improved readability and consistency.
2026-01-22 19:08:13 +05:30
Anish Sarkar
00596f991d refactor: enhance inbox functionality with type guards and API service integration
- Introduced type guards for metadata in InboxSidebar to ensure safe access and improve type safety.
- Refactored the useInbox hook to utilize the new notifications API service for fetching notifications, enhancing validation and error handling.
- Added new API request/response schemas for notifications, improving structure and clarity.
- Updated logic for loading and marking notifications as read, ensuring consistent state management and user experience.
2026-01-22 18:32:25 +05:30