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

fix: [IOPID-2547] Fix unhandled error on Linking.openUrl #6554

Open
wants to merge 11 commits into
base: master
Choose a base branch
from

Conversation

ChrisMattew
Copy link
Collaborator

@ChrisMattew ChrisMattew commented Dec 16, 2024

Short description

This PR handles any potential errors when attempting to open the store using Linking.openUrl.

List of changes proposed in this pull request

  • Added a toast message to notify the user of the error in case the store cannot be opened.

Screen

iOS Android
ios-error-message android-error-message

@ChrisMattew ChrisMattew self-assigned this Dec 16, 2024
@pagopa-github-bot pagopa-github-bot changed the title [IOPID-2547] Fix unhandled error on Linking.openUrl fix: [IOPID-2547] Fix unhandled error on Linking.openUrl Dec 16, 2024
@pagopa-github-bot
Copy link
Collaborator

pagopa-github-bot commented Dec 16, 2024

Affected stories

  • 🐞 IOPID-2547: [APP] Errore in caso di tap alla CTA di installazione CieID
    subtask of

Generated by 🚫 dangerJS against 3682ed4

@ChrisMattew ChrisMattew added IO-A&I IO - Autenticazione e Identità copy review needed ✋🏼 🖊️ Awaiting copy review by UX Writers. Don't merge if there is this label. labels Dec 16, 2024
@@ -36,7 +38,9 @@ const CieIdNotInstalled = ({ isUat }: CieIdNotInstalledProps) => {
android: isUat ? CIE_ID_ANDROID_COLL_LINK : CIE_ID_ANDROID_LINK,
default: ""
})
);
).catch(() => {
Copy link
Contributor

Choose a reason for hiding this comment

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

Instead of defining a catch here why not using openWebUrl utility function? (here the code)

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Thank you for this suggestion! Addressed here

@ChrisMattew
Copy link
Collaborator Author

@mariateresaventura copy review needed! 🙏🏻

@mariateresaventura mariateresaventura removed the copy review needed ✋🏼 🖊️ Awaiting copy review by UX Writers. Don't merge if there is this label. label Dec 16, 2024
@mariateresaventura
Copy link
Contributor

@mariateresaventura copy review needed! 🙏🏻

Done!

Copy link

codecov bot commented Dec 16, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 49.28%. Comparing base (4f204b4) to head (766ceef).
Report is 902 commits behind head on master.

Additional details and impacted files

Impacted file tree graph

@@            Coverage Diff             @@
##           master    #6554      +/-   ##
==========================================
+ Coverage   48.42%   49.28%   +0.86%     
==========================================
  Files        1488     1553      +65     
  Lines       31617    31986     +369     
  Branches     7669     7288     -381     
==========================================
+ Hits        15311    15765     +454     
+ Misses      16238    16182      -56     
+ Partials       68       39      -29     
Files with missing lines Coverage Δ
ts/features/cie/components/CieIdNotInstalled.tsx 100.00% <100.00%> (ø)

... and 1737 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 1347221...766ceef. Read the comment docs.

Copy link
Contributor

github-actions bot commented Dec 17, 2024

Jira Pull Request Link

This Pull Request refers to the following Jira issue IOPID-2547

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

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