project-standalo-sonic-cloud/.workflow/versions/v001/contexts/component_album_card.yml

42 lines
926 B
YAML

task_id: task_create_component_album_card
entity_id: component_album_card
generated_at: '2025-12-18T15:16:50.313541'
workflow_version: v001
target:
type: component
definition:
id: component_album_card
name: AlbumCard
description: Album display card
props:
- name: album
type: Album
required: true
- name: showArtist
type: boolean
default: true
events:
- name: onClick
payload:
albumId: string
uses_apis: []
uses_components: []
related:
models: []
apis: []
components: []
dependencies:
entity_ids: []
definitions: []
files:
to_create:
- app/components/AlbumCard.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