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

fix: survey jumping to 3rd question with prefilling #2421

Merged
merged 14 commits into from
Apr 18, 2024
Merged

Conversation

Dhruwang
Copy link
Contributor

@Dhruwang Dhruwang commented Apr 10, 2024

What does this PR do?

Eliminates activeQuestionid and onActiveQuestionChange and exposes a getter function getSetQuestionId which can be used on the outside to access internal setQuestionid
And some minor refactors

Fixes https://github.com/formbricks/internal/issues/51

How should this be tested?

Test survey with prefilling

Checklist

Required

  • Filled out the "How to test" section in this PR
  • Read How we Code at Formbricks
  • Self-reviewed my own code
  • Commented on my code in hard-to-understand bits
  • Ran pnpm build
  • Checked for warnings, there are none
  • Removed all console.logs
  • Merged the latest changes from main onto my branch with git pull origin main
  • My changes don't cause any responsiveness issues
  • First PR at Formbricks? Please sign the CLA! Without it we wont be able to merge it 🙏

Appreciated

  • If a UI change was made: Added a screen recording or screenshots to this PR
  • Updated the Formbricks Docs if changes were necessary

Copy link

vercel bot commented Apr 10, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

2 Ignored Deployments
Name Status Preview Comments Updated (UTC)
formbricks-cloud ⬜️ Ignored (Inspect) Visit Preview Apr 17, 2024 6:23pm
formbricks-com ⬜️ Ignored (Inspect) Visit Preview Apr 17, 2024 6:23pm

Copy link
Contributor

github-actions bot commented Apr 10, 2024

Thank you for following the naming conventions for pull request titles! 🙏

@Dhruwang Dhruwang marked this pull request as draft April 10, 2024 10:27
@Dhruwang Dhruwang marked this pull request as ready for review April 16, 2024 03:56
@mattinannt
Copy link
Member

@Dhruwang thanks for the PR :-) 💪 The use of questionId / getSetQuestionId looks good at first glance :-)

@gupta-piyush19 Can you please review the PR including testing the functionality for the survey editor and showing surveys with prefilling as well as startAt functionality? :-)

Copy link
Contributor

@gupta-piyush19 gupta-piyush19 left a comment

Choose a reason for hiding this comment

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

@Dhruwang Thanks for the fix. 🙂
Code changes looks good, can you please check this one bug in the preview editor(in case of disabled thankyou card).

bug.mp4

@mattinannt
Copy link
Member

@gupta-piyush19 Can you please check on the PR again and give your approval if you are now happy with the state of the PR? :-)

@gupta-piyush19
Copy link
Contributor

Yes @mattinannt, looks good to me. It works as expected 🚀. Thanks, @Dhruwang, for the changes.

@mattinannt mattinannt added this pull request to the merge queue Apr 18, 2024
Merged via the queue into main with commit 7f438af Apr 18, 2024
12 checks passed
@mattinannt mattinannt deleted the jump-issue-fix branch April 18, 2024 08:16
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.

None yet

3 participants