opnform-host-nginx/api/app
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
..
Console Add Template Creation Functionality in Admin Panel (#729) 2025-03-25 12:14:09 +01:00
Enums Separated laravel app to its own folder (#540) 2024-08-26 18:24:56 +02:00
Events Separated laravel app to its own folder (#540) 2024-08-26 18:24:56 +02:00
Exceptions Separated laravel app to its own folder (#540) 2024-08-26 18:24:56 +02:00
Exports Separated laravel app to its own folder (#540) 2024-08-26 18:24:56 +02:00
Http Add Template Creation Functionality in Admin Panel (#729) 2025-03-25 12:14:09 +01:00
Integrations Add error logging for integration failures in AbstractIntegrationHandler 2025-01-14 14:34:03 +01:00
Jobs Add Template Creation Functionality in Admin Panel (#729) 2025-03-25 12:14:09 +01:00
Listeners Custom SMTP Settings (#561) 2024-09-24 12:16:20 +02:00
Mail Apply Mentions everywhere (#595) 2024-10-22 10:34:29 +02:00
Models Decouple title from title block (#696) 2025-03-21 16:59:18 +01:00
Notifications Improve Email Notification Message-ID and Threading Generation 2025-03-06 13:21:12 +08:00
Open Enhance redirect URL handling and MentionParser functionality (#639) 2024-12-10 12:26:01 +01:00
Policies Add workspace update functionality (#699) 2025-02-12 13:43:55 +01:00
Providers Separated laravel app to its own folder (#540) 2024-08-26 18:24:56 +02:00
Rules Improve form property logic validation for checkbox conditions 2025-02-19 15:11:27 +01:00
Service Add 'exists_in_submissions' and 'does_not_exist_in_submissions' valid… (#725) 2025-03-25 11:50:59 +01:00
helpers.php Custom SMTP Settings (#561) 2024-09-24 12:16:20 +02:00