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

ref(feedback): Refactor to better support multiple dialogs #9305

Conversation

billyvg
Copy link
Member

@billyvg billyvg commented Oct 18, 2023

  • refactor to support multiple widgets
  • add attachTo and createWidget public methods to create respective components.

Requires #9217

@github-actions
Copy link
Contributor

github-actions bot commented Oct 18, 2023

size-limit report 📦

Path Size
@sentry/browser (incl. Tracing, Replay) - Webpack (gzipped) 82.67 KB (0%)
@sentry/browser (incl. Tracing, Replay) - Webpack with treeshaking flags (gzipped) 71.78 KB (0%)
@sentry/browser (incl. Tracing) - Webpack (gzipped) 30.94 KB (0%)
@sentry/browser - Webpack (gzipped) 21.26 KB (0%)
@sentry/browser (incl. Tracing, Replay) - ES6 CDN Bundle (gzipped) 73.03 KB (0%)
@sentry/browser (incl. Tracing) - ES6 CDN Bundle (gzipped) 28.93 KB (0%)
@sentry/browser - ES6 CDN Bundle (gzipped) 21.09 KB (0%)
@sentry/browser (incl. Tracing, Replay) - ES6 CDN Bundle (minified & uncompressed) 233.84 KB (0%)
@sentry/browser (incl. Tracing) - ES6 CDN Bundle (minified & uncompressed) 87.77 KB (0%)
@sentry/browser - ES6 CDN Bundle (minified & uncompressed) 62.76 KB (0%)
@sentry/browser (incl. Tracing) - ES5 CDN Bundle (gzipped) 31.71 KB (0%)
@sentry/react (incl. Tracing, Replay) - Webpack (gzipped) 83.05 KB (0%)
@sentry/react - Webpack (gzipped) 21.29 KB (0%)
@sentry/nextjs Client (incl. Tracing, Replay) - Webpack (gzipped) 99.44 KB (0%)
@sentry/nextjs Client - Webpack (gzipped) 47.83 KB (0%)

const cENS = document.createElementNS.bind(document, XMLNS);
const cENS = <K extends keyof SVGElementTagNameMap>(tagName: K): SVGElementTagNameMap[K] =>
// eslint-disable-next-line no-restricted-globals
document.createElementNS(XMLNS, tagName);
Copy link
Member Author

Choose a reason for hiding this comment

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

@mydea is there a good way to use document? getGlobalObj seems to be deprecated

Copy link
Member

Choose a reason for hiding this comment

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

What about WINDOW from @sentry/browser? WINDOW.document should work I guess?

@billyvg billyvg requested a review from mydea October 23, 2023 15:04
@billyvg billyvg marked this pull request as ready for review October 24, 2023 15:48
@billyvg billyvg force-pushed the feat-feedback-refactor-api-multiple-widgets branch from 9e01127 to b3373b7 Compare October 24, 2023 15:54
@billyvg billyvg force-pushed the feat-feedback-implement-widget-api branch from 1b4b74a to 6ef6f29 Compare October 24, 2023 15:55
@billyvg billyvg force-pushed the feat-feedback-refactor-api-multiple-widgets branch from b3373b7 to e0dbb83 Compare October 24, 2023 15:55
@billyvg
Copy link
Member Author

billyvg commented Oct 25, 2023

Going to merge this into #9217 so i'm not juggling multiple git stacks

@billyvg billyvg force-pushed the feat-feedback-implement-widget-api branch from 6ef6f29 to 21454dc Compare October 25, 2023 16:12
@billyvg billyvg force-pushed the feat-feedback-refactor-api-multiple-widgets branch from e0037f1 to 267ba37 Compare October 25, 2023 16:18
@billyvg billyvg merged commit 4930615 into feat-feedback-implement-widget-api Oct 25, 2023
4 checks passed
@billyvg billyvg deleted the feat-feedback-refactor-api-multiple-widgets branch October 25, 2023 16:20
billyvg added a commit that referenced this pull request Oct 26, 2023
- refactor to support multiple widgets
- add `attachTo` and `createWidget` public methods to create respective
components.
billyvg added a commit that referenced this pull request Oct 31, 2023
- refactor to support multiple widgets
- add `attachTo` and `createWidget` public methods to create respective
components.
billyvg added a commit that referenced this pull request Oct 31, 2023
- refactor to support multiple widgets
- add `attachTo` and `createWidget` public methods to create respective
components.
billyvg added a commit that referenced this pull request Nov 1, 2023
- refactor to support multiple widgets
- add `attachTo` and `createWidget` public methods to create respective
components.
billyvg added a commit that referenced this pull request Nov 1, 2023
- refactor to support multiple widgets
- add `attachTo` and `createWidget` public methods to create respective
components.
billyvg added a commit that referenced this pull request Nov 6, 2023
- refactor to support multiple widgets
- add `attachTo` and `createWidget` public methods to create respective
components.
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