Add progress bar back to TaskCard via optional progress prop

Progress notifications (notifications/progress) are sent separately
from the Task object per the MCP spec. Add an optional progress prop
typed as Pick<ProgressNotification['params'], 'progress' | 'total' |
'message'> so the parent can pass progress data when available.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
cliffhall 2026-04-20 10:53:44 -04:00
commit b487279d36

View file

@ -61,7 +61,10 @@ const cancelledTask: Task = {
};
export const Working: Story = {
args: { task: workingTask },
args: {
task: workingTask,
progress: { progress: 650, total: 1000, message: "Processing records..." },
},
};
export const InputRequired: Story = {