-
Notifications
You must be signed in to change notification settings - Fork 2.1k
fix: Disabling Welcome Card leads buggy preview #1320
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
Conversation
|
@HarshitVashisht11 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! 🙏 |
|
This PR looks fine with some additional conditions for the You're assuming ) : questionId === "start" && !survey.welcomeCard.enabled && survey?.questions[0] ? (
<QuestionConditional
question={survey.questions[0]}
value={responseData[survey.questions[0]?.id]}
onChange={onChange}
onSubmit={onSubmit}
onBack={onBack}
isFirstQuestion={
// if prefillResponseData is provided, check if we're on the first "real" question
history && prefillResponseData
? history[history.length - 1] === survey.questions[0].id
: true
}
isLastQuestion={0 === survey.questions.length - 1}
brandColor={brandColor}
/>
) : survey.questions.length > 0 ? (
survey.questions.map(
(question, idx) => {/* existing logic */}
) : nullIn the code above, before rendering |
|
Hey @HarshitVashisht11 , this looks good 😊🥳 However it would be better if we don't repeat the code for rendering Because we also want to use this fix for thank you card and as per this approach we have to create one more render for And can you also create similar fix for thank you card (if disabled, show last question) Thank you ! 🚀 |
|
sure i will try |
|
Hey @HarshitVashisht11 😊 , is it ready for review ? |
|
Hi @Dhruwang can tell how to remove thankyou card because i am not able to find option of removing thank you card in the website |
|
@Dhruwang i can't understand when thank you card is disabled so what will it display when you click on finish |
|
It should display last question |
|
But on last question if someone clicked on finish so why will it show last question |
Untitled.video.-.Made.with.Clipchamp.1.mp4@Dhruwang is these changes are good ? |
|
@HarshitVashisht11 The Welcome Card behaviour is good, this works :) People can check out the card but the Preview doesnt break! On the Thank You card, its not good:
Thanks!! 🙏 |
Untitled.video.-.Made.with.Clipchamp.2.mp4I have made the following changes |
|
@Dhruwang please review my changes |
|
The latest updates on your projects. Learn more about Vercel for Git ↗︎ 2 Ignored Deployments
|
|
Thank you @HarshitVashisht11 for the changes, works good 😊🚀 |
|
Hi @Dhruwang Thank you for reviewing my PR, I'm excited to know when my PR might get merged , as hacktoberfest is about to end and I still left 1 more PR. |
|
Works well, sorry for the delay and thanks! :) |
* main: (28 commits) chore: Add Table of Contents to README (formbricks#1427) fix: account deletion failing issue (formbricks#1509) fix: remove welcome card from email preview (formbricks#1495) fix(bug): default role implemented (formbricks#1524) fix: changing description of Code Action (formbricks#1522) refactor: Migrate activity service (formbricks#1471) fix: Error in Docs navigation formbricks#1518 (formbricks#1521) feat: dynamic title and description (formbricks#1459) fix: Spelling Errors (formbricks#1517) fix: added scrollbar whenever overflowed in the settings/profile page (formbricks#1498) fix: long url not getting reset after closing modal (formbricks#1502) fix: Unexpected Behavior when Toggling Italics in Text Editor and improve clarity of formatting status (formbricks#1506) fix: zod pin validation failing (formbricks#1507) fix: Error message on Login not shown (formbricks#1508) fix: downgrade nextjs to fix error with react email (formbricks#1516) chore: downgrade next version in formbricks-com (formbricks#1513) feat: picture selection question (formbricks#1388) feat: formtribe leaderboard update as per today (formbricks#1505) fix: Added if statement for preventing use of reserved word in question ID (formbricks#1435) fix: Disabling Welcome Card leads buggy preview (formbricks#1320) ...


What does this PR do?
Fixes #1289
Type of change
How should this be tested?
Checklist
Required
pnpm buildconsole.logsgit pull origin mainAppreciated