Skip to content

Ryan953/feedback async #10683

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 35 commits into from
Feb 29, 2024
Merged

Conversation

ryan953
Copy link
Member

@ryan953 ryan953 commented Feb 15, 2024

This is building off a version of #10590, specifically working towards async loading of the Dialog component, and rewriting it in preact in order to host and interact with the screenshot feature in an easier way.

Setup in my test app is (gives screenshots):

import { feedback2Integration, feedback2ModalIntegration, feedback2ScreenshotIntegration } from "@sentry-internal/feedback2";


  integrations: [
    feedback2Integration({
      colorScheme: 'light',
      isNameRequired: false,
      isEmailRequired: false,
    }),
    feedback2ModalIntegration(),
    feedback2ScreenshotIntegration(),
  ]

@ryan953 ryan953 changed the base branch from develop to cl/screenshot-integration February 16, 2024 17:27
@ryan953 ryan953 force-pushed the ryan953/feedback-async branch from cc3c2ce to ae4e49f Compare February 23, 2024 20:08
@ryan953 ryan953 force-pushed the ryan953/feedback-async branch 4 times, most recently from 85eb75c to a181339 Compare February 24, 2024 01:09
@ryan953 ryan953 force-pushed the ryan953/feedback-async branch from a181339 to dbcbfba Compare February 24, 2024 01:19
Copy link
Contributor

github-actions bot commented Feb 26, 2024

size-limit report 📦

Path Size
@sentry/browser (incl. Tracing, Replay, Feedback) - Webpack (gzipped) 84.03 KB (+8.75% 🔺)
@sentry/browser (incl. Tracing, Replay) - Webpack (gzipped) 69.03 KB (+0.72% 🔺)
@sentry/browser (incl. Tracing, Replay with Canvas) - Webpack (gzipped) 72.96 KB (+0.71% 🔺)
@sentry/browser (incl. Tracing, Replay) - Webpack with treeshaking flags (gzipped) 62.54 KB (+0.8% 🔺)
@sentry/browser (incl. Tracing) - Webpack (gzipped) 33.25 KB (+1.62% 🔺)
@sentry/browser (incl. browserTracingIntegration) - Webpack (gzipped) 33.14 KB (+1.3% 🔺)
@sentry/browser (incl. Feedback) - Webpack (gzipped) 37.34 KB (+20.79% 🔺)
@sentry/browser (incl. sendFeedback) - Webpack (gzipped) 37.33 KB (+20.75% 🔺)
@sentry/browser - Webpack (gzipped) 22.41 KB (+0.99% 🔺)
@sentry/browser (incl. Tracing, Replay, Feedback) - ES6 CDN Bundle (gzipped) 82.05 KB (+8.32% 🔺)
@sentry/browser (incl. Tracing, Replay) - ES6 CDN Bundle (gzipped) 67.52 KB (+0.04% 🔺)
@sentry/browser (incl. Tracing) - ES6 CDN Bundle (gzipped) 33.48 KB (+0.58% 🔺)
@sentry/browser - ES6 CDN Bundle (gzipped) 24.69 KB (-0.15% 🔽)
@sentry/browser (incl. Tracing, Replay) - ES6 CDN Bundle (minified & uncompressed) 212.25 KB (+0.47% 🔺)
@sentry/browser (incl. Tracing) - ES6 CDN Bundle (minified & uncompressed) 100.97 KB (+0.98% 🔺)
@sentry/browser - ES6 CDN Bundle (minified & uncompressed) 73.87 KB (+0.13% 🔺)
@sentry/browser (incl. Tracing) - ES5 CDN Bundle (gzipped) 36.78 KB (+1.17% 🔺)
@sentry/react (incl. Tracing, Replay) - Webpack (gzipped) 69.33 KB (+0.75% 🔺)
@sentry/react - Webpack (gzipped) 22.44 KB (+0.99% 🔺)
@sentry/nextjs Client (incl. Tracing, Replay) - Webpack (gzipped) 86.81 KB (+1.84% 🔺)
@sentry/nextjs Client - Webpack (gzipped) 50.05 KB (+0.79% 🔺)
@sentry-internal/feedback - Webpack (gzipped) 23.47 KB (+36.94% 🔺)

@ryan953 ryan953 requested review from c298lee and billyvg February 27, 2024 22:41
@ryan953 ryan953 marked this pull request as ready for review February 29, 2024 00:06
class="btn btn--default"
type="button"
onClick={() => {
setIncludeScreeshot(prev => !prev);
Copy link
Contributor

@c298lee c298lee Feb 29, 2024

Choose a reason for hiding this comment

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

Does this work properly when you press cancel on the prompt to allow it to see the tab?

Copy link
Member Author

Choose a reason for hiding this comment

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

good question, and no it doesn't!

Copy link
Contributor

Choose a reason for hiding this comment

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

Copy link
Member Author

Choose a reason for hiding this comment

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

handled it!

it's just passing the message along to the user, which won't always be the best. In the future we can get inside that takeScreenshot().catch(...) call and rewrite messages as needed.

SCR-20240229-jgwc

@ryan953 ryan953 force-pushed the ryan953/feedback-async branch from dfa26b9 to a4d23cd Compare February 29, 2024 15:56
@ryan953 ryan953 merged commit ea96f76 into cl/screenshot-integration Feb 29, 2024
@ryan953 ryan953 deleted the ryan953/feedback-async branch February 29, 2024 18:28
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.

3 participants