-
+
{getMetaKeyLabel()} ⇧ ' to toggle agent
-
diff --git a/gui/src/components/History/HistoryTableRow.tsx b/gui/src/components/History/HistoryTableRow.tsx
index 0143b1488..1cb104a0c 100644
--- a/gui/src/components/History/HistoryTableRow.tsx
+++ b/gui/src/components/History/HistoryTableRow.tsx
@@ -65,7 +65,7 @@ export function HistoryTableRow({
onMouseEnter={() => setHovered(true)}
onMouseLeave={() => setHovered(false)}
data-testid={`history-row-${index}`}
- className="border-border relative mb-2 box-border flex w-full cursor-pointer overflow-hidden rounded-lg border border-solid p-3"
+ className="border-description-muted relative mb-2 box-border flex w-full cursor-pointer overflow-hidden rounded-lg border border-solid p-3"
onClick={async () => {
await dispatch(exitEdit({}));
if (sessionMetadata.sessionId !== currentSessionId) {
@@ -117,7 +117,7 @@ export function HistoryTableRow({
{hovered && !editing && (
-
+ |
{
diff --git a/gui/src/components/InfoHover.tsx b/gui/src/components/InfoHover.tsx
index f54e6ad69..79d8eb136 100644
--- a/gui/src/components/InfoHover.tsx
+++ b/gui/src/components/InfoHover.tsx
@@ -3,6 +3,14 @@ import { ToolTip } from "./gui/Tooltip";
const DEFAULT_SIZE = "5";
+const sizeMap = {
+ "3": "h-3 w-3",
+ "4": "h-4 w-4",
+ "5": "h-5 w-5",
+ "6": "h-6 w-6",
+ "8": "h-8 w-8",
+} as const;
+
const InfoHover = ({
msg,
size,
@@ -12,11 +20,13 @@ const InfoHover = ({
msg: string;
size?: string;
}) => {
+ const sizeClasses =
+ sizeMap[size as keyof typeof sizeMap] ||
+ sizeMap[DEFAULT_SIZE as keyof typeof sizeMap];
+
return (
-
+
);
};
diff --git a/gui/src/components/PageHeader.tsx b/gui/src/components/PageHeader.tsx
index 74dcc2880..93d5a941f 100644
--- a/gui/src/components/PageHeader.tsx
+++ b/gui/src/components/PageHeader.tsx
@@ -6,9 +6,15 @@ export interface PageHeaderProps {
showBorder?: boolean;
}
-export function PageHeader({ onTitleClick, title }: PageHeaderProps) {
+export function PageHeader({
+ onTitleClick,
+ title,
+ showBorder = true,
+}: PageHeaderProps) {
return (
-
+
{
@@ -20,7 +20,7 @@ export const FatalErrorIndicator = () => {
const configLoading = useAppSelector((state) => state.config.loading);
const showConfigPage = () => {
- navigate("/config?tab=agents");
+ navigate(CONFIG_ROUTES.AGENTS);
};
const { selectedProfile } = useAuth();
@@ -64,10 +64,7 @@ export const FatalErrorIndicator = () => {
Reload
)}
-
diff --git a/gui/src/components/gui/Alert.tsx b/gui/src/components/gui/Alert.tsx
index 108054a59..1dfcf0986 100644
--- a/gui/src/components/gui/Alert.tsx
+++ b/gui/src/components/gui/Alert.tsx
@@ -70,7 +70,13 @@ const spacingSizes = {
lg: "ml-2",
};
-function Alert({ type = "info", size = "lg", className, children, ...props }: AlertProps) {
+function Alert({
+ type = "info",
+ size = "lg",
+ className,
+ children,
+ ...props
+}: AlertProps) {
const { Icon, background, border, text, iconColor } = ALERT_CONFIGS[type];
return (
diff --git a/gui/src/components/gui/NumberInput.tsx b/gui/src/components/gui/NumberInput.tsx
index 16e70ba6f..4db9596c9 100644
--- a/gui/src/components/gui/NumberInput.tsx
+++ b/gui/src/components/gui/NumberInput.tsx
@@ -5,6 +5,7 @@ interface NumberInputProps {
onChange: (value: number) => void;
max: number;
min: number;
+ disabled?: boolean;
}
const NumberInput: React.FC = ({
@@ -12,26 +13,26 @@ const NumberInput: React.FC = ({
onChange,
max,
min,
+ disabled = false,
}) => {
const [inputValue, setInputValue] = useState(value.toString());
const handleIncrement = () => {
- if (value < max) {
- const newValue = value + 1;
- onChange(newValue);
- setInputValue(newValue.toString());
- }
+ if (disabled || value >= max) return;
+ const newValue = value + 1;
+ onChange(newValue);
+ setInputValue(newValue.toString());
};
const handleDecrement = () => {
- if (value > min) {
- const newValue = value - 1;
- onChange(newValue);
- setInputValue(newValue.toString());
- }
+ if (disabled || value <= min) return;
+ const newValue = value - 1;
+ onChange(newValue);
+ setInputValue(newValue.toString());
};
const handleInputChange = (e: React.ChangeEvent) => {
+ if (disabled) return;
const newInputValue = e.target.value;
setInputValue(newInputValue);
@@ -51,13 +52,16 @@ const NumberInput: React.FC = ({
};
return (
-
+
= ({
diff --git a/gui/src/components/gui/Select.tsx b/gui/src/components/gui/Select.tsx
index 6c04a571a..cb0338eb0 100644
--- a/gui/src/components/gui/Select.tsx
+++ b/gui/src/components/gui/Select.tsx
@@ -10,6 +10,7 @@ import {
vscForeground,
vscInputBackground,
} from "..";
+import { cn } from "../../util/cn";
// appearance: none;
// -webkit-appearance: none;
@@ -23,9 +24,9 @@ import {
// // gui/src/components/gui/Select.tsx
// import React from 'react';
-export const Select: React.FC > = (
- props,
-) => (
+export const Select: React.FC<
+ React.SelectHTMLAttributes
+> = ({ className, ...props }) => (
> = (
>
|