-
-
Notifications
You must be signed in to change notification settings - Fork 333
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
feat(user feedback): display a button in a window that presents a vc #4364
Conversation
Sources/Swift/Integrations/UserFeedback/SentryUserFeedbackIntegrationDriver.swift
Outdated
Show resolved
Hide resolved
Sources/Swift/Integrations/UserFeedback/SentryUserFeedbackIntegration.m
Outdated
Show resolved
Hide resolved
Sources/Swift/Integrations/UserFeedback/SentryUserFeedbackWidget.swift
Outdated
Show resolved
Hide resolved
Sources/Swift/Integrations/UserFeedback/SentryUserFeedbackWidget.swift
Outdated
Show resolved
Hide resolved
This comment was marked as outdated.
This comment was marked as outdated.
This comment was marked as resolved.
This comment was marked as resolved.
This comment was marked as outdated.
This comment was marked as outdated.
This comment was marked as outdated.
This comment was marked as outdated.
This comment was marked as outdated.
This comment was marked as outdated.
This comment was marked as off-topic.
This comment was marked as off-topic.
This comment was marked as off-topic.
This comment was marked as off-topic.
The diff is currently a little over 500 lines added, note that half of that is just the UIBezier drawing the megaphone that I got from our SVG design asset :D |
This comment was marked as off-topic.
This comment was marked as off-topic.
This comment was marked as resolved.
This comment was marked as resolved.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just a suggestion for the megaphone drawing
Sources/Swift/Integrations/UserFeedback/SentryUserFeedbackWidgetButtonMegaphoneIconView.swift
Outdated
Show resolved
Hide resolved
Sources/Swift/Integrations/UserFeedback/SentryUserFeedbackWidgetButtonMegaphoneIconView.swift
Show resolved
Hide resolved
This comment was marked as outdated.
This comment was marked as outdated.
This can be debated separately from this PR if people want to. I'll just note here that theme options will also be needed in the form, so I tried creating a composition hierarchy that indicates they are used by more than just the widget (button): Since the widget and form will use a lot of the same options I don't think it makes sense to make separate theme objects for each to own separately. |
@brustolin Would you mind if we do it in a separate PR along with #4364 (comment)? I just don't want to mess the diff up here. Nothing is being shipped yet so there's no danger of a file not being delivered where it should be. ETA: unless it's required for CI to pass anyways, that is... |
Are you planning to merge this PR back to main without the form ready? If we make another release in the meantime, users will be able to show the button but it won't be working? What is the release plan/timeline for this? I would happily agree to have a feature branch where we can merge this and any other partial work of user feedback. |
@brustolin yes, then plan is to merge to main for each PR. The option is currently in SentryOptions+Private so they should not be able to get a widget showing in their app. |
Ok, good enough for me. Thanks! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I have my reservations about the composition of theme configuration, but this is not a blocker.
LGTM
#skip-changelog; for #4270
Deliver a complete styled button like we have in the javascript SDK docs that opens a modal view where the form will go in a subsequent PR.
Check the linked issue for updates on what it looks like with various config settings and device settings like for accessibility and dark mode.