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

48 lines
1.0 KiB
YAML

task_id: task_create_component_song_card
entity_id: component_song_card
generated_at: '2025-12-18T15:16:50.312893'
workflow_version: v001
target:
type: component
definition:
id: component_song_card
name: SongCard
description: Song display card with play button
props:
- name: song
type: Song
required: true
- name: showArtist
type: boolean
default: true
- name: showAlbum
type: boolean
default: false
events:
- name: onPlay
payload:
songId: string
- name: onAddToPlaylist
payload:
songId: string
uses_apis: []
uses_components: []
related:
models: []
apis: []
components: []
dependencies:
entity_ids: []
definitions: []
files:
to_create:
- app/components/SongCard.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