Skip to content

feat(feedback): Screenshot button error flow #4757

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

Merged
merged 3 commits into from
Apr 17, 2025

Conversation

antonis
Copy link
Collaborator

@antonis antonis commented Apr 16, 2025

📢 Type of change

  • Bugfix
  • New feature
  • Enhancement
  • Refactoring

Based on #4726

📜 Description

Shows an error message when screenshot capture fails

💡 Motivation and Context

See #4714 (comment)

💚 How did you test it?

Manual with screenshotError.patch, CI

📝 Checklist

  • I added tests to verify changes
  • No new PII added or SDK only sends newly added PII if sendDefaultPII is enabled
  • I updated the docs if needed.
  • I updated the wizard if needed.
  • All tests passing
  • No breaking changes

🔮 Next steps

#skip-changelog

Copy link
Contributor

github-actions bot commented Apr 16, 2025

Messages
📖 Do not forget to update Sentry-docs with your feature once the pull request gets approved.

Generated by 🚫 dangerJS against f6e950e

@antonis antonis marked this pull request as ready for review April 16, 2025 12:43
Copy link
Contributor

github-actions bot commented Apr 16, 2025

Android (legacy) Performance metrics 🚀

  Plain With Sentry Diff
Startup time 459.04 ms 480.16 ms 21.12 ms
Size 17.75 MiB 20.15 MiB 2.40 MiB

Baseline results on branch: feedback-ui-2

Startup times

Revision Plain With Sentry Diff
6e4d2e1 435.80 ms 432.63 ms -3.17 ms

App size

Revision Plain With Sentry Diff
6e4d2e1 17.75 MiB 20.13 MiB 2.39 MiB

Copy link
Contributor

github-actions bot commented Apr 16, 2025

Android (new) Performance metrics 🚀

  Plain With Sentry Diff
Startup time 392.47 ms 388.58 ms -3.89 ms
Size 7.15 MiB 8.42 MiB 1.26 MiB

Baseline results on branch: feedback-ui-2

Startup times

Revision Plain With Sentry Diff
6e4d2e1+dirty 394.19 ms 378.08 ms -16.11 ms

App size

Revision Plain With Sentry Diff
6e4d2e1+dirty 7.15 MiB 8.40 MiB 1.25 MiB

Copy link
Contributor

iOS (legacy) Performance metrics 🚀

  Plain With Sentry Diff
Startup time 1225.65 ms 1232.76 ms 7.10 ms
Size 2.63 MiB 3.80 MiB 1.16 MiB

Baseline results on branch: feedback-ui-2

Startup times

Revision Plain With Sentry Diff
6e4d2e1+dirty 1231.82 ms 1240.18 ms 8.36 ms

App size

Revision Plain With Sentry Diff
6e4d2e1+dirty 2.63 MiB 3.77 MiB 1.14 MiB

if (screenshot === 'ErrorCapturingScreenshot') {
setTimeout(async () => {
feedbackAlertDialog(text.errorTitle, text.captureScreenshotError);
}, 100);
Copy link
Member

@krystofwoldrich krystofwoldrich Apr 16, 2025

Choose a reason for hiding this comment

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

The delay is here to let the widget slide back up, a.k.a just for better visuals?

Copy link
Collaborator Author

@antonis antonis Apr 16, 2025

Choose a reason for hiding this comment

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

Yes, and to prevent the alert from hiding below the modal.

Copy link
Member

@krystofwoldrich krystofwoldrich left a comment

Choose a reason for hiding this comment

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

Thank you, looks good.

@antonis antonis merged commit bd5bd30 into feedback-ui-2 Apr 17, 2025
71 of 72 checks passed
@antonis antonis deleted the antonis/capture-screenshot-error branch April 17, 2025 07:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants