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

feat: Extend Prefilling with an option to auto-skip prefilled values #2598

Conversation

gupta-piyush19
Copy link
Contributor

What does this PR do?

Extend Prefilling with an option to auto-skip prefilled values.

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

How should this be tested?

  • Test the functionality of multi-ques prefilling with a new query param skipPrefilled=1.
  • It should skip the prefilled questions

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

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 May 9, 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 May 23, 2024 10:50am
formbricks-docs ⬜️ Ignored (Inspect) Visit Preview May 23, 2024 10:50am

Copy link
Contributor

github-actions bot commented May 9, 2024

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

@gupta-piyush19 gupta-piyush19 marked this pull request as draft May 9, 2024 15:26
@gupta-piyush19 gupta-piyush19 marked this pull request as ready for review May 13, 2024 05:48
…145-extend-prefilling-with-an-option-to-auto-skip-prefilled-values
…lled-values' of https://github.com/formbricks/formbricks into 145-extend-prefilling-with-an-option-to-auto-skip-prefilled-values
Copy link
Contributor

@pandeymangg pandeymangg left a comment

Choose a reason for hiding this comment

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

Thanks a lot for the PR! @gupta-piyush19 😊
Looks good, just left some comments for minor refactor, pls take a look 🙏

packages/surveys/src/components/general/Survey.tsx Outdated Show resolved Hide resolved
apps/web/app/s/[surveyId]/components/LinkSurvey.tsx Outdated Show resolved Hide resolved
…145-extend-prefilling-with-an-option-to-auto-skip-prefilled-values
…lled-values' of https://github.com/formbricks/formbricks into 145-extend-prefilling-with-an-option-to-auto-skip-prefilled-values
Copy link
Contributor

@pandeymangg pandeymangg left a comment

Choose a reason for hiding this comment

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

Thanks a lot for the changes!
LGTM! 🚀

gupta-piyush19 and others added 3 commits May 15, 2024 16:21
…145-extend-prefilling-with-an-option-to-auto-skip-prefilled-values
…lled-values' of https://github.com/formbricks/formbricks into 145-extend-prefilling-with-an-option-to-auto-skip-prefilled-values
Copy link
Member

@mattinannt mattinannt left a comment

Choose a reason for hiding this comment

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

@gupta-piyush19 Nice, the feature works great!! :-) 💪
I only changed the value of skipPrefilling from 1 to true since I noticed we now also use true in all other functionality and this felt more consistent with the other features.
Great job; let's merge this :-)

@mattinannt mattinannt added this pull request to the merge queue May 23, 2024
@mattinannt mattinannt removed this pull request from the merge queue due to a manual request May 23, 2024
@mattinannt mattinannt enabled auto-merge May 23, 2024 10:50
@mattinannt mattinannt added this pull request to the merge queue May 23, 2024
Merged via the queue into main with commit 1284adf May 23, 2024
12 checks passed
@mattinannt mattinannt deleted the 145-extend-prefilling-with-an-option-to-auto-skip-prefilled-values branch May 23, 2024 11:48
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