Release #134
release.yml
on: workflow_dispatch
Annotations
3 errors and 1 warning
|
Preflight
Process completed with exit code 1.
|
|
Preflight
@okcode/web#test: command (/home/runner/work/okcode/okcode/apps/web) /home/runner/.bun/bin/bun run test exited (1)
|
|
src/components/Sidebar.test.ts > Sidebar file tree shortcut > opens the right-panel workspace instead of mounting the tree inline:
apps/web/src/components/Sidebar.test.ts#L10
AssertionError: expected 'import {\n type CollisionDetection,\…' to contain 'useRightPanelStore.getState().open("w…'
- Expected
+ Received
- useRightPanelStore.getState().open("workspace")
+ import {
+ type CollisionDetection,
+ closestCorners,
+ DndContext,
+ type DragCancelEvent,
+ type DragEndEvent,
+ type DragStartEvent,
+ PointerSensor,
+ pointerWithin,
+ useSensor,
+ useSensors,
+ } from "@dnd-kit/core";
+ import { restrictToFirstScrollableAncestor, restrictToVerticalAxis } from "@dnd-kit/modifiers";
+ import { SortableContext, useSortable, verticalListSortingStrategy } from "@dnd-kit/sortable";
+ import { CSS } from "@dnd-kit/utilities";
+ import type { ThreadId as ThreadIdType } from "@okcode/contracts";
+ import {
+ DEFAULT_MODEL_BY_PROVIDER,
+ type DesktopUpdateState,
+ type GitStatusResult,
+ ProjectId,
+ type ResolvedKeybindingsConfig,
+ ThreadId,
+ } from "@okcode/contracts";
+ import { useMutation, useQueries, useQuery, useQueryClient } from "@tanstack/react-query";
+ import { useLocation, useNavigate, useParams } from "@tanstack/react-router";
+ import { isNonEmpty as isNonEmptyString } from "effect/String";
+ import {
+ ArrowLeftIcon,
+ ArrowUpDownIcon,
+ CheckCircleIcon,
+ ChevronDownIcon,
+ ChevronRightIcon,
+ ChevronsDownUpIcon,
+ ChevronsUpDownIcon,
+ CircleDotIcon,
+ FolderIcon,
+ GitBranchIcon,
+ GitMergeIcon,
+ GitPullRequestIcon,
+ LinkIcon,
+ PanelLeftCloseIcon,
+ PlusIcon,
+ RocketIcon,
+ SettingsIcon,
+ TriangleAlertIcon,
+ UserIcon,
+ XIcon,
+ XCircleIcon,
+ } from "lucide-react";
+ import {
+ type CSSProperties,
+ type MouseEvent,
+ memo,
+ useCallback,
+ useEffect,
+ useMemo,
+ useRef,
+ useState,
+ } from "react";
+ import { CloneRepositoryDialog } from "~/components/CloneRepositoryDialog";
+ import { EditableThreadTitle } from "~/components/EditableThreadTitle";
+ import { ServerFolderPickerDialog } from "~/components/ServerFolderPickerDialog";
+ import { ProjectIconEditorDialog } from "~/components/ProjectIconEditorDialog";
+ import { ProjectIcon } from "~/components/ProjectIcon";
+ import { RemoteFolderPickerDialog } from "~/components/RemoteFolderPickerDialog";
+ import { useClientMode } from "~/hooks/useClientMode";
+ import { useCopyToClipboard } from "~/hooks/useCopyToClipboard";
+ import { useCurrentWorktreeCleanupCandidates } from "~/hooks/useCurrentWorktreeCleanupCandidates";
+ import { useProjectTitleEditor } from "~/hooks/useProjectTitleEditor";
+ import { useTheme } from "~/hooks/useTheme";
+ import { useThreadTitleEditor } from "~/hooks/useThreadTitleEditor";
+ import { resolveImportedProjectScripts } from "~/lib/projectImport";
+ import { normalizeProjectIconPath } from "~/lib/projectIcons";
+ import { projectPathExistsQueryOptions } from "~/lib/projectReactQuery";
+ import { updateProjectIconOverride } from "~/lib/projectMeta";
+ import { getProjectColor } from "~/projectColors";
+ import { useRightPanelStore } from "~/rightPanelStore";
+ import {
+ type SidebarProjectSortOrder,
+ type SidebarThreadSortOrder,
+ useAppSettings,
+ } from "../appSettings";
+ import { APP_BASE_NAME, APP_VERSION } from "../branding";
+ import { useComposerDraftStore } from "../composerDraftStore";
+ import { isElectron } from "../env";
+ import { useHandleNewThread } from "../hooks/useHandleNewThread";
+ import { shortcutLabelForCommand } from "../keybindings";
+ import { gitRemoveWorktreeMutationOptions, gitStatusQueryOptions } from "../lib/gitReactQuery";
+ import {
+ deriveRemoteFolderBrowserRoot,
+ isProbablyLocalWebSession,
+ } from "../lib/remoteFolderPicker";
+ import { serverConfigQueryOptions, serverUpdateQueryOptions } from "../lib/serverReactQuery";
+ import { cn, isLinuxPlatform, isMacPlatform, newCommandId, newProjectId } from "../lib/utils";
+ import { readNativeApi } from "../nativeApi";
+ import { derivePendingApprovals, derivePendingUserInputs } from "../session-logic";
+ import { useStore } from "../store";
+ import { useTerminalStateStore } from "../terminalStateStore";
+
|
|
eslint-plugin-unicorn(no-array-sort):
apps/server/src/fileSystemBrowser.test.ts#L69
Use `Array#toSorted()` instead of `Array#sort()`.
|