* Add reCAPTCHA support and update captcha provider handling
- Introduced reCAPTCHA as an additional captcha provider alongside hCaptcha.
- Updated form request validation to handle different captcha providers based on user selection.
- Added a new validation rule for reCAPTCHA.
- Modified the forms model to include a 'captcha_provider' field.
- Created a migration to add the 'captcha_provider' column to the forms table.
- Updated frontend components to support dynamic rendering of captcha based on the selected provider.
- Enhanced tests to cover scenarios for both hCaptcha and reCAPTCHA.
These changes improve the flexibility of captcha options available to users, enhancing form security and user experience.
* fix pint
* change comment text
* Refactor captcha implementation and integrate new captcha components
- Removed the old RecaptchaV2 component and replaced it with a new implementation that supports both reCAPTCHA and hCaptcha through a unified CaptchaInput component.
- Updated the OpenForm component to utilize the new CaptchaInput for dynamic captcha rendering based on user-selected provider.
- Cleaned up the package.json by removing the deprecated @hcaptcha/vue3-hcaptcha dependency.
- Enhanced form initialization to set a default captcha provider.
- Improved error handling and cleanup for both reCAPTCHA and hCaptcha scripts.
These changes streamline captcha integration, improve maintainability, and enhance user experience by providing a more flexible captcha solution.
* Refactor captcha error messages and localization support
* Refactor registration process to integrate reCAPTCHA
- Replaced hCaptcha implementation with reCAPTCHA in RegisterController and related test cases.
- Updated validation rules to utilize g-recaptcha-response instead of h-captcha-response.
- Modified RegisterForm component to support reCAPTCHA, including changes to the form data structure and component references.
- Enhanced test cases to reflect the new reCAPTCHA integration, ensuring proper validation and response handling.
These changes improve security and user experience during the registration process by adopting a more widely used captcha solution.
* Fix reCAPTCHA configuration and update RegisterForm styling
- Corrected the configuration key for reCAPTCHA in RegisterController from 'services.recaptcha.secret_key' to 'services.re_captcha.secret_key'.
- Updated the styling of the Captcha input section in RegisterForm.vue to improve layout consistency.
These changes ensure proper reCAPTCHA functionality and enhance the user interface during the registration process.
* Fix reCAPTCHA configuration in RegisterTest to use the correct key format
- Updated the configuration key for reCAPTCHA in RegisterTest from 'services.recaptcha.secret_key' to 'services.re_captcha.secret_key' to ensure proper functionality during tests.
This change aligns the test setup with the recent updates in the reCAPTCHA integration, improving the accuracy of the registration process tests.
---------
Co-authored-by: Julien Nahum <julien@nahum.net>
* Form Translation
* Support for other languages
* Support locale for datepicker
* Apply translation on select input
* Apply translation on select input
* Improve translation
---------
Co-authored-by: Julien Nahum <julien@nahum.net>
* Form editor v2
* fix template test
* setFormDefaults when save
* fix form cleaning dark mode
* improvements on open sidebar
* UI polish
* Fix change type button
---------
Co-authored-by: Julien Nahum <julien@nahum.net>
* Better Form Stats
* fix lint
* submission timer store in localstorage
* Update test case for stats
* remove extra code
* fix form stats
* on restart remove timer
* fix resetTimer function name
* Improve form timer
* Fix timer after form validation error + polish UI
---------
Co-authored-by: Julien Nahum <julien@nahum.net>
* Re-organize a bit controllers
* Added the featureflagcontroller
* Implement feature flags in the front-end
* Clean env files
* Clean console.log messages
* Fix feature flag test
* Google Fonts
* Google fonts improvement
* font button color
* Refine font selection UI and update font fetching logic
- Update FontsController to fetch Google fonts sorted by popularity.
- Enhance FontCard component with additional skeleton loaders for better UX during font loading.
- Adjust check icon positioning in FontCard to be absolute for consistent UI.
- Remove unnecessary class in GoogleFontPicker's text input.
- Add border and rounded styling to the font list container in GoogleFontPicker.
- Simplify computed property for enrichedFonts in GoogleFontPicker.
- Implement inline font style preview in FormCustomization component.
---------
Co-authored-by: Frank <csskfaves@gmail.com>
Co-authored-by: Julien Nahum <julien@nahum.net>
More debugging on custom domain side
Debugging custom domain redirect further
Debugging custom domain redirect opnform
More debugging on custom domain side
Debugging custom domain redirect further
* Working on custom radius + input size
* Fix date input clear vertical align
* Moslty finished implementing small size
* Polishing larger theme
* Finish large theme
* Added size/radius options in form editor
* Darken help text, improve switch input help location
* Slight form editor improvement
* Fix styling
* Polish of the form editor
* #365 Updated documentation for changing ports. Updated the nuxt config to use separate internal and external api urls
* #365 Switch to using relative urls
---------
Co-authored-by: Julien Nahum <julien@nahum.net>
* Integrations Refactoring - WIP
* integrations list & edit - WIP
* Fix integration store binding issue
* integrations refactor - WIP
* Form integration - WIP
* Form integration Edit - WIP
* Integration Refactor - Slack - WIP
* Integration Refactor - Discord - WIP
* Integration Refactor - Webhook - WIP
* Integration Refactor - Send Submission Confirmation - WIP
* Integration Refactor - Backend handler - WIP
* Form Integration Status field
* Integration Refactor - Backend SubmissionConfirmation - WIP
* IntegrationMigration Command
* skip confirmation email test case
* Small refactoring
* FormIntegration status active/inactive
* formIntegrationData to integrationData
* Rename file name with Integration suffix for integration realted files
* Loader on form integrations
* WIP
* form integration test case
* WIP
* Added Integration card - working on refactoring
* change location for IntegrationCard and update package file
* Form Integration Create/Edit in single Modal
* Remove integration extra pages
* crisp_help_page_slug for integration json
* integration logic as collapse
* UI improvements
* WIP
* Trying to debug vue devtools
* WIP for integrations
* getIntegrationHandler change namespace name
* useForm for integration fields + validation structure
* Integration Test case & apply validation rules
* Apply useform changes to integration other files
* validation rules for FormNotificationsMessageActions fields
* Zapier integration as coming soon
* Update FormCleaner
* set default settings for confirmation integration
* WIP
* Finish validation for all integrations
* Updated purify, added integration formatData
* Fix testcase
* Ran pint; working on integration errors
* Handle integration events
* Remove old code related to notifications
* command for Delete Old Integration Events
* Display Past Events in Modal
* on Integration event create with status error send email to form creator
* Polish styling
* Minor improvements
* Finish badge and integration status
* Fix tests and add an integration event test
* Run linters
---------
Co-authored-by: Forms Dev <chirag+new@notionforms.io>
Co-authored-by: Julien Nahum <julien@nahum.net>
* Separate input type for Rating,Scale,Slider
* rating, scale, slider add in test cases
* Allow field type change for new types
* Added options to db factory
* Fix linting
---------
Co-authored-by: Julien Nahum <julien@nahum.net>
* Settings pages migration
* remove axios and use opnFetch
* Make created form reactive (#267)
* Remove verify pages and axios lib
---------
Co-authored-by: Julien Nahum <julien@nahum.net>