project-standalo-note-to-app/.workflow/versions/v001/contexts/component_app_card.yml

52 lines
1.2 KiB
YAML

task_id: task_create_component_app_card
entity_id: component_app_card
generated_at: '2025-12-19T06:08:12.199809'
workflow_version: v001
target:
type: component
definition:
id: component_app_card
name: AppCard
props:
- name: app
type: GeneratedApp
required: true
description: Generated app to display
- name: showActions
type: boolean
required: false
default: true
description: Show delete button
events:
- name: onClick
payload: string
description: Fired when card clicked, payload is app ID
- name: onDelete
payload: string
description: Fired when delete confirmed, payload is app ID
uses_apis: []
uses_components: []
internal_state:
- isDeleting
variants:
- default
- compact
related:
models: []
apis: []
components: []
dependencies:
entity_ids: []
definitions: []
files:
to_create:
- app/components/AppCard.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