formbricks / formbricks

Open Source Survey Platform
https://formbricks.com
Other
5.9k stars 953 forks source link

fix: progress bar issue #2771

Closed Dhruwang closed 1 week ago

Dhruwang commented 1 week ago

What does this PR do?

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

Progress bar getting stuck at end

https://github.com/formbricks/formbricks/assets/67850763/e42199a8-b0d0-4335-bc71-5c3e82facc21

How should this be tested?

Test survey with a lot of questions and logic

Checklist

Required

Appreciated

vercel[bot] commented 1 week ago

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](https://vercel.com/formbricks/formbricks-cloud/34ps8RaevvGgb5gK2LTkigcmFBBL)) | [Visit Preview](https://formbricks-cloud-git-fix-progress-bar-bugs-out-formbricks.vercel.app) | | Jun 19, 2024 7:00am | | **formbricks-docs** | ⬜️ Ignored ([Inspect](https://vercel.com/formbricks/formbricks-docs/7dKrkwvYL2gQj8EHdCbMSZ5rymJx)) | [Visit Preview](https://formbricks-docs-git-fix-progress-bar-bugs-out-formbricks.vercel.app) | | Jun 19, 2024 7:00am |
github-actions[bot] commented 1 week ago

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

jobenjada commented 1 week ago

hey dhru! Definitely solves the problem :)

However, I have the case that if a question has a logic jump, if the user goes the longer route, for the next question the progress bar doesn't move:

https://github.com/formbricks/formbricks/assets/72809645/eebf3310-36e8-40ca-b7f9-fc2ad49dd238

It's not super bad and if it keeps the logic a lot simpler we can leave it at that. But initially, we decided that the bar should always move a little bit so that users have to impression that they keep making progress :)

Thanks!