opnform-host-nginx/client/pages/settings
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
..
access-tokens.vue Zapier integration (#491) 2024-08-12 11:14:02 +02:00
account.vue 0351d front end linting (#377) 2024-04-15 19:39:03 +02:00
admin.vue Add Template Creation Functionality in Admin Panel (#729) 2025-03-25 12:14:09 +01:00
billing.vue Billing flow redirect (#713) 2025-03-05 19:16:33 +08:00
connections.vue Dynamic OauthDriver scope (#544) 2024-08-29 13:28:02 +02:00
index.vue 0351d front end linting (#377) 2024-04-15 19:39:03 +02:00
password.vue 0351d front end linting (#377) 2024-04-15 19:39:03 +02:00
profile.vue 0351d front end linting (#377) 2024-04-15 19:39:03 +02:00
workspace.vue Add workspace update functionality (#699) 2025-02-12 13:43:55 +01:00