From 3dc1b187da8136a5fc760ae9b8f052786828497d Mon Sep 17 00:00:00 2001 From: Iuri Matias Date: Mon, 30 Jan 2023 10:37:58 -0500 Subject: [PATCH] storybook: Fix broken storybook page for Task Component storybook: Fix broken storybook page for Task Component fix linting --- .../components/Tasks/Task/Task.stories.tsx | 22 ++++++++++++++++++- 1 file changed, 21 insertions(+), 1 deletion(-) diff --git a/website/src/components/Tasks/Task/Task.stories.tsx b/website/src/components/Tasks/Task/Task.stories.tsx index cb0cd5c3..45d84229 100644 --- a/website/src/components/Tasks/Task/Task.stories.tsx +++ b/website/src/components/Tasks/Task/Task.stories.tsx @@ -19,13 +19,33 @@ const Template = ({ providerValue }) => { const exampleProviderValue = { frontendId: "1234", task: { - conversation: [], + conversation: { + messages: [ + { + text: "I'm unsure how to interpret this. Is it a riddle?", + is_assistant: true, + id: "", + frontend_message_id: "", + emojis: {}, + user_emojis: [], + }, + { + text: "No, I just wanted to see how you reply when I type random characters. Can you tell me who invented Wikipedia?", + is_assistant: false, + id: "", + frontend_message_id: "", + emojis: { "-1": 11, red_flag: 2 }, + user_emojis: [], + }, + ], + }, id: "1234-4321", mandatory_labels: ["spam"], message_id: "772f843e-f740-4aad-a44f-e3cf0260692c", reply: "1231231231", type: "label_prompter_reply", valid_labels: ["spam", "fails_task"], + labels: [], }, taskInfo: TaskInfos.find((t) => t.type === "label_prompter_reply"), isLoading: false,