From fa7c530ed8cf88fbcfc8b0d68d9f00a95ea1a749 Mon Sep 17 00:00:00 2001 From: timothycarambat Date: Tue, 19 Nov 2024 16:33:22 -0800 Subject: [PATCH 1/2] UI light QA --- .../DataConnectors/Connectors/Gitlab/index.jsx | 2 +- .../ActiveWorkspaces/ThreadContainer/ThreadItem/index.jsx | 2 +- .../Sidebar/ActiveWorkspaces/ThreadContainer/index.jsx | 2 +- frontend/src/components/Sidebar/index.jsx | 2 +- frontend/src/components/lib/CTAButton/index.jsx | 2 +- frontend/src/index.css | 4 ++++ frontend/src/pages/Admin/Agents/GenericSkillPanel/index.jsx | 4 ++-- .../Admin/Agents/Imported/ImportedSkillConfig/index.jsx | 6 +++--- .../src/pages/Admin/Agents/SQLConnectorSelection/index.jsx | 6 +++--- .../src/pages/Admin/Agents/WebSearchSelection/index.jsx | 6 +++--- frontend/src/pages/Admin/Users/index.jsx | 2 +- .../GeneralSettings/Appearance/ShowScrollbar/index.jsx | 2 +- frontend/tailwind.config.js | 2 +- 13 files changed, 23 insertions(+), 19 deletions(-) diff --git a/frontend/src/components/Modals/ManageWorkspace/DataConnectors/Connectors/Gitlab/index.jsx b/frontend/src/components/Modals/ManageWorkspace/DataConnectors/Connectors/Gitlab/index.jsx index a820ac3ca2..29c90503f5 100644 --- a/frontend/src/components/Modals/ManageWorkspace/DataConnectors/Connectors/Gitlab/index.jsx +++ b/frontend/src/components/Modals/ManageWorkspace/DataConnectors/Connectors/Gitlab/index.jsx @@ -130,7 +130,7 @@ export default function GitlabOptions() { value={true} className="peer sr-only" /> -
+
Fetch Issues as Documents diff --git a/frontend/src/components/Sidebar/ActiveWorkspaces/ThreadContainer/ThreadItem/index.jsx b/frontend/src/components/Sidebar/ActiveWorkspaces/ThreadContainer/ThreadItem/index.jsx index 89d17ec6a7..cbe3b63014 100644 --- a/frontend/src/components/Sidebar/ActiveWorkspaces/ThreadContainer/ThreadItem/index.jsx +++ b/frontend/src/components/Sidebar/ActiveWorkspaces/ThreadContainer/ThreadItem/index.jsx @@ -63,7 +63,7 @@ export default function ThreadItem({ className="h-full" />
{thread.deleted ? (
diff --git a/frontend/src/components/Sidebar/ActiveWorkspaces/ThreadContainer/index.jsx b/frontend/src/components/Sidebar/ActiveWorkspaces/ThreadContainer/index.jsx index d311ca0ce1..3f7243c9a3 100644 --- a/frontend/src/components/Sidebar/ActiveWorkspaces/ThreadContainer/index.jsx +++ b/frontend/src/components/Sidebar/ActiveWorkspaces/ThreadContainer/index.jsx @@ -169,7 +169,7 @@ function NewThreadButton({ workspace }) { return ( diff --git a/frontend/src/index.css b/frontend/src/index.css index 25a2de074f..2cad114f8d 100644 --- a/frontend/src/index.css +++ b/frontend/src/index.css @@ -37,6 +37,8 @@ --theme-settings-input-active: rgb(255 255 255 / 0.2); --theme-settings-input-text: #ffffff; --theme-modal-border: #3f3f42; + + --theme-button-primary: #46c8ff; --theme-button-primary-hover: #434343; --theme-file-row-even: #0e0f0f; @@ -86,6 +88,8 @@ --theme-settings-input-active: rgb(0 0 0 / 0.2); --theme-settings-input-text: #0e0f0f; --theme-modal-border: #d3d3d3; + + --theme-button-primary: #0ba5ec; --theme-button-primary-hover: #dedede; --theme-file-row-even: #f5f5f5; diff --git a/frontend/src/pages/Admin/Agents/GenericSkillPanel/index.jsx b/frontend/src/pages/Admin/Agents/GenericSkillPanel/index.jsx index 074e1927d3..e066941134 100644 --- a/frontend/src/pages/Admin/Agents/GenericSkillPanel/index.jsx +++ b/frontend/src/pages/Admin/Agents/GenericSkillPanel/index.jsx @@ -38,8 +38,8 @@ export default function GenericSkillPanel({ checked={enabled} onChange={() => toggleSkill(skill)} /> -
- +
+
{title} diff --git a/frontend/src/pages/Admin/Agents/Imported/ImportedSkillConfig/index.jsx b/frontend/src/pages/Admin/Agents/Imported/ImportedSkillConfig/index.jsx index e966e3509c..bb382ff47e 100644 --- a/frontend/src/pages/Admin/Agents/Imported/ImportedSkillConfig/index.jsx +++ b/frontend/src/pages/Admin/Agents/Imported/ImportedSkillConfig/index.jsx @@ -109,15 +109,15 @@ export default function ImportedSkillConfig({ -

diff --git a/frontend/src/pages/Admin/Agents/SQLConnectorSelection/index.jsx b/frontend/src/pages/Admin/Agents/SQLConnectorSelection/index.jsx index cc8256145b..515c3c897c 100644 --- a/frontend/src/pages/Admin/Agents/SQLConnectorSelection/index.jsx +++ b/frontend/src/pages/Admin/Agents/SQLConnectorSelection/index.jsx @@ -37,15 +37,15 @@ export default function AgentSQLConnectorSelection({ > SQL Agent -

- +
+ Live web search and browsing -

diff --git a/frontend/src/pages/GeneralSettings/Appearance/ShowScrollbar/index.jsx b/frontend/src/pages/GeneralSettings/Appearance/ShowScrollbar/index.jsx index eb8c63378e..361c7afa52 100644 --- a/frontend/src/pages/GeneralSettings/Appearance/ShowScrollbar/index.jsx +++ b/frontend/src/pages/GeneralSettings/Appearance/ShowScrollbar/index.jsx @@ -47,7 +47,7 @@ export default function ShowScrollbar() { disabled={saving} className="peer sr-only" /> -

+
diff --git a/frontend/tailwind.config.js b/frontend/tailwind.config.js index 958c504522..8ecdbcdc0a 100644 --- a/frontend/tailwind.config.js +++ b/frontend/tailwind.config.js @@ -28,7 +28,7 @@ export default { "historical-msg-system": "rgba(255, 255, 255, 0.05);", "historical-msg-user": "#2C2F35", outline: "#4E5153", - "primary-button": "#46C8FF", + "primary-button": "var(--theme-button-primary)", secondary: "#2C2F36", "dark-input": "#18181B", "mobile-onboarding": "#2C2F35", From 988181afdef71d41053b87b1f30b3d7769619af4 Mon Sep 17 00:00:00 2001 From: timothycarambat Date: Tue, 19 Nov 2024 17:37:22 -0800 Subject: [PATCH 2/2] update light/dark codeblock styles for visibility patch embed modal text invisible patch toggle colors --- .../Features/LiveSync/toggle.jsx | 2 +- .../FineTuning/Steps/DataUpload/index.jsx | 2 +- .../EmbedRow/CodeSnippetModal/index.jsx | 9 +- .../EmbedConfigs/NewEmbedModal/index.jsx | 20 +-- .../GeneralSettings/PrivacyAndData/index.jsx | 2 +- .../pages/GeneralSettings/Security/index.jsx | 6 +- frontend/src/utils/chat/markdown.js | 13 +- .../src/utils/chat/themes/github-dark.css | 125 ++++++++++++++++++ frontend/src/utils/chat/themes/github.css | 125 ++++++++++++++++++ 9 files changed, 281 insertions(+), 23 deletions(-) create mode 100644 frontend/src/utils/chat/themes/github-dark.css create mode 100644 frontend/src/utils/chat/themes/github.css diff --git a/frontend/src/pages/Admin/ExperimentalFeatures/Features/LiveSync/toggle.jsx b/frontend/src/pages/Admin/ExperimentalFeatures/Features/LiveSync/toggle.jsx index 2c2b750a57..91024635c0 100644 --- a/frontend/src/pages/Admin/ExperimentalFeatures/Features/LiveSync/toggle.jsx +++ b/frontend/src/pages/Admin/ExperimentalFeatures/Features/LiveSync/toggle.jsx @@ -43,7 +43,7 @@ export default function LiveSyncToggle({ enabled = false, onToggle }) { checked={status} className="peer sr-only pointer-events-none" /> -
+
diff --git a/frontend/src/pages/FineTuning/Steps/DataUpload/index.jsx b/frontend/src/pages/FineTuning/Steps/DataUpload/index.jsx index aeb7d08905..2f5f556031 100644 --- a/frontend/src/pages/FineTuning/Steps/DataUpload/index.jsx +++ b/frontend/src/pages/FineTuning/Steps/DataUpload/index.jsx @@ -81,7 +81,7 @@ export default function DataUpload({ setSettings, setStep }) { checked={dataFilters.feedback} className="peer sr-only pointer-events-none" /> -
+
diff --git a/frontend/src/pages/GeneralSettings/EmbedConfigs/EmbedRow/CodeSnippetModal/index.jsx b/frontend/src/pages/GeneralSettings/EmbedConfigs/EmbedRow/CodeSnippetModal/index.jsx index f02640d722..76fda358c9 100644 --- a/frontend/src/pages/GeneralSettings/EmbedConfigs/EmbedRow/CodeSnippetModal/index.jsx +++ b/frontend/src/pages/GeneralSettings/EmbedConfigs/EmbedRow/CodeSnippetModal/index.jsx @@ -2,7 +2,8 @@ import React, { useState } from "react"; import { CheckCircle, CopySimple, X } from "@phosphor-icons/react"; import showToast from "@/utils/toast"; import hljs from "highlight.js"; -import "highlight.js/styles/github-dark-dimmed.min.css"; +import "@/utils/chat/themes/github-dark.css"; +import "@/utils/chat/themes/github.css"; export default function CodeSnippetModal({ embed, closeModal }) { return ( @@ -66,6 +67,8 @@ const ScriptTag = ({ embed }) => { ? "http://localhost:3001" : window.location.origin; const snippet = createScriptTagSnippet(embed, scriptHost, serverHost); + const theme = + window.localStorage.getItem("theme") === "light" ? "github" : "github-dark"; const handleClick = () => { window.navigator.clipboard.writeText(snippet); @@ -82,7 +85,7 @@ const ScriptTag = ({ embed }) => { -

+

Have your workspace chat embed function like a help desk chat bottom in the corner of your website.

@@ -97,7 +100,7 @@ const ScriptTag = ({ embed }) => {