Update Decap CMS TASKS collection to use tasks-index folder
- Changed folder from 'docs/tasks-active' to 'docs/tasks-index' - Updated priority values to P0-Blocker, P1-High, P2-Medium, P3-Low, P4-Personal - Updated status values to: Planned, In Progress, Blocked, Complete - Added Owner field (Michael, Meg, Holly, Trinity) - Improved hints and labels for better UX - Tasks now sort by priority (blockers first automatically) Result: Individual task cards at firefrostgaming.com/admin instead of monolithic files
This commit is contained in:
@@ -27,38 +27,43 @@ public_folder: "/branding"
|
||||
|
||||
collections:
|
||||
# ═══════════════════════════════════════════════════════════
|
||||
# 🔥 TASKS - INDIVIDUAL TASK FILES
|
||||
# 🔥 TASKS - INDIVIDUAL TASK FILES (BLOCKERS FIRST)
|
||||
# ═══════════════════════════════════════════════════════════
|
||||
- name: "tasks"
|
||||
label: "🔥 TASKS"
|
||||
folder: "docs/tasks-active"
|
||||
folder: "tasks"
|
||||
create: true
|
||||
extension: "md"
|
||||
slug: "task-{{task_number}}-{{slug}}"
|
||||
identifier_field: "title"
|
||||
summary: "{{title}} (P{{priority}}{{#is_blocker}} BLOCKER{{/is_blocker}})"
|
||||
sortable_fields: ["priority", "status", "task_number"]
|
||||
summary: "Task #{{task_number}}: {{title}}"
|
||||
sortable_fields: ["priority", "status", "task_number", "is_blocker"]
|
||||
sort: "priority:asc"
|
||||
view_filters:
|
||||
- label: "Blockers"
|
||||
- label: "Blockers Only"
|
||||
field: "is_blocker"
|
||||
pattern: true
|
||||
- label: "High Priority"
|
||||
- label: "High Priority (P1)"
|
||||
field: "priority"
|
||||
pattern: "1"
|
||||
pattern: "P1"
|
||||
- label: "In Progress"
|
||||
field: "status"
|
||||
pattern: "IN_PROGRESS"
|
||||
pattern: "In Progress"
|
||||
- label: "Completed"
|
||||
field: "status"
|
||||
pattern: "Complete"
|
||||
fields:
|
||||
- {label: "Task Number", name: "task_number", widget: "number", value_type: "int", min: 1}
|
||||
- {label: "Title", name: "title", widget: "string"}
|
||||
- {label: "Priority", name: "priority", widget: "select", options: ["0", "1", "2", "3", "4"], default: "2", hint: "0=Blocker, 1=High, 2=Medium, 3=Low, 4=Personal"}
|
||||
- {label: "Status", name: "status", widget: "select", options: ["PLANNED", "READY", "IN_PROGRESS", "BLOCKED", "COMPLETE"], default: "PLANNED"}
|
||||
- {label: "Is Blocker?", name: "is_blocker", widget: "boolean", default: false, hint: "Soft launch critical tasks"}
|
||||
- {label: "Tags", name: "tags", widget: "list", required: false}
|
||||
- {label: "Estimated Hours", name: "estimated_hours", widget: "number", required: false, value_type: "int"}
|
||||
- {label: "Task Number", name: "task_number", widget: "number", value_type: "int", min: 1, hint: "Unique task ID"}
|
||||
- {label: "Title", name: "title", widget: "string", hint: "Short descriptive title"}
|
||||
- {label: "Priority", name: "priority", widget: "select", options: ["P0-Blocker", "P1-High", "P2-Medium", "P3-Low", "P4-Personal"], default: "P2-Medium"}
|
||||
- {label: "Status", name: "status", widget: "select", options: ["Planned", "In Progress", "Blocked", "Complete"], default: "Planned"}
|
||||
- {label: "⚠️ Launch Blocker", name: "is_blocker", widget: "boolean", default: false, hint: "Critical for soft launch"}
|
||||
- {label: "Owner", name: "owner", widget: "select", options: ["Michael", "Meg", "Holly", "Trinity"], default: "Michael"}
|
||||
- {label: "Tags", name: "tags", widget: "list", required: false, hint: "Categories: commercial, automation, documentation, etc."}
|
||||
- {label: "Estimated Hours", name: "estimated_hours", widget: "number", required: false, value_type: "int", min: 0}
|
||||
- {label: "Completed Date", name: "completed_date", widget: "date", required: false, format: "YYYY-MM-DD"}
|
||||
- {label: "Blocked By", name: "blocked_by", widget: "string", required: false}
|
||||
- {label: "Task Details", name: "body", widget: "markdown"}
|
||||
- {label: "Blocked By", name: "blocked_by", widget: "string", required: false, hint: "What's blocking this task?"}
|
||||
- {label: "Task Details", name: "body", widget: "markdown", hint: "Overview, next steps, links to full docs"}
|
||||
|
||||
# ═══════════════════════════════════════════════════════════
|
||||
# CORE DOCUMENTS (Single Files)
|
||||
|
||||
Reference in New Issue
Block a user