57 lines
1.3 KiB
YAML
57 lines
1.3 KiB
YAML
{
|
|
"task_id": "task_create_component_badge_card",
|
|
"entity_id": "component_badge_card",
|
|
"generated_at": "2025-12-18T01:57:52.724450",
|
|
"workflow_version": "v001",
|
|
"target": {
|
|
"type": "component",
|
|
"definition": {
|
|
"id": "component_badge_card",
|
|
"name": "BadgeCard",
|
|
"description": "Display a badge or achievement",
|
|
"file_path": "app/components/BadgeCard.tsx",
|
|
"status": "PENDING",
|
|
"props": {
|
|
"badge": "Badge object",
|
|
"earned": "boolean",
|
|
"earnedAt": "Date | null"
|
|
},
|
|
"features": [
|
|
"Badge icon display",
|
|
"Badge name and description",
|
|
"Earned/locked state",
|
|
"Earned date (if earned)",
|
|
"Tooltip with requirement"
|
|
]
|
|
}
|
|
},
|
|
"related": {
|
|
"models": [],
|
|
"apis": [],
|
|
"components": []
|
|
},
|
|
"dependencies": {
|
|
"entity_ids": [],
|
|
"definitions": []
|
|
},
|
|
"files": {
|
|
"to_create": [
|
|
"app/components/BadgeCard.tsx"
|
|
],
|
|
"reference": []
|
|
},
|
|
"acceptance": [
|
|
{
|
|
"criterion": "Component renders without errors",
|
|
"verification": "Import and render in test"
|
|
},
|
|
{
|
|
"criterion": "Props are typed correctly",
|
|
"verification": "TypeScript compilation"
|
|
},
|
|
{
|
|
"criterion": "Events fire correctly",
|
|
"verification": "Test event handlers"
|
|
}
|
|
]
|
|
} |