Skip to content

[Customer Center] Build feedback survey from JSON#3959

Merged
vegaro merged 1 commit into
integration/customer_support_workflowfrom
feedback-survey
Jul 11, 2024
Merged

[Customer Center] Build feedback survey from JSON#3959
vegaro merged 1 commit into
integration/customer_support_workflowfrom
feedback-survey

Conversation

@vegaro

@vegaro vegaro commented Jun 14, 2024

Copy link
Copy Markdown
Member

Based off #3933

Jun-14-2024.16-44-31.mp4

Can probably use some animations, but tuning that up will come up later

It will open a feedback survey for an option if there's one

@vegaro

vegaro commented Jun 17, 2024

Copy link
Copy Markdown
Member Author

Warning

This pull request is not mergeable via GitHub because a downstack PR is open. Once all requirements are satisfied, merge this PR as a stack on Graphite.
Learn more

This stack of pull requests is managed by Graphite. Learn more about stacking.

Join @vegaro and the rest of your teammates on Graphite Graphite

@vegaro vegaro force-pushed the sdk-3472-add-hardcoded-response-to-sdk branch from 8957234 to 2f36ec7 Compare June 17, 2024 12:33
@vegaro vegaro force-pushed the feedback-survey branch from 52d7441 to 01cd52a Compare June 17, 2024 12:33
@vegaro vegaro force-pushed the sdk-3472-add-hardcoded-response-to-sdk branch from 2f36ec7 to 2d41724 Compare June 17, 2024 12:43
@vegaro vegaro force-pushed the feedback-survey branch from 01cd52a to b17129a Compare June 17, 2024 12:43
@vegaro vegaro force-pushed the feedback-survey branch from b17129a to 6d0dfbf Compare June 17, 2024 13:58
@vegaro vegaro force-pushed the sdk-3472-add-hardcoded-response-to-sdk branch from f589baa to 000d6cd Compare June 26, 2024 12:47
@vegaro vegaro force-pushed the feedback-survey branch from 6d0dfbf to 0540b7f Compare June 26, 2024 12:47
@vegaro vegaro force-pushed the sdk-3472-add-hardcoded-response-to-sdk branch from 000d6cd to ad260d3 Compare June 26, 2024 12:55
@vegaro vegaro force-pushed the feedback-survey branch from 0540b7f to 4a16289 Compare June 26, 2024 12:56
@vegaro vegaro force-pushed the sdk-3472-add-hardcoded-response-to-sdk branch from ad260d3 to 3dd2fb0 Compare June 26, 2024 14:45
@vegaro vegaro force-pushed the feedback-survey branch from 4a16289 to 2eb43e8 Compare June 26, 2024 14:45
@vegaro vegaro force-pushed the sdk-3472-add-hardcoded-response-to-sdk branch from 3dd2fb0 to 821016e Compare June 27, 2024 10:15
@vegaro vegaro force-pushed the feedback-survey branch from 2eb43e8 to 5e24a1d Compare June 27, 2024 10:15
@vegaro vegaro force-pushed the sdk-3472-add-hardcoded-response-to-sdk branch from 821016e to 06caec1 Compare June 28, 2024 10:19
@vegaro vegaro force-pushed the feedback-survey branch 3 times, most recently from bd32cdd to 466858a Compare June 28, 2024 11:06
@vegaro vegaro force-pushed the sdk-3472-add-hardcoded-response-to-sdk branch from 516fb3a to 6572cf1 Compare June 28, 2024 13:24
@vegaro vegaro force-pushed the feedback-survey branch from 466858a to 085e2f5 Compare June 28, 2024 13:24
@vegaro vegaro force-pushed the sdk-3472-add-hardcoded-response-to-sdk branch from 6572cf1 to 7f655ec Compare July 1, 2024 11:04
@vegaro vegaro force-pushed the feedback-survey branch 2 times, most recently from afacfb8 to b90528b Compare July 8, 2024 16:12
@vegaro vegaro force-pushed the sdk-3472-add-hardcoded-response-to-sdk branch from 09cb7eb to 982d7a6 Compare July 8, 2024 18:42
@vegaro vegaro force-pushed the feedback-survey branch from b90528b to a358c5e Compare July 8, 2024 18:42
@vegaro vegaro force-pushed the sdk-3472-add-hardcoded-response-to-sdk branch from 4bbc8de to 7268b6f Compare July 8, 2024 19:52
@vegaro vegaro force-pushed the feedback-survey branch from a358c5e to b18a45b Compare July 8, 2024 19:52
@vegaro vegaro force-pushed the sdk-3472-add-hardcoded-response-to-sdk branch from 7268b6f to 8a1313f Compare July 8, 2024 20:13
@vegaro vegaro force-pushed the feedback-survey branch 2 times, most recently from af40602 to 62f405e Compare July 9, 2024 12:51
@vegaro vegaro force-pushed the sdk-3472-add-hardcoded-response-to-sdk branch from b58de4b to 3dcc74f Compare July 9, 2024 14:44
@vegaro vegaro force-pushed the feedback-survey branch from 62f405e to 9d7b388 Compare July 9, 2024 14:44
@vegaro vegaro force-pushed the sdk-3472-add-hardcoded-response-to-sdk branch from 3dcc74f to e0b4ea4 Compare July 9, 2024 15:13
@vegaro vegaro force-pushed the feedback-survey branch from 9d7b388 to 94df806 Compare July 9, 2024 15:13
@vegaro vegaro force-pushed the sdk-3472-add-hardcoded-response-to-sdk branch from e0b4ea4 to 93ccbc5 Compare July 9, 2024 18:32
@vegaro vegaro force-pushed the feedback-survey branch from 94df806 to 804f017 Compare July 9, 2024 18:32
Base automatically changed from sdk-3472-add-hardcoded-response-to-sdk to integration/customer_support_workflow July 9, 2024 19:48
@vegaro vegaro force-pushed the integration/customer_support_workflow branch from 8099f65 to 49d2a2d Compare July 9, 2024 19:49
@vegaro vegaro force-pushed the feedback-survey branch 3 times, most recently from e14b53c to da7a147 Compare July 10, 2024 12:37
@vegaro vegaro requested a review from a team July 10, 2024 12:56

@tonidero tonidero left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Just some questions but looking good!

Comment thread RevenueCatUI/CustomerCenter/Views/FeedbackSurveyView.swift Outdated
ForEach(options, id: \.id) { option in
Button(option.title) {
Task {
self.action()

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Hmm so the way it is right now, every option will have the same action. However, we might have different actions right? Like some questions might provide a promotional offer and some won't. Do we need to change this and/or send back the id?

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

You're correct. I built that in https://github.com/RevenueCat/purchases-ios/pull/3968/files#diff-b11601f94f84f34e8c7259de27e1760a2919c2ccb27d582eb7d4daa019d57f37 to keep this one simple, I should have make that more clear sorry!

ForEach(options, id: \.id) { option in
Button(option.title) {
Task {
self.action()

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

A different question, if you press the button multiple times quickly, do we handle it gracefully? Mostly thinking about the Task we use here so not sure...

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

Also handled in https://github.com/RevenueCat/purchases-ios/pull/3968/files#diff-b11601f94f84f34e8c7259de27e1760a2919c2ccb27d582eb7d4daa019d57f37R82 although it should be an AsyncButton actually, so I will update that in this PR

@vegaro vegaro force-pushed the feedback-survey branch from da7a147 to e65788b Compare July 10, 2024 21:50
@vegaro vegaro merged commit 6bf908a into integration/customer_support_workflow Jul 11, 2024
@vegaro vegaro deleted the feedback-survey branch July 11, 2024 06:10
vegaro added a commit that referenced this pull request Jul 15, 2024
Based off #3933 



https://github.com/RevenueCat/purchases-ios/assets/664544/11eae984-294a-4e14-8c40-7c2d50994c09

Can probably use some animations, but tuning that up will come up later

It will open a feedback survey for an option if there's one
vegaro added a commit that referenced this pull request Jul 17, 2024
Based off #3933 



https://github.com/RevenueCat/purchases-ios/assets/664544/11eae984-294a-4e14-8c40-7c2d50994c09

Can probably use some animations, but tuning that up will come up later

It will open a feedback survey for an option if there's one
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants