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

[IOPID-991] add new openapi configuration #317

Conversation

Ladirico
Copy link
Contributor

@Ladirico Ladirico commented Nov 7, 2023

Short description

Add configuration of CDU flow from this branch row

Copy link

codecov bot commented Nov 15, 2023

Codecov Report

Merging #317 (cafc36d) into master (fe26d5d) will increase coverage by 0.02%.
Report is 4 commits behind head on master.
The diff coverage is 82.22%.

Additional details and impacted files

Impacted file tree graph

@@            Coverage Diff             @@
##           master     #317      +/-   ##
==========================================
+ Coverage   67.71%   67.73%   +0.02%     
==========================================
  Files         144      144              
  Lines        4984     5009      +25     
  Branches      603      587      -16     
==========================================
+ Hits         3375     3393      +18     
- Misses       1608     1615       +7     
  Partials        1        1              
Files Coverage Δ
.../features/wallet/common/payloads/paymentMethods.ts 100.00% <100.00%> (ø)
src/features/wallet/index.ts 100.00% <100.00%> (ø)
src/features/wallet/routers/index.ts 100.00% <100.00%> (ø)
src/payloads/profile.ts 78.57% <ø> (ø)
src/persistence/idpay.ts 72.28% <100.00%> (+0.86%) ⬆️
src/routers/features/fci/index.ts 76.19% <100.00%> (+0.88%) ⬆️
src/routers/public.ts 73.21% <100.00%> (ø)
src/server.ts 100.00% <100.00%> (ø)
src/utils/wallet.ts 100.00% <ø> (ø)
src/features/wallet/onboarding/index.ts 40.00% <66.66%> (ø)
... and 3 more

... and 2 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 d96e6ec...cafc36d. Read the comment docs.

Copy link

dpulls bot commented Nov 20, 2023

🎉 All dependencies have been resolved !

@Ladirico Ladirico marked this pull request as ready for review November 22, 2023 11:31
@Ladirico Ladirico requested a review from a team as a code owner November 22, 2023 11:31
Copy link
Member

@shadowsheep1 shadowsheep1 left a comment

Choose a reason for hiding this comment

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

LGTM

@Ladirico Ladirico merged commit 3009999 into master Nov 22, 2023
6 checks passed
@Ladirico Ladirico deleted the IOPID-991-app-integrazione-schermata-modifica-email-nelle-preferenze branch November 22, 2023 11:58
Ladirico added a commit to pagopa/io-app that referenced this pull request Nov 28, 2023
…rding flow and profile preferences flow (#5206)

## Short description
In this PR, I integrated business logic that allows the validation of
the email within both the onboarding and profile editing screens.

## List of changes proposed in this pull request
- business logic on the modify email in preferences
`NewEmailInsertScreen.tsx`
- added business logic on `NewOnboardingEmailInsertScreen.tsx`
- integration of logic described in solution 2 of this
[RFC](https://pagopa.atlassian.net/wiki/spaces/IAEI/pages/792166441/RFC+-+2013+Gestione+Errore+GET+e+POST+della+chiamata+API+profile+nell+UI+dell+app+IO)
`ProfileErrorType.ts`
- integration of the new openapi [in this PR
](pagopa/io-backend#1068)
- fix accessibilityLabel on `NewOptInScreen.tsx `

## Onboarding Flow


https://github.com/pagopa/io-app/assets/83651704/4bfeab28-b01e-4ffb-af23-dd861f9f26e8

## How to test
1. in [this
line](https://github.com/pagopa/io-app/blob/8d955e2a92223c0dd1baee255df383ee84ca1545/.env.local#L101)
change the value to YES
2. make sure [this
branch](pagopa/io-dev-api-server#317) and[ this
branch](pagopa/io-dev-api-server#321) are merged
into master in
[io-dev-api-server](https://github.com/pagopa/io-dev-api-server)
3. in io-dev-api-server [in this
line](https://github.com/pagopa/io-dev-api-server/blob/284edc21086fe0cfae39462958c8e8114d762f04/src/config.ts#L67C4-L67C28)
set `firstOnboarding: true`
4. in io-dev-api-server [at this
line](https://github.com/pagopa/io-dev-api-server/blob/284edc21086fe0cfae39462958c8e8114d762f04/src/payloads/profile.ts#L49)
and [at this
line](https://github.com/pagopa/io-dev-api-server/blob/284edc21086fe0cfae39462958c8e8114d762f04/src/payloads/profile.ts#L74)
set `is_email_validated: true`.
5. in io-dev-api-server, in the same file as the last point, set
`is_email_already_taken: true` if you need to display the alert on the
screen NewEmailInsertScreen.
6. run the application on io-dev-api-server 
7. To check for error 412 you can enter the e-mail
`mario.error@prova.com`.
8. when you get to the [verification
screen](https://www.figma.com/file/oLJMcWd0SbRHDtj7WRvu7N/Univocit%C3%A0-indirizzi-email?type=design&node-id=7-10909&mode=design&t=f1xmwaHUSRRROj50-0),
navigate to the browser at: http://localhost:3000/ and in the "email
configuration" section press the "validate email" button
9. continue the flow.

## Change preferences flow


https://github.com/pagopa/io-app/assets/83651704/e7cbaede-9fa6-4e2b-87de-5e7d3a8edd59

## How to test
Once logged in, go to your profile and select 'your data'. From here you
can edit your email. The flow is almost the same as explained above
(from point 7)

---------

Co-authored-by: Alice Azzolini <93777761+AliceAzzolini@users.noreply.github.com>
Co-authored-by: Fabio Bombardi <16268789+shadowsheep1@users.noreply.github.com>
Co-authored-by: Sabino <114305019+sabontech@users.noreply.github.com>
Co-authored-by: Cristiano Tofani <cri.tofani@gmail.com>
Co-authored-by: Andrea Piai <andrea.piai@pagopa.it>
Co-authored-by: Federico Mastrini <federicomastrini93@gmail.com>
Co-authored-by: Alessandro Izzo <34343582+Hantex9@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
IO-A&I IO - Autenticazione e Identità
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants