* I've successfully implemented task templates for vibe-kanban with the following features: - Created a new `task_templates` table with fields for: - `id` (UUID primary key) - `project_id` (nullable for global templates) - `title` (default task title) - `description` (default task description) - `template_name` (display name for the template) - Timestamps for tracking creation/updates - Created `TaskTemplate` model with full CRUD operations - Added REST API endpoints: - `GET /api/templates` - List all templates - `GET /api/templates/global` - List only global templates - `GET /api/projects/:project_id/templates` - List templates for a project (includes global) - `GET /api/templates/:id` - Get specific template - `POST /api/templates` - Create template - `PUT /api/templates/:id` - Update template - `DELETE /api/templates/:id` - Delete template 1. **Task Creation Dialog**: - Added template selector dropdown when creating new tasks - Templates are fetched based on project context - Selecting a template pre-fills title and description fields - User can edit pre-filled values before creating the task 2. **Global Settings**: - Added "Task Templates" section to manage global templates - Full CRUD interface with table view - Create/Edit dialog for template management 3. **Project Settings**: - Modified project form to use tabs when editing - Added "Task Templates" tab for project-specific templates - Same management interface as global settings - **Scope Management**: Templates can be global (available to all projects) or project-specific - **User Experience**: Template selection is optional and doesn't interfere with normal task creation - **Data Validation**: Unique template names within same scope (global or per-project) - **UI Polish**: Clean interface with loading states, error handling, and confirmation dialogs The implementation allows users to create reusable task templates that streamline the task creation process by pre-filling common values while still allowing full editing before submission. * improve styling * address review comments * fix unqiue contraint on tempaltes * distinguish between local and global templates in UI * keyboard shortcuts for task creation * add dropdown on project page to select templates * update types * add default global task templates * Add task templates from kanban (#219) * Create project templates from kanban * Fixes * remove duplicate --------- Co-authored-by: Louis Knight-Webb <louis@bloop.ai>
57 lines
1.3 KiB
JSON
57 lines
1.3 KiB
JSON
{
|
|
"db_name": "SQLite",
|
|
"query": "SELECT id as \"id!: Uuid\", project_id as \"project_id?: Uuid\", title, description, template_name, created_at as \"created_at!: DateTime<Utc>\", updated_at as \"updated_at!: DateTime<Utc>\"\n FROM task_templates \n WHERE project_id IS NULL\n ORDER BY template_name ASC",
|
|
"describe": {
|
|
"columns": [
|
|
{
|
|
"name": "id!: Uuid",
|
|
"ordinal": 0,
|
|
"type_info": "Blob"
|
|
},
|
|
{
|
|
"name": "project_id?: Uuid",
|
|
"ordinal": 1,
|
|
"type_info": "Blob"
|
|
},
|
|
{
|
|
"name": "title",
|
|
"ordinal": 2,
|
|
"type_info": "Text"
|
|
},
|
|
{
|
|
"name": "description",
|
|
"ordinal": 3,
|
|
"type_info": "Text"
|
|
},
|
|
{
|
|
"name": "template_name",
|
|
"ordinal": 4,
|
|
"type_info": "Text"
|
|
},
|
|
{
|
|
"name": "created_at!: DateTime<Utc>",
|
|
"ordinal": 5,
|
|
"type_info": "Text"
|
|
},
|
|
{
|
|
"name": "updated_at!: DateTime<Utc>",
|
|
"ordinal": 6,
|
|
"type_info": "Text"
|
|
}
|
|
],
|
|
"parameters": {
|
|
"Right": 0
|
|
},
|
|
"nullable": [
|
|
true,
|
|
true,
|
|
false,
|
|
true,
|
|
false,
|
|
false,
|
|
false
|
|
]
|
|
},
|
|
"hash": "461cc1b0bb6fd909afc9dd2246e8526b3771cfbb0b22ae4b5d17b51af587b9e2"
|
|
}
|