opnform-host-nginx/client/pages
Chirag Chhatrala 61e9493e1e
Add Template Creation Functionality in Admin Panel (#729)
* Add create template functionality in Admin Panel

- Implemented a new endpoint for creating templates in AdminController, utilizing the GenerateTemplate command.
- Added a form in the admin settings Vue component to allow users to input a template description and submit it.
- Enhanced the user experience with loading states and success/error alerts during template creation.

These changes facilitate the generation of new form templates directly from the admin interface, improving usability and functionality.

* Update template prompt validation length in AdminController

- Increased the maximum length of the 'template_prompt' field from 1000 to 4000 characters in the createTemplate method.

This change allows for more extensive template descriptions, enhancing the flexibility of template creation in the admin panel.

* Refactor template generation to use job-based approach

- Migrate template generation logic from the GenerateTemplate command to a new GenerateTemplateJob class for improved separation of concerns and better handling of asynchronous processing.
- Update AdminController to utilize the new job for generating templates, enhancing maintainability and clarity in the codebase.
- Remove unused dependencies and streamline the command's handle method for better performance and readability.

* fix lint

---------

Co-authored-by: Julien Nahum <julien@nahum.net>
2025-03-25 12:14:09 +01:00
..
forms Re-login modal (#717) 2025-03-25 10:41:11 +01:00
oauth Re-login modal (#717) 2025-03-25 10:41:11 +01:00
password B8e23 submission list UI fixes (#426) 2024-05-29 11:00:27 +02:00
redirect Billing flow redirect (#713) 2025-03-05 19:16:33 +08:00
settings Add Template Creation Functionality in Admin Panel (#729) 2025-03-25 12:14:09 +01:00
subscriptions fix subscription success page (#636) 2024-12-02 10:55:09 +01:00
templates Decouple title from title block (#696) 2025-03-21 16:59:18 +01:00
ai-form-builder.vue Docker compose setup (#513) 2024-08-05 12:06:20 +02:00
home.vue Fix tag selection method in home page component (#690) 2025-02-03 08:52:26 +01:00
index.vue Fix typo 2024-10-17 12:40:10 +02:00
login.vue 7a137 google auth (#520) 2024-08-19 15:22:57 +02:00
pricing.vue Docker compose setup (#513) 2024-08-05 12:06:20 +02:00
privacy-policy.vue Docker compose setup (#513) 2024-08-05 12:06:20 +02:00
register.vue Feature flags (#543) 2024-08-27 16:49:43 +02:00
report-abuse.vue Create form abuse page (#731) 2025-03-20 19:01:40 +01:00
settings.vue Update Billing Tab Condition in Settings Page 2025-01-27 11:37:36 +01:00
terms-conditions.vue Docker compose setup (#513) 2024-08-05 12:06:20 +02:00
update-credentials.vue Refactor Docker configuration and development setup 2025-01-29 17:19:36 +01:00