diff --git a/gui/src/components/mainInput/Lump/sections/ToolsSection.tsx b/gui/src/components/mainInput/Lump/sections/ToolsSection.tsx
index 32565d664..920df276c 100644
--- a/gui/src/components/mainInput/Lump/sections/ToolsSection.tsx
+++ b/gui/src/components/mainInput/Lump/sections/ToolsSection.tsx
@@ -1,4 +1,4 @@
-import ToolPermissionsDialog from "../../InputToolbar/ToolPermissionsDialog";
+import { ToolPermissionsDialog } from "../../InputToolbar/ToolPermissionsDialog";
interface ToolsSectionProps {}
diff --git a/gui/src/components/mainInput/Lump/sections/docs/DocsIndexingStatus.tsx b/gui/src/components/mainInput/Lump/sections/docs/DocsIndexingStatus.tsx
index c30f20004..28e764360 100644
--- a/gui/src/components/mainInput/Lump/sections/docs/DocsIndexingStatus.tsx
+++ b/gui/src/components/mainInput/Lump/sections/docs/DocsIndexingStatus.tsx
@@ -15,7 +15,7 @@ import {
setDialogMessage,
setShowDialog,
} from "../../../../../redux/slices/uiSlice";
-import { getFontSize } from "../../../../../util";
+import { fontSize } from "../../../../../util";
import ConfirmationDialog from "../../../../dialogs/ConfirmationDialog";
import { StatusIndicator } from "./StatusIndicator";
interface IndexingStatusViewerProps {
@@ -134,7 +134,7 @@ function DocsIndexingStatus({
) : null}
@@ -149,7 +149,7 @@ function DocsIndexingStatus({
{progressPercentage}%
diff --git a/gui/src/components/mainInput/Lump/sections/docs/DocsSection.tsx b/gui/src/components/mainInput/Lump/sections/docs/DocsSection.tsx
index 6f5717b29..88e249c9b 100644
--- a/gui/src/components/mainInput/Lump/sections/docs/DocsSection.tsx
+++ b/gui/src/components/mainInput/Lump/sections/docs/DocsSection.tsx
@@ -10,7 +10,7 @@ import {
setDialogMessage,
setShowDialog,
} from "../../../../../redux/slices/uiSlice";
-import { getFontSize } from "../../../../../util";
+import { fontSize } from "../../../../../util";
import AddDocsDialog from "../../../../dialogs/AddDocsDialog";
import DocsIndexingStatus from "./DocsIndexingStatus";
@@ -108,7 +108,7 @@ function DocsIndexingStatuses() {
{
e.preventDefault();
diff --git a/gui/src/components/modelSelection/ModeSelect.tsx b/gui/src/components/modelSelection/ModeSelect.tsx
index 5b91d94a2..d848052ab 100644
--- a/gui/src/components/modelSelection/ModeSelect.tsx
+++ b/gui/src/components/modelSelection/ModeSelect.tsx
@@ -17,7 +17,7 @@ import {
selectCurrentMode,
setMode,
} from "../../redux/slices/sessionSlice";
-import { getFontSize, getMetaKeyLabel } from "../../util";
+import { fontSize, getFontSize, getMetaKeyLabel } from "../../util";
const StyledListboxButton = styled(Listbox.Button)`
font-family: inherit;
@@ -97,8 +97,8 @@ function ModeSelect() {
return (
{
- dispatch(setMode(mode));
+ onChange={(newMode) => {
+ dispatch(setMode(newMode));
}}
>
@@ -116,7 +116,7 @@ function ModeSelect() {
{getModeIcon(mode)}
{mode.charAt(0).toUpperCase() + mode.slice(1)}
@@ -124,26 +124,26 @@ function ModeSelect() {
-
+
Agent
{/* */}
- {mode === "agent" && }
+ {mode === "agent" && }
-
+
Chat
{getMetaKeyLabel()}L
- {mode === "chat" && }
+ {mode === "chat" && }
-
+
Edit
{getMetaKeyLabel()}I
- {mode === "edit" && }
+ {mode === "edit" && }
{getMetaKeyLabel()}
diff --git a/gui/src/components/modelSelection/platform/AssistantSelect.tsx b/gui/src/components/modelSelection/platform/AssistantSelect.tsx
index 8faffc7f1..08f7e2dc7 100644
--- a/gui/src/components/modelSelection/platform/AssistantSelect.tsx
+++ b/gui/src/components/modelSelection/platform/AssistantSelect.tsx
@@ -6,7 +6,7 @@ import { useAuth } from "../../../context/Auth";
import { IdeMessengerContext } from "../../../context/IdeMessenger";
import { cycleProfile } from "../../../redux";
import { useAppDispatch } from "../../../redux/hooks";
-import { getFontSize, isMetaEquivalentKeyPressed } from "../../../util";
+import { fontSize, isMetaEquivalentKeyPressed } from "../../../util";
import PopoverTransition from "../../mainInput/InputToolbar/PopoverTransition";
import AssistantIcon from "./AssistantIcon";
import { AssistantSelectOptions } from "./AssistantSelectOptions";
@@ -69,7 +69,7 @@ export default function AssistantSelect() {
});
}}
className="hover:bg flex cursor-pointer select-none items-center gap-1 whitespace-nowrap text-gray-400"
- style={{ fontSize: `${getFontSize() - 3}px` }}
+ style={{ fontSize: fontSize(-3) }}
>
Create your first assistant
@@ -83,7 +83,7 @@ export default function AssistantSelect() {
data-testid="assistant-select-button"
ref={buttonRef}
className="mt-0.5 cursor-pointer border-none bg-transparent text-gray-400 hover:brightness-125"
- style={{ fontSize: `${getFontSize() - 3}px` }}
+ style={{ fontSize: fontSize(-3) }}
>
diff --git a/gui/src/pages/config/ModelRoleSelector.tsx b/gui/src/pages/config/ModelRoleSelector.tsx
index cbd6155b1..bd777c44b 100644
--- a/gui/src/pages/config/ModelRoleSelector.tsx
+++ b/gui/src/pages/config/ModelRoleSelector.tsx
@@ -5,7 +5,7 @@ import { Fragment } from "react";
import { defaultBorderRadius } from "../../components";
import { ToolTip } from "../../components/gui/Tooltip";
import InfoHover from "../../components/InfoHover";
-import { getFontSize } from "../../util";
+import { fontSize } from "../../util";
interface ModelRoleSelectorProps {
models: ModelDescription[];
@@ -31,7 +31,7 @@ const ModelRoleSelector = ({
{displayName}
@@ -51,12 +51,12 @@ const ModelRoleSelector = ({
{models.length === 0 ? (
{`No ${displayName} models${["Chat", "Apply", "Edit"].includes(displayName) ? ". Using chat model" : ""}`}
) : (
{selectedModel?.title ?? `Select ${displayName} model`}
@@ -90,7 +90,7 @@ const ModelRoleSelector = ({
>
{option.title}
diff --git a/gui/src/pages/config/index.tsx b/gui/src/pages/config/index.tsx
index a4b1dd0a2..a336cb69c 100644
--- a/gui/src/pages/config/index.tsx
+++ b/gui/src/pages/config/index.tsx
@@ -8,7 +8,7 @@ import { useState } from "react";
import { useNavigate } from "react-router-dom";
import PageHeader from "../../components/PageHeader";
import { useNavigationListener } from "../../hooks/useNavigationListener";
-import { getFontSize } from "../../util";
+import { fontSize } from "../../util";
import { AccountButton } from "./AccountButton";
import { HelpCenterSection } from "./HelpCenterSection";
import { IndexingSettingsSection } from "./IndexingSettingsSection";
@@ -69,7 +69,7 @@ function ConfigPage() {
{tabs.map((tab) => (