diff --git a/apps/server/src/claudeModelOptions.test.ts b/apps/server/src/claudeModelOptions.test.ts index 620a7ef0b3..25844a5eaa 100644 --- a/apps/server/src/claudeModelOptions.test.ts +++ b/apps/server/src/claudeModelOptions.test.ts @@ -1,4 +1,4 @@ -import { describe, expect, it } from "vitest"; +import { describe, expect, it } from "@effect/vitest"; import { ProviderInstanceId, type ModelSelection } from "@t3tools/contracts"; diff --git a/apps/server/src/orchestration-v2/ProviderSelectionTransition.test.ts b/apps/server/src/orchestration-v2/ProviderSelectionTransition.test.ts index ee8114b693..2e1911bceb 100644 --- a/apps/server/src/orchestration-v2/ProviderSelectionTransition.test.ts +++ b/apps/server/src/orchestration-v2/ProviderSelectionTransition.test.ts @@ -1,4 +1,4 @@ -import { describe, expect, it } from "vitest"; +import { describe, expect, it } from "@effect/vitest"; import { type ModelSelection, diff --git a/apps/web/src/components/BranchToolbarBranchSelector.tsx b/apps/web/src/components/BranchToolbarBranchSelector.tsx index 16975ee8ee..8b1da366ae 100644 --- a/apps/web/src/components/BranchToolbarBranchSelector.tsx +++ b/apps/web/src/components/BranchToolbarBranchSelector.tsx @@ -31,6 +31,7 @@ import { cn } from "../lib/utils"; import { THREAD_DETAILS_PANEL_CHEVRON_CLASS, THREAD_DETAILS_PANEL_ICON_CLASS, + THREAD_DETAILS_PANEL_ROW_POPUP_CLASS, THREAD_DETAILS_PANEL_ROW_CLASS, } from "./chat/threadDetailsPanelStyles"; import { parsePullRequestReference } from "../pullRequestReference"; @@ -730,7 +731,10 @@ export function BranchToolbarBranchSelector({
diff --git a/apps/web/src/components/BranchToolbarEnvModeSelector.tsx b/apps/web/src/components/BranchToolbarEnvModeSelector.tsx index 83caafd41c..734dac57a6 100644 --- a/apps/web/src/components/BranchToolbarEnvModeSelector.tsx +++ b/apps/web/src/components/BranchToolbarEnvModeSelector.tsx @@ -4,7 +4,8 @@ import { cn } from "../lib/utils"; import { THREAD_DETAILS_PANEL_ICON_CLASS, THREAD_DETAILS_PANEL_LOCKED_ROW_CLASS, - THREAD_DETAILS_PANEL_ROW_CLASS, + THREAD_DETAILS_PANEL_ROW_POPUP_CLASS, + THREAD_DETAILS_PANEL_SELECT_ROW_CLASS, } from "./chat/threadDetailsPanelStyles"; import { @@ -109,7 +110,7 @@ export const BranchToolbarEnvModeSelector = memo(function BranchToolbarEnvModeSe size={displayMode === "panel" ? "default" : "xs"} className={cn( "font-medium", - displayMode === "panel" && THREAD_DETAILS_PANEL_ROW_CLASS, + displayMode === "panel" && THREAD_DETAILS_PANEL_SELECT_ROW_CLASS, )} aria-label="Workspace" /> @@ -137,7 +138,14 @@ export const BranchToolbarEnvModeSelector = memo(function BranchToolbarEnvModeSe {workspacePath ? {workspacePath} : null} - + Workspace diff --git a/apps/web/src/components/BranchToolbarEnvironmentSelector.tsx b/apps/web/src/components/BranchToolbarEnvironmentSelector.tsx index 86b2416c7c..7d420e8a35 100644 --- a/apps/web/src/components/BranchToolbarEnvironmentSelector.tsx +++ b/apps/web/src/components/BranchToolbarEnvironmentSelector.tsx @@ -7,7 +7,8 @@ import { cn } from "../lib/utils"; import { THREAD_DETAILS_PANEL_ICON_CLASS, THREAD_DETAILS_PANEL_LOCKED_ROW_CLASS, - THREAD_DETAILS_PANEL_ROW_CLASS, + THREAD_DETAILS_PANEL_ROW_POPUP_CLASS, + THREAD_DETAILS_PANEL_SELECT_ROW_CLASS, } from "./chat/threadDetailsPanelStyles"; import { Select, @@ -79,7 +80,10 @@ export const BranchToolbarEnvironmentSelector = memo(function BranchToolbarEnvir {activeEnvironment?.isPrimary ? ( @@ -93,7 +97,14 @@ export const BranchToolbarEnvironmentSelector = memo(function BranchToolbarEnvir )} - + Run on {availableEnvironments.map((env) => ( diff --git a/apps/web/src/components/GitActionsControl.tsx b/apps/web/src/components/GitActionsControl.tsx index 9034cb100d..ce5914925b 100644 --- a/apps/web/src/components/GitActionsControl.tsx +++ b/apps/web/src/components/GitActionsControl.tsx @@ -91,6 +91,7 @@ import { readLocalApi } from "~/localApi"; import { THREAD_DETAILS_PANEL_CHEVRON_CLASS, THREAD_DETAILS_PANEL_ICON_CLASS, + THREAD_DETAILS_PANEL_ROW_POPUP_CLASS, THREAD_DETAILS_PANEL_ROW_CLASS, THREAD_DETAILS_PANEL_SPLIT_GROUP_CLASS, THREAD_DETAILS_PANEL_SPLIT_PRIMARY_CLASS, @@ -989,6 +990,7 @@ export default function GitActionsControl({ }: GitActionsControlProps) { const isPanel = displayMode === "panel"; const ActionGroup = isPanel ? "div" : Group; + const panelAnchorRef = useRef(null); const updateThreadMetadata = useAtomCommand( threadEnvironment.updateMetadata, "thread branch metadata update", @@ -1706,6 +1708,7 @@ export default function GitActionsControl({ {quickActionDisabledReason ? ( @@ -1793,7 +1796,11 @@ export default function GitActionsControl({ className={isPanel ? THREAD_DETAILS_PANEL_CHEVRON_CLASS : "size-4"} /> - + {gitActionMenuItems.map((item) => { const disabledReason = getMenuActionDisabledReason({ item, diff --git a/apps/web/src/components/ProjectScriptsControl.tsx b/apps/web/src/components/ProjectScriptsControl.tsx index 84274019d6..b0085d4d30 100644 --- a/apps/web/src/components/ProjectScriptsControl.tsx +++ b/apps/web/src/components/ProjectScriptsControl.tsx @@ -63,6 +63,7 @@ import { cn } from "~/lib/utils"; import { THREAD_DETAILS_PANEL_CHEVRON_CLASS, THREAD_DETAILS_PANEL_ICON_CLASS, + THREAD_DETAILS_PANEL_ROW_POPUP_CLASS, THREAD_DETAILS_PANEL_ROW_CLASS, THREAD_DETAILS_PANEL_SPLIT_GROUP_CLASS, THREAD_DETAILS_PANEL_SPLIT_PRIMARY_CLASS, @@ -134,6 +135,7 @@ export default function ProjectScriptsControl({ }: ProjectScriptsControlProps) { const isPanel = displayMode === "panel"; const ActionGroup = isPanel ? "div" : Group; + const panelAnchorRef = React.useRef(null); const addScriptFormId = React.useId(); const [editingScriptId, setEditingScriptId] = useState(null); const [dialogOpen, setDialogOpen] = useState(false); @@ -267,7 +269,9 @@ export default function ProjectScriptsControl({ - + {scripts.map((script) => { const shortcutLabel = shortcutLabelForCommand( keybindings, diff --git a/apps/web/src/components/chat/OpenInPicker.tsx b/apps/web/src/components/chat/OpenInPicker.tsx index e2b4664817..650d1920c5 100644 --- a/apps/web/src/components/chat/OpenInPicker.tsx +++ b/apps/web/src/components/chat/OpenInPicker.tsx @@ -1,5 +1,5 @@ import { EditorId, type EnvironmentId, type ResolvedKeybindingsConfig } from "@t3tools/contracts"; -import { memo, useCallback, useMemo } from "react"; +import { memo, useCallback, useMemo, useRef } from "react"; import { shortcutLabelForCommand } from "../../keybindings"; import { usePreferredEditor } from "../../editorPreferences"; import { ChevronDownIcon, FolderClosedIcon } from "lucide-react"; @@ -37,6 +37,7 @@ import { useAtomCommand } from "~/state/use-atom-command"; import { THREAD_DETAILS_PANEL_CHEVRON_CLASS, THREAD_DETAILS_PANEL_ICON_CLASS, + THREAD_DETAILS_PANEL_ROW_POPUP_CLASS, THREAD_DETAILS_PANEL_SPLIT_GROUP_CLASS, THREAD_DETAILS_PANEL_SPLIT_PRIMARY_CLASS, THREAD_DETAILS_PANEL_SPLIT_SECONDARY_CLASS, @@ -176,6 +177,7 @@ export const OpenInPicker = memo(function OpenInPicker({ }) { const isPanel = displayMode === "panel"; const ActionGroup = isPanel ? "div" : Group; + const panelAnchorRef = useRef(null); const openInEditorMutation = useAtomCommand(shellEnvironment.openInEditor, "open in editor"); const [preferredEditor, setPreferredEditor] = usePreferredEditor(availableEditors); const options = useMemo( @@ -212,7 +214,9 @@ export const OpenInPicker = memo(function OpenInPicker({