From e9bc998554515ecbe86f7d00b01d3cf5d2048b6e Mon Sep 17 00:00:00 2001 From: Nathan-SR <144961007+Nathan-SR@users.noreply.github.com> Date: Thu, 3 Apr 2025 03:36:07 -0400 Subject: Firefly integration and some UI changes --- .../DataVizBox/DocCreatorMenu/DocCreatorMenu.scss | 65 ++++++++++++++-------- 1 file changed, 42 insertions(+), 23 deletions(-) (limited to 'src/client/views/nodes/DataVizBox/DocCreatorMenu/DocCreatorMenu.scss') diff --git a/src/client/views/nodes/DataVizBox/DocCreatorMenu/DocCreatorMenu.scss b/src/client/views/nodes/DataVizBox/DocCreatorMenu/DocCreatorMenu.scss index 57f4a1e94..48e09d12f 100644 --- a/src/client/views/nodes/DataVizBox/DocCreatorMenu/DocCreatorMenu.scss +++ b/src/client/views/nodes/DataVizBox/DocCreatorMenu/DocCreatorMenu.scss @@ -277,18 +277,6 @@ scrollbar-width: none; } -.docCreatorMenu-preview-container { - display: grid; - grid-template-columns: repeat(2, 140px); - grid-template-rows: 140px; - grid-auto-rows: 141px; - overflow-y: scroll; - margin: 0px; - margin-top: 0px; - width: 100%; - height: 100%; -} - .docCreatorMenu-expanded-template-preview { display: flex; flex-direction: column; @@ -297,6 +285,7 @@ position: relative; width: 100%; height: 100%; + flex-grow: 1; .top-panel{ width: 100%; @@ -322,15 +311,12 @@ display: flex; justify-content: center; align-items: center; - width: 113px; - height: 113px; - margin-top: 10px; - margin-left: 10px; + height: 100%; + aspect-ratio: 1; color: none; border: 1px solid rgb(163, 163, 163); border-radius: 5px; box-shadow: 5px 5px rgb(29, 29, 31); - flex: 0 0 auto; &:hover{ background-color: rgb(72, 72, 73); @@ -394,17 +380,42 @@ } } +.docCreatorMenu-variation-prompt-input { + display: flex; + flex-direction: row; + justify-content: flex-start; + align-items: center; + margin: 5px; + gap: 15px; + height: 30px; + width: 100%; +} + +.docCreatorMenu-variation-prompt-input-textbox { + height: 100%; + width: 80%; + color: white; + margin-top: 1%; + margin-bottom: 1%; + margin-left: 5%; + background-color: rgb(50, 50, 50); + border-radius: 5px; +} + +.docCreatorMenu-variations-tab { + flex-grow: .5; +} + .docCreatorMenu-section { display: flex; flex-direction: column; align-items: center; position: relative; + flex-grow: 1; + height: 100%; margin: 0px; margin-top: 0px; margin-bottom: 0px; - width: 100%; - height: 200; - flex: 0 0 auto; } .docCreatorMenu-GPT-options-container { @@ -422,12 +433,14 @@ .docCreatorMenu-templates-preview-window { display: flex; flex-direction: row; - //justify-content: center; + justify-content: flex-start; align-items: center; overflow-y: scroll; + gap: 10px; + margin: 5px; position: relative; color: black; - height: 125px; + height: 100%; width: calc(100% - 10px); -ms-overflow-style: none; scrollbar-width: none; @@ -463,6 +476,12 @@ } } +.docCreatorMenu-templates-displays { + display: flex; + flex-direction: column; + height: 100%; +} + .docCreatorMenu-section-title { border: 1px solid rgb(163, 163, 163); border-top: 0px; @@ -1057,4 +1076,4 @@ } -} +} \ No newline at end of file -- cgit v1.2.3-70-g09d2 From 756a8ad735937bf68ec6a9d4125774d396b1b060 Mon Sep 17 00:00:00 2001 From: Nathan-SR <144961007+Nathan-SR@users.noreply.github.com> Date: Wed, 9 Apr 2025 22:05:31 -0400 Subject: added option to collapse field panels --- .../DataVizBox/DocCreatorMenu/DocCreatorMenu.scss | 8 ++- .../DataVizBox/DocCreatorMenu/DocCreatorMenu.tsx | 82 +++++++++++++--------- .../TemplateFieldTypes/TemplateField.ts | 1 - 3 files changed, 55 insertions(+), 36 deletions(-) (limited to 'src/client/views/nodes/DataVizBox/DocCreatorMenu/DocCreatorMenu.scss') diff --git a/src/client/views/nodes/DataVizBox/DocCreatorMenu/DocCreatorMenu.scss b/src/client/views/nodes/DataVizBox/DocCreatorMenu/DocCreatorMenu.scss index 48e09d12f..2881fbb66 100644 --- a/src/client/views/nodes/DataVizBox/DocCreatorMenu/DocCreatorMenu.scss +++ b/src/client/views/nodes/DataVizBox/DocCreatorMenu/DocCreatorMenu.scss @@ -816,6 +816,7 @@ scrollbar-width: none; .panels-container { + display: flex; height: 100%; width: 100%; flex-direction: column; @@ -936,7 +937,7 @@ flex-direction: column; align-items: center; justify-content: flex-start; - height: 285px; + height: fit-content; width: calc(100% - 10px); border: 1px solid rgb(180, 180, 180); margin: 5px; @@ -964,6 +965,11 @@ .field-title { color: whitesmoke; } + + &:hover { + background-color: rgb(72, 72, 72); + cursor: pointer; + } } .opts-bar { diff --git a/src/client/views/nodes/DataVizBox/DocCreatorMenu/DocCreatorMenu.tsx b/src/client/views/nodes/DataVizBox/DocCreatorMenu/DocCreatorMenu.tsx index 6d8d810aa..daba990e4 100644 --- a/src/client/views/nodes/DataVizBox/DocCreatorMenu/DocCreatorMenu.tsx +++ b/src/client/views/nodes/DataVizBox/DocCreatorMenu/DocCreatorMenu.tsx @@ -89,6 +89,7 @@ export class DocCreatorMenu extends ObservableReactComponent @observable _userCreatedFields: Col[] = []; @observable _selectedCols: { title: string; type: string; desc: string }[] | undefined = []; + @observable _collapsedCols: String[] = []; //any columns whose options panels are hidden @observable _layout: { type: LayoutType; yMargin: number; xMargin: number; columns?: number; repeat: number } = { type: LayoutType.FREEFORM, yMargin: 10, xMargin: 10, columns: 3, repeat: 0 }; @observable _savedLayouts: DataVizTemplateLayout[] = []; @@ -1327,52 +1328,65 @@ export class DocCreatorMenu extends ObservableReactComponent get dashboardContents() { const fieldPanel = (field: Col, id: number) => (
-
+
this.setUpButtonClick(e, runInAction(() => () => { + if (this._collapsedCols.includes(field.title)) { + this._collapsedCols = this._collapsedCols.filter(col => col !== field.title); + } else { + this._collapsedCols.push(field.title); + } + }))}> {`${field.title} Field`}
-
-
-
Title
-