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

feat: [IOBP-637,IOBP-440] New transactions list and details with biz events integration #5768

Merged
merged 78 commits into from
Jun 10, 2024

Conversation

Hantex9
Copy link
Contributor

@Hantex9 Hantex9 commented May 14, 2024

Short description

This PR implements the new transaction list and transaction details powered by biz-events by managing more information such as logo, payment method used, cart type transactions and so on.

List of changes proposed in this pull request

  • Upgraded the io-app-design-system library to the latest version in order to support the ListItemInfo with a payment method logo.
  • Added a new feature-folder within the “payments” folder;
  • Added sagas, reducers, store, screens;
  • Added selectors for getting latest transactions;
  • Added a transaction list with server-side pagination;
  • Added biz-events API definitions reference;
Why is a new feature-folder being created?

Because the old transactions feature will still have to be available since in addition to biz-events in an early transition there will also be dated transactions

How to test

  • Checkout this PR on the io-dev-api-server: feat: [IOBP-609] Add Biz Events transactions routes io-dev-api-server#369
  • Now You can test this feature on the main landing page of the new payment section. You should be able to initially see the last 10 transactions made. In the upper right-hand corner, you can see all transactions performed via the “See All” call-to-action, which will show a list of transactions paged 10 per page.
    If you tap on a transaction, you can access its detail

Preview

preview.mov

@pagopa-github-bot
Copy link
Collaborator

pagopa-github-bot commented May 14, 2024

Warnings
⚠️

Multiple stories with different types are associated with this Pull request.
Only one tag will be added, following the order: feature > bug > chore

Affected stories

  • ⚙️ IOBP-637: Creazione delle schermate biz-events in app IO
    subtask of
    • 🌟 IOBP-440: Recupero lista transazioni BIZ Event
  • 🌟 IOBP-440: Recupero lista transazioni BIZ Event
    subtask of
    • IOBP-540: Integrazione IO-BIZ Event

Generated by 🚫 dangerJS against 544b312

Copy link
Contributor

@mastro993 mastro993 left a comment

Choose a reason for hiding this comment

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

LGTM!

@Hantex9 Hantex9 merged commit aaa9d2e into master Jun 10, 2024
13 checks passed
@Hantex9 Hantex9 deleted the IOBP-637-biz-events-transaction-list branch June 10, 2024 15:10
Hantex9 added a commit that referenced this pull request Jun 12, 2024
## ⚠️ This PR depends on #5768 ⚠️

## Short description
This PR implements the ability to view “legacy” transactions that are
not available through biz-events at the moment.

## List of changes proposed in this pull request
- Added a legacy list screen that retrieves the old transactions not
available with biz-events;
- Connected the legacy list screen with the previous transaction details
that shows transaction info with a reduced amount of data;
- Added a CTA to access to this new page from:
   - `PaymentsHomeEmptyScreenContent`
- Into the biz-events transaction list when the user reaches the end of
the list.

## How to test
- Checkout the dev-server with the following PR:
pagopa/io-dev-api-server#369
- Open the new payment landing page and try to reach the CTA from the
entry point listed above, you should be able to see the previous
transactions with less data shown.

## Preview


https://github.com/pagopa/io-app/assets/34343582/7e759311-d0f6-48af-962e-edb28c0bb682

---------

Co-authored-by: Federico Mastrini <federicomastrini93@gmail.com>
Co-authored-by: Jacopo Pompilii <Jacopo.pompilii@pagopa.it>
Hantex9 added a commit that referenced this pull request Jun 13, 2024
## ⚠️ This PR depends on #5768 ⚠️
## Short description
This PR adds the ability to be able to download the transaction pdf
receipt, save it or share it

## List of changes proposed in this pull request
- Added a button into the transaction details screen that starts the
receipt pdf download;
- Created a PDF preview screen that renders the PDF content and has a
CTA to save or share the file.
- Applied a patch to the react-native library that implements the
`readAsArrayBuffer` function used by the code-gen to manage a blob
response automatically.

## How to test
- Generate the open API definitions on the dev-server and on the app
- Run `npm install` to apply the patch to the `react-native`
readAsArrayBuffer function

## Preview


https://github.com/pagopa/io-app/assets/34343582/f1b5700a-7cfd-4000-b76c-7a46aa63549e
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
IO-Bonus e pagamenti IO - Bonus e pagamenti
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants