glific / mobile

8 stars 17 forks source link

Mark as Read #146

Closed VishalZ123 closed 1 year ago

VishalZ123 commented 1 year ago

Implements mark as read after clicking a contact with new message

This PR implements the mark as read feature in the Chat screen using the markContactMessagesAsRead mutation when the contact card is clicked. This changes the style for the contact card.

Changes Made

Issues

This implements #128

Reviewers

@mdshamoon & @ajaman190 , Please review

https://github.com/glific/mobile/assets/76409986/1987bb35-a685-4f0a-8a73-626b9b9906eb


codecov[bot] commented 1 year ago

Codecov Report

Patch coverage: 68.75% and project coverage change: -0.92% :warning:

Comparison is base (d09786a) 67.66% compared to head (1df074d) 66.75%. Report is 24 commits behind head on main.

:exclamation: Current head 1df074d differs from pull request most recent head 5416699. Consider uploading reports for the commit 5416699 to get more accurate results

Additional details and impacted files ```diff @@ Coverage Diff @@ ## main #146 +/- ## ========================================== - Coverage 67.66% 66.75% -0.92% ========================================== Files 76 76 Lines 1135 1182 +47 Branches 93 102 +9 ========================================== + Hits 768 789 +21 - Misses 349 373 +24 - Partials 18 20 +2 ``` | [Files Changed](https://app.codecov.io/gh/glific/mobile/pull/146?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=glific) | Coverage Δ | | |---|---|---| | [components/ContactCard.tsx](https://app.codecov.io/gh/glific/mobile/pull/146?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=glific#diff-Y29tcG9uZW50cy9Db250YWN0Q2FyZC50c3g=) | `77.27% <64.28%> (-22.73%)` | :arrow_down: | | [graphql/mutations/Chat.ts](https://app.codecov.io/gh/glific/mobile/pull/146?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=glific#diff-Z3JhcGhxbC9tdXRhdGlvbnMvQ2hhdC50cw==) | `100.00% <100.00%> (ø)` | | ... and [6 files with indirect coverage changes](https://app.codecov.io/gh/glific/mobile/pull/146/indirect-changes?src=pr&el=tree-more&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=glific)

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.