Closed VishalZ123 closed 1 year ago
Patch coverage: 100.00
% and project coverage change: -2.23
:warning:
Comparison is base (
136cc3c
) 55.00% compared to head (85f5d5c
) 52.78%.
:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Do you have feedback about the report comment? Let us know in this issue.
@mdshamoon Please review the PR. Wrote tests for new Notification screen. Old test was failing as it was written for static notification.
Hey @mdshamoon Can you review and merge these changes so that I can work on the Deep Scan issue?
Summary:
This PR implements the functionality to fetch notifications when the notification icon is clicked. It introduces the
GET_NOTIFICATIONS
query to retrieve the notifications from the server. The response is then formatted using theformatNotifications
function, which converts the data into the desired format. Additionally, the notifications array is sorted in descending order based on the time to display the most recent notifications on top. The time is also formatted to show the duration in minutes, hours, days, etc. To avoid overflow of long notification messages, restricted the message text view to 3 lines.Changes Made:
GET_NOTIFICATIONS
query to fetch notifications from the server.formatNotifications
function to format the response data into the desired format.Issue: This PR addresses issue #88 .
https://github.com/glific/mobile/assets/76409986/e61c086d-cf2a-4142-a417-fc6dc61c36f4
Reviewer: @mdshamoon Please review the changes and provide your feedback.
Thank you.