feat: [IEL-339] send feedback survey data#584
Merged
Conversation
|
🎉 All dependencies have been resolved ! |
github-merge-queue bot
pushed a commit
to pagopa/io-app
that referenced
this pull request
Mar 26, 2026
…elegate) flow (#7956) > [!WARNING] > This PR depends on pagopa/io-dev-api-server#584, pagopa/io-services-metadata#1169 ## Short description Add a bannerwith survey link in the bottomsheet when trying to exit send aar flow. ## List of changes proposed in this pull request - banner added as in toher parts of the app ## How to test - start app along with io-dev-api-server - go to http://localhost:3000/ "SEND AAR QRCodes" section, click on the fifth "generate" link, save the image, drag drop it into the simulator gallery - open the app, go to scan qrcode screen, choose upload image and provide the one from before - continue the flow past electronic identiy card scan - press "X" button on the to right of the screen - the bottomshoeet that shows up should contain the new banner - press the action, you hsould be redirected to qualtrics survey on simulator add this to skip card reading: ```patch diff --git a/ts/features/pn/aar/components/SendAARCieCardReadingComponent.tsx b/ts/features/pn/aar/components/SendAARCieCardReadingComponent.tsx index e70c6ff..269490b 100644 --- a/ts/features/pn/aar/components/SendAARCieCardReadingComponent.tsx +++ b/ts/features/pn/aar/components/SendAARCieCardReadingComponent.tsx @@ -10,6 +10,7 @@ import { CieCardReadContentProps } from "../../../common/components/cie/CieCardReadContent"; import { + CieReadState, isErrorState, isReadingState, isSuccessState, @@ -42,7 +43,25 @@ export const SendAARCieCardReadingComponent = ({ }: SendAARCieCardReadingComponentProps) => { const dispatch = useIODispatch(); const theme = useIOTheme(); - const { startReading, readState } = useCieInternalAuthAndMrtdReading(); + const { startReading } = useCieInternalAuthAndMrtdReading(); + + // TODO remove this change, it is needed only to skip card reading on simulator + const readState = { + status: ReadStatus.SUCCESS, + data: { + mrtd_data: { + dg1: "", + dg11: "", + sod: "" + }, + nis_data: { + nis: "", + publicKey: "", + signedChallenge: "", + sod: "" + } + } + } as CieReadState; useTrackCieReadingEvents(readState); ``` https://github.com/user-attachments/assets/d4dc50d5-3ce5-4e2e-98b2-df362079b192 --------- Co-authored-by: Alice Di Rico <83651704+Ladirico@users.noreply.github.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Warning
This PR depends on pagopa/io-services-metadata#1169
Short description
This PR is neeed as requirement for pagopa/io-app#7956
List of changes proposed in this pull request