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

42 lines
931 B
YAML

task_id: task_create_component_genre_badge
entity_id: component_genre_badge
generated_at: '2025-12-18T15:16:50.317487'
workflow_version: v001
target:
type: component
definition:
id: component_genre_badge
name: GenreBadge
description: Genre tag display
props:
- name: genre
type: Genre
required: true
- name: clickable
type: boolean
default: true
events:
- name: onClick
payload:
genreSlug: string
uses_apis: []
uses_components: []
related:
models: []
apis: []
components: []
dependencies:
entity_ids: []
definitions: []
files:
to_create:
- app/components/GenreBadge.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