fix: centralize iOS safe area and refactor list components (#47)

* fix: add iOS safe-area-inset-top support for fullscreen overlays

- Add pt-safe CSS utility class for safe-area-inset-top
- Create FullscreenSheet component with built-in safe-area support
- Add fullscreen prop to DialogContent for fullscreen dialogs
- Update FileBrowserSheet to use FullscreenSheet
- Update MobileFilePreviewModal to use FullscreenSheet
- Add pt-safe to SettingsDialog mobile view

Fixes status bar overlap on iOS devices with notch/Dynamic Island

* fix: add pt-safe to main page headers

- Header.tsx (main repos page)
- SessionDetailHeader.tsx (session page)

* docs: add TDD refactoring plan for iOS safe area

* remove plan file from repo

* refactor: centralize iOS safe area handling with PageHeader component

- Add PageHeader component with pt-safe, sticky, z-10, border-b styling
- Add TDD test infrastructure (vitest config, testing-library, jsdom)
- Refactor Header, SessionDetailHeader, RepoDetailHeader, Workspace to use PageHeader
- Fix missing pt-safe on RepoDetailHeader and Workspace pages
- All header safe area styling now has single fix point

* fix: add pt-safe to remaining fullscreen dialogs and sheets

- GitChangesSheet, FilePreviewDialog: add fullscreen prop
- ModelSelectDialog, RepoMcpDialog: add pt-safe class
- EditSessionTitleDialog: add pt-safe on mobile

* fix: use mobile-first positioning for large dialogs

Dialogs need top-0 positioning on mobile for pt-safe to work.
Centered dialogs don't benefit from safe area padding.

* fix: add mobileFullscreen prop to DialogContent

- Fullscreen on mobile with pt-safe, centered on desktop
- Simplifies large dialog styling

* fix: use inline styles for iOS safe area to fix CSS cascade issues

- Convert pt-safe/pb-safe to @utility directives with iOS 11 fallback
- Use inline styles on DialogContent for reliable safe-area padding
- Position close button with calc(env(safe-area-inset-top) + 1rem)
- Add 10 tests for DialogContent safe-area behavior

* refactor: extract ListToolbar and Header components for reuse

- Add ListToolbar component for search/select all/delete UI
- Add Header compound component (Header.Root, Header.Title, etc.)
- Update SessionList and RepoList to use ListToolbar
- Mobile delete: deletes selected or all if none selected
- Cancel delete now clears selection
- Remove unused layout components

---------

Co-authored-by: Chris Scott <99081550+chriswritescode-dev@users.noreply.github.com>
This commit is contained in:
Justin CarlsonandChris Scott authored and GitHub committed 2026-01-04 14:05:59 -05:00
1 parent 72bb20a4fa
commit cd9a552bf8
34 files changed
+1627 -986

No files matched your search

+6 -1
View File
@@ -6,7 +6,8 @@
"dev": "vite", "dev": "vite",
"build": "tsc -b && vite build", "build": "tsc -b && vite build",
"lint": "eslint .", "lint": "eslint .",
"preview": "vite preview" "preview": "vite preview",
"test": "vitest"
}, },
"dependencies": { "dependencies": {
"@hookform/resolvers": "^5.2.2", "@hookform/resolvers": "^5.2.2",
@@ -48,6 +49,9 @@
}, },
"devDependencies": { "devDependencies": {
"@eslint/js": "^9.36.0", "@eslint/js": "^9.36.0",
"@testing-library/jest-dom": "^6.9.1",
"@testing-library/react": "^16.3.1",
"@testing-library/user-event": "^14.6.1",
"@types/node": "^24.8.1", "@types/node": "^24.8.1",
"@types/react": "^19.2.2", "@types/react": "^19.2.2",
"@types/react-dom": "^19.2.2", "@types/react-dom": "^19.2.2",
@@ -57,6 +61,7 @@
"eslint-plugin-react-hooks": "^5.2.0", "eslint-plugin-react-hooks": "^5.2.0",
"eslint-plugin-react-refresh": "^0.4.22", "eslint-plugin-react-refresh": "^0.4.22",
"globals": "^16.4.0", "globals": "^16.4.0",
"jsdom": "^27.4.0",
"openapi-typescript": "^7.10.1", "openapi-typescript": "^7.10.1",
"postcss": "^8.5.6", "postcss": "^8.5.6",
"tailwindcss": "^4.1.14", "tailwindcss": "^4.1.14",
-42
View File
@@ -1,42 +0,0 @@
#root {
max-width: 1280px;
margin: 0 auto;
padding: 2rem;
text-align: center;
}
.logo {
height: 6em;
padding: 1.5em;
will-change: filter;
transition: filter 300ms;
}
.logo:hover {
filter: drop-shadow(0 0 2em #646cffaa);
}
.logo.react:hover {
filter: drop-shadow(0 0 2em #61dafbaa);
}
@keyframes logo-spin {
from {
transform: rotate(0deg);
}
to {
transform: rotate(360deg);
}
}
@media (prefers-reduced-motion: no-preference) {
a:nth-of-type(2) .logo {
animation: logo-spin infinite 20s linear;
}
}
.card {
padding: 2em;
}
.read-the-docs {
color: #888;
}
@@ -2,6 +2,7 @@ import { useEffect, useState, memo, useCallback, useRef } from 'react'
import { FileBrowser } from './FileBrowser' import { FileBrowser } from './FileBrowser'
import { Button } from '@/components/ui/button' import { Button } from '@/components/ui/button'
import { PathDisplay } from '@/components/ui/path-display' import { PathDisplay } from '@/components/ui/path-display'
import { FullscreenSheet, FullscreenSheetHeader, FullscreenSheetContent } from '@/components/ui/fullscreen-sheet'
import { X } from 'lucide-react' import { X } from 'lucide-react'
import { GPU_ACCELERATED_STYLE, MODAL_TRANSITION_MS } from '@/lib/utils' import { GPU_ACCELERATED_STYLE, MODAL_TRANSITION_MS } from '@/lib/utils'
import { useSwipeBack } from '@/hooks/useMobile' import { useSwipeBack } from '@/hooks/useMobile'
@@ -37,6 +38,7 @@ export const FileBrowserSheet = memo(function FileBrowserSheet({ isOpen, onClose
return () => clearTimeout(timer) return () => clearTimeout(timer)
} }
}, [isOpen]) }, [isOpen])
const handleDirectoryLoad = useCallback((info: { workspaceRoot?: string; currentPath: string }) => { const handleDirectoryLoad = useCallback((info: { workspaceRoot?: string; currentPath: string }) => {
if (!info.currentPath || info.currentPath === '.' || info.currentPath === '') { if (!info.currentPath || info.currentPath === '.' || info.currentPath === '') {
setDisplayPath('/') setDisplayPath('/')
@@ -94,11 +96,8 @@ export const FileBrowserSheet = memo(function FileBrowserSheet({ isOpen, onClose
transition: 'opacity 150ms ease-out', transition: 'opacity 150ms ease-out',
}} }}
> >
<div <FullscreenSheet style={{ ...GPU_ACCELERATED_STYLE, ...swipeStyles }}>
className="absolute inset-0 bg-background flex flex-col" <FullscreenSheetHeader className="px-4 py-1">
style={{ ...GPU_ACCELERATED_STYLE, ...swipeStyles }}
>
<div className="flex-shrink-0 border-b border-border bg-background backdrop-blur-sm px-4 py-1">
<div className="flex items-center justify-between"> <div className="flex items-center justify-between">
<div className="flex items-center gap-3"> <div className="flex items-center gap-3">
{(displayPath === '/' || !repoName) && ( {(displayPath === '/' || !repoName) && (
@@ -119,17 +118,17 @@ export const FileBrowserSheet = memo(function FileBrowserSheet({ isOpen, onClose
</Button> </Button>
)} )}
</div> </div>
</div> </FullscreenSheetHeader>
<div className="flex-1 overflow-hidden min-h-0"> <FullscreenSheetContent>
<FileBrowser <FileBrowser
basePath={normalizedBasePath} basePath={normalizedBasePath}
embedded={true} embedded={true}
initialSelectedFile={initialSelectedFile} initialSelectedFile={initialSelectedFile}
onDirectoryLoad={handleDirectoryLoad} onDirectoryLoad={handleDirectoryLoad}
/> />
</div> </FullscreenSheetContent>
</div> </FullscreenSheet>
</div> </div>
) )
}) })
@@ -61,6 +61,7 @@ export function FilePreviewDialog({ isOpen, onClose, filePath, repoBasePath, onF
<DialogContent <DialogContent
className="w-screen h-screen max-w-none max-h-none p-0 bg-background border-0 flex flex-col" className="w-screen h-screen max-w-none max-h-none p-0 bg-background border-0 flex flex-col"
hideCloseButton hideCloseButton
fullscreen
> >
<div className="flex-1 overflow-hidden min-h-0"> <div className="flex-1 overflow-hidden min-h-0">
{isLoading ? ( {isLoading ? (
@@ -1,12 +1,14 @@
import { useState, useEffect, useRef } from 'react' import { useState, useEffect, useRef } from 'react'
import { Dialog, DialogContent } from '@/components/ui/dialog' import { createPortal } from 'react-dom'
import { GitChangesPanel } from './GitChangesPanel' import { GitChangesPanel } from './GitChangesPanel'
import { FileDiffView } from './FileDiffView' import { FileDiffView } from './FileDiffView'
import { FilePreviewDialog } from './FilePreviewDialog' import { FilePreviewDialog } from './FilePreviewDialog'
import { FullscreenSheet, FullscreenSheetHeader, FullscreenSheetContent } from '@/components/ui/fullscreen-sheet'
import { Button } from '@/components/ui/button' import { Button } from '@/components/ui/button'
import { X, GitBranch } from 'lucide-react' import { X, GitBranch } from 'lucide-react'
import { useMobile, useSwipeBack } from '@/hooks/useMobile' import { useMobile, useSwipeBack } from '@/hooks/useMobile'
import { useQueryClient } from '@tanstack/react-query' import { useQueryClient } from '@tanstack/react-query'
import { GPU_ACCELERATED_STYLE, MODAL_TRANSITION_MS } from '@/lib/utils'
interface GitChangesSheetProps { interface GitChangesSheetProps {
isOpen: boolean isOpen: boolean
@@ -63,39 +65,66 @@ export function GitChangesSheet({ isOpen, onClose, repoId, currentBranch, repoLo
queryClient.invalidateQueries({ queryKey: ['fileDiff'] }) queryClient.invalidateQueries({ queryKey: ['fileDiff'] })
} }
const handleOpenChange = (open: boolean) => { const [shouldRender, setShouldRender] = useState(false)
if (!open) {
onClose() useEffect(() => {
if (isOpen) {
setShouldRender(true)
document.body.style.overflow = 'hidden'
} else {
const timer = setTimeout(() => setShouldRender(false), MODAL_TRANSITION_MS)
document.body.style.overflow = 'unset'
return () => clearTimeout(timer)
} }
} return () => {
document.body.style.overflow = 'unset'
}
}, [isOpen])
return ( useEffect(() => {
<Dialog open={isOpen} onOpenChange={handleOpenChange}> const handleEscape = (e: KeyboardEvent) => {
<DialogContent if (e.key === 'Escape' && isOpen) {
ref={contentRef} onClose()
className="w-screen h-screen max-w-none max-h-none p-0 gap-0 bg-background border-0 flex flex-col" }
hideCloseButton }
style={swipeStyles} document.addEventListener('keydown', handleEscape)
> return () => document.removeEventListener('keydown', handleEscape)
<div className="flex items-center justify-between px-4 sm:py-3 border-b border-border flex-shrink-0"> }, [isOpen, onClose])
<div className="flex items-center gap-2">
<GitBranch className="w-4 h-4 text-foreground" /> if (!isOpen && !shouldRender) return null
<h2 className="text-sm font-semibold text-foreground">
{selectedFile ? 'File Changes' : 'Git Changes'} return createPortal(
</h2> <div
<span className="text-xs text-muted-foreground">({currentBranch})</span> ref={contentRef}
className="fixed inset-0 z-50"
style={{
opacity: isOpen ? 1 : 0,
pointerEvents: isOpen ? 'auto' : 'none',
transition: 'opacity 150ms ease-out',
}}
>
<FullscreenSheet style={{ ...GPU_ACCELERATED_STYLE, ...swipeStyles }}>
<FullscreenSheetHeader className="px-4 py-1">
<div className="flex items-center justify-between">
<div className="flex items-center gap-2">
<GitBranch className="w-4 h-4 text-foreground" />
<h2 className="text-sm font-semibold text-foreground">
{selectedFile ? 'File Changes' : 'Git Changes'}
</h2>
<span className="text-xs text-muted-foreground">({currentBranch})</span>
</div>
<Button
variant="ghost"
size="icon"
onClick={onClose}
className="text-muted-foreground hover:text-foreground hover:bg-muted transition-all duration-200 h-8 w-8"
>
<X className="w-4 h-4" />
</Button>
</div> </div>
<Button </FullscreenSheetHeader>
variant="ghost"
size="icon"
onClick={onClose}
className="text-muted-foreground hover:text-foreground hover:bg-muted transition-all duration-200 h-8 w-8"
>
<X className="w-4 h-4" />
</Button>
</div>
<div className="flex-1 overflow-hidden min-h-0"> <FullscreenSheetContent>
{isMobile ? ( {isMobile ? (
selectedFile ? ( selectedFile ? (
<FileDiffView <FileDiffView
@@ -137,7 +166,7 @@ export function GitChangesSheet({ isOpen, onClose, repoId, currentBranch, repoLo
</div> </div>
</div> </div>
)} )}
</div> </FullscreenSheetContent>
<FilePreviewDialog <FilePreviewDialog
isOpen={!!previewFilePath} isOpen={!!previewFilePath}
@@ -147,7 +176,8 @@ export function GitChangesSheet({ isOpen, onClose, repoId, currentBranch, repoLo
onFileSaved={handleFileSaved} onFileSaved={handleFileSaved}
initialLineNumber={previewLineNumber} initialLineNumber={previewLineNumber}
/> />
</DialogContent> </FullscreenSheet>
</Dialog> </div>,
document.body
) )
} }
@@ -1,5 +1,6 @@
import { memo, useCallback, useState, useEffect, useRef } from "react"; import { memo, useCallback, useState, useEffect, useRef } from "react";
import { FilePreview } from "./FilePreview"; import { FilePreview } from "./FilePreview";
import { FullscreenSheet } from "@/components/ui/fullscreen-sheet";
import type { FileInfo } from "@/types/files"; import type { FileInfo } from "@/types/files";
import { GPU_ACCELERATED_STYLE, MODAL_TRANSITION_MS } from "@/lib/utils"; import { GPU_ACCELERATED_STYLE, MODAL_TRANSITION_MS } from "@/lib/utils";
import { useSwipeBack } from "@/hooks/useMobile"; import { useSwipeBack } from "@/hooks/useMobile";
@@ -51,21 +52,17 @@ export const MobileFilePreviewModal = memo(function MobileFilePreviewModal({
} }
return ( return (
<div <div ref={containerRef} style={{ isolation: 'isolate' }}>
ref={containerRef} <FullscreenSheet style={{ ...GPU_ACCELERATED_STYLE, ...swipeStyles }}>
className="fixed inset-0 z-50 bg-background" <div className={`h-full overflow-hidden bg-background pt-safe ${showFilePreviewHeader ? "" : "pb-8"}`}>
style={{ isolation: 'isolate', ...GPU_ACCELERATED_STYLE, ...swipeStyles }} <FilePreview
> file={localFile}
<div hideHeader={!showFilePreviewHeader}
className={`h-full overflow-hidden bg-background ${showFilePreviewHeader ? "" : "pb-8"}`} isMobileModal={showFilePreviewHeader}
> onCloseModal={handleClose}
<FilePreview />
file={localFile} </div>
hideHeader={!showFilePreviewHeader} </FullscreenSheet>
isMobileModal={showFilePreviewHeader}
onCloseModal={handleClose}
/>
</div>
</div> </div>
); );
}) })
-53
View File
@@ -1,53 +0,0 @@
import { Settings } from "lucide-react";
import { Button } from "@/components/ui/button";
import { BackButton } from "@/components/ui/back-button";
import { useSettingsDialog } from "@/hooks/useSettingsDialog";
import { useTheme } from "@/hooks/useTheme";
import type { ReactNode } from "react";
interface HeaderProps {
title: string;
backTo?: string;
action?: ReactNode;
}
export function Header({ title, backTo, action }: HeaderProps) {
const { open: openSettings } = useSettingsDialog();
const theme = useTheme();
return (
<header className="sticky top-0 z-10 bg-gradient-to-b from-background via-background to-background border-b border-border backdrop-blur-sm">
<div className="max-w-7xl mx-auto px-4 sm:px-6 lg:px-8">
<div className="flex items-center justify-between h-16">
<div className="flex items-center gap-4">
{backTo && <BackButton to={backTo} />}
<div className="flex items-center gap-2">
{title === "OpenCode" ? (
<img
src={theme === 'light' ? "/opencode-wordmark-light.svg" : "/opencode-wordmark-dark.svg"}
alt="OpenCode"
className="h-6 w-auto sm:h-8"
/>
) : (
<h1 className="text-xl font-semibold bg-gradient-to-r from-foreground to-muted-foreground bg-clip-text text-transparent truncate">
{title}
</h1>
)}
</div>
</div>
<div className="flex items-center gap-2">
{action && <div>{action}</div>}
<Button
variant="ghost"
size="icon"
onClick={openSettings}
className="text-muted-foreground hover:text-foreground hover:bg-accent transition-all duration-200"
>
<Settings className="w-10 h-10" />
</Button>
</div>
</div>
</div>
</header>
);
}
@@ -1,134 +0,0 @@
import { Button } from "@/components/ui/button";
import { Badge } from "@/components/ui/badge";
import { BranchSwitcher } from "@/components/repo/BranchSwitcher";
import { DropdownMenu, DropdownMenuContent, DropdownMenuItem, DropdownMenuTrigger } from "@/components/ui/dropdown-menu";
import { BackButton } from "@/components/ui/back-button";
import { Plus, FolderOpen, GitBranch, Plug, MoreVertical } from "lucide-react";
interface RepoDetailHeaderProps {
repoName: string;
repoId: number;
currentBranch: string | null;
isWorktree: boolean;
repoUrl: string | null;
onMcpClick: () => void;
onFilesClick: () => void;
onNewSession: () => void;
disabledNewSession?: boolean;
}
export function RepoDetailHeader({
repoName,
repoId,
currentBranch,
isWorktree,
repoUrl,
onMcpClick,
onFilesClick,
onNewSession,
disabledNewSession,
}: RepoDetailHeaderProps) {
const branchToDisplay = isWorktree ? (currentBranch ? `WT: ${currentBranch}` : "Worktree") : currentBranch
const isNotMainBranch = currentBranch && currentBranch !== "main" && currentBranch !== "master"
return (
<div className="flex-shrink-0 z-10 bg-gradient-to-b from-background via-background to-background backdrop-blur-sm px-4 py-2">
<div className="flex items-center justify-between">
<div className="flex items-center gap-3 min-w-0">
<BackButton />
<div className="flex items-center gap-2 min-w-0">
<h1 className="text-base truncate max-w-[200px] sm:max-w-none font-semibold bg-gradient-to-r from-foreground to-muted-foreground bg-clip-text text-transparent">
{repoName}
</h1>
{!isWorktree && currentBranch && branchToDisplay ? (
<BranchSwitcher
repoId={repoId}
currentBranch={currentBranch}
isWorktree={isWorktree}
repoUrl={repoUrl}
className="hidden sm:flex w-[140px] max-w-[140px]"
/>
) : branchToDisplay ? (
<Badge
className={`text-xs px-1.5 sm:px-2.5 py-0.5 ${
isWorktree
? "bg-purple-600/20 text-purple-400 border-purple-600/40"
: isNotMainBranch
? "bg-blue-600/20 text-blue-400 border-blue-600/40"
: "bg-zinc-600/20 text-zinc-400 border-zinc-600/40"
}`}
title={isWorktree ? "Worktree" : branchToDisplay}
>
{isWorktree && <GitBranch className="h-3 w-3 sm:mr-1" />}
<span className="hidden sm:inline">{branchToDisplay}</span>
</Badge>
) : null}
</div>
</div>
<div className="flex items-center gap-2">
<Button
variant="outline"
onClick={onMcpClick}
size="sm"
className="hidden sm:flex text-foreground border-border hover:bg-accent transition-all duration-200 hover:scale-105"
>
<Plug className="w-4 h-4 sm:mr-2" />
<span className="hidden sm:inline">MCP</span>
</Button>
<Button
variant="outline"
onClick={onFilesClick}
size="sm"
className="hidden sm:flex text-foreground border-border hover:bg-accent transition-all duration-200 hover:scale-105"
>
<FolderOpen className="w-4 h-4 sm:mr-2" />
<span className="hidden sm:inline">Files</span>
</Button>
<DropdownMenu>
<DropdownMenuTrigger asChild>
<Button
variant="outline"
size="icon"
className="sm:hidden text-foreground border-border hover:bg-accent transition-all duration-200 hover:scale-105"
>
<MoreVertical className="w-5 h-5" />
</Button>
</DropdownMenuTrigger>
<DropdownMenuContent align="end">
{!isWorktree && currentBranch && (
<>
<div className="px-2 py-1.5">
<BranchSwitcher
repoId={repoId}
currentBranch={currentBranch}
isWorktree={isWorktree}
repoUrl={repoUrl}
iconOnly={false}
className="w-full"
/>
</div>
<div className="h-px bg-border my-1" />
</>
)}
<DropdownMenuItem onClick={onMcpClick}>
<Plug className="w-4 h-4 mr-2" /> MCP
</DropdownMenuItem>
<DropdownMenuItem onClick={onFilesClick}>
<FolderOpen className="w-4 h-4 mr-2" /> Files
</DropdownMenuItem>
</DropdownMenuContent>
</DropdownMenu>
<Button
onClick={onNewSession}
disabled={disabledNewSession}
size="sm"
className="bg-blue-600 hover:bg-blue-700 text-white transition-all duration-200 hover:scale-105"
>
<Plus className="w-4 h-4 sm:mr-2" />
<span className="hidden sm:inline">New Session</span>
</Button>
</div>
</div>
</div>
)
}
@@ -458,7 +458,7 @@ export function ModelSelectDialog({
return ( return (
<Dialog open={open} onOpenChange={onOpenChange}> <Dialog open={open} onOpenChange={onOpenChange}>
<DialogContent className="max-w-7xl w-[95vw] h-[90vh] max-h-[90vh] bg-background border-border text-foreground p-0 flex flex-col gap-0"> <DialogContent mobileFullscreen className="sm:w-[95vw] sm:max-w-7xl sm:h-[90vh] sm:max-h-[90vh] bg-background border-border text-foreground flex flex-col gap-0">
<DialogHeader className="p-4 sm:p-6 pb-2 border-b border-border flex-shrink-0"> <DialogHeader className="p-4 sm:p-6 pb-2 border-b border-border flex-shrink-0">
<DialogTitle className="text-lg sm:text-xl font-semibold"> <DialogTitle className="text-lg sm:text-xl font-semibold">
{selectedProvider && selectedProviderData ? `Select Model - ${selectedProviderData.name}` : 'Select Model'} {selectedProvider && selectedProviderData ? `Select Model - ${selectedProviderData.name}` : 'Select Model'}
+26 -66
View File
@@ -2,10 +2,8 @@ import { useState } from "react";
import { useQuery, useMutation, useQueryClient } from "@tanstack/react-query"; import { useQuery, useMutation, useQueryClient } from "@tanstack/react-query";
import { listRepos, deleteRepo } from "@/api/repos"; import { listRepos, deleteRepo } from "@/api/repos";
import { DeleteDialog } from "@/components/ui/delete-dialog"; import { DeleteDialog } from "@/components/ui/delete-dialog";
import { Input } from "@/components/ui/input"; import { ListToolbar } from "@/components/ui/list-toolbar";
import { Button } from "@/components/ui/button"; import { Loader2, GitBranch, Search } from "lucide-react";
import { DropdownMenu, DropdownMenuContent, DropdownMenuItem, DropdownMenuTrigger } from "@/components/ui/dropdown-menu";
import { Loader2, GitBranch, Search, Trash2, MoreVertical } from "lucide-react";
import { RepoCard } from "./RepoCard"; import { RepoCard } from "./RepoCard";
export function RepoList() { export function RepoList() {
@@ -127,73 +125,34 @@ export function RepoList() {
} }
}; };
const handleDeleteAll = () => {
if (filteredRepos.length === 0) return;
setSelectedRepos(new Set(filteredRepos.map((r) => r.id)));
setDeleteDialogOpen(true);
};
return ( return (
<> <>
<div className="px-0 py-2 md:p-4"> <div className="px-0 md:p-4 h-full flex flex-col">
<div className="flex items-center gap-3 mb-4 md:mb-6 px-2 md:px-0"> <div className="mb-4 md:mb-6 px-2 md:px-0">
<div className="relative flex-1"> <ListToolbar
<Search className="absolute left-3 top-1/2 -translate-y-1/2 w-4 h-4 text-zinc-400" /> searchQuery={searchQuery}
<Input onSearchChange={setSearchQuery}
placeholder="Search" selectedCount={selectedRepos.size}
value={searchQuery} totalCount={filteredRepos.length}
onChange={(e) => setSearchQuery(e.target.value)} allSelected={
className="pl-10" filteredRepos.length > 0 &&
/> filteredRepos.every((repo) => selectedRepos.has(repo.id))
</div> }
{filteredRepos.length > 0 && ( onToggleSelectAll={handleSelectAll}
<Button onDelete={handleBatchDelete}
onClick={handleSelectAll} onDeleteAll={handleDeleteAll}
variant={selectedRepos.size > 0 ? "default" : "outline"} />
className="whitespace-nowrap hidden md:flex"
>
{filteredRepos.every((repo) => selectedRepos.has(repo.id))
? "Deselect All"
: "Select All"}
</Button>
)}
<Button
onClick={handleBatchDelete}
variant="destructive"
disabled={selectedRepos.size === 0}
className="hidden md:flex whitespace-nowrap"
>
<Trash2 className="w-4 h-4 mr-2" />
Delete ({selectedRepos.size})
</Button>
<DropdownMenu>
<DropdownMenuTrigger asChild>
<Button
variant="outline"
size="icon"
className="md:hidden"
disabled={filteredRepos.length === 0}
>
<MoreVertical className="w-4 h-4" />
</Button>
</DropdownMenuTrigger>
<DropdownMenuContent align="end">
{filteredRepos.length > 0 && (
<DropdownMenuItem onClick={handleSelectAll}>
{filteredRepos.every((repo) => selectedRepos.has(repo.id))
? "Deselect All"
: "Select All"}
</DropdownMenuItem>
)}
<DropdownMenuItem
onClick={handleBatchDelete}
disabled={selectedRepos.size === 0}
className="text-destructive focus:text-destructive"
>
<Trash2 className="w-4 h-4 mr-2" />
Delete ({selectedRepos.size})
</DropdownMenuItem>
</DropdownMenuContent>
</DropdownMenu>
</div> </div>
<div className="mx-2 md:mx-0"> <div className="mx-2 md:mx-0 flex-1 min-h-0">
<div className="h-[calc(100dvh-140px)] md:h-[calc(100vh-160px)] overflow-y-auto py-2 md:py-0"> <div className="h-full overflow-y-auto py-2 md:py-0">
{filteredRepos.length === 0 ? ( {filteredRepos.length === 0 ? (
<div className="text-center p-12"> <div className="text-center p-12">
<Search className="w-12 h-12 mx-auto mb-4 text-zinc-600" /> <Search className="w-12 h-12 mx-auto mb-4 text-zinc-600" />
@@ -237,6 +196,7 @@ export function RepoList() {
onCancel={() => { onCancel={() => {
setDeleteDialogOpen(false); setDeleteDialogOpen(false);
setRepoToDelete(null); setRepoToDelete(null);
setSelectedRepos(new Set());
}} }}
title={ title={
selectedRepos.size > 0 selectedRepos.size > 0
+74 -115
View File
@@ -1,9 +1,8 @@
import { useState, useEffect, useCallback, useRef } from 'react' import { useState, useEffect, useCallback } from 'react'
import { Dialog, DialogContent, DialogHeader, DialogTitle } from '@/components/ui/dialog' import { Dialog, DialogContent, DialogHeader, DialogTitle, DialogDescription } from '@/components/ui/dialog'
import { Switch } from '@/components/ui/switch' import { Switch } from '@/components/ui/switch'
import { Badge } from '@/components/ui/badge' import { Badge } from '@/components/ui/badge'
import { Input } from '@/components/ui/input' import { Loader2, XCircle, AlertCircle, Plug } from 'lucide-react'
import { Loader2, Plug, XCircle, AlertCircle, Search } from 'lucide-react'
import { mcpApi, type McpStatus } from '@/api/mcp' import { mcpApi, type McpStatus } from '@/api/mcp'
import { useMutation } from '@tanstack/react-query' import { useMutation } from '@tanstack/react-query'
import { showToast } from '@/lib/toast' import { showToast } from '@/lib/toast'
@@ -26,71 +25,12 @@ interface RepoMcpDialogProps {
directory: string | undefined directory: string | undefined
} }
function getServerDisplayName(serverId: string): string {
const name = serverId.replace(/[-_]/g, ' ')
return name.charAt(0).toUpperCase() + name.slice(1)
}
function getServerDescription(serverConfig: McpServerConfig): string {
if (serverConfig.type === 'local' && serverConfig.command) {
const command = serverConfig.command.join(' ')
if (command.includes('filesystem')) return 'File system access'
if (command.includes('git')) return 'Git repository operations'
if (command.includes('sqlite')) return 'SQLite database access'
if (command.includes('postgres')) return 'PostgreSQL database access'
if (command.includes('brave-search')) return 'Web search via Brave'
if (command.includes('github')) return 'GitHub repository access'
if (command.includes('slack')) return 'Slack integration'
if (command.includes('puppeteer')) return 'Web automation'
if (command.includes('fetch')) return 'HTTP requests'
if (command.includes('memory')) return 'Persistent memory'
return `Local: ${command}`
} else if (serverConfig.type === 'remote' && serverConfig.url) {
return `${serverConfig.url}`
}
return 'MCP server'
}
function getStatusBadge(status?: McpStatus) {
if (!status) return null
switch (status.status) {
case 'connected':
return <Badge variant="default" className="text-xs bg-green-600">Connected</Badge>
case 'disabled':
return <Badge className="text-xs bg-gray-700 text-gray-300 border-gray-600 dark:bg-gray-700 dark:text-gray-300 dark:border-gray-600">Disabled</Badge>
case 'failed':
return (
<Badge variant="destructive" className="text-xs flex items-center gap-1">
<AlertCircle className="h-3 w-3" />
Failed
</Badge>
)
case 'needs_auth':
return (
<Badge variant="outline" className="text-xs border-yellow-500 text-yellow-600">
Needs Auth
</Badge>
)
default:
return <Badge variant="outline" className="text-xs">Unknown</Badge>
}
}
export function RepoMcpDialog({ open, onOpenChange, config, directory }: RepoMcpDialogProps) { export function RepoMcpDialog({ open, onOpenChange, config, directory }: RepoMcpDialogProps) {
const [localStatus, setLocalStatus] = useState<Record<string, McpStatus>>({}) const [localStatus, setLocalStatus] = useState<Record<string, McpStatus>>({})
const [isLoadingStatus, setIsLoadingStatus] = useState(false) const [isLoadingStatus, setIsLoadingStatus] = useState(false)
const [searchQuery, setSearchQuery] = useState('')
const searchInputRef = useRef<HTMLInputElement>(null)
const mcpServers = config?.content?.mcp as Record<string, McpServerConfig> | undefined || {} const mcpServers = config?.content?.mcp as Record<string, McpServerConfig> | undefined || {}
const serverIds = Object.keys(mcpServers) const serverIds = Object.keys(mcpServers)
const filteredServerIds = serverIds.filter((serverId) => {
const displayName = getServerDisplayName(serverId).toLowerCase()
const description = getServerDescription(mcpServers[serverId]).toLowerCase()
const query = searchQuery.toLowerCase()
return displayName.includes(query) || description.includes(query)
})
const fetchStatus = useCallback(async () => { const fetchStatus = useCallback(async () => {
if (!directory || serverIds.length === 0) return if (!directory || serverIds.length === 0) return
@@ -99,8 +39,6 @@ export function RepoMcpDialog({ open, onOpenChange, config, directory }: RepoMcp
try { try {
const status = await mcpApi.getStatusFor(directory) const status = await mcpApi.getStatusFor(directory)
setLocalStatus(status) setLocalStatus(status)
} catch (error) {
console.error('Failed to fetch MCP status:', error)
} finally { } finally {
setIsLoadingStatus(false) setIsLoadingStatus(false)
} }
@@ -134,66 +72,87 @@ export function RepoMcpDialog({ open, onOpenChange, config, directory }: RepoMcp
useEffect(() => { useEffect(() => {
if (open && directory) { if (open && directory) {
fetchStatus() fetchStatus()
searchInputRef.current?.focus()
} }
if (!open) { }, [open, directory, fetchStatus])
setSearchQuery('')
const getDisplayName = (serverId: string): string => {
const name = serverId.replace(/[-_]/g, ' ')
return name.charAt(0).toUpperCase() + name.slice(1)
}
const getDescription = (serverConfig: McpServerConfig): string => {
if (serverConfig.type === 'local' && serverConfig.command) {
const command = serverConfig.command.join(' ')
if (command.includes('filesystem')) return 'File system access'
if (command.includes('git')) return 'Git repository operations'
if (command.includes('sqlite')) return 'SQLite database access'
if (command.includes('postgres')) return 'PostgreSQL database access'
if (command.includes('brave-search')) return 'Web search via Brave'
if (command.includes('github')) return 'GitHub repository access'
if (command.includes('slack')) return 'Slack integration'
if (command.includes('puppeteer')) return 'Web automation'
if (command.includes('fetch')) return 'HTTP requests'
if (command.includes('memory')) return 'Persistent memory'
return `Local: ${command}`
} else if (serverConfig.type === 'remote' && serverConfig.url) {
return serverConfig.url
} }
}, [open, directory, serverIds.length, fetchStatus]) return 'MCP server'
}
const getStatusBadge = (status?: McpStatus) => {
if (!status) return null
switch (status.status) {
case 'connected':
return <Badge variant="default" className="text-xs bg-green-600">Connected</Badge>
case 'disabled':
return <Badge className="text-xs bg-gray-700 text-gray-300 border-gray-600 dark:bg-gray-700 dark:text-gray-300 dark:border-gray-600">Disabled</Badge>
case 'failed':
return (
<Badge variant="destructive" className="text-xs flex items-center gap-1">
<AlertCircle className="h-3 w-3" />
Failed
</Badge>
)
case 'needs_auth':
return (
<Badge variant="outline" className="text-xs border-yellow-500 text-yellow-600">
Needs Auth
</Badge>
)
default:
return <Badge variant="outline" className="text-xs">Unknown</Badge>
}
}
if (!directory) return null if (!directory) return null
return ( return (
<Dialog open={open} onOpenChange={onOpenChange}> <Dialog open={open} onOpenChange={onOpenChange}>
<DialogContent className="max-w-[95%] sm:max-w-[500px] p-0 gap-0 h-[90vh] sm:h-[80vh] flex flex-col"> <DialogContent mobileFullscreen className="sm:max-w-[400px] sm:max-h-[80vh] flex flex-col gap-0 pb-safe">
<DialogHeader className="px-4 sm:px-6 pt-4 sm:pt-6 pb-2 sm:pb-3 shrink-0 border-b border-border"> <DialogHeader className="px-4 sm:px-6 pt-4 sm:pt-6 pb-2 sm:pb-3 shrink-0 ">
<div className="flex items-center gap-2"> <DialogTitle>MCP for This Location</DialogTitle>
<Plug className="w-4 h-4 text-muted-foreground" /> <DialogDescription>
<DialogTitle className="text-base sm:text-lg">MCP for This Location</DialogTitle>
</div>
<p className="text-xs sm:text-sm text-muted-foreground mt-1">
Toggle MCP servers for this repository Toggle MCP servers for this repository
</p> </DialogDescription>
</DialogHeader> </DialogHeader>
<div className="px-4 sm:px-6 py-3 border-b border-border shrink-0">
<div className="relative">
<Search className="absolute left-3 top-1/2 transform -translate-y-1/2 w-4 h-4 text-muted-foreground" />
<Input
ref={searchInputRef}
placeholder="Search MCP servers..."
value={searchQuery}
onChange={(e) => setSearchQuery(e.target.value)}
className="pl-9"
/>
</div>
</div>
<div className="px-4 sm:px-6 py-3 sm:py-4 flex-1 overflow-y-auto min-h-0"> <div className="px-4 sm:px-6 py-3 sm:py-4 flex-1 overflow-y-auto min-h-0">
{serverIds.length === 0 ? ( {serverIds.length === 0 ? (
<div className="text-center py-6 sm:py-8"> <div className="text-center py-6 text-muted-foreground">
<Plug className="w-10 h-10 mx-auto text-muted-foreground mb-3 opacity-50" /> <Plug className="w-10 h-10 mx-auto mb-3 opacity-50" />
<p className="text-sm text-muted-foreground"> <p className="text-sm">No MCP servers configured globally</p>
No MCP servers configured globally <p className="text-xs mt-1">Add them in Settings first</p>
</p>
<p className="text-xs text-muted-foreground mt-1">
Add them in Settings first
</p>
</div> </div>
) : filteredServerIds.length === 0 ? ( ) : isLoadingStatus ? (
<div className="text-center py-6 sm:py-8">
<Search className="w-10 h-10 mx-auto text-muted-foreground mb-3 opacity-50" />
<p className="text-sm text-muted-foreground">
No MCP servers match "{searchQuery}"
</p>
</div>
) : isLoadingStatus ? (
<div className="flex items-center justify-center py-8"> <div className="flex items-center justify-center py-8">
<Loader2 className="w-6 h-6 animate-spin text-muted-foreground" /> <Loader2 className="w-4 h-4 animate-spin text-blue-600 dark:text-blue-400" />
<span className="ml-2 text-sm text-muted-foreground">Loading...</span>
</div> </div>
) : ( ) : (
<div className="space-y-3"> <div className="space-y-3">
{filteredServerIds.map((serverId) => { {serverIds.map((serverId) => {
const serverConfig = mcpServers[serverId] const serverConfig = mcpServers[serverId]
const status = localStatus[serverId] const status = localStatus[serverId]
const isConnected = status?.status === 'connected' const isConnected = status?.status === 'connected'
@@ -202,20 +161,20 @@ export function RepoMcpDialog({ open, onOpenChange, config, directory }: RepoMcp
return ( return (
<div <div
key={serverId} key={serverId}
className="flex items-center justify-between gap-3 p-2 sm:p-3 rounded-lg border border-border bg-card" className="flex items-center justify-between gap-3 p-3 rounded-lg border border-border bg-card"
> >
<div className="flex-1 min-w-0"> <div className="flex-1 min-w-0">
<div className="flex items-center gap-2 mb-1"> <div className="flex items-center gap-2 mb-1">
<p className="text-xs sm:text-sm font-medium truncate"> <p className="text-sm font-medium truncate">
{getServerDisplayName(serverId)} {getDisplayName(serverId)}
</p> </p>
{getStatusBadge(status)} {getStatusBadge(status)}
</div> </div>
<p className="text-[10px] sm:text-xs text-muted-foreground truncate"> <p className="text-xs text-muted-foreground truncate">
{getServerDescription(serverConfig)} {getDescription(serverConfig)}
</p> </p>
{failed && status.status === 'failed' && ( {failed && status.status === 'failed' && (
<div className="flex items-center gap-1 mt-1 text-[10px] text-red-500"> <div className="flex items-center gap-1 mt-1 text-xs text-red-500">
<XCircle className="w-3 h-3 flex-shrink-0" /> <XCircle className="w-3 h-3 flex-shrink-0" />
<span className="truncate">{status.error}</span> <span className="truncate">{status.error}</span>
</div> </div>
@@ -13,7 +13,7 @@ export function DeleteSessionDialog({ open, onOpenChange, onConfirm, onCancel, i
const isMultiple = sessionCount > 1 const isMultiple = sessionCount > 1
const title = isMultiple ? "Delete Sessions" : "Delete Session" const title = isMultiple ? "Delete Sessions" : "Delete Session"
const description = isMultiple const description = isMultiple
? `Are you sure you want to delete ${sessionCount} sessions? This action cannot be undone.` ? <>Are you sure you want to delete <span className="text-destructive font-bold text-lg">{sessionCount}</span> sessions? This action cannot be undone.</>
: "Are you sure you want to delete this session? This action cannot be undone." : "Are you sure you want to delete this session? This action cannot be undone."
return ( return (
@@ -52,7 +52,7 @@ export function EditSessionTitleDialog({ isOpen, currentTitle, onClose, onSave }
<DialogContent <DialogContent
hideCloseButton hideCloseButton
className={isMobile className={isMobile
? "w-screen max-w-none left-0 top-0 translate-x-0 translate-y-0 rounded-none border-0 border-b bg-background p-4 gap-0" ? "w-screen max-w-none left-0 top-0 translate-x-0 translate-y-0 rounded-none border-0 border-b bg-background p-4 gap-0 pt-safe"
: "p-6 gap-0" : "p-6 gap-0"
} }
> >
@@ -1,284 +0,0 @@
import { BackButton } from "@/components/ui/back-button";
import { ContextUsageIndicator } from "@/components/session/ContextUsageIndicator";
import { BranchSwitcher } from "@/components/repo/BranchSwitcher";
import { Button } from "@/components/ui/button";
import { DropdownMenu, DropdownMenuContent, DropdownMenuItem, DropdownMenuTrigger } from "@/components/ui/dropdown-menu";
import { EditSessionTitleDialog } from "@/components/session/EditSessionTitleDialog";
import { Loader2, Settings, CornerUpLeft, Plug, FolderOpen, MoreVertical, Upload, X } from "lucide-react";
import { useState, useEffect } from "react";
import { useMobile } from "@/hooks/useMobile";
interface Repo {
id: number;
repoUrl?: string | null;
fullPath: string;
localPath: string;
currentBranch?: string;
isWorktree?: boolean;
isLocal?: boolean;
cloneStatus: 'ready' | 'cloning' | 'error';
}
interface SessionDetailHeaderProps {
repo: Repo;
sessionId: string;
sessionTitle: string;
repoId: number;
isConnected: boolean;
isReconnecting?: boolean;
opcodeUrl: string | null;
repoDirectory: string | undefined;
parentSessionId?: string;
isTitleGenerating?: boolean;
onFileBrowserOpen: () => void;
onSettingsOpen: () => void;
onMcpDialogOpen: () => void;
onSessionTitleUpdate: (newTitle: string) => void;
onParentSessionClick?: () => void;
onAttachFile?: () => void;
}
export function SessionDetailHeader({
repo,
sessionId,
sessionTitle,
repoId,
isConnected,
isReconnecting,
opcodeUrl,
repoDirectory,
parentSessionId,
isTitleGenerating,
onFileBrowserOpen,
onSettingsOpen,
onMcpDialogOpen,
onSessionTitleUpdate,
onParentSessionClick,
onAttachFile,
}: SessionDetailHeaderProps) {
const [isEditing, setIsEditing] = useState(false);
const isMobile = useMobile();
const [editTitle, setEditTitle] = useState(sessionTitle);
useEffect(() => {
if (!isEditing) {
setEditTitle(sessionTitle);
}
}, [sessionTitle, isEditing]);
if (repo.cloneStatus !== 'ready') {
return (
<div className="sticky top-0 z-10 border-b border-border bg-gradient-to-b from-background via-background to-background backdrop-blur-sm px-2 sm:px-4 py-1.5 sm:py-2">
<div className="flex items-center justify-center">
<Loader2 className="w-4 h-4 animate-spin text-muted-foreground mr-2" />
<span className="text-sm text-muted-foreground">
{repo.cloneStatus === 'cloning' ? 'Cloning repository...' : 'Repository not ready'}
</span>
</div>
</div>
);
}
const repoName = repo.repoUrl?.split("/").pop()?.replace(".git", "") || repo.localPath || "Repository";
const currentBranch = repo.currentBranch || "main";
const handleTitleClick = () => {
setIsEditing(true);
setEditTitle(sessionTitle);
};
const handleTitleSubmit = (e: React.FormEvent) => {
e.preventDefault();
if (editTitle.trim() && editTitle !== sessionTitle) {
onSessionTitleUpdate(editTitle.trim());
}
setIsEditing(false);
};
const handleKeyDown = (e: React.KeyboardEvent) => {
if (e.key === 'Escape') {
setEditTitle(sessionTitle);
setIsEditing(false);
} else if (e.key === 'Enter') {
handleTitleSubmit(e);
}
};
return (
<div className="sticky top-0 z-10 border-b border-border bg-gradient-to-b from-background via-background to-background backdrop-blur-sm px-2 sm:px-4 py-1.5 sm:py-2">
<div className="flex items-center justify-between gap-2">
<div className="flex items-center gap-1.5 sm:gap-3 min-w-0 flex-1">
{parentSessionId ? (
<>
<Button
variant="ghost"
size="sm"
onClick={onParentSessionClick}
className="text-purple-600 dark:text-purple-400 hover:text-purple-700 dark:hover:text-purple-300 hover:bg-purple-100 dark:hover:bg-purple-900/20 h-7 px-2 gap-1"
title="Back to parent session"
>
<CornerUpLeft className="w-3.5 h-3.5" />
<span className="hidden sm:inline text-xs">Parent</span>
</Button>
<div className="hidden sm:block">
<BackButton to={`/repos/${repoId}`} className="text-xs sm:text-sm" />
</div>
</>
) : (
<BackButton to={`/repos/${repoId}`} className="text-xs sm:text-sm" />
)}
<div className="min-w-0 flex-1">
{isMobile && (
<EditSessionTitleDialog
isOpen={isEditing}
currentTitle={sessionTitle}
onClose={() => setIsEditing(false)}
onSave={(newTitle) => {
onSessionTitleUpdate(newTitle);
setIsEditing(false);
}}
/>
)}
{isEditing && !isMobile ? (
<form onSubmit={handleTitleSubmit} className="flex items-center gap-1 min-w-0">
<input
type="text"
value={editTitle}
onChange={(e) => setEditTitle(e.target.value)}
onBlur={(e) => {
if (!e.relatedTarget?.closest('button')) {
handleTitleSubmit(e);
}
}}
onKeyDown={handleKeyDown}
className="text-[16px] sm:text-base font-semibold bg-background border border-border rounded-l px-2 py-1 outline-none w-full truncate focus:border-primary sm:max-w-[250px] h-7"
autoFocus
/>
<Button
type="button"
variant="ghost"
size="icon"
className="h-7 w-7 rounded-l-none border border-l-0 border-border hover:bg-accent flex-shrink-0 mt-0"
onClick={() => setEditTitle("")}
>
<X className="w-3.5 h-3.5" />
</Button>
</form>
) : (
<>
{isTitleGenerating ? (
<div className="flex items-center gap-2">
<Loader2 className="w-3 h-3 animate-spin text-muted-foreground" />
<span className="text-xs sm:text-base text-muted-foreground italic">Generating title...</span>
</div>
) : (
<h1
className="text-xs text-green-500 sm:text-base font-semibold bg-gradient-to-r from-foreground to-muted-foreground bg-clip-text text-transparent truncate cursor-pointer hover:opacity-80 transition-opacity"
onClick={handleTitleClick}
>
{sessionTitle}
</h1>
)}
<p className="text-[10px] sm:text-xs text-green-600 dark:text-green-400 truncate">
{repoName}
</p>
</>
)}
</div>
</div>
<div className="flex items-center gap-2 sm:gap-4 flex-shrink-0">
<div>
<ContextUsageIndicator
opcodeUrl={opcodeUrl}
sessionID={sessionId}
directory={repoDirectory}
isConnected={isConnected}
isReconnecting={isReconnecting}
/>
</div>
<BranchSwitcher
repoId={repoId}
currentBranch={currentBranch}
isWorktree={repo.isWorktree}
repoUrl={repo.repoUrl}
repoLocalPath={repo.localPath}
className="hidden sm:flex max-w-[80px] sm:w-[140px] sm:max-w-[140px]"
/>
<Button
variant="ghost"
size="icon"
onClick={onFileBrowserOpen}
className="hidden sm:flex text-muted-foreground hover:text-foreground hover:bg-accent transition-all duration-200 h-8 w-8"
title="Files"
>
<FolderOpen className="w-4 h-4" />
</Button>
<Button
variant="ghost"
size="icon"
onClick={onMcpDialogOpen}
className="hidden sm:flex text-muted-foreground hover:text-foreground hover:bg-accent transition-all duration-200 h-8 w-8"
title="MCP Servers"
>
<Plug className="w-4 h-4" />
</Button>
<Button
variant="ghost"
size="icon"
onClick={onSettingsOpen}
className="hidden sm:flex text-muted-foreground hover:text-foreground hover:bg-accent transition-all duration-200 h-8 w-8"
title="Settings"
>
<Settings className="w-4 h-4" />
</Button>
<DropdownMenu>
<DropdownMenuTrigger asChild>
<Button
variant="ghost"
size="icon"
className="sm:hidden text-muted-foreground hover:text-foreground hover:bg-accent transition-all duration-200 h-8 w-8"
title="Options"
>
<MoreVertical className="w-4 h-4" />
</Button>
</DropdownMenuTrigger>
<DropdownMenuContent align="end">
<div className="px-2 py-1.5">
<BranchSwitcher
repoId={repoId}
currentBranch={currentBranch}
isWorktree={repo.isWorktree}
repoUrl={repo.repoUrl}
repoLocalPath={repo.localPath}
iconOnly={false}
className="w-full"
/>
</div>
<div className="h-px bg-border my-1" />
<DropdownMenuItem onClick={onFileBrowserOpen}>
<FolderOpen className="w-4 h-4 mr-2" /> Files
</DropdownMenuItem>
{onAttachFile && (
<DropdownMenuItem onClick={onAttachFile}>
<Upload className="w-4 h-4 mr-2" /> Upload
</DropdownMenuItem>
)}
<DropdownMenuItem onClick={onMcpDialogOpen}>
<Plug className="w-4 h-4 mr-2" /> MCP
</DropdownMenuItem>
<DropdownMenuItem onClick={onSettingsOpen}>
<Settings className="w-4 h-4 mr-2" /> Settings
</DropdownMenuItem>
</DropdownMenuContent>
</DropdownMenu>
</div>
</div>
</div>
);
}
+21 -69
View File
@@ -1,11 +1,8 @@
import { useState, useMemo } from "react"; import { useState, useMemo } from "react";
import { useSessions, useDeleteSession } from "@/hooks/useOpenCode"; import { useSessions, useDeleteSession } from "@/hooks/useOpenCode";
import { Input } from "@/components/ui/input"; import { ListToolbar } from "@/components/ui/list-toolbar";
import { Button } from "@/components/ui/button";
import { DropdownMenu, DropdownMenuContent, DropdownMenuItem, DropdownMenuTrigger } from "@/components/ui/dropdown-menu";
import { DeleteSessionDialog } from "./DeleteSessionDialog"; import { DeleteSessionDialog } from "./DeleteSessionDialog";
import { SessionCard } from "./SessionCard"; import { SessionCard } from "./SessionCard";
import { Trash2, Search, MoreVertical } from "lucide-react";
interface SessionListProps { interface SessionListProps {
opcodeUrl: string; opcodeUrl: string;
@@ -97,6 +94,7 @@ export const SessionList = ({
const cancelDelete = () => { const cancelDelete = () => {
setDeleteDialogOpen(false); setDeleteDialogOpen(false);
setSessionToDelete(null); setSessionToDelete(null);
setSelectedSessions(new Set());
}; };
const toggleSessionSelection = (sessionId: string, selected: boolean) => { const toggleSessionSelection = (sessionId: string, selected: boolean) => {
@@ -131,74 +129,28 @@ export const SessionList = ({
} }
}; };
const handleDeleteAll = () => {
if (!filteredSessions || filteredSessions.length === 0) return;
setSessionToDelete(filteredSessions.map((s) => s.id));
setDeleteDialogOpen(true);
};
return ( return (
<div className="flex flex-col h-full min-h-0"> <div className="flex flex-col h-full min-h-0">
<div className="px-4 pt-2 pb-3 flex-shrink-0 border-b border-border"> <div className="px-4 pt-2 pb-3 flex-shrink-0 border-b border-border">
<div className="flex items-center gap-3"> <ListToolbar
<div className="relative flex-1"> searchQuery={searchQuery}
<Search className="absolute left-3 top-1/2 -translate-y-1/2 w-4 h-4 text-muted-foreground" /> onSearchChange={setSearchQuery}
<Input selectedCount={selectedSessions.size}
type="text" totalCount={filteredSessions.length}
placeholder="Search" allSelected={
value={searchQuery} filteredSessions.length > 0 &&
onChange={(e) => setSearchQuery(e.target.value)} filteredSessions.every((session) => selectedSessions.has(session.id))
className="pl-10" }
/> onToggleSelectAll={toggleSelectAll}
</div> onDelete={handleBulkDelete}
{filteredSessions && filteredSessions.length > 0 && ( onDeleteAll={handleDeleteAll}
<Button />
onClick={toggleSelectAll}
variant={selectedSessions.size > 0 ? "default" : "outline"}
className="whitespace-nowrap hidden md:flex"
>
{filteredSessions.every((session) =>
selectedSessions.has(session.id),
)
? "Deselect All"
: "Select All"}
</Button>
)}
<Button
onClick={handleBulkDelete}
variant="destructive"
disabled={selectedSessions.size === 0}
className="hidden md:flex whitespace-nowrap"
>
<Trash2 className="w-4 h-4 mr-2" />
Delete ({selectedSessions.size})
</Button>
<DropdownMenu>
<DropdownMenuTrigger asChild>
<Button
variant="outline"
size="icon"
className="md:hidden"
disabled={filteredSessions.length === 0}
>
<MoreVertical className="w-4 h-4" />
</Button>
</DropdownMenuTrigger>
<DropdownMenuContent align="end">
{filteredSessions.length > 0 && (
<DropdownMenuItem onClick={toggleSelectAll}>
{filteredSessions.every((session) =>
selectedSessions.has(session.id),
)
? "Deselect All"
: "Select All"}
</DropdownMenuItem>
)}
<DropdownMenuItem
onClick={handleBulkDelete}
disabled={selectedSessions.size === 0}
className="text-destructive focus:text-destructive"
>
<Trash2 className="w-4 h-4 mr-2" />
Delete ({selectedSessions.size})
</DropdownMenuItem>
</DropdownMenuContent>
</DropdownMenu>
</div>
</div> </div>
<div className="flex-1 overflow-y-auto px-4 pt-3 pb-4 min-h-0"> <div className="flex-1 overflow-y-auto px-4 pt-3 pb-4 min-h-0">
@@ -117,34 +117,30 @@ export function ProviderSettings() {
return ( return (
<Card key={provider.id} className="bg-card border-border"> <Card key={provider.id} className="bg-card border-border">
<CardHeader> <CardHeader className="p-4">
<div className="flex items-start justify-between"> <div className="flex flex-col gap-3">
<div className="flex-1"> <div className="flex items-start justify-between gap-2">
<CardTitle className="text-base flex items-center gap-2"> <CardTitle className="text-base">
{provider.name || provider.id} {provider.name || provider.id}
{hasKey ? (
<Badge variant="default" className="bg-green-600 hover:bg-green-700">
<Check className="h-3 w-3 mr-1" />
Connected
</Badge>
) : (
<Badge variant="secondary">
<X className="h-3 w-3 mr-1" />
Not Connected
</Badge>
)}
</CardTitle> </CardTitle>
<CardDescription className="mt-1"> {hasKey ? (
{provider.npm ? <span className="text-xs">Package: {provider.npm}</span> : null} <Badge variant="default" className="bg-green-600 hover:bg-green-700 shrink-0">
{typeof provider.options?.baseURL === 'string' && ( <Check className="h-3 w-3 mr-1" />
<span className="text-xs block">{provider.options.baseURL}</span> Connected
)} </Badge>
{modelCount > 0 && ( ) : (
<span className="text-xs block">{modelCount} model{modelCount !== 1 ? 's' : ''}</span> <Badge variant="secondary" className="shrink-0">
)} <X className="h-3 w-3 mr-1" />
</CardDescription> Not Connected
</Badge>
)}
</div> </div>
<div className="flex gap-2"> <CardDescription>
{modelCount > 0 && (
<span className="text-xs">{modelCount} model{modelCount !== 1 ? 's' : ''}</span>
)}
</CardDescription>
<div className="flex flex-wrap gap-2">
<Button <Button
size="sm" size="sm"
variant={hasKey ? 'outline' : 'default'} variant={hasKey ? 'outline' : 'default'}
@@ -98,7 +98,7 @@ export function SettingsDialog({ open, onOpenChange }: SettingsDialogProps) {
</Tabs> </Tabs>
</div> </div>
<div className="sm:hidden flex flex-col h-full min-h-0"> <div className="sm:hidden flex flex-col h-full min-h-0 pt-safe">
<div className="flex-shrink-0 bg-gradient-to-b from-background via-background to-transparent border-b border-border backdrop-blur-sm px-4 py-4 flex items-center justify-between"> <div className="flex-shrink-0 bg-gradient-to-b from-background via-background to-transparent border-b border-border backdrop-blur-sm px-4 py-4 flex items-center justify-between">
<div className="flex items-center gap-2 flex-1"> <div className="flex items-center gap-2 flex-1">
{mobileView !== 'menu' && ( {mobileView !== 'menu' && (
+1 -1
View File
@@ -9,7 +9,7 @@ interface DeleteDialogProps {
onConfirm: () => void onConfirm: () => void
onCancel: () => void onCancel: () => void
title: string title: string
description: string description: React.ReactNode
itemName?: string itemName?: string
isDeleting?: boolean isDeleting?: boolean
} }
+134
View File
@@ -0,0 +1,134 @@
import { describe, it, expect } from "vitest";
import { render, screen } from "@testing-library/react";
import {
Dialog,
DialogContent,
DialogHeader,
DialogTitle,
} from "./dialog";
describe("DialogContent", () => {
it("applies safe-area padding when fullscreen prop is true", () => {
render(
<Dialog open>
<DialogContent fullscreen data-testid="dialog-content">
<DialogHeader>
<DialogTitle>Test Dialog</DialogTitle>
</DialogHeader>
</DialogContent>
</Dialog>
);
const content = screen.getByTestId("dialog-content");
expect(content).toHaveStyle({ paddingTop: "env(safe-area-inset-top, 0px)" });
});
it("applies safe-area padding when mobileFullscreen prop is true", () => {
render(
<Dialog open>
<DialogContent mobileFullscreen data-testid="dialog-content">
<DialogHeader>
<DialogTitle>Test Dialog</DialogTitle>
</DialogHeader>
</DialogContent>
</Dialog>
);
const content = screen.getByTestId("dialog-content");
expect(content).toHaveStyle({ paddingTop: "env(safe-area-inset-top, 0px)" });
});
it("applies inset-0 for fullscreen dialogs", () => {
render(
<Dialog open>
<DialogContent fullscreen data-testid="dialog-content">
Content
</DialogContent>
</Dialog>
);
const content = screen.getByTestId("dialog-content");
expect(content).toHaveClass("inset-0");
});
it("applies inset-0 for mobileFullscreen dialogs", () => {
render(
<Dialog open>
<DialogContent mobileFullscreen data-testid="dialog-content">
Content
</DialogContent>
</Dialog>
);
const content = screen.getByTestId("dialog-content");
expect(content).toHaveClass("inset-0");
});
it("does not apply safe-area padding when neither fullscreen nor mobileFullscreen", () => {
render(
<Dialog open>
<DialogContent data-testid="dialog-content">
Content
</DialogContent>
</Dialog>
);
const content = screen.getByTestId("dialog-content");
const style = content.getAttribute("style") || "";
expect(style).not.toContain("safe-area");
expect(content).not.toHaveClass("inset-0");
});
it("hides close button when fullscreen is true", () => {
render(
<Dialog open>
<DialogContent fullscreen data-testid="dialog-content">
Content
</DialogContent>
</Dialog>
);
expect(screen.queryByRole("button", { name: /close/i })).not.toBeInTheDocument();
});
it("shows close button when mobileFullscreen is true", () => {
render(
<Dialog open>
<DialogContent mobileFullscreen data-testid="dialog-content">
Content
</DialogContent>
</Dialog>
);
expect(screen.getByRole("button", { name: /close/i })).toBeInTheDocument();
});
it("hides close button when hideCloseButton is true", () => {
render(
<Dialog open>
<DialogContent hideCloseButton data-testid="dialog-content">
Content
</DialogContent>
</Dialog>
);
expect(screen.queryByRole("button", { name: /close/i })).not.toBeInTheDocument();
});
it("merges custom className with default classes", () => {
render(
<Dialog open>
<DialogContent className="custom-class" data-testid="dialog-content">
Content
</DialogContent>
</Dialog>
);
const content = screen.getByTestId("dialog-content");
expect(content).toHaveClass("custom-class");
expect(content).toHaveClass("fixed");
expect(content).toHaveClass("z-50");
});
it("renders children correctly", () => {
render(
<Dialog open>
<DialogContent>
<span>Test Child Content</span>
</DialogContent>
</Dialog>
);
expect(screen.getByText("Test Child Content")).toBeInTheDocument();
});
});
+41 -22
View File
@@ -30,33 +30,52 @@ DialogOverlay.displayName = DialogPrimitive.Overlay.displayName
interface DialogContentProps interface DialogContentProps
extends React.ComponentPropsWithoutRef<typeof DialogPrimitive.Content> { extends React.ComponentPropsWithoutRef<typeof DialogPrimitive.Content> {
hideCloseButton?: boolean hideCloseButton?: boolean
fullscreen?: boolean
mobileFullscreen?: boolean
} }
const DialogContent = React.forwardRef< const DialogContent = React.forwardRef<
React.ElementRef<typeof DialogPrimitive.Content>, React.ElementRef<typeof DialogPrimitive.Content>,
DialogContentProps DialogContentProps
>(({ className, children, hideCloseButton, ...props }, ref) => ( >(({ className, children, hideCloseButton, fullscreen, mobileFullscreen, ...props }, ref) => {
<DialogPortal> const isMobileFullscreenMode = fullscreen || mobileFullscreen
<DialogOverlay />
<DialogPrimitive.Content return (
ref={ref} <DialogPortal>
aria-describedby={undefined} <DialogOverlay />
className={cn( <DialogPrimitive.Content
"fixed left-[50%] top-[50%] z-50 grid w-[90%] max-w-lg translate-x-[-50%] translate-y-[-50%] gap-4 border bg-background p-6 shadow-lg duration-200 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[state=closed]:slide-out-to-left-1/2 data-[state=closed]:slide-out-to-top-[48%] data-[state=open]:slide-in-from-left-1/2 data-[state=open]:slide-in-from-top-[48%] sm:rounded-lg [&.w-screen]:left-0 [&.w-screen]:top-0 [&.w-screen]:translate-x-0 [&.w-screen]:translate-y-0", ref={ref}
className aria-describedby={undefined}
)} className={cn(
{...props} "fixed z-50 grid gap-4 border bg-background shadow-lg duration-200 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0",
> fullscreen
{children} ? "inset-0 w-full h-full max-w-none max-h-none p-0 rounded-none"
{!hideCloseButton && ( : mobileFullscreen
<DialogPrimitive.Close className="absolute right-4 top-4 rounded-sm opacity-70 ring-offset-background transition-opacity hover:opacity-100 focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:pointer-events-none data-[state=open]:bg-accent data-[state=open]:text-muted-foreground"> ? "inset-0 w-full h-full max-w-none max-h-none p-0 rounded-none sm:inset-auto sm:left-[50%] sm:top-[50%] sm:w-[90%] sm:max-w-lg sm:max-h-none sm:translate-x-[-50%] sm:translate-y-[-50%] sm:p-6 sm:rounded-lg"
<X className="h-4 w-4" /> : "left-[50%] top-[50%] w-[90%] max-w-lg translate-x-[-50%] translate-y-[-50%] p-6 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[state=closed]:slide-out-to-left-1/2 data-[state=closed]:slide-out-to-top-[48%] data-[state=open]:slide-in-from-left-1/2 data-[state=open]:slide-in-from-top-[48%] sm:rounded-lg",
<span className="sr-only">Close</span> className
</DialogPrimitive.Close> )}
)} style={isMobileFullscreenMode ? {
</DialogPrimitive.Content> paddingTop: 'env(safe-area-inset-top, 0px)',
</DialogPortal> } : undefined}
)) {...props}
>
{children}
{!hideCloseButton && !fullscreen && (
<DialogPrimitive.Close
className="absolute right-4 rounded-sm opacity-70 ring-offset-background transition-opacity hover:opacity-100 focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:pointer-events-none data-[state=open]:bg-accent data-[state=open]:text-muted-foreground"
style={mobileFullscreen ? {
top: 'calc(env(safe-area-inset-top, 0px) + 1rem)',
} : { top: '1rem' }}
>
<X className="h-4 w-4" />
<span className="sr-only">Close</span>
</DialogPrimitive.Close>
)}
</DialogPrimitive.Content>
</DialogPortal>
)
})
DialogContent.displayName = DialogPrimitive.Content.displayName DialogContent.displayName = DialogPrimitive.Content.displayName
const DialogHeader = ({ const DialogHeader = ({
@@ -0,0 +1,63 @@
import * as React from "react"
import { cn } from "@/lib/utils"
interface FullscreenSheetProps {
children: React.ReactNode
className?: string
style?: React.CSSProperties
}
interface FullscreenSheetHeaderProps {
children: React.ReactNode
className?: string
}
interface FullscreenSheetContentProps {
children: React.ReactNode
className?: string
}
const FullscreenSheet = React.forwardRef<HTMLDivElement, FullscreenSheetProps>(
({ children, className, style, ...props }, ref) => (
<div
ref={ref}
className={cn("fixed inset-0 z-50 bg-background flex flex-col", className)}
style={style}
{...props}
>
{children}
</div>
)
)
FullscreenSheet.displayName = "FullscreenSheet"
const FullscreenSheetHeader = React.forwardRef<HTMLDivElement, FullscreenSheetHeaderProps>(
({ children, className, ...props }, ref) => (
<div
ref={ref}
className={cn(
"flex-shrink-0 border-b border-border bg-background backdrop-blur-sm pt-safe",
className
)}
{...props}
>
{children}
</div>
)
)
FullscreenSheetHeader.displayName = "FullscreenSheetHeader"
const FullscreenSheetContent = React.forwardRef<HTMLDivElement, FullscreenSheetContentProps>(
({ children, className, ...props }, ref) => (
<div
ref={ref}
className={cn("flex-1 overflow-hidden min-h-0", className)}
{...props}
>
{children}
</div>
)
)
FullscreenSheetContent.displayName = "FullscreenSheetContent"
export { FullscreenSheet, FullscreenSheetHeader, FullscreenSheetContent }
+227
View File
@@ -0,0 +1,227 @@
import { Settings } from "lucide-react";
import { Button } from "@/components/ui/button";
import { BackButton } from "@/components/ui/back-button";
import { PageHeader } from "@/components/ui/page-header";
import { useSettingsDialog } from "@/hooks/useSettingsDialog";
import { useTheme } from "@/hooks/useTheme";
import { EditSessionTitleDialog } from "@/components/session/EditSessionTitleDialog";
import { DropdownMenu, DropdownMenuContent, DropdownMenuTrigger } from "@/components/ui/dropdown-menu";
import { MoreVertical } from "lucide-react";
import { cn } from "@/lib/utils";
import type { ReactNode } from "react";
import { useState, useEffect } from "react";
import { useMobile } from "@/hooks/useMobile";
import { Loader2, X } from "lucide-react";
interface HeaderProps {
children: ReactNode;
className?: string;
}
function HeaderBase({ children, className, ...props }: HeaderProps) {
return (
<PageHeader className={cn("flex-shrink-0", className)} {...props}>
<div className="flex items-center justify-between px-2 sm:px-4 py-1.5 sm:py-2">
{children}
</div>
</PageHeader>
);
}
function HeaderBackButton({ to, className }: { to?: string; className?: string }) {
return to ? <BackButton to={to} className={className} /> : null;
}
interface HeaderTitleProps {
children: ReactNode;
logo?: boolean;
className?: string;
}
function HeaderTitle({ children, logo, className }: HeaderTitleProps) {
const theme = useTheme();
return (
<div className={cn("flex items-center gap-2", className)}>
{logo && typeof children === "string" && children === "OpenCode" ? (
<img
src={theme === 'light' ? "/opencode-wordmark-light.svg" : "/opencode-wordmark-dark.svg"}
alt="OpenCode"
className="h-6 w-auto sm:h-8"
/>
) : (
<h1 className="text-xl font-semibold bg-gradient-to-r from-foreground to-muted-foreground bg-clip-text text-transparent truncate">
{children}
</h1>
)}
</div>
);
}
interface HeaderEditableTitleProps {
value: string;
onChange: (value: string) => void;
subtitle?: string;
generating?: boolean;
className?: string;
}
function HeaderEditableTitle({ value, onChange, subtitle, generating, className }: HeaderEditableTitleProps) {
const [isEditing, setIsEditing] = useState(false);
const [editTitle, setEditTitle] = useState(value);
const isMobile = useMobile();
useEffect(() => {
if (!isEditing) {
setEditTitle(value);
}
}, [value, isEditing]);
const handleTitleClick = () => {
setIsEditing(true);
setEditTitle(value);
};
const handleTitleSubmit = (e: React.FormEvent) => {
e.preventDefault();
if (editTitle.trim() && editTitle !== value) {
onChange(editTitle.trim());
}
setIsEditing(false);
};
const handleKeyDown = (e: React.KeyboardEvent) => {
if (e.key === 'Escape') {
setEditTitle(value);
setIsEditing(false);
} else if (e.key === 'Enter') {
handleTitleSubmit(e);
}
};
const handleSave = (newTitle: string) => {
if (newTitle.trim() && newTitle !== value) {
onChange(newTitle.trim());
}
setIsEditing(false);
};
return (
<div className={cn("min-w-0 flex-1", className)}>
{isMobile && (
<EditSessionTitleDialog
isOpen={isEditing}
currentTitle={value}
onClose={() => setIsEditing(false)}
onSave={handleSave}
/>
)}
{isEditing && !isMobile ? (
<form onSubmit={handleTitleSubmit} className="flex items-center gap-1 min-w-0">
<input
type="text"
value={editTitle}
onChange={(e) => setEditTitle(e.target.value)}
onBlur={(e) => {
if (!e.relatedTarget?.closest('button')) {
handleTitleSubmit(e);
}
}}
onKeyDown={handleKeyDown}
className="text-[16px] sm:text-base font-semibold bg-background border border-border rounded-l px-2 py-1 outline-none w-full truncate focus:border-primary sm:max-w-[250px] h-7"
autoFocus
/>
<Button
type="button"
variant="ghost"
size="icon"
className="h-7 w-7 rounded-l-none border border-l-0 border-border hover:bg-accent flex-shrink-0 mt-0"
onClick={() => setEditTitle("")}
>
<X className="w-3.5 h-3.5" />
</Button>
</form>
) : (
<div className="min-w-0">
{generating ? (
<div className="flex items-center gap-2">
<Loader2 className="w-3 h-3 animate-spin text-muted-foreground" />
<span className="text-xs sm:text-base text-muted-foreground italic">Generating title...</span>
</div>
) : (
<h1
className="text-xs sm:text-base font-semibold bg-gradient-to-r from-foreground to-muted-foreground bg-clip-text text-transparent truncate cursor-pointer hover:opacity-80 transition-opacity"
onClick={handleTitleClick}
>
{value}
</h1>
)}
{subtitle && (
<p className="text-[10px] sm:text-xs text-muted-foreground truncate">
{subtitle}
</p>
)}
</div>
)}
</div>
);
}
function HeaderActions({ children, className }: { children: ReactNode; className?: string }) {
return <div className={cn("flex items-center gap-2", className)}>{children}</div>;
}
function HeaderMobileDropdown({ children, className }: { children: ReactNode; className?: string }) {
const isMobile = useMobile();
if (!isMobile) return null;
return (
<DropdownMenu>
<DropdownMenuTrigger asChild>
<Button
variant="outline"
size="icon"
className={cn("text-foreground border-border hover:bg-accent transition-all duration-200 h-8 w-8", className)}
title="Options"
>
<MoreVertical className="w-4 h-4" />
</Button>
</DropdownMenuTrigger>
<DropdownMenuContent align="end">
{children}
</DropdownMenuContent>
</DropdownMenu>
);
}
function HeaderSettingsButton() {
const { open: openSettings } = useSettingsDialog();
return (
<Button
variant="ghost"
size="icon"
onClick={openSettings}
className="text-muted-foreground hover:text-foreground hover:bg-accent transition-all duration-200 h-8 w-8"
>
<Settings className="w-4 h-4" />
</Button>
);
}
export const Header = Object.assign(HeaderBase, {
BackButton: HeaderBackButton,
Title: HeaderTitle,
EditableTitle: HeaderEditableTitle,
Actions: HeaderActions,
MobileDropdown: HeaderMobileDropdown,
Settings: HeaderSettingsButton,
}) as typeof HeaderBase & {
BackButton: typeof HeaderBackButton;
Title: typeof HeaderTitle;
EditableTitle: typeof HeaderEditableTitle;
Actions: typeof HeaderActions;
MobileDropdown: typeof HeaderMobileDropdown;
Settings: typeof HeaderSettingsButton;
};
@@ -0,0 +1,80 @@
import { Input } from "@/components/ui/input";
import { Button } from "@/components/ui/button";
import { Trash2, Search } from "lucide-react";
interface ListToolbarProps {
searchQuery: string;
onSearchChange: (query: string) => void;
searchPlaceholder?: string;
selectedCount: number;
totalCount: number;
allSelected: boolean;
onToggleSelectAll: () => void;
onDelete: () => void;
onDeleteAll: () => void;
}
export function ListToolbar({
searchQuery,
onSearchChange,
searchPlaceholder = "Search",
selectedCount,
totalCount,
allSelected,
onToggleSelectAll,
onDelete,
onDeleteAll,
}: ListToolbarProps) {
const hasItems = totalCount > 0;
const hasSelection = selectedCount > 0;
const handleMobileDelete = () => {
if (hasSelection) {
onDelete();
} else {
onDeleteAll();
}
};
return (
<div className="flex items-center gap-3">
<div className="relative flex-1">
<Search className="absolute left-3 top-1/2 -translate-y-1/2 w-4 h-4 text-muted-foreground" />
<Input
type="text"
placeholder={searchPlaceholder}
value={searchQuery}
onChange={(e) => onSearchChange(e.target.value)}
className="pl-10"
/>
</div>
{hasItems && (
<Button
onClick={onToggleSelectAll}
variant={hasSelection ? "default" : "outline"}
className="whitespace-nowrap hidden md:flex"
>
{allSelected ? "Deselect All" : "Select All"}
</Button>
)}
<Button
onClick={onDelete}
variant="destructive"
disabled={!hasSelection}
className="hidden md:flex whitespace-nowrap"
>
<Trash2 className="w-4 h-4 mr-2" />
Delete ({selectedCount})
</Button>
<Button
onClick={handleMobileDelete}
variant="destructive"
size="icon"
className="md:hidden"
disabled={!hasItems}
>
<Trash2 className="w-4 h-4" />
</Button>
</div>
);
}
@@ -0,0 +1,68 @@
import { describe, it, expect } from "vitest";
import { render, screen } from "@testing-library/react";
import { PageHeader } from "./page-header";
describe("PageHeader", () => {
it("applies pt-safe class for iOS safe area", () => {
render(<PageHeader data-testid="header">Content</PageHeader>);
const header = screen.getByTestId("header");
expect(header).toHaveClass("pt-safe");
});
it("applies sticky top-0 positioning", () => {
render(<PageHeader data-testid="header">Content</PageHeader>);
const header = screen.getByTestId("header");
expect(header).toHaveClass("sticky");
expect(header).toHaveClass("top-0");
});
it("renders children correctly", () => {
render(
<PageHeader>
<span>Test Child</span>
</PageHeader>
);
expect(screen.getByText("Test Child")).toBeInTheDocument();
});
it("merges custom className", () => {
render(
<PageHeader data-testid="header" className="custom-class">
Content
</PageHeader>
);
const header = screen.getByTestId("header");
expect(header).toHaveClass("custom-class");
expect(header).toHaveClass("pt-safe");
});
it("forwards additional props", () => {
render(
<PageHeader data-testid="header" aria-label="Page header">
Content
</PageHeader>
);
const header = screen.getByTestId("header");
expect(header).toHaveAttribute("aria-label", "Page header");
});
it("applies z-10 for proper stacking", () => {
render(<PageHeader data-testid="header">Content</PageHeader>);
const header = screen.getByTestId("header");
expect(header).toHaveClass("z-10");
});
it("applies background and border styling", () => {
render(<PageHeader data-testid="header">Content</PageHeader>);
const header = screen.getByTestId("header");
expect(header).toHaveClass("border-b");
expect(header).toHaveClass("border-border");
expect(header).toHaveClass("bg-gradient-to-b");
});
it("applies backdrop-blur-sm for frosted glass effect", () => {
render(<PageHeader data-testid="header">Content</PageHeader>);
const header = screen.getByTestId("header");
expect(header).toHaveClass("backdrop-blur-sm");
});
});
@@ -0,0 +1,25 @@
import * as React from "react";
import { cn } from "@/lib/utils";
export interface PageHeaderProps extends React.HTMLAttributes<HTMLElement> {
children: React.ReactNode;
}
export const PageHeader = React.forwardRef<HTMLElement, PageHeaderProps>(
({ className, children, ...props }, ref) => {
return (
<header
ref={ref}
className={cn(
"sticky top-0 z-10 border-b border-border bg-gradient-to-b from-background via-background to-background backdrop-blur-sm pt-safe",
className
)}
{...props}
>
{children}
</header>
);
}
);
PageHeader.displayName = "PageHeader";
+8 -2
View File
@@ -279,8 +279,14 @@ body {
margin-bottom: 0; margin-bottom: 0;
} }
.pb-safe { @utility pt-safe {
padding-bottom: env(safe-area-inset-bottom, 0px); padding-top: constant(safe-area-inset-top);
padding-top: env(safe-area-inset-top);
}
@utility pb-safe {
padding-bottom: constant(safe-area-inset-bottom);
padding-bottom: env(safe-area-inset-bottom);
} }
/* Prevent iOS zoom on all input elements */ /* Prevent iOS zoom on all input elements */
+80 -13
View File
@@ -4,12 +4,17 @@ import { useQuery, useQueryClient } from "@tanstack/react-query";
import { getRepo } from "@/api/repos"; import { getRepo } from "@/api/repos";
import { SessionList } from "@/components/session/SessionList"; import { SessionList } from "@/components/session/SessionList";
import { FileBrowserSheet } from "@/components/file-browser/FileBrowserSheet"; import { FileBrowserSheet } from "@/components/file-browser/FileBrowserSheet";
import { RepoDetailHeader } from "@/components/layout/RepoDetailHeader"; import { Header } from "@/components/ui/header";
import { SwitchConfigDialog } from "@/components/repo/SwitchConfigDialog"; import { SwitchConfigDialog } from "@/components/repo/SwitchConfigDialog";
import { RepoMcpDialog } from "@/components/repo/RepoMcpDialog"; import { RepoMcpDialog } from "@/components/repo/RepoMcpDialog";
import { useCreateSession } from "@/hooks/useOpenCode"; import { useCreateSession } from "@/hooks/useOpenCode";
import { OPENCODE_API_ENDPOINT, API_BASE_URL } from "@/config"; import { OPENCODE_API_ENDPOINT, API_BASE_URL } from "@/config";
import { useSwipeBack } from "@/hooks/useMobile"; import { useSwipeBack } from "@/hooks/useMobile";
import { Button } from "@/components/ui/button";
import { Badge } from "@/components/ui/badge";
import { BranchSwitcher } from "@/components/repo/BranchSwitcher";
import { DropdownMenuItem } from "@/components/ui/dropdown-menu";
import { Plug, FolderOpen, Plus, GitBranch } from "lucide-react";
import { Loader2 } from "lucide-react"; import { Loader2 } from "lucide-react";
@@ -107,24 +112,86 @@ export function RepoDetail() {
const branchToDisplay = repo.currentBranch || repo.branch; const branchToDisplay = repo.currentBranch || repo.branch;
const displayName = branchToDisplay ? `${repoName} (${branchToDisplay})` : repoName; const displayName = branchToDisplay ? `${repoName} (${branchToDisplay})` : repoName;
const currentBranch = repo.currentBranch || repo.branch || "main"; const currentBranch = repo.currentBranch || repo.branch || "main";
const isWorktree = repo.isWorktree || false;
return ( return (
<div <div
ref={pageRef} ref={pageRef}
className="h-dvh max-h-dvh overflow-hidden bg-gradient-to-br from-background via-background to-background flex flex-col" className="h-dvh max-h-dvh overflow-hidden bg-gradient-to-br from-background via-background to-background flex flex-col"
style={swipeStyles} style={swipeStyles}
> >
<RepoDetailHeader <Header>
repoName={repoName} <Header.BackButton to="/" />
repoId={repoId} <div className="flex items-center gap-2 min-w-0">
currentBranch={currentBranch} <Header.Title>{repoName}</Header.Title>
isWorktree={repo.isWorktree || false} {isWorktree ? (
repoUrl={repo.repoUrl} <Badge className="text-xs px-1.5 sm:px-2.5 py-0.5 bg-purple-600/20 text-purple-400 border-purple-600/40" title="Worktree">
onMcpClick={() => setMcpDialogOpen(true)} <GitBranch className="h-3 w-3 sm:mr-1" />
onFilesClick={() => setFileBrowserOpen(true)} <span className="hidden sm:inline">WT: {currentBranch}</span>
onNewSession={handleCreateSession} </Badge>
disabledNewSession={!opcodeUrl || createSessionMutation.isPending} ) : !isWorktree && currentBranch ? (
/> <BranchSwitcher
repoId={repoId}
currentBranch={currentBranch}
isWorktree={false}
repoUrl={repo.repoUrl}
className="hidden sm:flex w-[140px] max-w-[140px]"
/>
) : null}
</div>
<Header.Actions>
<Button
variant="outline"
onClick={() => setMcpDialogOpen(true)}
size="sm"
className="hidden sm:flex text-foreground border-border hover:bg-accent transition-all duration-200 hover:scale-105"
>
<Plug className="w-4 h-4 sm:mr-2" />
<span className="hidden sm:inline">MCP</span>
</Button>
<Button
variant="outline"
onClick={() => setFileBrowserOpen(true)}
size="sm"
className="hidden sm:flex text-foreground border-border hover:bg-accent transition-all duration-200 hover:scale-105"
>
<FolderOpen className="w-4 h-4 sm:mr-2" />
<span className="hidden sm:inline">Files</span>
</Button>
<Header.MobileDropdown>
{!isWorktree && currentBranch && (
<>
<div className="px-2 py-1.5">
<BranchSwitcher
repoId={repoId}
currentBranch={currentBranch}
isWorktree={false}
repoUrl={repo.repoUrl}
iconOnly={false}
className="w-full"
/>
</div>
<div className="h-px bg-border my-1" />
</>
)}
<DropdownMenuItem onClick={() => setMcpDialogOpen(true)}>
<Plug className="w-4 h-4 mr-2" /> MCP
</DropdownMenuItem>
<DropdownMenuItem onClick={() => setFileBrowserOpen(true)}>
<FolderOpen className="w-4 h-4 mr-2" /> Files
</DropdownMenuItem>
</Header.MobileDropdown>
<Button
onClick={() => handleCreateSession()}
disabled={!opcodeUrl || createSessionMutation.isPending}
size="sm"
className="bg-blue-600 hover:bg-blue-700 text-white transition-all duration-200 hover:scale-105"
>
<Plus className="w-4 h-4 sm:mr-2" />
<span className="hidden sm:inline">New Session</span>
</Button>
</Header.Actions>
</Header>
<div className="flex-1 flex flex-col min-h-0"> <div className="flex-1 flex flex-col min-h-0">
{opcodeUrl && repoDirectory && ( {opcodeUrl && repoDirectory && (
+23 -24
View File
@@ -2,7 +2,7 @@ import { useState } from "react";
import { RepoList } from "@/components/repo/RepoList"; import { RepoList } from "@/components/repo/RepoList";
import { AddRepoDialog } from "@/components/repo/AddRepoDialog"; import { AddRepoDialog } from "@/components/repo/AddRepoDialog";
import { FileBrowserSheet } from "@/components/file-browser/FileBrowserSheet"; import { FileBrowserSheet } from "@/components/file-browser/FileBrowserSheet";
import { Header } from "@/components/layout/Header"; import { Header } from "@/components/ui/header";
import { Button } from "@/components/ui/button"; import { Button } from "@/components/ui/button";
import { Plus, FolderOpen } from "lucide-react"; import { Plus, FolderOpen } from "lucide-react";
@@ -15,29 +15,28 @@ export function Repos() {
}; };
return ( return (
<div className="min-h-screen bg-gradient-to-br from-background via-background to-background"> <div className="h-dvh max-h-dvh overflow-hidden bg-gradient-to-br from-background via-background to-background flex flex-col">
<Header <Header>
title="OpenCode" <div className="flex items-center gap-3">
action={ <Header.Title logo>OpenCode</Header.Title>
<div className="flex items-center gap-2"> </div>
<Button <Header.Actions>
variant="outline" <Button
onClick={() => setFileBrowserOpen(true)} variant="ghost"
> size="icon"
<FolderOpen className="w-4 h-4 sm:mr-2" /> onClick={() => setFileBrowserOpen(true)}
<span className="hidden sm:inline">Workspace</span> className="text-muted-foreground hover:text-foreground hover:bg-accent transition-all duration-200 h-8 w-8"
</Button> >
<Button <FolderOpen className="w-4 h-4" />
onClick={() => setAddRepoOpen(true)} </Button>
> <Button onClick={() => setAddRepoOpen(true)} size="sm">
<Plus className="w-4 h-4 mr-1" /> <Plus className="w-4 h-4 mr-1" />
<span className="hidden sm:inline">Repository</span> Repo
<span className="sm:hidden">Repo</span> </Button>
</Button> <Header.Settings />
</div> </Header.Actions>
} </Header>
/> <div className="container mx-auto sm:p-2 flex-1 pt-2 px-2 min-h-0 overflow-auto">
<div className="container mx-auto sm:p-2 p-4">
<RepoList /> <RepoList />
</div> </div>
<AddRepoDialog open={addRepoOpen} onOpenChange={setAddRepoOpen} /> <AddRepoDialog open={addRepoOpen} onOpenChange={setAddRepoOpen} />
+106 -21
View File
@@ -4,13 +4,17 @@ import { useQuery } from "@tanstack/react-query";
import { getRepo } from "@/api/repos"; import { getRepo } from "@/api/repos";
import { MessageThread } from "@/components/message/MessageThread"; import { MessageThread } from "@/components/message/MessageThread";
import { PromptInput, type PromptInputHandle } from "@/components/message/PromptInput"; import { PromptInput, type PromptInputHandle } from "@/components/message/PromptInput";
import { X, VolumeX } from "lucide-react"; import { X, VolumeX, FolderOpen, Plug, Settings, Upload, CornerUpLeft } from "lucide-react";
import { ModelSelectDialog } from "@/components/model/ModelSelectDialog"; import { ModelSelectDialog } from "@/components/model/ModelSelectDialog";
import { SessionDetailHeader } from "@/components/session/SessionDetailHeader"; import { Header } from "@/components/ui/header";
import { SessionList } from "@/components/session/SessionList"; import { SessionList } from "@/components/session/SessionList";
import { FileBrowserSheet } from "@/components/file-browser/FileBrowserSheet"; import { FileBrowserSheet } from "@/components/file-browser/FileBrowserSheet";
import { Dialog, DialogContent, DialogTitle } from "@/components/ui/dialog"; import { Dialog, DialogContent, DialogTitle } from "@/components/ui/dialog";
import { Button } from "@/components/ui/button";
import { BranchSwitcher } from "@/components/repo/BranchSwitcher";
import { DropdownMenuItem } from "@/components/ui/dropdown-menu";
import { ContextUsageIndicator } from "@/components/session/ContextUsageIndicator";
import { useSession, useAbortSession, useUpdateSession, useMessages, useTitleGenerating, useCreateSession } from "@/hooks/useOpenCode"; import { useSession, useAbortSession, useUpdateSession, useMessages, useTitleGenerating, useCreateSession } from "@/hooks/useOpenCode";
import { OPENCODE_API_ENDPOINT, API_BASE_URL } from "@/config"; import { OPENCODE_API_ENDPOINT, API_BASE_URL } from "@/config";
import { useSSE } from "@/hooks/useSSE"; import { useSSE } from "@/hooks/useSSE";
@@ -294,29 +298,110 @@ export function SessionDetail() {
} }
return ( return (
<div <div
ref={pageRef} ref={pageRef}
className="h-dvh max-h-dvh overflow-hidden bg-gradient-to-br from-background via-background to-background flex flex-col" className="h-dvh max-h-dvh overflow-hidden bg-gradient-to-br from-background via-background to-background flex flex-col"
style={swipeStyles} style={swipeStyles}
> >
<SessionDetailHeader <Header>
repo={repo} <div className="flex items-center gap-1.5 sm:gap-3 min-w-0 flex-1">
sessionId={sessionId} {session?.parentID ? (
sessionTitle={session?.title || "Untitled Session"} <>
repoId={repoId} <Button
isConnected={isConnected} variant="ghost"
isReconnecting={isReconnecting} size="sm"
opcodeUrl={opcodeUrl} onClick={handleParentSessionClick}
repoDirectory={repoDirectory} className="text-purple-600 dark:text-purple-400 hover:text-purple-700 dark:hover:text-purple-300 hover:bg-purple-100 dark:hover:bg-purple-900/20 h-7 px-2 gap-1"
parentSessionId={session?.parentID} title="Back to parent session"
isTitleGenerating={isTitleGenerating} >
onFileBrowserOpen={() => setFileBrowserOpen(true)} <CornerUpLeft className="w-3.5 h-3.5" />
onSettingsOpen={openSettings} <span className="hidden sm:inline text-xs">Parent</span>
onMcpDialogOpen={() => setMcpDialogOpen(true)} </Button>
onSessionTitleUpdate={handleSessionTitleUpdate} <div className="hidden sm:block">
onParentSessionClick={handleParentSessionClick} <Header.BackButton to={`/repos/${repoId}`} className="text-xs sm:text-sm" />
onAttachFile={handleAttachFile} </div>
/> </>
) : (
<Header.BackButton to={`/repos/${repoId}`} className="text-xs sm:text-sm" />
)}
<Header.EditableTitle
value={session?.title || "Untitled Session"}
onChange={handleSessionTitleUpdate}
subtitle={repo.repoUrl?.split("/").pop()?.replace(".git", "") || repo.localPath || "Repository"}
generating={isTitleGenerating}
/>
</div>
<Header.Actions className="gap-2 sm:gap-4">
<ContextUsageIndicator
opcodeUrl={opcodeUrl}
sessionID={sessionId}
directory={repoDirectory}
isConnected={isConnected}
isReconnecting={isReconnecting}
/>
<BranchSwitcher
repoId={repoId}
currentBranch={repo.currentBranch || "main"}
isWorktree={repo.isWorktree}
repoUrl={repo.repoUrl}
repoLocalPath={repo.localPath}
className="hidden sm:flex max-w-[80px] sm:w-[140px] sm:max-w-[140px]"
/>
<Button
variant="ghost"
size="icon"
onClick={() => setFileBrowserOpen(true)}
className="hidden sm:flex text-muted-foreground hover:text-foreground hover:bg-accent transition-all duration-200 h-8 w-8"
title="Files"
>
<FolderOpen className="w-4 h-4" />
</Button>
<Button
variant="ghost"
size="icon"
onClick={() => setMcpDialogOpen(true)}
className="hidden sm:flex text-muted-foreground hover:text-foreground hover:bg-accent transition-all duration-200 h-8 w-8"
title="MCP Servers"
>
<Plug className="w-4 h-4" />
</Button>
<Button
variant="ghost"
size="icon"
onClick={openSettings}
className="hidden sm:flex text-muted-foreground hover:text-foreground hover:bg-accent transition-all duration-200 h-8 w-8"
title="Settings"
>
<Settings className="w-4 h-4" />
</Button>
<Header.MobileDropdown>
<div className="px-2 py-1.5">
<BranchSwitcher
repoId={repoId}
currentBranch={repo.currentBranch || "main"}
isWorktree={repo.isWorktree}
repoUrl={repo.repoUrl}
repoLocalPath={repo.localPath}
iconOnly={false}
className="w-full"
/>
</div>
<div className="h-px bg-border my-1" />
<DropdownMenuItem onClick={() => setFileBrowserOpen(true)}>
<FolderOpen className="w-4 h-4 mr-2" /> Files
</DropdownMenuItem>
<DropdownMenuItem onClick={handleAttachFile}>
<Upload className="w-4 h-4 mr-2" /> Upload
</DropdownMenuItem>
<DropdownMenuItem onClick={() => setMcpDialogOpen(true)}>
<Plug className="w-4 h-4 mr-2" /> MCP
</DropdownMenuItem>
<DropdownMenuItem onClick={openSettings}>
<Settings className="w-4 h-4 mr-2" /> Settings
</DropdownMenuItem>
</Header.MobileDropdown>
</Header.Actions>
</Header>
<div className="flex-1 overflow-hidden flex flex-col relative"> <div className="flex-1 overflow-hidden flex flex-col relative">
<div key={sessionId} ref={messageContainerRef} className="flex-1 overflow-y-auto overflow-x-hidden pb-28 overscroll-contain"> <div key={sessionId} ref={messageContainerRef} className="flex-1 overflow-y-auto overflow-x-hidden pb-28 overscroll-contain">
+16 -27
View File
@@ -1,35 +1,24 @@
import { Tabs, TabsContent, TabsList, TabsTrigger } from '@/components/ui/tabs' import { Tabs, TabsContent, TabsList, TabsTrigger } from '@/components/ui/tabs'
import { Header } from '@/components/layout/Header' import { Header } from '@/components/ui/header'
import { GeneralSettings } from '@/components/settings/GeneralSettings' import { GeneralSettings } from '@/components/settings/GeneralSettings'
import { KeyboardShortcuts } from '@/components/settings/KeyboardShortcuts' import { KeyboardShortcuts } from '@/components/settings/KeyboardShortcuts'
import { OpenCodeConfigManager } from '@/components/settings/OpenCodeConfigManager' import { OpenCodeConfigManager } from '@/components/settings/OpenCodeConfigManager'
export function Settings() { export function Settings() {
return ( return (
<div className="min-h-screen bg-gradient-to-br from-[#0a0a0a] via-[#0d0d0d] to-[#0a0a0a]"> <div className="min-h-screen bg-gradient-to-br from-background via-background to-background">
<Header title="Settings" backTo="/" /> <Header>
<Header.BackButton to="/" />
<Header.Title>Settings</Header.Title>
<Header.Settings />
</Header>
<div className="max-w-4xl mx-auto p-6"> <div className="max-w-4xl mx-auto p-6">
<Tabs defaultValue="general" className="w-full"> <Tabs defaultValue="general" className="w-full">
<TabsList className="grid w-full grid-cols-3 mb-8 bg-[#141414] border border-[#262626] p-1"> <TabsList className="grid w-full grid-cols-3 mb-8">
<TabsTrigger <TabsTrigger value="general">General</TabsTrigger>
value="general" <TabsTrigger value="shortcuts">Shortcuts</TabsTrigger>
className="data-[state=active]:bg-blue-800 data-[state=active]:text-white text-zinc-400" <TabsTrigger value="opencode">OpenCode</TabsTrigger>
>
General
</TabsTrigger>
<TabsTrigger
value="shortcuts"
className="data-[state=active]:bg-blue-800 data-[state=active]:text-white text-zinc-400"
>
Shortcuts
</TabsTrigger>
<TabsTrigger
value="opencode"
className="data-[state=active]:bg-blue-800 data-[state=active]:text-white text-zinc-400"
>
OpenCode
</TabsTrigger>
</TabsList> </TabsList>
<TabsContent value="general"> <TabsContent value="general">
@@ -40,19 +29,19 @@ export function Settings() {
<KeyboardShortcuts /> <KeyboardShortcuts />
</TabsContent> </TabsContent>
<TabsContent value="opencode"> <TabsContent value="opencode">
<OpenCodeConfigManager /> <OpenCodeConfigManager />
</TabsContent> </TabsContent>
<TabsContent value="commands"> <TabsContent value="commands">
<div className="bg-[#141414] border border-[#262626] rounded-lg p-8 text-center"> <div className="border border-border rounded-lg p-8 text-center">
<p className="text-zinc-500">Commands manager coming soon</p> <p className="text-muted-foreground">Commands manager coming soon</p>
</div> </div>
</TabsContent> </TabsContent>
<TabsContent value="agents"> <TabsContent value="agents">
<div className="bg-[#141414] border border-[#262626] rounded-lg p-8 text-center"> <div className="border border-border rounded-lg p-8 text-center">
<p className="text-zinc-500">Agents manager coming soon</p> <p className="text-muted-foreground">Agents manager coming soon</p>
</div> </div>
</TabsContent> </TabsContent>
</Tabs> </Tabs>
+5 -22
View File
@@ -1,30 +1,13 @@
import { Button } from '@/components/ui/button'
import { FileBrowser } from '@/components/file-browser/FileBrowser' import { FileBrowser } from '@/components/file-browser/FileBrowser'
import { ArrowLeft } from 'lucide-react' import { Header } from '@/components/ui/header'
import { useNavigate } from 'react-router-dom'
export function Workspace() { export function Workspace() {
const navigate = useNavigate()
return ( return (
<div className="h-screen bg-gradient-to-br from-background via-background to-background flex flex-col"> <div className="h-screen bg-gradient-to-br from-background via-background to-background flex flex-col">
<div className="sticky top-0 z-10 border-b border-border bg-gradient-to-b from-background via-background to-background backdrop-blur-sm px-4 py-2"> <Header>
<div className="flex items-center justify-between gap-4"> <Header.BackButton to="/repos" />
<div className="flex items-center gap-3"> <Header.Title>Workspace</Header.Title>
<Button </Header>
variant="ghost"
size="icon"
onClick={() => navigate('/repos')}
className="text-muted-foreground hover:text-foreground transition-all duration-200 hover:scale-105"
>
<ArrowLeft className="w-4 h-4" />
</Button>
<h1 className="text-lg font-semibold bg-gradient-to-r from-foreground to-muted-foreground bg-clip-text text-transparent">
Workspace
</h1>
</div>
</div>
</div>
<div className="flex-1 overflow-hidden p-4"> <div className="flex-1 overflow-hidden p-4">
<FileBrowser /> <FileBrowser />
+1
View File
@@ -0,0 +1 @@
import "@testing-library/jest-dom/vitest";
+18
View File
@@ -0,0 +1,18 @@
import path from "path";
import { defineConfig } from "vitest/config";
import react from "@vitejs/plugin-react";
export default defineConfig({
plugins: [react()],
test: {
environment: "jsdom",
globals: true,
setupFiles: ["./src/test/setup.ts"],
include: ["src/**/*.test.{ts,tsx}"],
},
resolve: {
alias: {
"@": path.resolve(__dirname, "./src"),
},
},
});
+495 -4
View File
@@ -69,7 +69,7 @@ importers:
version: 8.51.0(eslint@9.39.2(jiti@2.6.1))(typescript@5.9.3) version: 8.51.0(eslint@9.39.2(jiti@2.6.1))(typescript@5.9.3)
vitest: vitest:
specifier: ^3.2.4 specifier: ^3.2.4
version: 3.2.4(@types/debug@4.1.12)(@types/node@24.10.4)(@vitest/ui@3.2.4)(jiti@2.6.1)(lightningcss@1.30.2) version: 3.2.4(@types/debug@4.1.12)(@types/node@24.10.4)(@vitest/ui@3.2.4)(jiti@2.6.1)(jsdom@27.4.0)(lightningcss@1.30.2)
frontend: frontend:
dependencies: dependencies:
@@ -185,6 +185,15 @@ importers:
'@eslint/js': '@eslint/js':
specifier: ^9.36.0 specifier: ^9.36.0
version: 9.39.2 version: 9.39.2
'@testing-library/jest-dom':
specifier: ^6.9.1
version: 6.9.1
'@testing-library/react':
specifier: ^16.3.1
version: 16.3.1(@testing-library/dom@10.4.1)(@types/react-dom@19.2.3(@types/react@19.2.7))(@types/react@19.2.7)(react-dom@19.2.3(react@19.2.3))(react@19.2.3)
'@testing-library/user-event':
specifier: ^14.6.1
version: 14.6.1(@testing-library/dom@10.4.1)
'@types/node': '@types/node':
specifier: ^24.8.1 specifier: ^24.8.1
version: 24.10.4 version: 24.10.4
@@ -212,6 +221,9 @@ importers:
globals: globals:
specifier: ^16.4.0 specifier: ^16.4.0
version: 16.5.0 version: 16.5.0
jsdom:
specifier: ^27.4.0
version: 27.4.0
openapi-typescript: openapi-typescript:
specifier: ^7.10.1 specifier: ^7.10.1
version: 7.10.1(typescript@5.9.3) version: 7.10.1(typescript@5.9.3)
@@ -232,7 +244,7 @@ importers:
version: 7.3.0(@types/node@24.10.4)(jiti@2.6.1)(lightningcss@1.30.2) version: 7.3.0(@types/node@24.10.4)(jiti@2.6.1)(lightningcss@1.30.2)
vitest: vitest:
specifier: ^3.2.4 specifier: ^3.2.4
version: 3.2.4(@types/debug@4.1.12)(@types/node@24.10.4)(@vitest/ui@3.2.4)(jiti@2.6.1)(lightningcss@1.30.2) version: 3.2.4(@types/debug@4.1.12)(@types/node@24.10.4)(@vitest/ui@3.2.4)(jiti@2.6.1)(jsdom@27.4.0)(lightningcss@1.30.2)
shared: shared:
dependencies: dependencies:
@@ -250,9 +262,24 @@ importers:
packages: packages:
'@acemir/cssom@0.9.30':
resolution: {integrity: sha512-9CnlMCI0LmCIq0olalQqdWrJHPzm0/tw3gzOA9zJSgvFX7Xau3D24mAGa4BtwxwY69nsuJW6kQqqCzf/mEcQgg==}
'@adobe/css-tools@4.4.4':
resolution: {integrity: sha512-Elp+iwUx5rN5+Y8xLt5/GRoG20WGoDCQ/1Fb+1LiGtvwbDavuSk0jhD/eZdckHAuzcDzccnkv+rEjyWfRx18gg==}
'@antfu/install-pkg@1.1.0': '@antfu/install-pkg@1.1.0':
resolution: {integrity: sha512-MGQsmw10ZyI+EJo45CdSER4zEb+p31LpDAFp2Z3gkSd1yqVZGi0Ebx++YTEMonJy4oChEMLsxZ64j8FH6sSqtQ==} resolution: {integrity: sha512-MGQsmw10ZyI+EJo45CdSER4zEb+p31LpDAFp2Z3gkSd1yqVZGi0Ebx++YTEMonJy4oChEMLsxZ64j8FH6sSqtQ==}
'@asamuzakjp/css-color@4.1.1':
resolution: {integrity: sha512-B0Hv6G3gWGMn0xKJ0txEi/jM5iFpT3MfDxmhZFb4W047GvytCf1DHQ1D69W3zHI4yWe2aTZAA0JnbMZ7Xc8DuQ==}
'@asamuzakjp/dom-selector@6.7.6':
resolution: {integrity: sha512-hBaJER6A9MpdG3WgdlOolHmbOYvSk46y7IQN/1+iqiCuUu6iWdQrs9DGKF8ocqsEqWujWf/V7b7vaDgiUmIvUg==}
'@asamuzakjp/nwsapi@2.3.9':
resolution: {integrity: sha512-n8GuYSrI9bF7FFZ/SjhwevlHc8xaVlb/7HmHelnc/PZXBD2ZR49NnN9sMMuDdEGPeeRQ5d0hqlSlEpgCX3Wl0Q==}
'@babel/code-frame@7.27.1': '@babel/code-frame@7.27.1':
resolution: {integrity: sha512-cjQ7ZlQ0Mv3b47hABuTevyTuYN4i+loJKGeV9flcCgIK37cCXRh+L1bd3iBHlynerhQ7BhCkn2BPbQUL+rGqFg==} resolution: {integrity: sha512-cjQ7ZlQ0Mv3b47hABuTevyTuYN4i+loJKGeV9flcCgIK37cCXRh+L1bd3iBHlynerhQ7BhCkn2BPbQUL+rGqFg==}
engines: {node: '>=6.9.0'} engines: {node: '>=6.9.0'}
@@ -324,6 +351,10 @@ packages:
peerDependencies: peerDependencies:
'@babel/core': ^7.0.0-0 '@babel/core': ^7.0.0-0
'@babel/runtime@7.28.4':
resolution: {integrity: sha512-Q/N6JNWvIvPnLDvjlE1OUBLPQHH6l3CltCEsHIujp45zQUSSh8K+gHnaEX45yAT1nyngnINhvWtzN+Nb9D8RAQ==}
engines: {node: '>=6.9.0'}
'@babel/template@7.27.2': '@babel/template@7.27.2':
resolution: {integrity: sha512-LPDZ85aEJyYSd18/DkjNh4/y1ntkE5KwUHWTiqgRxruuZL2F1yuHligVHLvcHY2vMHXttKFpJn6LwfI7cw7ODw==} resolution: {integrity: sha512-LPDZ85aEJyYSd18/DkjNh4/y1ntkE5KwUHWTiqgRxruuZL2F1yuHligVHLvcHY2vMHXttKFpJn6LwfI7cw7ODw==}
engines: {node: '>=6.9.0'} engines: {node: '>=6.9.0'}
@@ -354,6 +385,38 @@ packages:
'@chevrotain/utils@11.0.3': '@chevrotain/utils@11.0.3':
resolution: {integrity: sha512-YslZMgtJUyuMbZ+aKvfF3x1f5liK4mWNxghFRv7jqRR9C3R3fAOGTTKvxXDa2Y1s9zSbcpuO0cAxDYsc9SrXoQ==} resolution: {integrity: sha512-YslZMgtJUyuMbZ+aKvfF3x1f5liK4mWNxghFRv7jqRR9C3R3fAOGTTKvxXDa2Y1s9zSbcpuO0cAxDYsc9SrXoQ==}
'@csstools/color-helpers@5.1.0':
resolution: {integrity: sha512-S11EXWJyy0Mz5SYvRmY8nJYTFFd1LCNV+7cXyAgQtOOuzb4EsgfqDufL+9esx72/eLhsRdGZwaldu/h+E4t4BA==}
engines: {node: '>=18'}
'@csstools/css-calc@2.1.4':
resolution: {integrity: sha512-3N8oaj+0juUw/1H3YwmDDJXCgTB1gKU6Hc/bB502u9zR0q2vd786XJH9QfrKIEgFlZmhZiq6epXl4rHqhzsIgQ==}
engines: {node: '>=18'}
peerDependencies:
'@csstools/css-parser-algorithms': ^3.0.5
'@csstools/css-tokenizer': ^3.0.4
'@csstools/css-color-parser@3.1.0':
resolution: {integrity: sha512-nbtKwh3a6xNVIp/VRuXV64yTKnb1IjTAEEh3irzS+HkKjAOYLTGNb9pmVNntZ8iVBHcWDA2Dof0QtPgFI1BaTA==}
engines: {node: '>=18'}
peerDependencies:
'@csstools/css-parser-algorithms': ^3.0.5
'@csstools/css-tokenizer': ^3.0.4
'@csstools/css-parser-algorithms@3.0.5':
resolution: {integrity: sha512-DaDeUkXZKjdGhgYaHNJTV9pV7Y9B3b644jCLs9Upc3VeNGg6LWARAT6O+Q+/COo+2gg/bM5rhpMAtf70WqfBdQ==}
engines: {node: '>=18'}
peerDependencies:
'@csstools/css-tokenizer': ^3.0.4
'@csstools/css-syntax-patches-for-csstree@1.0.22':
resolution: {integrity: sha512-qBcx6zYlhleiFfdtzkRgwNC7VVoAwfK76Vmsw5t+PbvtdknO9StgRk7ROvq9so1iqbdW4uLIDAsXRsTfUrIoOw==}
engines: {node: '>=18'}
'@csstools/css-tokenizer@3.0.4':
resolution: {integrity: sha512-Vd/9EVDiu6PPJt9yAh6roZP6El1xHrdvIVGjyBsHR0RYwNHgL7FJPyIIW4fANJNG6FtyZfvlRPpFI4ZM/lubvw==}
engines: {node: '>=18'}
'@esbuild/aix-ppc64@0.27.2': '@esbuild/aix-ppc64@0.27.2':
resolution: {integrity: sha512-GZMB+a0mOMZs4MpDbj8RJp4cw+w1WV5NYD6xzgvzUJ5Ek2jerwfO2eADyI6ExDSUED+1X8aMbegahsJi+8mgpw==} resolution: {integrity: sha512-GZMB+a0mOMZs4MpDbj8RJp4cw+w1WV5NYD6xzgvzUJ5Ek2jerwfO2eADyI6ExDSUED+1X8aMbegahsJi+8mgpw==}
engines: {node: '>=18'} engines: {node: '>=18'}
@@ -548,6 +611,15 @@ packages:
resolution: {integrity: sha512-43/qtrDUokr7LJqoF2c3+RInu/t4zfrpYdoSDfYyhg52rwLV6TnOvdG4fXm7IkSB3wErkcmJS9iEhjVtOSEjjA==} resolution: {integrity: sha512-43/qtrDUokr7LJqoF2c3+RInu/t4zfrpYdoSDfYyhg52rwLV6TnOvdG4fXm7IkSB3wErkcmJS9iEhjVtOSEjjA==}
engines: {node: ^18.18.0 || ^20.9.0 || >=21.1.0} engines: {node: ^18.18.0 || ^20.9.0 || >=21.1.0}
'@exodus/bytes@1.8.0':
resolution: {integrity: sha512-8JPn18Bcp8Uo1T82gR8lh2guEOa5KKU/IEKvvdp0sgmi7coPBWf1Doi1EXsGZb2ehc8ym/StJCjffYV+ne7sXQ==}
engines: {node: ^20.19.0 || ^22.12.0 || >=24.0.0}
peerDependencies:
'@exodus/crypto': ^1.0.0-rc.4
peerDependenciesMeta:
'@exodus/crypto':
optional: true
'@floating-ui/core@1.7.3': '@floating-ui/core@1.7.3':
resolution: {integrity: sha512-sGnvb5dmrJaKEZ+LDIpguvdX3bDlEllmv4/ClQ9awcmCZrlx5jQyyMWFM5kBI+EyNOCDDiKk8il0zeuX3Zlg/w==} resolution: {integrity: sha512-sGnvb5dmrJaKEZ+LDIpguvdX3bDlEllmv4/ClQ9awcmCZrlx5jQyyMWFM5kBI+EyNOCDDiKk8il0zeuX3Zlg/w==}
@@ -1264,9 +1336,41 @@ packages:
peerDependencies: peerDependencies:
react: ^18 || ^19 react: ^18 || ^19
'@testing-library/dom@10.4.1':
resolution: {integrity: sha512-o4PXJQidqJl82ckFaXUeoAW+XysPLauYI43Abki5hABd853iMhitooc6znOnczgbTYmEP6U6/y1ZyKAIsvMKGg==}
engines: {node: '>=18'}
'@testing-library/jest-dom@6.9.1':
resolution: {integrity: sha512-zIcONa+hVtVSSep9UT3jZ5rizo2BsxgyDYU7WFD5eICBE7no3881HGeb/QkGfsJs6JTkY1aQhT7rIPC7e+0nnA==}
engines: {node: '>=14', npm: '>=6', yarn: '>=1'}
'@testing-library/react@16.3.1':
resolution: {integrity: sha512-gr4KtAWqIOQoucWYD/f6ki+j5chXfcPc74Col/6poTyqTmn7zRmodWahWRCp8tYd+GMqBonw6hstNzqjbs6gjw==}
engines: {node: '>=18'}
peerDependencies:
'@testing-library/dom': ^10.0.0
'@types/react': ^18.0.0 || ^19.0.0
'@types/react-dom': ^18.0.0 || ^19.0.0
react: ^18.0.0 || ^19.0.0
react-dom: ^18.0.0 || ^19.0.0
peerDependenciesMeta:
'@types/react':
optional: true
'@types/react-dom':
optional: true
'@testing-library/user-event@14.6.1':
resolution: {integrity: sha512-vq7fv0rnt+QTXgPxr5Hjc210p6YKq2kmdziLgnsZGgLJ9e6VAShx1pACLuRjd/AS/sr7phAR58OIIpf0LlmQNw==}
engines: {node: '>=12', npm: '>=6'}
peerDependencies:
'@testing-library/dom': '>=7.21.4'
'@types/archiver@7.0.0': '@types/archiver@7.0.0':
resolution: {integrity: sha512-/3vwGwx9n+mCQdYZ2IKGGHEFL30I96UgBlk8EtRDDFQ9uxM1l4O5Ci6r00EMAkiDaTqD9DQ6nVrWRICnBPtzzg==} resolution: {integrity: sha512-/3vwGwx9n+mCQdYZ2IKGGHEFL30I96UgBlk8EtRDDFQ9uxM1l4O5Ci6r00EMAkiDaTqD9DQ6nVrWRICnBPtzzg==}
'@types/aria-query@5.0.4':
resolution: {integrity: sha512-rfT93uj5s0PRL7EzccGMs3brplhcrghnDoV26NqKhCAS1hVo+WdNsPvE/yb6ilfr5hi2MEk6d5EWJTKdxg8jVw==}
'@types/babel__core@7.20.5': '@types/babel__core@7.20.5':
resolution: {integrity: sha512-qoQprZvz5wQFJwMDqeseRXWv3rqMvhgpbXFfVyWhbx9X47POIA6i/+dXefEmZKoAgOaTdaIgNSMqMIU61yRyzA==} resolution: {integrity: sha512-qoQprZvz5wQFJwMDqeseRXWv3rqMvhgpbXFfVyWhbx9X47POIA6i/+dXefEmZKoAgOaTdaIgNSMqMIU61yRyzA==}
@@ -1570,6 +1674,10 @@ packages:
resolution: {integrity: sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==} resolution: {integrity: sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==}
engines: {node: '>=8'} engines: {node: '>=8'}
ansi-styles@5.2.0:
resolution: {integrity: sha512-Cxwpt2SfTzTtXcfOlzGEee8O+c+MmUgGrNiBcXnuWxuFJHe6a5Hz7qwhwe5OgaSYI0IJvkLqWX1ASG+cJOkEiA==}
engines: {node: '>=10'}
ansi-styles@6.2.3: ansi-styles@6.2.3:
resolution: {integrity: sha512-4Dj6M28JB+oAH8kFkTLUo+a2jwOFkuqb3yucU0CANcRRUbxS0cP0nZYCGjcc3BNXwRIsUVmDGgzawme7zvJHvg==} resolution: {integrity: sha512-4Dj6M28JB+oAH8kFkTLUo+a2jwOFkuqb3yucU0CANcRRUbxS0cP0nZYCGjcc3BNXwRIsUVmDGgzawme7zvJHvg==}
engines: {node: '>=12'} engines: {node: '>=12'}
@@ -1589,6 +1697,13 @@ packages:
resolution: {integrity: sha512-ik3ZgC9dY/lYVVM++OISsaYDeg1tb0VtP5uL3ouh1koGOaUMDPpbFIei4JkFimWUFPn90sbMNMXQAIVOlnYKJA==} resolution: {integrity: sha512-ik3ZgC9dY/lYVVM++OISsaYDeg1tb0VtP5uL3ouh1koGOaUMDPpbFIei4JkFimWUFPn90sbMNMXQAIVOlnYKJA==}
engines: {node: '>=10'} engines: {node: '>=10'}
aria-query@5.3.0:
resolution: {integrity: sha512-b0P0sZPKtyu8HkeRAfCq0IfURZK+SuwMjY1UXGBU27wpAiTwQAIlq56IbIO+ytk/JjS1fMR14ee5WBBfKi5J6A==}
aria-query@5.3.2:
resolution: {integrity: sha512-COROpnaoap1E2F000S62r6A60uHZnmlvomhfyT2DlTcrY1OrBKn2UhH7qn5wTC9zMvD0AY7csdPSNwKP+7WiQw==}
engines: {node: '>= 0.4'}
assertion-error@2.0.1: assertion-error@2.0.1:
resolution: {integrity: sha512-Izi8RQcffqCeNVgFigKli1ssklIbpHnCYc6AknXGYoB6grJqyeby7jv12JUQgmTAnIDnbck1uxksT4dzN3PWBA==} resolution: {integrity: sha512-Izi8RQcffqCeNVgFigKli1ssklIbpHnCYc6AknXGYoB6grJqyeby7jv12JUQgmTAnIDnbck1uxksT4dzN3PWBA==}
engines: {node: '>=12'} engines: {node: '>=12'}
@@ -1638,6 +1753,9 @@ packages:
resolution: {integrity: sha512-Sg0xJUNDU1sJNGdfGWhVHX0kkZ+HWcvmVymJbj6NSgZZmW/8S9Y2HQ5euytnIgakgxN6papOAWiwDo1ctFDcoQ==} resolution: {integrity: sha512-Sg0xJUNDU1sJNGdfGWhVHX0kkZ+HWcvmVymJbj6NSgZZmW/8S9Y2HQ5euytnIgakgxN6papOAWiwDo1ctFDcoQ==}
hasBin: true hasBin: true
bidi-js@1.0.3:
resolution: {integrity: sha512-RKshQI1R3YQ+n9YJz2QQ147P66ELpa1FQEg20Dk8oW9t2KgLbpDLLp9aGZ7y8WHSshDknG0bknqGw5/tyCs5tw==}
brace-expansion@1.1.12: brace-expansion@1.1.12:
resolution: {integrity: sha512-9T9UjW3r0UW5c1Q7GTwllptXwhvYmEzFhzMfZ9H7FQWt+uZePjZPjBP/W1ZEyZ1twGWom5/56TF4lPcqjnDHcg==} resolution: {integrity: sha512-9T9UjW3r0UW5c1Q7GTwllptXwhvYmEzFhzMfZ9H7FQWt+uZePjZPjBP/W1ZEyZ1twGWom5/56TF4lPcqjnDHcg==}
@@ -1798,6 +1916,17 @@ packages:
resolution: {integrity: sha512-uV2QOWP2nWzsy2aMp8aRibhi9dlzF5Hgh5SHaB9OiTGEyDTiJJyx0uy51QXdyWbtAHNua4XJzUKca3OzKUd3vA==} resolution: {integrity: sha512-uV2QOWP2nWzsy2aMp8aRibhi9dlzF5Hgh5SHaB9OiTGEyDTiJJyx0uy51QXdyWbtAHNua4XJzUKca3OzKUd3vA==}
engines: {node: '>= 8'} engines: {node: '>= 8'}
css-tree@3.1.0:
resolution: {integrity: sha512-0eW44TGN5SQXU1mWSkKwFstI/22X2bG1nYzZTYMAWjylYURhse752YgbE4Cx46AC+bAvI+/dYTPRk1LqSUnu6w==}
engines: {node: ^10 || ^12.20.0 || ^14.13.0 || >=15.0.0}
css.escape@1.5.1:
resolution: {integrity: sha512-YUifsXXuknHlUsmlgyY0PKzgPOr7/FjCePfHNt0jxm83wHZi44VDMQ7/fGNkjY3/jV1MC+1CmZbaHzugyeRtpg==}
cssstyle@5.3.6:
resolution: {integrity: sha512-legscpSpgSAeGEe0TNcai97DKt9Vd9AsAdOL7Uoetb52Ar/8eJm3LIa39qpv8wWzLFlNG4vVvppQM+teaMPj3A==}
engines: {node: '>=20'}
csstype@3.2.3: csstype@3.2.3:
resolution: {integrity: sha512-z1HGKcYy2xA8AGQfwrn0PAy+PB7X/GSj3UVJW9qKyn43xWa+gl5nXmU4qqLMRzWVLFC8KusUX8T/0kCiOYpAIQ==} resolution: {integrity: sha512-z1HGKcYy2xA8AGQfwrn0PAy+PB7X/GSj3UVJW9qKyn43xWa+gl5nXmU4qqLMRzWVLFC8KusUX8T/0kCiOYpAIQ==}
@@ -1957,6 +2086,10 @@ packages:
dagre-d3-es@7.0.13: dagre-d3-es@7.0.13:
resolution: {integrity: sha512-efEhnxpSuwpYOKRm/L5KbqoZmNNukHa/Flty4Wp62JRvgH2ojwVgPgdYyr4twpieZnyRDdIH7PY2mopX26+j2Q==} resolution: {integrity: sha512-efEhnxpSuwpYOKRm/L5KbqoZmNNukHa/Flty4Wp62JRvgH2ojwVgPgdYyr4twpieZnyRDdIH7PY2mopX26+j2Q==}
data-urls@6.0.0:
resolution: {integrity: sha512-BnBS08aLUM+DKamupXs3w2tJJoqU+AkaE/+6vQxi/G/DPmIZFJJp9Dkb1kM03AZx8ADehDUZgsNxju3mPXZYIA==}
engines: {node: '>=20'}
date-fns@4.1.0: date-fns@4.1.0:
resolution: {integrity: sha512-Ukq0owbQXxa/U3EGtsdVBkR1w7KOQ5gIBqdH2hkvknzZPYvBxb/aa6E8L7tmjFtkwZBu3UXBbjIgPo/Ez4xaNg==} resolution: {integrity: sha512-Ukq0owbQXxa/U3EGtsdVBkR1w7KOQ5gIBqdH2hkvknzZPYvBxb/aa6E8L7tmjFtkwZBu3UXBbjIgPo/Ez4xaNg==}
@@ -1972,6 +2105,9 @@ packages:
supports-color: supports-color:
optional: true optional: true
decimal.js@10.6.0:
resolution: {integrity: sha512-YpgQiITW3JXGntzdUmyUR1V812Hn8T1YVXhCu+wO3OpS4eU9l4YdD3qjyiKdV6mvV29zapkMeD390UVEf2lkUg==}
decode-named-character-reference@1.2.0: decode-named-character-reference@1.2.0:
resolution: {integrity: sha512-c6fcElNV6ShtZXmsgNgFFV5tVX2PaV4g+MOAkb8eXHvn6sryJBrZa9r0zV6+dtTyoCKxtDy5tyQ5ZwQuidtd+Q==} resolution: {integrity: sha512-c6fcElNV6ShtZXmsgNgFFV5tVX2PaV4g+MOAkb8eXHvn6sryJBrZa9r0zV6+dtTyoCKxtDy5tyQ5ZwQuidtd+Q==}
@@ -2007,6 +2143,12 @@ packages:
resolution: {integrity: sha512-sSuxWU5j5SR9QQji/o2qMvqRNYRDOcBTgsJ/DeCf4iSN4gW+gNMXM7wFIP+fdXZxoNiAnHUTGjCr+TSWXdRDKg==} resolution: {integrity: sha512-sSuxWU5j5SR9QQji/o2qMvqRNYRDOcBTgsJ/DeCf4iSN4gW+gNMXM7wFIP+fdXZxoNiAnHUTGjCr+TSWXdRDKg==}
engines: {node: '>=0.3.1'} engines: {node: '>=0.3.1'}
dom-accessibility-api@0.5.16:
resolution: {integrity: sha512-X7BJ2yElsnOJ30pZF4uIIDfBEVgF4XEBxL9Bxhy6dnrm5hkzqmsWHGTiHqRiITNhMyFLyAiWndIJP7Z1NTteDg==}
dom-accessibility-api@0.6.3:
resolution: {integrity: sha512-7ZgogeTnjuHbo+ct10G9Ffp0mif17idi0IyWNVA/wcwcm7NPOD/WEHVP3n7n3MhXqxoIYm8d6MuZohYWIZ4T3w==}
dompurify@3.2.7: dompurify@3.2.7:
resolution: {integrity: sha512-WhL/YuveyGXJaerVlMYGWhvQswa7myDG17P7Vu65EWC05o8vfeNbvNf4d/BOvH99+ZW+LlQsc1GDKMa1vNK6dw==} resolution: {integrity: sha512-WhL/YuveyGXJaerVlMYGWhvQswa7myDG17P7Vu65EWC05o8vfeNbvNf4d/BOvH99+ZW+LlQsc1GDKMa1vNK6dw==}
@@ -2321,12 +2463,20 @@ packages:
resolution: {integrity: sha512-PmQi306+M/ct/m5s66Hrg+adPnkD5jiO6IjA7WhWw0gSBSo1EcRegwuI1deZ+wd5pzCGynCcn2DprnE4/yEV4w==} resolution: {integrity: sha512-PmQi306+M/ct/m5s66Hrg+adPnkD5jiO6IjA7WhWw0gSBSo1EcRegwuI1deZ+wd5pzCGynCcn2DprnE4/yEV4w==}
engines: {node: '>=16.9.0'} engines: {node: '>=16.9.0'}
html-encoding-sniffer@6.0.0:
resolution: {integrity: sha512-CV9TW3Y3f8/wT0BRFc1/KAVQ3TUHiXmaAb6VW9vtiMFf7SLoMd1PdAc4W3KFOFETBJUb90KatHqlsZMWV+R9Gg==}
engines: {node: ^20.19.0 || ^22.12.0 || >=24.0.0}
html-url-attributes@3.0.1: html-url-attributes@3.0.1:
resolution: {integrity: sha512-ol6UPyBWqsrO6EJySPz2O7ZSr856WDrEzM5zMqp+FJJLGMW35cLYmmZnl0vztAZxRUoNZJFTCohfjuIJ8I4QBQ==} resolution: {integrity: sha512-ol6UPyBWqsrO6EJySPz2O7ZSr856WDrEzM5zMqp+FJJLGMW35cLYmmZnl0vztAZxRUoNZJFTCohfjuIJ8I4QBQ==}
html-void-elements@3.0.0: html-void-elements@3.0.0:
resolution: {integrity: sha512-bEqo66MRXsUGxWHV5IP0PUiAWwoEjba4VCzg0LjFJBpchPaTfyfCKTG6bc5F8ucKec3q5y6qOdGyYTSBEvhCrg==} resolution: {integrity: sha512-bEqo66MRXsUGxWHV5IP0PUiAWwoEjba4VCzg0LjFJBpchPaTfyfCKTG6bc5F8ucKec3q5y6qOdGyYTSBEvhCrg==}
http-proxy-agent@7.0.2:
resolution: {integrity: sha512-T1gkAiYYDWYx3V5Bmyu7HcfcvL7mUrTWiM6yOfa3PIphViJ/gFPbvidQ+veqSOHci/PxBcDabeUNCzpOODJZig==}
engines: {node: '>= 14'}
https-proxy-agent@7.0.6: https-proxy-agent@7.0.6:
resolution: {integrity: sha512-vK9P5/iUfdl95AI+JVyUuIcVtd4ofvtrOr3HNtM2yxC9bnMbEdp3x01OhQNnjb8IJYi38VlTE3mBXwcfvywuSw==} resolution: {integrity: sha512-vK9P5/iUfdl95AI+JVyUuIcVtd4ofvtrOr3HNtM2yxC9bnMbEdp3x01OhQNnjb8IJYi38VlTE3mBXwcfvywuSw==}
engines: {node: '>= 14'} engines: {node: '>= 14'}
@@ -2354,6 +2504,10 @@ packages:
resolution: {integrity: sha512-JmXMZ6wuvDmLiHEml9ykzqO6lwFbof0GG4IkcGaENdCRDDmMVnny7s5HsIgHCbaq0w2MyPhDqkhTUgS2LU2PHA==} resolution: {integrity: sha512-JmXMZ6wuvDmLiHEml9ykzqO6lwFbof0GG4IkcGaENdCRDDmMVnny7s5HsIgHCbaq0w2MyPhDqkhTUgS2LU2PHA==}
engines: {node: '>=0.8.19'} engines: {node: '>=0.8.19'}
indent-string@4.0.0:
resolution: {integrity: sha512-EdDDZu4A2OyIK7Lr/2zG+w5jmbuk1DVBnEwREQvBzspBJkCEbRa8GxU1lghYcaGJCnRWibjDXlq779X1/y5xwg==}
engines: {node: '>=8'}
index-to-position@1.2.0: index-to-position@1.2.0:
resolution: {integrity: sha512-Yg7+ztRkqslMAS2iFaU+Oa4KTSidr63OsFGlOrJoW981kIYO3CGCS3wA95P1mUi/IVSJkn0D479KTJpVpvFNuw==} resolution: {integrity: sha512-Yg7+ztRkqslMAS2iFaU+Oa4KTSidr63OsFGlOrJoW981kIYO3CGCS3wA95P1mUi/IVSJkn0D479KTJpVpvFNuw==}
engines: {node: '>=18'} engines: {node: '>=18'}
@@ -2399,6 +2553,9 @@ packages:
resolution: {integrity: sha512-+Pgi+vMuUNkJyExiMBt5IlFoMyKnr5zhJ4Uspz58WOhBF5QoIZkFyNHIbBAtHwzVAgk5RtndVNsDRN61/mmDqg==} resolution: {integrity: sha512-+Pgi+vMuUNkJyExiMBt5IlFoMyKnr5zhJ4Uspz58WOhBF5QoIZkFyNHIbBAtHwzVAgk5RtndVNsDRN61/mmDqg==}
engines: {node: '>=12'} engines: {node: '>=12'}
is-potential-custom-element-name@1.0.1:
resolution: {integrity: sha512-bCYeRA2rVibKZd+s2625gGnGF/t7DSqDs4dP7CrLA1m7jKWz6pps0LpYLJN8Q64HtmPKJ1hrN3nzPNKFEKOUiQ==}
is-stream@2.0.1: is-stream@2.0.1:
resolution: {integrity: sha512-hFoiJiTl63nn+kstHGBtewWSKnQLpyb155KHheA1l39uvtO9nWIop1p3udqPcUd/xbF1VLMO4n7OI6p7RbngDg==} resolution: {integrity: sha512-hFoiJiTl63nn+kstHGBtewWSKnQLpyb155KHheA1l39uvtO9nWIop1p3udqPcUd/xbF1VLMO4n7OI6p7RbngDg==}
engines: {node: '>=8'} engines: {node: '>=8'}
@@ -2430,6 +2587,15 @@ packages:
resolution: {integrity: sha512-qQKT4zQxXl8lLwBtHMWwaTcGfFOZviOJet3Oy/xmGk2gZH677CJM9EvtfdSkgWcATZhj/55JZ0rmy3myCT5lsA==} resolution: {integrity: sha512-qQKT4zQxXl8lLwBtHMWwaTcGfFOZviOJet3Oy/xmGk2gZH677CJM9EvtfdSkgWcATZhj/55JZ0rmy3myCT5lsA==}
hasBin: true hasBin: true
jsdom@27.4.0:
resolution: {integrity: sha512-mjzqwWRD9Y1J1KUi7W97Gja1bwOOM5Ug0EZ6UDK3xS7j7mndrkwozHtSblfomlzyB4NepioNt+B2sOSzczVgtQ==}
engines: {node: ^20.19.0 || ^22.12.0 || >=24.0.0}
peerDependencies:
canvas: ^3.0.0
peerDependenciesMeta:
canvas:
optional: true
jsesc@3.1.0: jsesc@3.1.0:
resolution: {integrity: sha512-/sM3dO2FOzXjKQhJuo0Q173wf2KOo8t4I8vHy6lF9poUp7bKT0/NHE8fPX23PwfhnykfqnC2xRxOnVw5XuGIaA==} resolution: {integrity: sha512-/sM3dO2FOzXjKQhJuo0Q173wf2KOo8t4I8vHy6lF9poUp7bKT0/NHE8fPX23PwfhnykfqnC2xRxOnVw5XuGIaA==}
engines: {node: '>=6'} engines: {node: '>=6'}
@@ -2578,6 +2744,10 @@ packages:
lru-cache@10.4.3: lru-cache@10.4.3:
resolution: {integrity: sha512-JNAzZcXrCt42VGLuYz0zfAzDfAvJWW6AfYlDBQyDV5DClI2m5sAmK+OIO7s59XfsRsWHp02jAJrRadPRGTt6SQ==} resolution: {integrity: sha512-JNAzZcXrCt42VGLuYz0zfAzDfAvJWW6AfYlDBQyDV5DClI2m5sAmK+OIO7s59XfsRsWHp02jAJrRadPRGTt6SQ==}
lru-cache@11.2.4:
resolution: {integrity: sha512-B5Y16Jr9LB9dHVkh6ZevG+vAbOsNOYCX+sXvFWFu7B3Iz5mijW3zdbMyhsh8ANd2mSWBYdJgnqi+mL7/LrOPYg==}
engines: {node: 20 || >=22}
lru-cache@5.1.1: lru-cache@5.1.1:
resolution: {integrity: sha512-KpNARQA3Iwv+jTA0utUVVbrh+Jlrr1Fv0e56GGzAFOXN7dk/FviaDW8LHmK52DlcH4WP2n6gI8vN1aesBFgo9w==} resolution: {integrity: sha512-KpNARQA3Iwv+jTA0utUVVbrh+Jlrr1Fv0e56GGzAFOXN7dk/FviaDW8LHmK52DlcH4WP2n6gI8vN1aesBFgo9w==}
@@ -2586,6 +2756,10 @@ packages:
peerDependencies: peerDependencies:
react: ^16.5.1 || ^17.0.0 || ^18.0.0 || ^19.0.0 react: ^16.5.1 || ^17.0.0 || ^18.0.0 || ^19.0.0
lz-string@1.5.0:
resolution: {integrity: sha512-h5bgJWpxJNswbU7qCrV0tIKQCaS3blPDrqKWx+QxzuzL1zGUzij9XCWLrSLsJPu5t+eWA/ycetzYAO5IOMcWAQ==}
hasBin: true
magic-string@0.30.21: magic-string@0.30.21:
resolution: {integrity: sha512-vd2F4YUyEXKGcLHoq+TEyCjxueSeHnFxyyjNp80yg0XV4vUhnDer/lvvlqM/arB5bXQN5K2/3oinyCRyx8T2CQ==} resolution: {integrity: sha512-vd2F4YUyEXKGcLHoq+TEyCjxueSeHnFxyyjNp80yg0XV4vUhnDer/lvvlqM/arB5bXQN5K2/3oinyCRyx8T2CQ==}
@@ -2651,6 +2825,9 @@ packages:
mdast-util-to-string@4.0.0: mdast-util-to-string@4.0.0:
resolution: {integrity: sha512-0H44vDimn51F0YwvxSJSm0eCDOJTRlmN0R1yBh4HLj9wiV1Dn0QoXGbvFAWj2hSItVTlCmBF1hqKlIyUBVFLPg==} resolution: {integrity: sha512-0H44vDimn51F0YwvxSJSm0eCDOJTRlmN0R1yBh4HLj9wiV1Dn0QoXGbvFAWj2hSItVTlCmBF1hqKlIyUBVFLPg==}
mdn-data@2.12.2:
resolution: {integrity: sha512-IEn+pegP1aManZuckezWCO+XZQDplx1366JoVhTpMpBB1sPey/SbveZQUosKiKiGYjg1wH4pMlNgXbCiYgihQA==}
mermaid@11.12.2: mermaid@11.12.2:
resolution: {integrity: sha512-n34QPDPEKmaeCG4WDMGy0OT6PSyxKCfy2pJgShP+Qow2KLrvWjclwbc3yXfSIf4BanqWEhQEpngWwNp/XhZt6w==} resolution: {integrity: sha512-n34QPDPEKmaeCG4WDMGy0OT6PSyxKCfy2pJgShP+Qow2KLrvWjclwbc3yXfSIf4BanqWEhQEpngWwNp/XhZt6w==}
@@ -2746,6 +2923,10 @@ packages:
resolution: {integrity: sha512-ZDY+bPm5zTTF+YpCrAU9nK0UgICYPT0QtT1NZWFv4s++TNkcgVaT0g6+4R2uI4MjQjzysHB1zxuWL50hzaeXiw==} resolution: {integrity: sha512-ZDY+bPm5zTTF+YpCrAU9nK0UgICYPT0QtT1NZWFv4s++TNkcgVaT0g6+4R2uI4MjQjzysHB1zxuWL50hzaeXiw==}
engines: {node: '>= 0.6'} engines: {node: '>= 0.6'}
min-indent@1.0.1:
resolution: {integrity: sha512-I9jwMn07Sy/IwOj3zVkVik2JTvgpaykDZEigL6Rx6N9LbMywwUSMtxET+7lVoDLLd3O3IXwJwvuuns8UB/HeAg==}
engines: {node: '>=4'}
minimatch@3.1.2: minimatch@3.1.2:
resolution: {integrity: sha512-J7p63hRiAjw1NDEww1W7i37+ByIrOWO5XQQAzZ3VOcL0PNybwpfmV/N05zFAzwQ9USyEcX6t3UO+K5aqBQOIHw==} resolution: {integrity: sha512-J7p63hRiAjw1NDEww1W7i37+ByIrOWO5XQQAzZ3VOcL0PNybwpfmV/N05zFAzwQ9USyEcX6t3UO+K5aqBQOIHw==}
@@ -2827,6 +3008,9 @@ packages:
parse5@7.3.0: parse5@7.3.0:
resolution: {integrity: sha512-IInvU7fabl34qmi9gY8XOVxhYyMyuH2xUNpb2q8/Y+7552KlejkRvqvD19nMoUW/uQGGbqNpA6Tufu5FL5BZgw==} resolution: {integrity: sha512-IInvU7fabl34qmi9gY8XOVxhYyMyuH2xUNpb2q8/Y+7552KlejkRvqvD19nMoUW/uQGGbqNpA6Tufu5FL5BZgw==}
parse5@8.0.0:
resolution: {integrity: sha512-9m4m5GSgXjL4AjumKzq1Fgfp3Z8rsvjRNbnkVwfu2ImRqE5D0LnY2QfDen18FSY9C573YU5XxSapdHZTZ2WolA==}
path-data-parser@0.1.0: path-data-parser@0.1.0:
resolution: {integrity: sha512-NOnmBpt5Y2RWbuv0LMzsayp3lVylAHLPUTut412ZA3l+C4uw4ZVkQbjShYCQ8TCpUMdPapr4YjUqLYD6v68j+w==} resolution: {integrity: sha512-NOnmBpt5Y2RWbuv0LMzsayp3lVylAHLPUTut412ZA3l+C4uw4ZVkQbjShYCQ8TCpUMdPapr4YjUqLYD6v68j+w==}
@@ -2880,6 +3064,10 @@ packages:
resolution: {integrity: sha512-vkcDPrRZo1QZLbn5RLGPpg/WmIQ65qoWWhcGKf/b5eplkkarX0m9z8ppCat4mlOqUsWpyNuYgO3VRyrYHSzX5g==} resolution: {integrity: sha512-vkcDPrRZo1QZLbn5RLGPpg/WmIQ65qoWWhcGKf/b5eplkkarX0m9z8ppCat4mlOqUsWpyNuYgO3VRyrYHSzX5g==}
engines: {node: '>= 0.8.0'} engines: {node: '>= 0.8.0'}
pretty-format@27.5.1:
resolution: {integrity: sha512-Qb1gy5OrP5+zDf2Bvnzdl3jsTf1qXVMazbvCoKhtKqVs4/YK4ozX4gKQJJVyNe+cajNPn0KoC0MC3FUmaHWEmQ==}
engines: {node: ^10.13.0 || ^12.13.0 || ^14.15.0 || >=15.0.0}
process-nextick-args@2.0.1: process-nextick-args@2.0.1:
resolution: {integrity: sha512-3ouUOpQhtgrbOa17J7+uxOTpITYWaGP7/AhoR3+A+/1e9skrzelGi/dXzEYyvbxubEF6Wn2ypscTKiKJFFn1ag==} resolution: {integrity: sha512-3ouUOpQhtgrbOa17J7+uxOTpITYWaGP7/AhoR3+A+/1e9skrzelGi/dXzEYyvbxubEF6Wn2ypscTKiKJFFn1ag==}
@@ -2908,6 +3096,9 @@ packages:
peerDependencies: peerDependencies:
react: ^16.8.0 || ^17 || ^18 || ^19 react: ^16.8.0 || ^17 || ^18 || ^19
react-is@17.0.2:
resolution: {integrity: sha512-w2GsyukL62IJnlaff/nRegPQR94C/XXamvMWmSHRJ4y7Ts/4ocGRmTHvOs8PSE6pB3dWOrD/nueuU5sduBsQ4w==}
react-markdown@10.1.0: react-markdown@10.1.0:
resolution: {integrity: sha512-qKxVopLT/TyA6BX3Ue5NwabOsAzm0Q7kAPwq6L+wWDwisYs7R8vZ0nRXqq6rkueboxpkjvLGU9fWifiX/ZZFxQ==} resolution: {integrity: sha512-qKxVopLT/TyA6BX3Ue5NwabOsAzm0Q7kAPwq6L+wWDwisYs7R8vZ0nRXqq6rkueboxpkjvLGU9fWifiX/ZZFxQ==}
peerDependencies: peerDependencies:
@@ -2979,6 +3170,10 @@ packages:
readdir-glob@1.1.3: readdir-glob@1.1.3:
resolution: {integrity: sha512-v05I2k7xN8zXvPD9N+z/uhXPaj0sUFCe2rcWZIpBsqxfP7xXFQ0tipAd/wjj1YxWyWtUS5IDJpOG82JKt2EAVA==} resolution: {integrity: sha512-v05I2k7xN8zXvPD9N+z/uhXPaj0sUFCe2rcWZIpBsqxfP7xXFQ0tipAd/wjj1YxWyWtUS5IDJpOG82JKt2EAVA==}
redent@3.0.0:
resolution: {integrity: sha512-6tDA8g98We0zd0GvVeMT9arEOnTw9qM03L9cJXaCjrip1OO764RDBLBfrB4cwzNGDj5OA5ioymC9GkizgWJDUg==}
engines: {node: '>=8'}
rehype-highlight@7.0.2: rehype-highlight@7.0.2:
resolution: {integrity: sha512-k158pK7wdC2qL3M5NcZROZ2tR/l7zOzjxXd5VGdcfIyoijjQqpHd3JKtYSBDpDZ38UI2WJWuFAtkMDxmx5kstA==} resolution: {integrity: sha512-k158pK7wdC2qL3M5NcZROZ2tR/l7zOzjxXd5VGdcfIyoijjQqpHd3JKtYSBDpDZ38UI2WJWuFAtkMDxmx5kstA==}
@@ -3035,6 +3230,10 @@ packages:
safer-buffer@2.1.2: safer-buffer@2.1.2:
resolution: {integrity: sha512-YZo3K82SD7Riyi0E1EQPojLz7kpepnSQI9IyPbHHg1XXXevb5dJI7tpyN2ADxGcQbHG7vcyRHk0cbwqcQriUtg==} resolution: {integrity: sha512-YZo3K82SD7Riyi0E1EQPojLz7kpepnSQI9IyPbHHg1XXXevb5dJI7tpyN2ADxGcQbHG7vcyRHk0cbwqcQriUtg==}
saxes@6.0.0:
resolution: {integrity: sha512-xAg7SOnEhrm5zI3puOOKyy1OMcMlIJZYNJY7xLBwSze0UjhPLnWfj2GF2EpT0jmzaJKIWKHLsaSSajf35bcYnA==}
engines: {node: '>=v12.22.7'}
scheduler@0.27.0: scheduler@0.27.0:
resolution: {integrity: sha512-eNv+WrVbKu1f3vbYJT/xtiF5syA5HPIMtf9IgY/nKg0sWqzAUEvqY/xm7OcZc/qafLx/iO9FgOmeSAp4v5ti/Q==} resolution: {integrity: sha512-eNv+WrVbKu1f3vbYJT/xtiF5syA5HPIMtf9IgY/nKg0sWqzAUEvqY/xm7OcZc/qafLx/iO9FgOmeSAp4v5ti/Q==}
@@ -3123,6 +3322,10 @@ packages:
resolution: {integrity: sha512-gmBGslpoQJtgnMAvOVqGZpEz9dyoKTCzy2nfz/n8aIFhN/jCE/rCmcxabB6jOOHV+0WNnylOxaxBQPSvcWklhA==} resolution: {integrity: sha512-gmBGslpoQJtgnMAvOVqGZpEz9dyoKTCzy2nfz/n8aIFhN/jCE/rCmcxabB6jOOHV+0WNnylOxaxBQPSvcWklhA==}
engines: {node: '>=12'} engines: {node: '>=12'}
strip-indent@3.0.0:
resolution: {integrity: sha512-laJTa3Jb+VQpaC6DseHhF7dXVqHTfJPCRDaEbid/drOhgitgYku/letMUqOXFoWV0zIIUbjpdH2t+tYj4bQMRQ==}
engines: {node: '>=8'}
strip-json-comments@3.1.1: strip-json-comments@3.1.1:
resolution: {integrity: sha512-6fPc+R4ihwqP6N/aIv2f1gMH8lOVtWQHoqC4yK6oSDVVocumAsfCqjkXnqiYMhmMwS/mEHLp7Vehlt3ql6lEig==} resolution: {integrity: sha512-6fPc+R4ihwqP6N/aIv2f1gMH8lOVtWQHoqC4yK6oSDVVocumAsfCqjkXnqiYMhmMwS/mEHLp7Vehlt3ql6lEig==}
engines: {node: '>=8'} engines: {node: '>=8'}
@@ -3155,6 +3358,9 @@ packages:
resolution: {integrity: sha512-MpUEN2OodtUzxvKQl72cUF7RQ5EiHsGvSsVG0ia9c5RbWGL2CI4C7EpPS8UTBIplnlzZiNuV56w+FuNxy3ty2Q==} resolution: {integrity: sha512-MpUEN2OodtUzxvKQl72cUF7RQ5EiHsGvSsVG0ia9c5RbWGL2CI4C7EpPS8UTBIplnlzZiNuV56w+FuNxy3ty2Q==}
engines: {node: '>=10'} engines: {node: '>=10'}
symbol-tree@3.2.4:
resolution: {integrity: sha512-9QNk5KwDF+Bvz+PyObkmSYjI5ksVUYtjW7AU22r2NKcfLJcXp96hkDWU3+XndOsUb+AQ9QhfzfCT2O+CNWT5Tw==}
tailwind-merge@3.4.0: tailwind-merge@3.4.0:
resolution: {integrity: sha512-uSaO4gnW+b3Y2aWoWfFpX62vn2sR3skfhbjsEnaBI81WD1wBLlHZe5sWf0AqjksNdYTbGBEd0UasQMT3SNV15g==} resolution: {integrity: sha512-uSaO4gnW+b3Y2aWoWfFpX62vn2sR3skfhbjsEnaBI81WD1wBLlHZe5sWf0AqjksNdYTbGBEd0UasQMT3SNV15g==}
@@ -3197,10 +3403,25 @@ packages:
resolution: {integrity: sha512-azl+t0z7pw/z958Gy9svOTuzqIk6xq+NSheJzn5MMWtWTFywIacg2wUlzKFGtt3cthx0r2SxMK0yzJOR0IES7Q==} resolution: {integrity: sha512-azl+t0z7pw/z958Gy9svOTuzqIk6xq+NSheJzn5MMWtWTFywIacg2wUlzKFGtt3cthx0r2SxMK0yzJOR0IES7Q==}
engines: {node: '>=14.0.0'} engines: {node: '>=14.0.0'}
tldts-core@7.0.19:
resolution: {integrity: sha512-lJX2dEWx0SGH4O6p+7FPwYmJ/bu1JbcGJ8RLaG9b7liIgZ85itUVEPbMtWRVrde/0fnDPEPHW10ZsKW3kVsE9A==}
tldts@7.0.19:
resolution: {integrity: sha512-8PWx8tvC4jDB39BQw1m4x8y5MH1BcQ5xHeL2n7UVFulMPH/3Q0uiamahFJ3lXA0zO2SUyRXuVVbWSDmstlt9YA==}
hasBin: true
totalist@3.0.1: totalist@3.0.1:
resolution: {integrity: sha512-sf4i37nQ2LBx4m3wB74y+ubopq6W/dIzXg0FDGjsYnZHVa1Da8FH853wlL2gtUhg+xJXjfk3kUZS3BRoQeoQBQ==} resolution: {integrity: sha512-sf4i37nQ2LBx4m3wB74y+ubopq6W/dIzXg0FDGjsYnZHVa1Da8FH853wlL2gtUhg+xJXjfk3kUZS3BRoQeoQBQ==}
engines: {node: '>=6'} engines: {node: '>=6'}
tough-cookie@6.0.0:
resolution: {integrity: sha512-kXuRi1mtaKMrsLUxz3sQYvVl37B0Ns6MzfrtV5DvJceE9bPyspOqk9xxv7XbZWcfLWbFmm997vl83qUWVJA64w==}
engines: {node: '>=16'}
tr46@6.0.0:
resolution: {integrity: sha512-bLVMLPtstlZ4iMQHpFHTR7GAGj2jxi8Dg0s2h2MafAE4uSWF98FC/3MomU51iQAMf8/qDUbKWf5GxuvvVcXEhw==}
engines: {node: '>=20'}
tree-kill@1.2.2: tree-kill@1.2.2:
resolution: {integrity: sha512-L0Orpi8qGpRG//Nd+H90vFB+3iHnue1zSSGmNOOCh1GLJ7rUKVwV2HvijphGQS2UmhUZewS9VgvxYIdgr+fG1A==} resolution: {integrity: sha512-L0Orpi8qGpRG//Nd+H90vFB+3iHnue1zSSGmNOOCh1GLJ7rUKVwV2HvijphGQS2UmhUZewS9VgvxYIdgr+fG1A==}
hasBin: true hasBin: true
@@ -3409,9 +3630,25 @@ packages:
vscode-uri@3.0.8: vscode-uri@3.0.8:
resolution: {integrity: sha512-AyFQ0EVmsOZOlAnxoFOGOq1SQDWAB7C6aqMGS23svWAllfOaxbuFvcT8D1i8z3Gyn8fraVeZNNmN6e9bxxXkKw==} resolution: {integrity: sha512-AyFQ0EVmsOZOlAnxoFOGOq1SQDWAB7C6aqMGS23svWAllfOaxbuFvcT8D1i8z3Gyn8fraVeZNNmN6e9bxxXkKw==}
w3c-xmlserializer@5.0.0:
resolution: {integrity: sha512-o8qghlI8NZHU1lLPrpi2+Uq7abh4GGPpYANlalzWxyWteJOCsr/P+oPBA49TOLu5FTZO4d3F9MnWJfiMo4BkmA==}
engines: {node: '>=18'}
web-namespaces@2.0.1: web-namespaces@2.0.1:
resolution: {integrity: sha512-bKr1DkiNa2krS7qxNtdrtHAmzuYGFQLiQ13TsorsdT6ULTkPLKuu5+GsFpDlg6JFjUTwX2DyhMPG2be8uPrqsQ==} resolution: {integrity: sha512-bKr1DkiNa2krS7qxNtdrtHAmzuYGFQLiQ13TsorsdT6ULTkPLKuu5+GsFpDlg6JFjUTwX2DyhMPG2be8uPrqsQ==}
webidl-conversions@8.0.1:
resolution: {integrity: sha512-BMhLD/Sw+GbJC21C/UgyaZX41nPt8bUTg+jWyDeg7e7YN4xOM05YPSIXceACnXVtqyEw/LMClUQMtMZ+PGGpqQ==}
engines: {node: '>=20'}
whatwg-mimetype@4.0.0:
resolution: {integrity: sha512-QaKxh0eNIi2mE9p2vEdzfagOKHCcj1pJ56EEHGQOVxp8r9/iszLUUV7v89x9O1p/T+NlTM5W7jW6+cz4Fq1YVg==}
engines: {node: '>=18'}
whatwg-url@15.1.0:
resolution: {integrity: sha512-2ytDk0kiEj/yu90JOAp44PVPUkO9+jVhyf+SybKlRHSDlvOOZhdPIrr7xTH64l4WixO2cP+wQIcgujkGBPPz6g==}
engines: {node: '>=20'}
which@2.0.2: which@2.0.2:
resolution: {integrity: sha512-BLI3Tl1TW3Pvl70l3yq3Y64i+awpwXqsGBYWkkqMtnbXgrMD+yj7rhW0kuEDxzJaYXGjEW5ogapKNMEKNMjibA==} resolution: {integrity: sha512-BLI3Tl1TW3Pvl70l3yq3Y64i+awpwXqsGBYWkkqMtnbXgrMD+yj7rhW0kuEDxzJaYXGjEW5ogapKNMEKNMjibA==}
engines: {node: '>= 8'} engines: {node: '>= 8'}
@@ -3434,6 +3671,25 @@ packages:
resolution: {integrity: sha512-si7QWI6zUMq56bESFvagtmzMdGOtoxfR+Sez11Mobfc7tm+VkUckk9bW2UeffTGVUbOksxmSw0AA2gs8g71NCQ==} resolution: {integrity: sha512-si7QWI6zUMq56bESFvagtmzMdGOtoxfR+Sez11Mobfc7tm+VkUckk9bW2UeffTGVUbOksxmSw0AA2gs8g71NCQ==}
engines: {node: '>=12'} engines: {node: '>=12'}
ws@8.18.3:
resolution: {integrity: sha512-PEIGCY5tSlUt50cqyMXfCzX+oOPqN0vuGqWzbcJ2xvnkzkq46oOpz7dQaTDBdfICb4N14+GARUDw2XV2N4tvzg==}
engines: {node: '>=10.0.0'}
peerDependencies:
bufferutil: ^4.0.1
utf-8-validate: '>=5.0.2'
peerDependenciesMeta:
bufferutil:
optional: true
utf-8-validate:
optional: true
xml-name-validator@5.0.0:
resolution: {integrity: sha512-EvGK8EJ3DhaHfbRlETOWAS5pO9MZITeauHKJyb8wyajUfQUenkIg2MvLDTZ4T/TgIcm3HU0TFBgWWboAZ30UHg==}
engines: {node: '>=18'}
xmlchars@2.2.0:
resolution: {integrity: sha512-JZnDKK8B0RCDw84FNdDAIpZK+JuJw+s7Lz8nksI7SIuU3UXJJslUthsi+uWBUYOwPFwW7W7PRLRfUKpxjtjFCw==}
y18n@5.0.8: y18n@5.0.8:
resolution: {integrity: sha512-0pfFzegeDWJHJIAmTLRP2DwHjdF5s7jo9tuztdQxAhINCdvS+3nGINqPd00AphqJR/0LhANUS6/+7SCb98YOfA==} resolution: {integrity: sha512-0pfFzegeDWJHJIAmTLRP2DwHjdF5s7jo9tuztdQxAhINCdvS+3nGINqPd00AphqJR/0LhANUS6/+7SCb98YOfA==}
engines: {node: '>=10'} engines: {node: '>=10'}
@@ -3486,11 +3742,33 @@ packages:
snapshots: snapshots:
'@acemir/cssom@0.9.30': {}
'@adobe/css-tools@4.4.4': {}
'@antfu/install-pkg@1.1.0': '@antfu/install-pkg@1.1.0':
dependencies: dependencies:
package-manager-detector: 1.6.0 package-manager-detector: 1.6.0
tinyexec: 1.0.2 tinyexec: 1.0.2
'@asamuzakjp/css-color@4.1.1':
dependencies:
'@csstools/css-calc': 2.1.4(@csstools/css-parser-algorithms@3.0.5(@csstools/css-tokenizer@3.0.4))(@csstools/css-tokenizer@3.0.4)
'@csstools/css-color-parser': 3.1.0(@csstools/css-parser-algorithms@3.0.5(@csstools/css-tokenizer@3.0.4))(@csstools/css-tokenizer@3.0.4)
'@csstools/css-parser-algorithms': 3.0.5(@csstools/css-tokenizer@3.0.4)
'@csstools/css-tokenizer': 3.0.4
lru-cache: 11.2.4
'@asamuzakjp/dom-selector@6.7.6':
dependencies:
'@asamuzakjp/nwsapi': 2.3.9
bidi-js: 1.0.3
css-tree: 3.1.0
is-potential-custom-element-name: 1.0.1
lru-cache: 11.2.4
'@asamuzakjp/nwsapi@2.3.9': {}
'@babel/code-frame@7.27.1': '@babel/code-frame@7.27.1':
dependencies: dependencies:
'@babel/helper-validator-identifier': 7.28.5 '@babel/helper-validator-identifier': 7.28.5
@@ -3580,6 +3858,8 @@ snapshots:
'@babel/core': 7.28.5 '@babel/core': 7.28.5
'@babel/helper-plugin-utils': 7.27.1 '@babel/helper-plugin-utils': 7.27.1
'@babel/runtime@7.28.4': {}
'@babel/template@7.27.2': '@babel/template@7.27.2':
dependencies: dependencies:
'@babel/code-frame': 7.27.1 '@babel/code-frame': 7.27.1
@@ -3622,6 +3902,28 @@ snapshots:
'@chevrotain/utils@11.0.3': {} '@chevrotain/utils@11.0.3': {}
'@csstools/color-helpers@5.1.0': {}
'@csstools/css-calc@2.1.4(@csstools/css-parser-algorithms@3.0.5(@csstools/css-tokenizer@3.0.4))(@csstools/css-tokenizer@3.0.4)':
dependencies:
'@csstools/css-parser-algorithms': 3.0.5(@csstools/css-tokenizer@3.0.4)
'@csstools/css-tokenizer': 3.0.4
'@csstools/css-color-parser@3.1.0(@csstools/css-parser-algorithms@3.0.5(@csstools/css-tokenizer@3.0.4))(@csstools/css-tokenizer@3.0.4)':
dependencies:
'@csstools/color-helpers': 5.1.0
'@csstools/css-calc': 2.1.4(@csstools/css-parser-algorithms@3.0.5(@csstools/css-tokenizer@3.0.4))(@csstools/css-tokenizer@3.0.4)
'@csstools/css-parser-algorithms': 3.0.5(@csstools/css-tokenizer@3.0.4)
'@csstools/css-tokenizer': 3.0.4
'@csstools/css-parser-algorithms@3.0.5(@csstools/css-tokenizer@3.0.4)':
dependencies:
'@csstools/css-tokenizer': 3.0.4
'@csstools/css-syntax-patches-for-csstree@1.0.22': {}
'@csstools/css-tokenizer@3.0.4': {}
'@esbuild/aix-ppc64@0.27.2': '@esbuild/aix-ppc64@0.27.2':
optional: true optional: true
@@ -3746,6 +4048,8 @@ snapshots:
'@eslint/core': 0.17.0 '@eslint/core': 0.17.0
levn: 0.4.1 levn: 0.4.1
'@exodus/bytes@1.8.0': {}
'@floating-ui/core@1.7.3': '@floating-ui/core@1.7.3':
dependencies: dependencies:
'@floating-ui/utils': 0.2.10 '@floating-ui/utils': 0.2.10
@@ -4406,10 +4710,46 @@ snapshots:
'@tanstack/query-core': 5.90.16 '@tanstack/query-core': 5.90.16
react: 19.2.3 react: 19.2.3
'@testing-library/dom@10.4.1':
dependencies:
'@babel/code-frame': 7.27.1
'@babel/runtime': 7.28.4
'@types/aria-query': 5.0.4
aria-query: 5.3.0
dom-accessibility-api: 0.5.16
lz-string: 1.5.0
picocolors: 1.1.1
pretty-format: 27.5.1
'@testing-library/jest-dom@6.9.1':
dependencies:
'@adobe/css-tools': 4.4.4
aria-query: 5.3.2
css.escape: 1.5.1
dom-accessibility-api: 0.6.3
picocolors: 1.1.1
redent: 3.0.0
'@testing-library/react@16.3.1(@testing-library/dom@10.4.1)(@types/react-dom@19.2.3(@types/react@19.2.7))(@types/react@19.2.7)(react-dom@19.2.3(react@19.2.3))(react@19.2.3)':
dependencies:
'@babel/runtime': 7.28.4
'@testing-library/dom': 10.4.1
react: 19.2.3
react-dom: 19.2.3(react@19.2.3)
optionalDependencies:
'@types/react': 19.2.7
'@types/react-dom': 19.2.3(@types/react@19.2.7)
'@testing-library/user-event@14.6.1(@testing-library/dom@10.4.1)':
dependencies:
'@testing-library/dom': 10.4.1
'@types/archiver@7.0.0': '@types/archiver@7.0.0':
dependencies: dependencies:
'@types/readdir-glob': 1.1.5 '@types/readdir-glob': 1.1.5
'@types/aria-query@5.0.4': {}
'@types/babel__core@7.20.5': '@types/babel__core@7.20.5':
dependencies: dependencies:
'@babel/parser': 7.28.5 '@babel/parser': 7.28.5
@@ -4760,7 +5100,7 @@ snapshots:
sirv: 3.0.2 sirv: 3.0.2
tinyglobby: 0.2.15 tinyglobby: 0.2.15
tinyrainbow: 2.0.0 tinyrainbow: 2.0.0
vitest: 3.2.4(@types/debug@4.1.12)(@types/node@24.10.4)(@vitest/ui@3.2.4)(jiti@2.6.1)(lightningcss@1.30.2) vitest: 3.2.4(@types/debug@4.1.12)(@types/node@24.10.4)(@vitest/ui@3.2.4)(jiti@2.6.1)(jsdom@27.4.0)(lightningcss@1.30.2)
'@vitest/utils@3.2.4': '@vitest/utils@3.2.4':
dependencies: dependencies:
@@ -4797,6 +5137,8 @@ snapshots:
dependencies: dependencies:
color-convert: 2.0.1 color-convert: 2.0.1
ansi-styles@5.2.0: {}
ansi-styles@6.2.3: {} ansi-styles@6.2.3: {}
archiver-utils@5.0.2: archiver-utils@5.0.2:
@@ -4828,6 +5170,12 @@ snapshots:
dependencies: dependencies:
tslib: 2.8.1 tslib: 2.8.1
aria-query@5.3.0:
dependencies:
dequal: 2.0.3
aria-query@5.3.2: {}
assertion-error@2.0.1: {} assertion-error@2.0.1: {}
async@3.2.6: {} async@3.2.6: {}
@@ -4863,6 +5211,10 @@ snapshots:
baseline-browser-mapping@2.9.11: {} baseline-browser-mapping@2.9.11: {}
bidi-js@1.0.3:
dependencies:
require-from-string: 2.0.2
brace-expansion@1.1.12: brace-expansion@1.1.12:
dependencies: dependencies:
balanced-match: 1.0.2 balanced-match: 1.0.2
@@ -5033,6 +5385,20 @@ snapshots:
shebang-command: 2.0.0 shebang-command: 2.0.0
which: 2.0.2 which: 2.0.2
css-tree@3.1.0:
dependencies:
mdn-data: 2.12.2
source-map-js: 1.2.1
css.escape@1.5.1: {}
cssstyle@5.3.6:
dependencies:
'@asamuzakjp/css-color': 4.1.1
'@csstools/css-syntax-patches-for-csstree': 1.0.22
css-tree: 3.1.0
lru-cache: 11.2.4
csstype@3.2.3: {} csstype@3.2.3: {}
cytoscape-cose-bilkent@4.1.0(cytoscape@3.33.1): cytoscape-cose-bilkent@4.1.0(cytoscape@3.33.1):
@@ -5219,6 +5585,11 @@ snapshots:
d3: 7.9.0 d3: 7.9.0
lodash-es: 4.17.22 lodash-es: 4.17.22
data-urls@6.0.0:
dependencies:
whatwg-mimetype: 4.0.0
whatwg-url: 15.1.0
date-fns@4.1.0: {} date-fns@4.1.0: {}
dayjs@1.11.19: {} dayjs@1.11.19: {}
@@ -5229,6 +5600,8 @@ snapshots:
optionalDependencies: optionalDependencies:
supports-color: 10.2.2 supports-color: 10.2.2
decimal.js@10.6.0: {}
decode-named-character-reference@1.2.0: decode-named-character-reference@1.2.0:
dependencies: dependencies:
character-entities: 2.0.2 character-entities: 2.0.2
@@ -5255,6 +5628,10 @@ snapshots:
diff@8.0.2: {} diff@8.0.2: {}
dom-accessibility-api@0.5.16: {}
dom-accessibility-api@0.6.3: {}
dompurify@3.2.7: dompurify@3.2.7:
optionalDependencies: optionalDependencies:
'@types/trusted-types': 2.0.7 '@types/trusted-types': 2.0.7
@@ -5635,10 +6012,23 @@ snapshots:
hono@4.11.3: {} hono@4.11.3: {}
html-encoding-sniffer@6.0.0:
dependencies:
'@exodus/bytes': 1.8.0
transitivePeerDependencies:
- '@exodus/crypto'
html-url-attributes@3.0.1: {} html-url-attributes@3.0.1: {}
html-void-elements@3.0.0: {} html-void-elements@3.0.0: {}
http-proxy-agent@7.0.2:
dependencies:
agent-base: 7.1.4
debug: 4.4.3(supports-color@10.2.2)
transitivePeerDependencies:
- supports-color
https-proxy-agent@7.0.6(supports-color@10.2.2): https-proxy-agent@7.0.6(supports-color@10.2.2):
dependencies: dependencies:
agent-base: 7.1.4 agent-base: 7.1.4
@@ -5663,6 +6053,8 @@ snapshots:
imurmurhash@0.1.4: {} imurmurhash@0.1.4: {}
indent-string@4.0.0: {}
index-to-position@1.2.0: {} index-to-position@1.2.0: {}
inherits@2.0.4: {} inherits@2.0.4: {}
@@ -5694,6 +6086,8 @@ snapshots:
is-plain-obj@4.1.0: {} is-plain-obj@4.1.0: {}
is-potential-custom-element-name@1.0.1: {}
is-stream@2.0.1: {} is-stream@2.0.1: {}
isarray@1.0.0: {} isarray@1.0.0: {}
@@ -5718,6 +6112,34 @@ snapshots:
dependencies: dependencies:
argparse: 2.0.1 argparse: 2.0.1
jsdom@27.4.0:
dependencies:
'@acemir/cssom': 0.9.30
'@asamuzakjp/dom-selector': 6.7.6
'@exodus/bytes': 1.8.0
cssstyle: 5.3.6
data-urls: 6.0.0
decimal.js: 10.6.0
html-encoding-sniffer: 6.0.0
http-proxy-agent: 7.0.2
https-proxy-agent: 7.0.6(supports-color@10.2.2)
is-potential-custom-element-name: 1.0.1
parse5: 8.0.0
saxes: 6.0.0
symbol-tree: 3.2.4
tough-cookie: 6.0.0
w3c-xmlserializer: 5.0.0
webidl-conversions: 8.0.1
whatwg-mimetype: 4.0.0
whatwg-url: 15.1.0
ws: 8.18.3
xml-name-validator: 5.0.0
transitivePeerDependencies:
- '@exodus/crypto'
- bufferutil
- supports-color
- utf-8-validate
jsesc@3.1.0: {} jsesc@3.1.0: {}
json-buffer@3.0.1: {} json-buffer@3.0.1: {}
@@ -5834,6 +6256,8 @@ snapshots:
lru-cache@10.4.3: {} lru-cache@10.4.3: {}
lru-cache@11.2.4: {}
lru-cache@5.1.1: lru-cache@5.1.1:
dependencies: dependencies:
yallist: 3.1.1 yallist: 3.1.1
@@ -5842,6 +6266,8 @@ snapshots:
dependencies: dependencies:
react: 19.2.3 react: 19.2.3
lz-string@1.5.0: {}
magic-string@0.30.21: magic-string@0.30.21:
dependencies: dependencies:
'@jridgewell/sourcemap-codec': 1.5.5 '@jridgewell/sourcemap-codec': 1.5.5
@@ -6007,6 +6433,8 @@ snapshots:
dependencies: dependencies:
'@types/mdast': 4.0.4 '@types/mdast': 4.0.4
mdn-data@2.12.2: {}
mermaid@11.12.2: mermaid@11.12.2:
dependencies: dependencies:
'@braintree/sanitize-url': 7.1.1 '@braintree/sanitize-url': 7.1.1
@@ -6227,6 +6655,8 @@ snapshots:
dependencies: dependencies:
mime-db: 1.52.0 mime-db: 1.52.0
min-indent@1.0.1: {}
minimatch@3.1.2: minimatch@3.1.2:
dependencies: dependencies:
brace-expansion: 1.1.12 brace-expansion: 1.1.12
@@ -6320,6 +6750,10 @@ snapshots:
dependencies: dependencies:
entities: 6.0.1 entities: 6.0.1
parse5@8.0.0:
dependencies:
entities: 6.0.1
path-data-parser@0.1.0: {} path-data-parser@0.1.0: {}
path-exists@4.0.0: {} path-exists@4.0.0: {}
@@ -6364,6 +6798,12 @@ snapshots:
prelude-ls@1.2.1: {} prelude-ls@1.2.1: {}
pretty-format@27.5.1:
dependencies:
ansi-regex: 5.0.1
ansi-styles: 5.2.0
react-is: 17.0.2
process-nextick-args@2.0.1: {} process-nextick-args@2.0.1: {}
process@0.11.10: {} process@0.11.10: {}
@@ -6383,6 +6823,8 @@ snapshots:
dependencies: dependencies:
react: 19.2.3 react: 19.2.3
react-is@17.0.2: {}
react-markdown@10.1.0(@types/react@19.2.7)(react@19.2.3): react-markdown@10.1.0(@types/react@19.2.7)(react@19.2.3):
dependencies: dependencies:
'@types/hast': 3.0.4 '@types/hast': 3.0.4
@@ -6468,6 +6910,11 @@ snapshots:
dependencies: dependencies:
minimatch: 5.1.6 minimatch: 5.1.6
redent@3.0.0:
dependencies:
indent-string: 4.0.0
strip-indent: 3.0.0
rehype-highlight@7.0.2: rehype-highlight@7.0.2:
dependencies: dependencies:
'@types/hast': 3.0.4 '@types/hast': 3.0.4
@@ -6571,6 +7018,10 @@ snapshots:
safer-buffer@2.1.2: {} safer-buffer@2.1.2: {}
saxes@6.0.0:
dependencies:
xmlchars: 2.2.0
scheduler@0.27.0: {} scheduler@0.27.0: {}
semver@6.3.1: {} semver@6.3.1: {}
@@ -6654,6 +7105,10 @@ snapshots:
dependencies: dependencies:
ansi-regex: 6.2.2 ansi-regex: 6.2.2
strip-indent@3.0.0:
dependencies:
min-indent: 1.0.1
strip-json-comments@3.1.1: {} strip-json-comments@3.1.1: {}
strip-json-comments@5.0.3: {} strip-json-comments@5.0.3: {}
@@ -6682,6 +7137,8 @@ snapshots:
dependencies: dependencies:
has-flag: 4.0.0 has-flag: 4.0.0
symbol-tree@3.2.4: {}
tailwind-merge@3.4.0: {} tailwind-merge@3.4.0: {}
tailwindcss@4.1.18: {} tailwindcss@4.1.18: {}
@@ -6720,8 +7177,22 @@ snapshots:
tinyspy@4.0.4: {} tinyspy@4.0.4: {}
tldts-core@7.0.19: {}
tldts@7.0.19:
dependencies:
tldts-core: 7.0.19
totalist@3.0.1: {} totalist@3.0.1: {}
tough-cookie@6.0.0:
dependencies:
tldts: 7.0.19
tr46@6.0.0:
dependencies:
punycode: 2.3.1
tree-kill@1.2.2: {} tree-kill@1.2.2: {}
trim-lines@3.0.1: {} trim-lines@3.0.1: {}
@@ -6876,7 +7347,7 @@ snapshots:
jiti: 2.6.1 jiti: 2.6.1
lightningcss: 1.30.2 lightningcss: 1.30.2
vitest@3.2.4(@types/debug@4.1.12)(@types/node@24.10.4)(@vitest/ui@3.2.4)(jiti@2.6.1)(lightningcss@1.30.2): vitest@3.2.4(@types/debug@4.1.12)(@types/node@24.10.4)(@vitest/ui@3.2.4)(jiti@2.6.1)(jsdom@27.4.0)(lightningcss@1.30.2):
dependencies: dependencies:
'@types/chai': 5.2.3 '@types/chai': 5.2.3
'@vitest/expect': 3.2.4 '@vitest/expect': 3.2.4
@@ -6905,6 +7376,7 @@ snapshots:
'@types/debug': 4.1.12 '@types/debug': 4.1.12
'@types/node': 24.10.4 '@types/node': 24.10.4
'@vitest/ui': 3.2.4(vitest@3.2.4) '@vitest/ui': 3.2.4(vitest@3.2.4)
jsdom: 27.4.0
transitivePeerDependencies: transitivePeerDependencies:
- jiti - jiti
- less - less
@@ -6936,8 +7408,21 @@ snapshots:
vscode-uri@3.0.8: {} vscode-uri@3.0.8: {}
w3c-xmlserializer@5.0.0:
dependencies:
xml-name-validator: 5.0.0
web-namespaces@2.0.1: {} web-namespaces@2.0.1: {}
webidl-conversions@8.0.1: {}
whatwg-mimetype@4.0.0: {}
whatwg-url@15.1.0:
dependencies:
tr46: 6.0.0
webidl-conversions: 8.0.1
which@2.0.2: which@2.0.2:
dependencies: dependencies:
isexe: 2.0.0 isexe: 2.0.0
@@ -6961,6 +7446,12 @@ snapshots:
string-width: 5.1.2 string-width: 5.1.2
strip-ansi: 7.1.2 strip-ansi: 7.1.2
ws@8.18.3: {}
xml-name-validator@5.0.0: {}
xmlchars@2.2.0: {}
y18n@5.0.8: {} y18n@5.0.8: {}
yallist@3.1.1: {} yallist@3.1.1: {}