53 lines
1.3 KiB
YAML
53 lines
1.3 KiB
YAML
task_id: task_create_component_invitation_card
|
|
entity_id: component_invitation_card
|
|
generated_at: '2025-12-18T17:43:33.733718'
|
|
workflow_version: v003
|
|
target:
|
|
type: component
|
|
definition:
|
|
id: component_invitation_card
|
|
name: InvitationCard
|
|
props:
|
|
- name: invitation
|
|
type: LabelInvitation
|
|
required: true
|
|
description: Invitation object
|
|
- name: viewType
|
|
type: string
|
|
required: true
|
|
description: Are we viewing as label or artist (label/artist)
|
|
events:
|
|
- name: onAccept
|
|
payload: string
|
|
description: Fires when accept clicked (artist view)
|
|
- name: onDecline
|
|
payload: string
|
|
description: Fires when decline clicked (artist view)
|
|
- name: onCancel
|
|
payload: string
|
|
description: Fires when cancel clicked (label view)
|
|
uses_apis: []
|
|
uses_components: []
|
|
internal_state:
|
|
- isProcessing
|
|
variants:
|
|
- default
|
|
related:
|
|
models: []
|
|
apis: []
|
|
components: []
|
|
dependencies:
|
|
entity_ids: []
|
|
definitions: []
|
|
files:
|
|
to_create:
|
|
- app/components/InvitationCard.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
|