Skip to content

Conversation

@AndrewG828
Copy link

Overview

Implemented notification hub with swipe to mark read, filtering by notification hub, filtering by createdAt date, networking to pull recent notifications, and error screen for empty notifications and api errors.

Changes Made

  • Refactored Notification struct to reflect backend data from api.
  • Refactored NotificationView to actually display notification data from the filtered notifications array.
  • Implemented new NotificationSection enum to filter notifications by when they were created at to display different headers for notifications created at different times (New, Last 7 Days, etc.).
  • Implemented new LoadState enum method to display different screens on notification hub if the notifications are empty, successful, idle, or if there is an error in the api call.
  • Implemented preliminary networking (need to test still)
  • Refactored dummy data for testing purposes to align with new struct.

Test Coverage

  • Used dummy data and changed LoadState enum to test on iOS emulator.

Next Steps

  • Need to set up local backend to test networking.

Screenshots

Video of notification hub
Resell.Notification.Video.mp4
Image of error screen
Resell-Error-Screen

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