-
Notifications
You must be signed in to change notification settings - Fork 98
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
chore: [IOCOM-1525] PAID badge, new DS #5877
Conversation
# Conflicts: # ts/features/messages/store/reducers/allPaginated.ts
Affected stories
|
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## master #5877 +/- ##
==========================================
+ Coverage 48.42% 49.59% +1.16%
==========================================
Files 1488 1714 +226
Lines 31617 33803 +2186
Branches 7669 8110 +441
==========================================
+ Hits 15311 16765 +1454
- Misses 16238 16984 +746
+ Partials 68 54 -14
... and 817 files with indirect coverage changes Continue to review full report in Codecov by Sentry.
|
# Conflicts: # ts/features/messages/store/reducers/allPaginated.ts
🎉 All dependencies have been resolved ! |
# Conflicts: # ts/features/messages/components/Home/DS/DoubleAvatar.tsx # ts/features/messages/components/Home/DS/MessageListItem.tsx # ts/features/messages/components/Home/WrappedMessageListItem.tsx # ts/features/messages/components/Home/__tests__/__snapshots__/WrappedMessageListItem.test.tsx.snap
# Conflicts: # ts/features/messages/store/reducers/__tests__/allPaginated.test.ts # ts/features/messages/store/reducers/allPaginated.ts
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
Short description
This PR enables the PAID badge on messages in the new DS messages' home.
![Simulator Screenshot - iPhone 15 - 2024-06-19 at 14 21 13](https://private-user-images.githubusercontent.com/5150343/341086344-36ca20db-b47a-41b1-8297-8ae9d647f2d5.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjA2ODU3NzMsIm5iZiI6MTcyMDY4NTQ3MywicGF0aCI6Ii81MTUwMzQzLzM0MTA4NjM0NC0zNmNhMjBkYi1iNDdhLTQxYjEtODI5Ny04YWU5ZDY0N2YyZDUucG5nP1gtQW16LUFsZ29yaXRobT1BV1M0LUhNQUMtU0hBMjU2JlgtQW16LUNyZWRlbnRpYWw9QUtJQVZDT0RZTFNBNTNQUUs0WkElMkYyMDI0MDcxMSUyRnVzLWVhc3QtMSUyRnMzJTJGYXdzNF9yZXF1ZXN0JlgtQW16LURhdGU9MjAyNDA3MTFUMDgxMTEzWiZYLUFtei1FeHBpcmVzPTMwMCZYLUFtei1TaWduYXR1cmU9NDRjNjJlZDc2YTRlYTBkNzcyMjIwMGNkNGIyYWJkNjQwNDI1ZjY5NjYzM2I3Y2IzN2FkNzZkNDJkOTU5ZmViZSZYLUFtei1TaWduZWRIZWFkZXJzPWhvc3QmYWN0b3JfaWQ9MCZrZXlfaWQ9MCZyZXBvX2lkPTAifQ.I6_DeYKlBOdIQLESdVw6gM8lzOchobSOJV5oDzQ128w)
List of changes proposed in this pull request
MessageListItem
: support forsuccess
badgeVariantWrappedMessageListItem
: business logic forbadgeVariant
andbadgeText
allPaginated
refactoredisNoticePaidSelector
intoisPaymentMessagewithPaidNoticeSelector
How to test
Using the io-dev-api-server, generate some messages with and without payment. Make sure to enable both DS and new Home. Select a message with a payment and pay it. The related message's cell should display the PAID badge.
Be aware that SEND messages with payments do not display the PAID badge.