-
Notifications
You must be signed in to change notification settings - Fork 912
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: Refactor Triggers and combine Action Classes and Inline Triggers #2562
feat: Refactor Triggers and combine Action Classes and Inline Triggers #2562
Conversation
…101-refactor-triggers-and-combine-action-classes-and-inline-triggers
…101-refactor-triggers-and-combine-action-classes-and-inline-triggers
…101-refactor-triggers-and-combine-action-classes-and-inline-triggers
The latest updates on your projects. Learn more about Vercel for Git ↗︎
2 Ignored Deployments
|
Thank you for following the naming conventions for pull request titles! 🙏 |
…101-refactor-triggers-and-combine-action-classes-and-inline-triggers
…101-refactor-triggers-and-combine-action-classes-and-inline-triggers
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.
@gupta-piyush19 thanks a lot for the feature! :-) 💪
I already had a very brief look at the code and added some comments :-)
...app/(app)/environments/[environmentId]/surveys/[surveyId]/edit/components/AddActionModal.tsx
Outdated
Show resolved
Hide resolved
...app/(app)/environments/[environmentId]/surveys/[surveyId]/edit/components/AddActionModal.tsx
Outdated
Show resolved
Hide resolved
...ta-migrations/20240501111944_refactors_actions_and_removes_inline_triggers/data-migration.ts
Outdated
Show resolved
Hide resolved
...ta-migrations/20240501111944_refactors_actions_and_removes_inline_triggers/data-migration.ts
Outdated
Show resolved
Hide resolved
…101-refactor-triggers-and-combine-action-classes-and-inline-triggers
…line-triggers' of https://github.com/formbricks/formbricks into 101-refactor-triggers-and-combine-action-classes-and-inline-triggers
…101-refactor-triggers-and-combine-action-classes-and-inline-triggers
…101-refactor-triggers-and-combine-action-classes-and-inline-triggers
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.
Hey Piyush!
I came across a few more issues:
- There is an issue with the selection of the actions:
actions-search.mp4
After seraching, it shows a wider range of options to choose from.
- Saving Error + it does not prevent Survey Editor closing:
actions-saving-bug.mp4
I'm getting the Save Error with preexisting surveys, not with new ones. Maybe the migration did not work as planned?
![image](https://private-user-images.githubusercontent.com/72809645/328488936-b8f419d2-a818-42b6-b693-efb6b7460064.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MTgwMjYzMjcsIm5iZiI6MTcxODAyNjAyNywicGF0aCI6Ii83MjgwOTY0NS8zMjg0ODg5MzYtYjhmNDE5ZDItYTgxOC00MmI2LWI2OTMtZWZiNmI3NDYwMDY0LnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNDA2MTAlMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjQwNjEwVDEzMjcwN1omWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPTA0NjM4YjhkYTU0MjE3YzAzYzNjNGNiYWU5NGYzMTZjZTBhMzI3MTU4NDljYjVjYjQ2NzU1YTA4OWE0YzczZTQmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0JmFjdG9yX2lkPTAma2V5X2lkPTAmcmVwb19pZD0wIn0.lLx1NMjAYVJYHrJqoD8fWYy5RvE0etFtRgPQo94XzEE)
![image](https://private-user-images.githubusercontent.com/72809645/328489023-3c4b4057-0510-42b1-b5f2-76911a9564fe.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MTgwMjYzMjcsIm5iZiI6MTcxODAyNjAyNywicGF0aCI6Ii83MjgwOTY0NS8zMjg0ODkwMjMtM2M0YjQwNTctMDUxMC00MmIxLWI1ZjItNzY5MTFhOTU2NGZlLnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNDA2MTAlMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjQwNjEwVDEzMjcwN1omWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPTExZTNjNDhhNzE2YzljNjY1ZDVmZjExYzE3ZGZhNGY5YmVlNzI0ZjZlYzg0ZGEzN2E2ZTEyN2FmYmZhNDNhNjUmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0JmFjdG9yX2lkPTAma2V5X2lkPTAmcmVwb19pZD0wIn0.ZpzehgJSiIQj3nEr3art9KsD9oXxDTz_Q0Fv5whky80)
Looks like it is because I created the surveys with the Slick Card PR.
But pls still look into why the Save & Close closes the editor even though we throw an error.
- Remove duplicate forms: Use the Action Create form from the Survey Editor on the Actions page:
Thanks a lot! :)
…101-refactor-triggers-and-combine-action-classes-and-inline-triggers
…line-triggers' of https://github.com/formbricks/formbricks into 101-refactor-triggers-and-combine-action-classes-and-inline-triggers
Thanks, @jobenjada, for the review. 🙌
|
What does this PR do?
Fixes
https://github.com/formbricks/internal/issues/101
How should this be tested?
npx prisma migrate dev
to migrate the DB schemapnpm run data-migration:refactor-actions
after navigating into thepackages/database
directory.Checklist
Required
pnpm build
console.logs
git pull origin main
Appreciated