= React.mem
if (!title) return null;
+ console.log(status);
+
return (
{file_ids.map((fileId) => (
diff --git a/web/src/controllers/ReasoningController/ReasoningMessages/ReasoningMessage_PillContainers/ReasoningMessagePills.tsx b/web/src/controllers/ReasoningController/ReasoningMessages/ReasoningMessage_PillContainers/ReasoningMessagePills.tsx
index 830002942..e358d1d60 100644
--- a/web/src/controllers/ReasoningController/ReasoningMessages/ReasoningMessage_PillContainers/ReasoningMessagePills.tsx
+++ b/web/src/controllers/ReasoningController/ReasoningMessages/ReasoningMessage_PillContainers/ReasoningMessagePills.tsx
@@ -23,7 +23,7 @@ const containerVariants = {
opacity: 1,
transition: {
opacity: { duration: duration * 0.5, ease: 'easeIn' },
- staggerChildren: 0.12
+ staggerChildren: 0.08
}
}
};
diff --git a/web/src/controllers/ReasoningController/ReasoningMessages/ReasoningMessage_PillContainers/ReasoningMessagePillsContainer.stories.tsx b/web/src/controllers/ReasoningController/ReasoningMessages/ReasoningMessage_PillContainers/ReasoningMessagePillsContainer.stories.tsx
index 9af9c2991..1858c26e9 100644
--- a/web/src/controllers/ReasoningController/ReasoningMessages/ReasoningMessage_PillContainers/ReasoningMessagePillsContainer.stories.tsx
+++ b/web/src/controllers/ReasoningController/ReasoningMessages/ReasoningMessage_PillContainers/ReasoningMessagePillsContainer.stories.tsx
@@ -1,6 +1,5 @@
import type { Meta, StoryObj } from '@storybook/react';
import { ReasoningMessagePillsContainer } from './ReasoningMessagePillsContainer';
-import { ReasoningMessage_Text } from '../ReasoningMessage_Text';
import type { BusterChatMessageReasoning_pills, ThoughtFileType } from '@/api/asset_interfaces';
import { useState } from 'react';
import { Button } from '@/components/ui/buttons';
diff --git a/web/src/mocks/chat.ts b/web/src/mocks/chat.ts
index d261248e2..5b34cf347 100644
--- a/web/src/mocks/chat.ts
+++ b/web/src/mocks/chat.ts
@@ -20,15 +20,16 @@ export const mockBusterChatMessage: IBusterChatMessage = {
type: 'text',
title: 'Text Reasoning',
secondary_title: 'Additional Context',
- message: 'This is a text reasoning message',
- status: 'completed'
+ message:
+ 'This is a text reasoning message. It is generated by the AI. It is a long message that can be scrolled. It is a short message that can be displayed in a single line. It is a long message that can be scrolled. It is a short message that.',
+ status: 'loading'
},
'reasoning-2': {
id: 'reasoning-2',
type: 'pills',
title: 'Pills Reasoning',
secondary_title: 'Selected Files',
- status: 'completed',
+ status: 'loading',
pill_containers: [
{
title: 'Found Files',
@@ -45,7 +46,7 @@ export const mockBusterChatMessage: IBusterChatMessage = {
type: 'files',
title: 'Files Reasoning',
secondary_title: 'Modified Files',
- status: 'completed',
+ status: 'loading',
file_ids: ['file-1', 'file-2'],
files: {
'file-1': {
@@ -56,8 +57,27 @@ export const mockBusterChatMessage: IBusterChatMessage = {
version_id: 'v1',
status: 'completed',
file: {
- text: 'console.log("Hello World");\nconsole.log("Hello World");\nconsole.log("Hello World");\n',
- modified: [[1, 1]]
+ text: `
+bilbo_baggins:
+ biography:
+ name: "Bilbo Baggins"
+ species: "Hobbit"
+ home: "The Shire"
+ adventures:
+ - title: "The Unexpected Party"
+ description: "Bilbo is invited to join a group of dwarves on an adventure."
+ - title: "The Trolls"
+ description: "Bilbo encounters trolls who capture him and his companions."
+ - title: "Riddles in the Dark"
+ description: "He meets Gollum and engages in a game of riddles."
+ - title: "The Lonely Mountain"
+ description: "Bilbo helps the dwarves reclaim their treasure from Smaug."
+ quotes:
+ - "I think I am quite ready for another adventure."
+ - "The road goes ever on and on, down from the door where it began."
+ - "I have a great deal of experience in dealing with dragons."
+ `,
+ modified: [[5, 9]]
}
},
'file-2': {
@@ -66,9 +86,36 @@ export const mockBusterChatMessage: IBusterChatMessage = {
file_name: 'example.js',
version_number: 1,
version_id: 'v1',
- status: 'completed',
+ status: 'loading',
file: {
- text: 'console.log("Example");\nconsole.log("Example");\nconsole.log("Example");\n',
+ text: `
+hunchback_of_notre_dame:
+ title: "The Hunchback of Notre Dame"
+ author: "Victor Hugo"
+ themes:
+ - name: "Isolation"
+ description: "The struggle of Quasimodo, the hunchback, symbolizes the pain of being an outcast."
+ - name: "Love"
+ description: "The unrequited love of Quasimodo for Esmeralda highlights the complexities of affection."
+ - name: "Justice"
+ description: "The story critiques societal norms and the quest for justice in a flawed world."
+ characters:
+ - name: "Quasimodo"
+ role: "The bell-ringer of Notre Dame, representing physical deformity and inner beauty."
+ - name: "Esmeralda"
+ role: "A kind-hearted gypsy who embodies compassion and freedom."
+ - name: "Frollo"
+ role: "The archdeacon whose obsession leads to tragedy, representing moral conflict."
+ setting:
+ location: "Notre Dame Cathedral, Paris"
+ time_period: "15th century"
+ impact:
+ cultural_significance: "The novel has inspired numerous adaptations in film, theater, and literature."
+ moral_lessons:
+ - "True beauty lies within."
+ - "Society often judges based on appearances."
+ - "Compassion can transcend societal boundaries."
+ `,
modified: []
}
}