opnform-host-nginx/api
Chirag Chhatrala cc2b0e989d
Slug customisation (#755)
* Enhance Form Slug Handling and Validation Logic

- Updated `FormController.php` to conditionally set the form slug based on the `self_hosted` configuration, ensuring proper slug assignment during form creation and updates.
- Introduced `CustomSlugRule.php` to validate custom slugs, enforcing format and uniqueness constraints, and integrated this rule into `UserFormRequest.php`.
- Enhanced the `FormCustomSeo.vue` component to include a field for custom URL slugs, improving user experience by allowing users to define unique identifiers for their forms.
- Updated API routes to apply middleware for form updates, ensuring proper form resolution during requests.

These changes aim to improve the functionality and user experience related to form slug management and validation.

* Test case for Custom slug

* Update OpenCompleteForm and FormCustomSeo for Improved Functionality and Clarity

- Modified `OpenCompleteForm.vue` to ensure `submissionId` is correctly referenced as `submissionId.value`, enhancing data handling during form initialization.
- Updated `FormCustomSeo.vue` to rename "Custom URL Slug" to "Custom Form URL" for better clarity and user understanding, ensuring consistent terminology across the application.
- Enhanced `useFormInitialization.js` to include `submission_id` in the data passed to `form.resetAndFill`, improving the accuracy of form data handling.

These changes aim to improve the functionality and user experience of the form components by ensuring correct data references and clearer labeling.

---------

Co-authored-by: Julien Nahum <julien@nahum.net>
2025-05-19 21:06:54 +02:00
..
app Slug customisation (#755) 2025-05-19 21:06:54 +02:00
bootstrap Refactor Docker configuration and development setup 2025-01-29 17:19:36 +01:00
config Enhance JWT Authentication Middleware and Configuration 2025-05-07 08:26:33 +02:00
database Partial submissions (#705) 2025-04-28 17:33:55 +02:00
public Separated laravel app to its own folder (#540) 2024-08-26 18:24:56 +02:00
resources Stripe Payment (#679) 2025-04-10 12:04:25 +02:00
routes Slug customisation (#755) 2025-05-19 21:06:54 +02:00
storage Separated laravel app to its own folder (#540) 2024-08-26 18:24:56 +02:00
tests Slug customisation (#755) 2025-05-19 21:06:54 +02:00
.env.docker Integration pages from Notion (#753) 2025-05-19 15:08:15 +02:00
.env.example Integration pages from Notion (#753) 2025-05-19 15:08:15 +02:00
.gitignore Separated laravel app to its own folder (#540) 2024-08-26 18:24:56 +02:00
_ide_helper_models.php Separated laravel app to its own folder (#540) 2024-08-26 18:24:56 +02:00
artisan Update Docker Documentation to Address Line Ending Issues for Windows Users 2025-03-21 16:30:59 +01:00
composer.json Stripe Payment (#679) 2025-04-10 12:04:25 +02:00
composer.lock Stripe Payment (#679) 2025-04-10 12:04:25 +02:00
phpunit.xml Email spam security (#641) 2024-12-18 13:16:27 +01:00
pint.json Separated laravel app to its own folder (#540) 2024-08-26 18:24:56 +02:00
ray.php Refactor form rendering (#747) 2025-05-07 17:15:56 +02:00
server.php Separated laravel app to its own folder (#540) 2024-08-26 18:24:56 +02:00
vapor.yml Update Vapor deployment configuration 2025-02-15 09:18:27 +00:00