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: recontactSessions new option to remind about survey for some time #2443
base: main
Are you sure you want to change the base?
Conversation
@KatSick is attempting to deploy a commit to the formbricks Team on Vercel. A member of the Team first needs to authorize it. |
Thank you for following the naming conventions for pull request titles! 🙏 |
@KatSick Thanks for opening the PR :-) This approach sounds very interesting and I will discuss it with the team :-) |
thanks @mattinannt. added filtering to |
Hey @KatSick I have two objections from a UX point of view:
So I suggest something like this: What do you think? Thanks a lot! :) |
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.
pls see comment above
looks awesome to me. I will change my implementation. |
hey @KatSick - any updated from your end? :) |
Working on it. I hope to finish it today/tomorrow |
9c0b416
to
7a060a5
Compare
@jobenjada updated |
I noticed, that current logic is broken for "app" type surveys, since they do not have filterSurveys function anymore... investigating |
I tried my best to fix it, however, I does not work correctly still for app surveys, because it does not always re-fetch config in sync.ts file. If I delete the formbricks-js-app localstorage cache (to force update), it works correctly each time. how this feature should work without local client state as in survey website type? |
fix: makeRequest - allow apiHost with baseURL fix: refactor getSyncSurveys function to filter surveys based on recontactSessions refactor: use recontactSession as displayOption + fix close button fix: use responses to detect if user answered to survey
What does this PR do?
Add a feature to show survey "reminder" based on displays count. E.g. show survey 3 times and then stop.
Currently it is only possible to show once or until feedback.
How should this be tested?
Required
pnpm build
console.logs
git pull origin main
Appreciated