From 84cfc17b6b743a498f0f3b8680d262c3695e00fa Mon Sep 17 00:00:00 2001
From: alyssaf16 <alyssa_feinberg@brown.edu>
Date: Wed, 13 Nov 2024 01:43:37 -0500
Subject: 4 hours later...dashboard i think working

---
 .../nodes/chatbot/chatboxcomponents/ChatBox.tsx    | 24 ++++++++++++++++++++--
 1 file changed, 22 insertions(+), 2 deletions(-)

(limited to 'src/client/views/nodes/chatbot/chatboxcomponents/ChatBox.tsx')

diff --git a/src/client/views/nodes/chatbot/chatboxcomponents/ChatBox.tsx b/src/client/views/nodes/chatbot/chatboxcomponents/ChatBox.tsx
index f6b284bdb..594736fbc 100644
--- a/src/client/views/nodes/chatbot/chatboxcomponents/ChatBox.tsx
+++ b/src/client/views/nodes/chatbot/chatboxcomponents/ChatBox.tsx
@@ -472,19 +472,37 @@ export class ChatBox extends ViewBoxAnnotatableComponent<FieldViewProps>() {
                 doc = DocCast(Docs.Create.ImageDocument(data, options));
                 break;
             case 'equation':
-                doc = DocCast(Docs.Create.EquationDocument('', options));
+                // make more advanced
+                doc = DocCast(Docs.Create.EquationDocument(data, options));
                 break;
             case 'noteboard':
+                // COME BACK
                 doc = DocCast(Docs.Create.NoteTakingDocument([], options));
                 break;
             case 'simulation':
+                // make more advanced
                 doc = DocCast(Docs.Create.SimulationDocument(options));
                 break;
             case 'collection': {
+                // COME BACK
                 const arr = await this.createCollectionWithChildren(data);
                 options._layout_fitWidth = true;
                 options._freeform_backgroundGrid = true;
-                doc = DocCast(Docs.Create.FreeformDocument(arr, options));
+                if (options.type_collection == 'tree') {
+                    doc = DocCast(Docs.Create.TreeDocument(arr, options));
+                } else if (options.type_collection == 'masonry') {
+                    doc = DocCast(Docs.Create.MasonryDocument(arr, options));
+                } else if (options.type_collection == 'card') {
+                    doc = DocCast(Docs.Create.CardDeckDocument(arr, options));
+                } else if (options.type_collection == 'carousel') {
+                    doc = DocCast(Docs.Create.CarouselDocument(arr, options));
+                } else if (options.type_collection == '3d-carousel') {
+                    doc = DocCast(Docs.Create.Carousel3DDocument(arr, options));
+                } else if (options.type_collection == 'multicolumn') {
+                    doc = DocCast(Docs.Create.CarouselDocument(arr, options));
+                } else {
+                    doc = DocCast(Docs.Create.FreeformDocument(arr, options));
+                }
                 break;
             }
             case 'web':
@@ -494,9 +512,11 @@ export class ChatBox extends ViewBoxAnnotatableComponent<FieldViewProps>() {
                 doc = this.createComparison(data, options);
                 break;
             case 'diagram':
+                // come back
                 doc = Docs.Create.DiagramDocument(options);
                 break;
             case 'audio':
+                // come back
                 doc = Docs.Create.AudioDocument(data, options);
                 break;
             case 'map':
-- 
cgit v1.2.3-70-g09d2

