Skip to content
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

Merged
merged 21 commits into from
Jun 26, 2024
Merged

chore: [IOCOM-1525] PAID badge, new DS #5877

merged 21 commits into from
Jun 26, 2024

Conversation

Vangaorth
Copy link
Contributor

@Vangaorth Vangaorth commented Jun 19, 2024

⚠️ This PR depends on #5873 ⚠️

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

List of changes proposed in this pull request

  • MessageListItem: support for success badgeVariant
  • WrappedMessageListItem: business logic for badgeVariant and badgeText
  • allPaginated refactored isNoticePaidSelector into isPaymentMessagewithPaidNoticeSelector

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.

@pagopa-github-bot pagopa-github-bot changed the title [IOCOM-1525] PAID badge, new DS chore: [IOCOM-1525] PAID badge, new DS Jun 19, 2024
@pagopa-github-bot
Copy link
Collaborator

pagopa-github-bot commented Jun 19, 2024

Affected stories

  • ⚙️ IOCOM-1525: [APP] Visualizzare il badge PAGATO con la vecchia logica esistente
    subtask of
    • IOCOM-810: Adottare il nuovo design system nella Home dei messaggi

Generated by 🚫 dangerJS against 7848451

Copy link

codecov bot commented Jun 19, 2024

Codecov Report

Attention: Patch coverage is 90.90909% with 3 lines in your changes missing coverage. Please review.

Project coverage is 49.59%. Comparing base (4f204b4) to head (7848451).
Report is 215 commits behind head on master.

Additional details and impacted files

Impacted file tree graph

@@            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     
Files Coverage Δ
...es/messages/components/Home/DS/MessageListItem.tsx 100.00% <100.00%> (ø)
...essages/components/Home/WrappedMessageListItem.tsx 94.11% <100.00%> (ø)
.../features/messages/components/Home/legacy/Item.tsx 91.93% <100.00%> (ø)
...s/features/messages/store/reducers/allPaginated.ts 85.49% <100.00%> (+3.67%) ⬆️
...features/messages/store/reducers/thirdPartyById.ts 77.77% <100.00%> (ø)
ts/features/messages/utils/messageCategory.ts 100.00% <100.00%> (ø)
ts/store/reducers/entities/payments.ts 64.70% <ø> (-9.21%) ⬇️
...sages/screens/legacy/LegacyMessageDetailScreen.tsx 8.00% <0.00%> (ø)

... and 817 files with indirect coverage changes


Continue to review full report in Codecov by Sentry.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 700dc9d...7848451. Read the comment docs.

# Conflicts:
#	ts/features/messages/store/reducers/allPaginated.ts
Copy link

dpulls bot commented Jun 21, 2024

🎉 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
@Vangaorth Vangaorth marked this pull request as ready for review June 21, 2024 14:24
@Vangaorth Vangaorth requested a review from a team as a code owner June 21, 2024 14:24
# Conflicts:
#	ts/features/messages/store/reducers/__tests__/allPaginated.test.ts
#	ts/features/messages/store/reducers/allPaginated.ts
Copy link
Contributor

@forrest57 forrest57 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@Vangaorth Vangaorth merged commit ad5e7e4 into master Jun 26, 2024
13 checks passed
@Vangaorth Vangaorth deleted the IOCOM-1525_paidBadge branch June 26, 2024 15:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants