48 lines
1.1 KiB
YAML
48 lines
1.1 KiB
YAML
task_id: task_create_component_label_card
|
|
entity_id: component_label_card
|
|
generated_at: '2025-12-18T17:43:33.731114'
|
|
workflow_version: v003
|
|
target:
|
|
type: component
|
|
definition:
|
|
id: component_label_card
|
|
name: LabelCard
|
|
props:
|
|
- name: label
|
|
type: Label
|
|
required: true
|
|
description: Label object to display
|
|
- name: showArtistCount
|
|
type: boolean
|
|
required: false
|
|
default: true
|
|
description: Show number of artists
|
|
events:
|
|
- name: onClick
|
|
payload: string
|
|
description: Fires when card clicked, payload is label ID
|
|
uses_apis: []
|
|
uses_components: []
|
|
internal_state: []
|
|
variants:
|
|
- default
|
|
- compact
|
|
related:
|
|
models: []
|
|
apis: []
|
|
components: []
|
|
dependencies:
|
|
entity_ids: []
|
|
definitions: []
|
|
files:
|
|
to_create:
|
|
- app/components/LabelCard.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
|