From cd9a552bf8e273cb2c9cd2aa436d96ca11ec694a Mon Sep 17 00:00:00 2001 From: Justin Carlson <40642470+justcarlson@users.noreply.github.com> Date: Sun, 4 Jan 2026 14:05:59 -0500 Subject: [PATCH] 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> --- frontend/package.json | 7 +- frontend/src/App.css | 42 -- .../file-browser/FileBrowserSheet.tsx | 17 +- .../file-browser/FilePreviewDialog.tsx | 1 + .../file-browser/GitChangesSheet.tsx | 96 ++-- .../file-browser/MobileFilePreviewModal.tsx | 27 +- frontend/src/components/layout/Header.tsx | 53 -- .../components/layout/RepoDetailHeader.tsx | 134 ----- .../components/model/ModelSelectDialog.tsx | 2 +- frontend/src/components/repo/RepoList.tsx | 92 +--- .../src/components/repo/RepoMcpDialog.tsx | 189 +++---- .../session/DeleteSessionDialog.tsx | 2 +- .../session/EditSessionTitleDialog.tsx | 2 +- .../session/SessionDetailHeader.tsx | 284 ---------- .../src/components/session/SessionList.tsx | 90 +--- .../components/settings/ProviderSettings.tsx | 46 +- .../components/settings/SettingsDialog.tsx | 2 +- frontend/src/components/ui/delete-dialog.tsx | 2 +- frontend/src/components/ui/dialog.test.tsx | 134 +++++ frontend/src/components/ui/dialog.tsx | 63 ++- .../src/components/ui/fullscreen-sheet.tsx | 63 +++ frontend/src/components/ui/header.tsx | 227 ++++++++ frontend/src/components/ui/list-toolbar.tsx | 80 +++ .../src/components/ui/page-header.test.tsx | 68 +++ frontend/src/components/ui/page-header.tsx | 25 + frontend/src/index.css | 10 +- frontend/src/pages/RepoDetail.tsx | 93 +++- frontend/src/pages/Repos.tsx | 47 +- frontend/src/pages/SessionDetail.tsx | 127 ++++- frontend/src/pages/Settings.tsx | 43 +- frontend/src/pages/Workspace.tsx | 27 +- frontend/src/test/setup.ts | 1 + frontend/vitest.config.ts | 18 + pnpm-lock.yaml | 499 +++++++++++++++++- 34 files changed, 1627 insertions(+), 986 deletions(-) delete mode 100644 frontend/src/App.css delete mode 100644 frontend/src/components/layout/Header.tsx delete mode 100644 frontend/src/components/layout/RepoDetailHeader.tsx delete mode 100644 frontend/src/components/session/SessionDetailHeader.tsx create mode 100644 frontend/src/components/ui/dialog.test.tsx create mode 100644 frontend/src/components/ui/fullscreen-sheet.tsx create mode 100644 frontend/src/components/ui/header.tsx create mode 100644 frontend/src/components/ui/list-toolbar.tsx create mode 100644 frontend/src/components/ui/page-header.test.tsx create mode 100644 frontend/src/components/ui/page-header.tsx create mode 100644 frontend/src/test/setup.ts create mode 100644 frontend/vitest.config.ts diff --git a/frontend/package.json b/frontend/package.json index 13c49927..3ca57cc8 100644 --- a/frontend/package.json +++ b/frontend/package.json @@ -6,7 +6,8 @@ "dev": "vite", "build": "tsc -b && vite build", "lint": "eslint .", - "preview": "vite preview" + "preview": "vite preview", + "test": "vitest" }, "dependencies": { "@hookform/resolvers": "^5.2.2", @@ -48,6 +49,9 @@ }, "devDependencies": { "@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/react": "^19.2.2", "@types/react-dom": "^19.2.2", @@ -57,6 +61,7 @@ "eslint-plugin-react-hooks": "^5.2.0", "eslint-plugin-react-refresh": "^0.4.22", "globals": "^16.4.0", + "jsdom": "^27.4.0", "openapi-typescript": "^7.10.1", "postcss": "^8.5.6", "tailwindcss": "^4.1.14", diff --git a/frontend/src/App.css b/frontend/src/App.css deleted file mode 100644 index b9d355df..00000000 --- a/frontend/src/App.css +++ /dev/null @@ -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; -} diff --git a/frontend/src/components/file-browser/FileBrowserSheet.tsx b/frontend/src/components/file-browser/FileBrowserSheet.tsx index 2348203c..e66a076d 100644 --- a/frontend/src/components/file-browser/FileBrowserSheet.tsx +++ b/frontend/src/components/file-browser/FileBrowserSheet.tsx @@ -2,6 +2,7 @@ import { useEffect, useState, memo, useCallback, useRef } from 'react' import { FileBrowser } from './FileBrowser' import { Button } from '@/components/ui/button' import { PathDisplay } from '@/components/ui/path-display' +import { FullscreenSheet, FullscreenSheetHeader, FullscreenSheetContent } from '@/components/ui/fullscreen-sheet' import { X } from 'lucide-react' import { GPU_ACCELERATED_STYLE, MODAL_TRANSITION_MS } from '@/lib/utils' import { useSwipeBack } from '@/hooks/useMobile' @@ -37,6 +38,7 @@ export const FileBrowserSheet = memo(function FileBrowserSheet({ isOpen, onClose return () => clearTimeout(timer) } }, [isOpen]) + const handleDirectoryLoad = useCallback((info: { workspaceRoot?: string; currentPath: string }) => { if (!info.currentPath || info.currentPath === '.' || info.currentPath === '') { setDisplayPath('/') @@ -94,11 +96,8 @@ export const FileBrowserSheet = memo(function FileBrowserSheet({ isOpen, onClose transition: 'opacity 150ms ease-out', }} > -
-
+ +
{(displayPath === '/' || !repoName) && ( @@ -119,17 +118,17 @@ export const FileBrowserSheet = memo(function FileBrowserSheet({ isOpen, onClose )}
-
+
-
+ -
-
+ +
) }) diff --git a/frontend/src/components/file-browser/FilePreviewDialog.tsx b/frontend/src/components/file-browser/FilePreviewDialog.tsx index 12ef5a0f..a0480c94 100644 --- a/frontend/src/components/file-browser/FilePreviewDialog.tsx +++ b/frontend/src/components/file-browser/FilePreviewDialog.tsx @@ -61,6 +61,7 @@ export function FilePreviewDialog({ isOpen, onClose, filePath, repoBasePath, onF
{isLoading ? ( diff --git a/frontend/src/components/file-browser/GitChangesSheet.tsx b/frontend/src/components/file-browser/GitChangesSheet.tsx index 6f2f38cb..ea3d3e97 100644 --- a/frontend/src/components/file-browser/GitChangesSheet.tsx +++ b/frontend/src/components/file-browser/GitChangesSheet.tsx @@ -1,12 +1,14 @@ import { useState, useEffect, useRef } from 'react' -import { Dialog, DialogContent } from '@/components/ui/dialog' +import { createPortal } from 'react-dom' import { GitChangesPanel } from './GitChangesPanel' import { FileDiffView } from './FileDiffView' import { FilePreviewDialog } from './FilePreviewDialog' +import { FullscreenSheet, FullscreenSheetHeader, FullscreenSheetContent } from '@/components/ui/fullscreen-sheet' import { Button } from '@/components/ui/button' import { X, GitBranch } from 'lucide-react' import { useMobile, useSwipeBack } from '@/hooks/useMobile' import { useQueryClient } from '@tanstack/react-query' +import { GPU_ACCELERATED_STYLE, MODAL_TRANSITION_MS } from '@/lib/utils' interface GitChangesSheetProps { isOpen: boolean @@ -63,39 +65,66 @@ export function GitChangesSheet({ isOpen, onClose, repoId, currentBranch, repoLo queryClient.invalidateQueries({ queryKey: ['fileDiff'] }) } - const handleOpenChange = (open: boolean) => { - if (!open) { - onClose() + const [shouldRender, setShouldRender] = useState(false) + + 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 ( - - -
-
- -

- {selectedFile ? 'File Changes' : 'Git Changes'} -

- ({currentBranch}) + useEffect(() => { + const handleEscape = (e: KeyboardEvent) => { + if (e.key === 'Escape' && isOpen) { + onClose() + } + } + document.addEventListener('keydown', handleEscape) + return () => document.removeEventListener('keydown', handleEscape) + }, [isOpen, onClose]) + + if (!isOpen && !shouldRender) return null + + return createPortal( +
+ + +
+
+ +

+ {selectedFile ? 'File Changes' : 'Git Changes'} +

+ ({currentBranch}) +
+
- -
+ -
+ {isMobile ? ( selectedFile ? (
)} -
+ - -
+ +
, + document.body ) } diff --git a/frontend/src/components/file-browser/MobileFilePreviewModal.tsx b/frontend/src/components/file-browser/MobileFilePreviewModal.tsx index 19601a84..ef251230 100644 --- a/frontend/src/components/file-browser/MobileFilePreviewModal.tsx +++ b/frontend/src/components/file-browser/MobileFilePreviewModal.tsx @@ -1,5 +1,6 @@ import { memo, useCallback, useState, useEffect, useRef } from "react"; import { FilePreview } from "./FilePreview"; +import { FullscreenSheet } from "@/components/ui/fullscreen-sheet"; import type { FileInfo } from "@/types/files"; import { GPU_ACCELERATED_STYLE, MODAL_TRANSITION_MS } from "@/lib/utils"; import { useSwipeBack } from "@/hooks/useMobile"; @@ -51,21 +52,17 @@ export const MobileFilePreviewModal = memo(function MobileFilePreviewModal({ } return ( -
-
- -
+
+ +
+ +
+
); }) diff --git a/frontend/src/components/layout/Header.tsx b/frontend/src/components/layout/Header.tsx deleted file mode 100644 index 13430f73..00000000 --- a/frontend/src/components/layout/Header.tsx +++ /dev/null @@ -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 ( -
-
-
-
- {backTo && } -
- {title === "OpenCode" ? ( - OpenCode - ) : ( -

- {title} -

- )} -
-
-
- {action &&
{action}
} - -
-
-
-
- ); -} diff --git a/frontend/src/components/layout/RepoDetailHeader.tsx b/frontend/src/components/layout/RepoDetailHeader.tsx deleted file mode 100644 index 4f514fcb..00000000 --- a/frontend/src/components/layout/RepoDetailHeader.tsx +++ /dev/null @@ -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 ( -
-
-
- -
-

- {repoName} -

- {!isWorktree && currentBranch && branchToDisplay ? ( - - ) : branchToDisplay ? ( - - {isWorktree && } - {branchToDisplay} - - ) : null} -
-
-
- - - - - - - - {!isWorktree && currentBranch && ( - <> -
- -
-
- - )} - - MCP - - - Files - - - - -
-
-
- ) -} diff --git a/frontend/src/components/model/ModelSelectDialog.tsx b/frontend/src/components/model/ModelSelectDialog.tsx index 0860a7b7..7c1b7678 100644 --- a/frontend/src/components/model/ModelSelectDialog.tsx +++ b/frontend/src/components/model/ModelSelectDialog.tsx @@ -458,7 +458,7 @@ export function ModelSelectDialog({ return ( - + {selectedProvider && selectedProviderData ? `Select Model - ${selectedProviderData.name}` : 'Select Model'} diff --git a/frontend/src/components/repo/RepoList.tsx b/frontend/src/components/repo/RepoList.tsx index 1cbe2399..18fd2840 100644 --- a/frontend/src/components/repo/RepoList.tsx +++ b/frontend/src/components/repo/RepoList.tsx @@ -2,10 +2,8 @@ import { useState } from "react"; import { useQuery, useMutation, useQueryClient } from "@tanstack/react-query"; import { listRepos, deleteRepo } from "@/api/repos"; import { DeleteDialog } from "@/components/ui/delete-dialog"; -import { Input } from "@/components/ui/input"; -import { Button } from "@/components/ui/button"; -import { DropdownMenu, DropdownMenuContent, DropdownMenuItem, DropdownMenuTrigger } from "@/components/ui/dropdown-menu"; -import { Loader2, GitBranch, Search, Trash2, MoreVertical } from "lucide-react"; +import { ListToolbar } from "@/components/ui/list-toolbar"; +import { Loader2, GitBranch, Search } from "lucide-react"; import { RepoCard } from "./RepoCard"; 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 ( <> -
-
-
- - setSearchQuery(e.target.value)} - className="pl-10" - /> -
- {filteredRepos.length > 0 && ( - - )} - - - - - - - {filteredRepos.length > 0 && ( - - {filteredRepos.every((repo) => selectedRepos.has(repo.id)) - ? "Deselect All" - : "Select All"} - - )} - - - Delete ({selectedRepos.size}) - - - +
+
+ 0 && + filteredRepos.every((repo) => selectedRepos.has(repo.id)) + } + onToggleSelectAll={handleSelectAll} + onDelete={handleBatchDelete} + onDeleteAll={handleDeleteAll} + />
-
-
+
+
{filteredRepos.length === 0 ? (
@@ -237,6 +196,7 @@ export function RepoList() { onCancel={() => { setDeleteDialogOpen(false); setRepoToDelete(null); + setSelectedRepos(new Set()); }} title={ selectedRepos.size > 0 diff --git a/frontend/src/components/repo/RepoMcpDialog.tsx b/frontend/src/components/repo/RepoMcpDialog.tsx index 5c1a7957..a0910303 100644 --- a/frontend/src/components/repo/RepoMcpDialog.tsx +++ b/frontend/src/components/repo/RepoMcpDialog.tsx @@ -1,9 +1,8 @@ -import { useState, useEffect, useCallback, useRef } from 'react' -import { Dialog, DialogContent, DialogHeader, DialogTitle } from '@/components/ui/dialog' +import { useState, useEffect, useCallback } from 'react' +import { Dialog, DialogContent, DialogHeader, DialogTitle, DialogDescription } from '@/components/ui/dialog' import { Switch } from '@/components/ui/switch' import { Badge } from '@/components/ui/badge' -import { Input } from '@/components/ui/input' -import { Loader2, Plug, XCircle, AlertCircle, Search } from 'lucide-react' +import { Loader2, XCircle, AlertCircle, Plug } from 'lucide-react' import { mcpApi, type McpStatus } from '@/api/mcp' import { useMutation } from '@tanstack/react-query' import { showToast } from '@/lib/toast' @@ -26,71 +25,12 @@ interface RepoMcpDialogProps { 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 Connected - case 'disabled': - return Disabled - case 'failed': - return ( - - - Failed - - ) - case 'needs_auth': - return ( - - Needs Auth - - ) - default: - return Unknown - } -} - export function RepoMcpDialog({ open, onOpenChange, config, directory }: RepoMcpDialogProps) { const [localStatus, setLocalStatus] = useState>({}) const [isLoadingStatus, setIsLoadingStatus] = useState(false) - const [searchQuery, setSearchQuery] = useState('') - const searchInputRef = useRef(null) const mcpServers = config?.content?.mcp as Record | undefined || {} 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 () => { if (!directory || serverIds.length === 0) return @@ -99,8 +39,6 @@ export function RepoMcpDialog({ open, onOpenChange, config, directory }: RepoMcp try { const status = await mcpApi.getStatusFor(directory) setLocalStatus(status) - } catch (error) { - console.error('Failed to fetch MCP status:', error) } finally { setIsLoadingStatus(false) } @@ -134,66 +72,87 @@ export function RepoMcpDialog({ open, onOpenChange, config, directory }: RepoMcp useEffect(() => { if (open && directory) { fetchStatus() - searchInputRef.current?.focus() } - if (!open) { - setSearchQuery('') + }, [open, directory, fetchStatus]) + + 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 Connected + case 'disabled': + return Disabled + case 'failed': + return ( + + + Failed + + ) + case 'needs_auth': + return ( + + Needs Auth + + ) + default: + return Unknown + } + } if (!directory) return null return ( - - -
- - MCP for This Location -
-

+ + + MCP for This Location + Toggle MCP servers for this repository -

+
- -
-
- - setSearchQuery(e.target.value)} - className="pl-9" - /> -
-
- +
{serverIds.length === 0 ? ( -
- -

- No MCP servers configured globally -

-

- Add them in Settings first -

+
+ +

No MCP servers configured globally

+

Add them in Settings first

- ) : filteredServerIds.length === 0 ? ( -
- -

- No MCP servers match "{searchQuery}" -

-
- ) : isLoadingStatus ? ( + ) : isLoadingStatus ? (
- + + Loading...
) : (
- {filteredServerIds.map((serverId) => { + {serverIds.map((serverId) => { const serverConfig = mcpServers[serverId] const status = localStatus[serverId] const isConnected = status?.status === 'connected' @@ -202,20 +161,20 @@ export function RepoMcpDialog({ open, onOpenChange, config, directory }: RepoMcp return (
-

- {getServerDisplayName(serverId)} +

+ {getDisplayName(serverId)}

{getStatusBadge(status)}
-

- {getServerDescription(serverConfig)} +

+ {getDescription(serverConfig)}

{failed && status.status === 'failed' && ( -
+
{status.error}
diff --git a/frontend/src/components/session/DeleteSessionDialog.tsx b/frontend/src/components/session/DeleteSessionDialog.tsx index 1e24c26e..b0152510 100644 --- a/frontend/src/components/session/DeleteSessionDialog.tsx +++ b/frontend/src/components/session/DeleteSessionDialog.tsx @@ -13,7 +13,7 @@ export function DeleteSessionDialog({ open, onOpenChange, onConfirm, onCancel, i const isMultiple = sessionCount > 1 const title = isMultiple ? "Delete Sessions" : "Delete Session" const description = isMultiple - ? `Are you sure you want to delete ${sessionCount} sessions? This action cannot be undone.` + ? <>Are you sure you want to delete {sessionCount} sessions? This action cannot be undone. : "Are you sure you want to delete this session? This action cannot be undone." return ( diff --git a/frontend/src/components/session/EditSessionTitleDialog.tsx b/frontend/src/components/session/EditSessionTitleDialog.tsx index 306f74ec..6e90c2e6 100644 --- a/frontend/src/components/session/EditSessionTitleDialog.tsx +++ b/frontend/src/components/session/EditSessionTitleDialog.tsx @@ -52,7 +52,7 @@ export function EditSessionTitleDialog({ isOpen, currentTitle, onClose, onSave } diff --git a/frontend/src/components/session/SessionDetailHeader.tsx b/frontend/src/components/session/SessionDetailHeader.tsx deleted file mode 100644 index dc188d41..00000000 --- a/frontend/src/components/session/SessionDetailHeader.tsx +++ /dev/null @@ -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 ( -
-
- - - {repo.cloneStatus === 'cloning' ? 'Cloning repository...' : 'Repository not ready'} - -
-
- ); - } - - 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 ( -
-
-
- {parentSessionId ? ( - <> - -
- -
- - ) : ( - - )} -
- {isMobile && ( - setIsEditing(false)} - onSave={(newTitle) => { - onSessionTitleUpdate(newTitle); - setIsEditing(false); - }} - /> - )} - {isEditing && !isMobile ? ( -
- 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 - /> - -
- ) : ( - <> - {isTitleGenerating ? ( -
- - Generating title... -
- ) : ( -

- {sessionTitle} -

- )} -

- {repoName} -

- - )} -
-
-
-
- -
- - - - - - - - - -
- -
-
- - Files - - {onAttachFile && ( - - Upload - - )} - - MCP - - - Settings - - - -
-
-
- ); -} diff --git a/frontend/src/components/session/SessionList.tsx b/frontend/src/components/session/SessionList.tsx index eaa3c98f..a19fb262 100644 --- a/frontend/src/components/session/SessionList.tsx +++ b/frontend/src/components/session/SessionList.tsx @@ -1,11 +1,8 @@ import { useState, useMemo } from "react"; import { useSessions, useDeleteSession } from "@/hooks/useOpenCode"; -import { Input } from "@/components/ui/input"; -import { Button } from "@/components/ui/button"; -import { DropdownMenu, DropdownMenuContent, DropdownMenuItem, DropdownMenuTrigger } from "@/components/ui/dropdown-menu"; +import { ListToolbar } from "@/components/ui/list-toolbar"; import { DeleteSessionDialog } from "./DeleteSessionDialog"; import { SessionCard } from "./SessionCard"; -import { Trash2, Search, MoreVertical } from "lucide-react"; interface SessionListProps { opcodeUrl: string; @@ -97,6 +94,7 @@ export const SessionList = ({ const cancelDelete = () => { setDeleteDialogOpen(false); setSessionToDelete(null); + setSelectedSessions(new Set()); }; 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 (
-
-
- - setSearchQuery(e.target.value)} - className="pl-10" - /> -
- {filteredSessions && filteredSessions.length > 0 && ( - - )} - - - - - - - {filteredSessions.length > 0 && ( - - {filteredSessions.every((session) => - selectedSessions.has(session.id), - ) - ? "Deselect All" - : "Select All"} - - )} - - - Delete ({selectedSessions.size}) - - - -
+ 0 && + filteredSessions.every((session) => selectedSessions.has(session.id)) + } + onToggleSelectAll={toggleSelectAll} + onDelete={handleBulkDelete} + onDeleteAll={handleDeleteAll} + />
diff --git a/frontend/src/components/settings/ProviderSettings.tsx b/frontend/src/components/settings/ProviderSettings.tsx index 66a023b4..10466db0 100644 --- a/frontend/src/components/settings/ProviderSettings.tsx +++ b/frontend/src/components/settings/ProviderSettings.tsx @@ -117,34 +117,30 @@ export function ProviderSettings() { return ( - -
-
- + +
+
+ {provider.name || provider.id} - {hasKey ? ( - - - Connected - - ) : ( - - - Not Connected - - )} - - {provider.npm ? Package: {provider.npm} : null} - {typeof provider.options?.baseURL === 'string' && ( - {provider.options.baseURL} - )} - {modelCount > 0 && ( - {modelCount} model{modelCount !== 1 ? 's' : ''} - )} - + {hasKey ? ( + + + Connected + + ) : ( + + + Not Connected + + )}
-
+ + {modelCount > 0 && ( + {modelCount} model{modelCount !== 1 ? 's' : ''} + )} + +
-
+
{mobileView !== 'menu' && ( diff --git a/frontend/src/components/ui/delete-dialog.tsx b/frontend/src/components/ui/delete-dialog.tsx index 033086ae..682b19da 100644 --- a/frontend/src/components/ui/delete-dialog.tsx +++ b/frontend/src/components/ui/delete-dialog.tsx @@ -9,7 +9,7 @@ interface DeleteDialogProps { onConfirm: () => void onCancel: () => void title: string - description: string + description: React.ReactNode itemName?: string isDeleting?: boolean } diff --git a/frontend/src/components/ui/dialog.test.tsx b/frontend/src/components/ui/dialog.test.tsx new file mode 100644 index 00000000..042c14a1 --- /dev/null +++ b/frontend/src/components/ui/dialog.test.tsx @@ -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( + + + + Test 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( + + + + Test 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( + + + Content + + + ); + const content = screen.getByTestId("dialog-content"); + expect(content).toHaveClass("inset-0"); + }); + + it("applies inset-0 for mobileFullscreen dialogs", () => { + render( + + + Content + + + ); + const content = screen.getByTestId("dialog-content"); + expect(content).toHaveClass("inset-0"); + }); + + it("does not apply safe-area padding when neither fullscreen nor mobileFullscreen", () => { + render( + + + Content + + + ); + 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( + + + Content + + + ); + expect(screen.queryByRole("button", { name: /close/i })).not.toBeInTheDocument(); + }); + + it("shows close button when mobileFullscreen is true", () => { + render( + + + Content + + + ); + expect(screen.getByRole("button", { name: /close/i })).toBeInTheDocument(); + }); + + it("hides close button when hideCloseButton is true", () => { + render( + + + Content + + + ); + expect(screen.queryByRole("button", { name: /close/i })).not.toBeInTheDocument(); + }); + + it("merges custom className with default classes", () => { + render( + + + Content + + + ); + 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( + + + Test Child Content + + + ); + expect(screen.getByText("Test Child Content")).toBeInTheDocument(); + }); +}); diff --git a/frontend/src/components/ui/dialog.tsx b/frontend/src/components/ui/dialog.tsx index 79a6f715..15cdd568 100644 --- a/frontend/src/components/ui/dialog.tsx +++ b/frontend/src/components/ui/dialog.tsx @@ -30,33 +30,52 @@ DialogOverlay.displayName = DialogPrimitive.Overlay.displayName interface DialogContentProps extends React.ComponentPropsWithoutRef { hideCloseButton?: boolean + fullscreen?: boolean + mobileFullscreen?: boolean } const DialogContent = React.forwardRef< React.ElementRef, DialogContentProps ->(({ className, children, hideCloseButton, ...props }, ref) => ( - - - - {children} - {!hideCloseButton && ( - - - Close - - )} - - -)) +>(({ className, children, hideCloseButton, fullscreen, mobileFullscreen, ...props }, ref) => { + const isMobileFullscreenMode = fullscreen || mobileFullscreen + + return ( + + + + {children} + {!hideCloseButton && !fullscreen && ( + + + Close + + )} + + + ) +}) DialogContent.displayName = DialogPrimitive.Content.displayName const DialogHeader = ({ diff --git a/frontend/src/components/ui/fullscreen-sheet.tsx b/frontend/src/components/ui/fullscreen-sheet.tsx new file mode 100644 index 00000000..71b1c015 --- /dev/null +++ b/frontend/src/components/ui/fullscreen-sheet.tsx @@ -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( + ({ children, className, style, ...props }, ref) => ( +
+ {children} +
+ ) +) +FullscreenSheet.displayName = "FullscreenSheet" + +const FullscreenSheetHeader = React.forwardRef( + ({ children, className, ...props }, ref) => ( +
+ {children} +
+ ) +) +FullscreenSheetHeader.displayName = "FullscreenSheetHeader" + +const FullscreenSheetContent = React.forwardRef( + ({ children, className, ...props }, ref) => ( +
+ {children} +
+ ) +) +FullscreenSheetContent.displayName = "FullscreenSheetContent" + +export { FullscreenSheet, FullscreenSheetHeader, FullscreenSheetContent } diff --git a/frontend/src/components/ui/header.tsx b/frontend/src/components/ui/header.tsx new file mode 100644 index 00000000..a72906c7 --- /dev/null +++ b/frontend/src/components/ui/header.tsx @@ -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 ( + +
+ {children} +
+
+ ); +} + +function HeaderBackButton({ to, className }: { to?: string; className?: string }) { + return to ? : null; +} + +interface HeaderTitleProps { + children: ReactNode; + logo?: boolean; + className?: string; +} + +function HeaderTitle({ children, logo, className }: HeaderTitleProps) { + const theme = useTheme(); + + return ( +
+ {logo && typeof children === "string" && children === "OpenCode" ? ( + OpenCode + ) : ( +

+ {children} +

+ )} +
+ ); +} + +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 ( +
+ {isMobile && ( + setIsEditing(false)} + onSave={handleSave} + /> + )} + {isEditing && !isMobile ? ( +
+ 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 + /> + +
+ ) : ( +
+ {generating ? ( +
+ + Generating title... +
+ ) : ( +

+ {value} +

+ )} + {subtitle && ( +

+ {subtitle} +

+ )} +
+ )} +
+ ); +} + +function HeaderActions({ children, className }: { children: ReactNode; className?: string }) { + return
{children}
; +} + +function HeaderMobileDropdown({ children, className }: { children: ReactNode; className?: string }) { + const isMobile = useMobile(); + + if (!isMobile) return null; + + return ( + + + + + + {children} + + + ); +} + +function HeaderSettingsButton() { + const { open: openSettings } = useSettingsDialog(); + + return ( + + ); +} + +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; +}; \ No newline at end of file diff --git a/frontend/src/components/ui/list-toolbar.tsx b/frontend/src/components/ui/list-toolbar.tsx new file mode 100644 index 00000000..c7bae599 --- /dev/null +++ b/frontend/src/components/ui/list-toolbar.tsx @@ -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 ( +
+
+ + onSearchChange(e.target.value)} + className="pl-10" + /> +
+ {hasItems && ( + + )} + + +
+ ); +} diff --git a/frontend/src/components/ui/page-header.test.tsx b/frontend/src/components/ui/page-header.test.tsx new file mode 100644 index 00000000..509bc35f --- /dev/null +++ b/frontend/src/components/ui/page-header.test.tsx @@ -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(Content); + const header = screen.getByTestId("header"); + expect(header).toHaveClass("pt-safe"); + }); + + it("applies sticky top-0 positioning", () => { + render(Content); + const header = screen.getByTestId("header"); + expect(header).toHaveClass("sticky"); + expect(header).toHaveClass("top-0"); + }); + + it("renders children correctly", () => { + render( + + Test Child + + ); + expect(screen.getByText("Test Child")).toBeInTheDocument(); + }); + + it("merges custom className", () => { + render( + + Content + + ); + const header = screen.getByTestId("header"); + expect(header).toHaveClass("custom-class"); + expect(header).toHaveClass("pt-safe"); + }); + + it("forwards additional props", () => { + render( + + Content + + ); + const header = screen.getByTestId("header"); + expect(header).toHaveAttribute("aria-label", "Page header"); + }); + + it("applies z-10 for proper stacking", () => { + render(Content); + const header = screen.getByTestId("header"); + expect(header).toHaveClass("z-10"); + }); + + it("applies background and border styling", () => { + render(Content); + 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(Content); + const header = screen.getByTestId("header"); + expect(header).toHaveClass("backdrop-blur-sm"); + }); +}); diff --git a/frontend/src/components/ui/page-header.tsx b/frontend/src/components/ui/page-header.tsx new file mode 100644 index 00000000..012669c7 --- /dev/null +++ b/frontend/src/components/ui/page-header.tsx @@ -0,0 +1,25 @@ +import * as React from "react"; +import { cn } from "@/lib/utils"; + +export interface PageHeaderProps extends React.HTMLAttributes { + children: React.ReactNode; +} + +export const PageHeader = React.forwardRef( + ({ className, children, ...props }, ref) => { + return ( +
+ {children} +
+ ); + } +); + +PageHeader.displayName = "PageHeader"; diff --git a/frontend/src/index.css b/frontend/src/index.css index f188f615..b856d329 100644 --- a/frontend/src/index.css +++ b/frontend/src/index.css @@ -279,8 +279,14 @@ body { margin-bottom: 0; } -.pb-safe { - padding-bottom: env(safe-area-inset-bottom, 0px); +@utility pt-safe { + 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 */ diff --git a/frontend/src/pages/RepoDetail.tsx b/frontend/src/pages/RepoDetail.tsx index 57ddc3f9..ebd5ff3e 100644 --- a/frontend/src/pages/RepoDetail.tsx +++ b/frontend/src/pages/RepoDetail.tsx @@ -4,12 +4,17 @@ import { useQuery, useQueryClient } from "@tanstack/react-query"; import { getRepo } from "@/api/repos"; import { SessionList } from "@/components/session/SessionList"; 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 { RepoMcpDialog } from "@/components/repo/RepoMcpDialog"; import { useCreateSession } from "@/hooks/useOpenCode"; import { OPENCODE_API_ENDPOINT, API_BASE_URL } from "@/config"; 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"; @@ -107,24 +112,86 @@ export function RepoDetail() { const branchToDisplay = repo.currentBranch || repo.branch; const displayName = branchToDisplay ? `${repoName} (${branchToDisplay})` : repoName; const currentBranch = repo.currentBranch || repo.branch || "main"; + const isWorktree = repo.isWorktree || false; return ( -
- setMcpDialogOpen(true)} - onFilesClick={() => setFileBrowserOpen(true)} - onNewSession={handleCreateSession} - disabledNewSession={!opcodeUrl || createSessionMutation.isPending} - /> +
+ +
+ {repoName} + {isWorktree ? ( + + + WT: {currentBranch} + + ) : !isWorktree && currentBranch ? ( + + ) : null} +
+ + + + + {!isWorktree && currentBranch && ( + <> +
+ +
+
+ + )} + setMcpDialogOpen(true)}> + MCP + + setFileBrowserOpen(true)}> + Files + + + + +
{opcodeUrl && repoDirectory && ( diff --git a/frontend/src/pages/Repos.tsx b/frontend/src/pages/Repos.tsx index f67440e0..a1c34f62 100644 --- a/frontend/src/pages/Repos.tsx +++ b/frontend/src/pages/Repos.tsx @@ -2,7 +2,7 @@ import { useState } from "react"; import { RepoList } from "@/components/repo/RepoList"; import { AddRepoDialog } from "@/components/repo/AddRepoDialog"; 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 { Plus, FolderOpen } from "lucide-react"; @@ -15,29 +15,28 @@ export function Repos() { }; return ( -
-
- - -
- } - /> -
+
+
+
+ OpenCode +
+ + + + + +
+
diff --git a/frontend/src/pages/SessionDetail.tsx b/frontend/src/pages/SessionDetail.tsx index a3fa2a08..0d8bcdab 100644 --- a/frontend/src/pages/SessionDetail.tsx +++ b/frontend/src/pages/SessionDetail.tsx @@ -4,13 +4,17 @@ import { useQuery } from "@tanstack/react-query"; import { getRepo } from "@/api/repos"; import { MessageThread } from "@/components/message/MessageThread"; 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 { SessionDetailHeader } from "@/components/session/SessionDetailHeader"; +import { Header } from "@/components/ui/header"; import { SessionList } from "@/components/session/SessionList"; import { FileBrowserSheet } from "@/components/file-browser/FileBrowserSheet"; 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 { OPENCODE_API_ENDPOINT, API_BASE_URL } from "@/config"; import { useSSE } from "@/hooks/useSSE"; @@ -294,29 +298,110 @@ export function SessionDetail() { } return ( -
- setFileBrowserOpen(true)} - onSettingsOpen={openSettings} - onMcpDialogOpen={() => setMcpDialogOpen(true)} - onSessionTitleUpdate={handleSessionTitleUpdate} - onParentSessionClick={handleParentSessionClick} - onAttachFile={handleAttachFile} - /> +
+
+ {session?.parentID ? ( + <> + +
+ +
+ + ) : ( + + )} + +
+ + + + + + + +
+ +
+
+ setFileBrowserOpen(true)}> + Files + + + Upload + + setMcpDialogOpen(true)}> + MCP + + + Settings + + + +
diff --git a/frontend/src/pages/Settings.tsx b/frontend/src/pages/Settings.tsx index 53c4b4fd..d2b6fb5a 100644 --- a/frontend/src/pages/Settings.tsx +++ b/frontend/src/pages/Settings.tsx @@ -1,35 +1,24 @@ 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 { KeyboardShortcuts } from '@/components/settings/KeyboardShortcuts' import { OpenCodeConfigManager } from '@/components/settings/OpenCodeConfigManager' export function Settings() { return ( -
-
+
+
+ + Settings + +
- - - General - - - Shortcuts - - - OpenCode - + + General + Shortcuts + OpenCode @@ -40,19 +29,19 @@ export function Settings() { - + -
-

Commands manager coming soon

+
+

Commands manager coming soon

-
-

Agents manager coming soon

+
+

Agents manager coming soon

diff --git a/frontend/src/pages/Workspace.tsx b/frontend/src/pages/Workspace.tsx index dd990b65..ea38f83a 100644 --- a/frontend/src/pages/Workspace.tsx +++ b/frontend/src/pages/Workspace.tsx @@ -1,30 +1,13 @@ -import { Button } from '@/components/ui/button' import { FileBrowser } from '@/components/file-browser/FileBrowser' -import { ArrowLeft } from 'lucide-react' -import { useNavigate } from 'react-router-dom' +import { Header } from '@/components/ui/header' export function Workspace() { - const navigate = useNavigate() - return (
-
-
-
- -

- Workspace -

-
-
-
+
+ + Workspace +
diff --git a/frontend/src/test/setup.ts b/frontend/src/test/setup.ts new file mode 100644 index 00000000..f149f27a --- /dev/null +++ b/frontend/src/test/setup.ts @@ -0,0 +1 @@ +import "@testing-library/jest-dom/vitest"; diff --git a/frontend/vitest.config.ts b/frontend/vitest.config.ts new file mode 100644 index 00000000..f4ae1f87 --- /dev/null +++ b/frontend/vitest.config.ts @@ -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"), + }, + }, +}); diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 7ab4c730..c9852327 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -69,7 +69,7 @@ importers: version: 8.51.0(eslint@9.39.2(jiti@2.6.1))(typescript@5.9.3) vitest: 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: dependencies: @@ -185,6 +185,15 @@ importers: '@eslint/js': specifier: ^9.36.0 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': specifier: ^24.8.1 version: 24.10.4 @@ -212,6 +221,9 @@ importers: globals: specifier: ^16.4.0 version: 16.5.0 + jsdom: + specifier: ^27.4.0 + version: 27.4.0 openapi-typescript: specifier: ^7.10.1 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) vitest: 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: dependencies: @@ -250,9 +262,24 @@ importers: 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': 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': resolution: {integrity: sha512-cjQ7ZlQ0Mv3b47hABuTevyTuYN4i+loJKGeV9flcCgIK37cCXRh+L1bd3iBHlynerhQ7BhCkn2BPbQUL+rGqFg==} engines: {node: '>=6.9.0'} @@ -324,6 +351,10 @@ packages: peerDependencies: '@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': resolution: {integrity: sha512-LPDZ85aEJyYSd18/DkjNh4/y1ntkE5KwUHWTiqgRxruuZL2F1yuHligVHLvcHY2vMHXttKFpJn6LwfI7cw7ODw==} engines: {node: '>=6.9.0'} @@ -354,6 +385,38 @@ packages: '@chevrotain/utils@11.0.3': 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': resolution: {integrity: sha512-GZMB+a0mOMZs4MpDbj8RJp4cw+w1WV5NYD6xzgvzUJ5Ek2jerwfO2eADyI6ExDSUED+1X8aMbegahsJi+8mgpw==} engines: {node: '>=18'} @@ -548,6 +611,15 @@ packages: resolution: {integrity: sha512-43/qtrDUokr7LJqoF2c3+RInu/t4zfrpYdoSDfYyhg52rwLV6TnOvdG4fXm7IkSB3wErkcmJS9iEhjVtOSEjjA==} 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': resolution: {integrity: sha512-sGnvb5dmrJaKEZ+LDIpguvdX3bDlEllmv4/ClQ9awcmCZrlx5jQyyMWFM5kBI+EyNOCDDiKk8il0zeuX3Zlg/w==} @@ -1264,9 +1336,41 @@ packages: peerDependencies: 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': resolution: {integrity: sha512-/3vwGwx9n+mCQdYZ2IKGGHEFL30I96UgBlk8EtRDDFQ9uxM1l4O5Ci6r00EMAkiDaTqD9DQ6nVrWRICnBPtzzg==} + '@types/aria-query@5.0.4': + resolution: {integrity: sha512-rfT93uj5s0PRL7EzccGMs3brplhcrghnDoV26NqKhCAS1hVo+WdNsPvE/yb6ilfr5hi2MEk6d5EWJTKdxg8jVw==} + '@types/babel__core@7.20.5': resolution: {integrity: sha512-qoQprZvz5wQFJwMDqeseRXWv3rqMvhgpbXFfVyWhbx9X47POIA6i/+dXefEmZKoAgOaTdaIgNSMqMIU61yRyzA==} @@ -1570,6 +1674,10 @@ packages: resolution: {integrity: sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==} engines: {node: '>=8'} + ansi-styles@5.2.0: + resolution: {integrity: sha512-Cxwpt2SfTzTtXcfOlzGEee8O+c+MmUgGrNiBcXnuWxuFJHe6a5Hz7qwhwe5OgaSYI0IJvkLqWX1ASG+cJOkEiA==} + engines: {node: '>=10'} + ansi-styles@6.2.3: resolution: {integrity: sha512-4Dj6M28JB+oAH8kFkTLUo+a2jwOFkuqb3yucU0CANcRRUbxS0cP0nZYCGjcc3BNXwRIsUVmDGgzawme7zvJHvg==} engines: {node: '>=12'} @@ -1589,6 +1697,13 @@ packages: resolution: {integrity: sha512-ik3ZgC9dY/lYVVM++OISsaYDeg1tb0VtP5uL3ouh1koGOaUMDPpbFIei4JkFimWUFPn90sbMNMXQAIVOlnYKJA==} 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: resolution: {integrity: sha512-Izi8RQcffqCeNVgFigKli1ssklIbpHnCYc6AknXGYoB6grJqyeby7jv12JUQgmTAnIDnbck1uxksT4dzN3PWBA==} engines: {node: '>=12'} @@ -1638,6 +1753,9 @@ packages: resolution: {integrity: sha512-Sg0xJUNDU1sJNGdfGWhVHX0kkZ+HWcvmVymJbj6NSgZZmW/8S9Y2HQ5euytnIgakgxN6papOAWiwDo1ctFDcoQ==} hasBin: true + bidi-js@1.0.3: + resolution: {integrity: sha512-RKshQI1R3YQ+n9YJz2QQ147P66ELpa1FQEg20Dk8oW9t2KgLbpDLLp9aGZ7y8WHSshDknG0bknqGw5/tyCs5tw==} + brace-expansion@1.1.12: resolution: {integrity: sha512-9T9UjW3r0UW5c1Q7GTwllptXwhvYmEzFhzMfZ9H7FQWt+uZePjZPjBP/W1ZEyZ1twGWom5/56TF4lPcqjnDHcg==} @@ -1798,6 +1916,17 @@ packages: resolution: {integrity: sha512-uV2QOWP2nWzsy2aMp8aRibhi9dlzF5Hgh5SHaB9OiTGEyDTiJJyx0uy51QXdyWbtAHNua4XJzUKca3OzKUd3vA==} 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: resolution: {integrity: sha512-z1HGKcYy2xA8AGQfwrn0PAy+PB7X/GSj3UVJW9qKyn43xWa+gl5nXmU4qqLMRzWVLFC8KusUX8T/0kCiOYpAIQ==} @@ -1957,6 +2086,10 @@ packages: dagre-d3-es@7.0.13: 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: resolution: {integrity: sha512-Ukq0owbQXxa/U3EGtsdVBkR1w7KOQ5gIBqdH2hkvknzZPYvBxb/aa6E8L7tmjFtkwZBu3UXBbjIgPo/Ez4xaNg==} @@ -1972,6 +2105,9 @@ packages: supports-color: optional: true + decimal.js@10.6.0: + resolution: {integrity: sha512-YpgQiITW3JXGntzdUmyUR1V812Hn8T1YVXhCu+wO3OpS4eU9l4YdD3qjyiKdV6mvV29zapkMeD390UVEf2lkUg==} + decode-named-character-reference@1.2.0: resolution: {integrity: sha512-c6fcElNV6ShtZXmsgNgFFV5tVX2PaV4g+MOAkb8eXHvn6sryJBrZa9r0zV6+dtTyoCKxtDy5tyQ5ZwQuidtd+Q==} @@ -2007,6 +2143,12 @@ packages: resolution: {integrity: sha512-sSuxWU5j5SR9QQji/o2qMvqRNYRDOcBTgsJ/DeCf4iSN4gW+gNMXM7wFIP+fdXZxoNiAnHUTGjCr+TSWXdRDKg==} 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: resolution: {integrity: sha512-WhL/YuveyGXJaerVlMYGWhvQswa7myDG17P7Vu65EWC05o8vfeNbvNf4d/BOvH99+ZW+LlQsc1GDKMa1vNK6dw==} @@ -2321,12 +2463,20 @@ packages: resolution: {integrity: sha512-PmQi306+M/ct/m5s66Hrg+adPnkD5jiO6IjA7WhWw0gSBSo1EcRegwuI1deZ+wd5pzCGynCcn2DprnE4/yEV4w==} 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: resolution: {integrity: sha512-ol6UPyBWqsrO6EJySPz2O7ZSr856WDrEzM5zMqp+FJJLGMW35cLYmmZnl0vztAZxRUoNZJFTCohfjuIJ8I4QBQ==} html-void-elements@3.0.0: 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: resolution: {integrity: sha512-vK9P5/iUfdl95AI+JVyUuIcVtd4ofvtrOr3HNtM2yxC9bnMbEdp3x01OhQNnjb8IJYi38VlTE3mBXwcfvywuSw==} engines: {node: '>= 14'} @@ -2354,6 +2504,10 @@ packages: resolution: {integrity: sha512-JmXMZ6wuvDmLiHEml9ykzqO6lwFbof0GG4IkcGaENdCRDDmMVnny7s5HsIgHCbaq0w2MyPhDqkhTUgS2LU2PHA==} 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: resolution: {integrity: sha512-Yg7+ztRkqslMAS2iFaU+Oa4KTSidr63OsFGlOrJoW981kIYO3CGCS3wA95P1mUi/IVSJkn0D479KTJpVpvFNuw==} engines: {node: '>=18'} @@ -2399,6 +2553,9 @@ packages: resolution: {integrity: sha512-+Pgi+vMuUNkJyExiMBt5IlFoMyKnr5zhJ4Uspz58WOhBF5QoIZkFyNHIbBAtHwzVAgk5RtndVNsDRN61/mmDqg==} engines: {node: '>=12'} + is-potential-custom-element-name@1.0.1: + resolution: {integrity: sha512-bCYeRA2rVibKZd+s2625gGnGF/t7DSqDs4dP7CrLA1m7jKWz6pps0LpYLJN8Q64HtmPKJ1hrN3nzPNKFEKOUiQ==} + is-stream@2.0.1: resolution: {integrity: sha512-hFoiJiTl63nn+kstHGBtewWSKnQLpyb155KHheA1l39uvtO9nWIop1p3udqPcUd/xbF1VLMO4n7OI6p7RbngDg==} engines: {node: '>=8'} @@ -2430,6 +2587,15 @@ packages: resolution: {integrity: sha512-qQKT4zQxXl8lLwBtHMWwaTcGfFOZviOJet3Oy/xmGk2gZH677CJM9EvtfdSkgWcATZhj/55JZ0rmy3myCT5lsA==} 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: resolution: {integrity: sha512-/sM3dO2FOzXjKQhJuo0Q173wf2KOo8t4I8vHy6lF9poUp7bKT0/NHE8fPX23PwfhnykfqnC2xRxOnVw5XuGIaA==} engines: {node: '>=6'} @@ -2578,6 +2744,10 @@ packages: lru-cache@10.4.3: 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: resolution: {integrity: sha512-KpNARQA3Iwv+jTA0utUVVbrh+Jlrr1Fv0e56GGzAFOXN7dk/FviaDW8LHmK52DlcH4WP2n6gI8vN1aesBFgo9w==} @@ -2586,6 +2756,10 @@ packages: peerDependencies: 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: resolution: {integrity: sha512-vd2F4YUyEXKGcLHoq+TEyCjxueSeHnFxyyjNp80yg0XV4vUhnDer/lvvlqM/arB5bXQN5K2/3oinyCRyx8T2CQ==} @@ -2651,6 +2825,9 @@ packages: mdast-util-to-string@4.0.0: resolution: {integrity: sha512-0H44vDimn51F0YwvxSJSm0eCDOJTRlmN0R1yBh4HLj9wiV1Dn0QoXGbvFAWj2hSItVTlCmBF1hqKlIyUBVFLPg==} + mdn-data@2.12.2: + resolution: {integrity: sha512-IEn+pegP1aManZuckezWCO+XZQDplx1366JoVhTpMpBB1sPey/SbveZQUosKiKiGYjg1wH4pMlNgXbCiYgihQA==} + mermaid@11.12.2: resolution: {integrity: sha512-n34QPDPEKmaeCG4WDMGy0OT6PSyxKCfy2pJgShP+Qow2KLrvWjclwbc3yXfSIf4BanqWEhQEpngWwNp/XhZt6w==} @@ -2746,6 +2923,10 @@ packages: resolution: {integrity: sha512-ZDY+bPm5zTTF+YpCrAU9nK0UgICYPT0QtT1NZWFv4s++TNkcgVaT0g6+4R2uI4MjQjzysHB1zxuWL50hzaeXiw==} engines: {node: '>= 0.6'} + min-indent@1.0.1: + resolution: {integrity: sha512-I9jwMn07Sy/IwOj3zVkVik2JTvgpaykDZEigL6Rx6N9LbMywwUSMtxET+7lVoDLLd3O3IXwJwvuuns8UB/HeAg==} + engines: {node: '>=4'} + minimatch@3.1.2: resolution: {integrity: sha512-J7p63hRiAjw1NDEww1W7i37+ByIrOWO5XQQAzZ3VOcL0PNybwpfmV/N05zFAzwQ9USyEcX6t3UO+K5aqBQOIHw==} @@ -2827,6 +3008,9 @@ packages: parse5@7.3.0: resolution: {integrity: sha512-IInvU7fabl34qmi9gY8XOVxhYyMyuH2xUNpb2q8/Y+7552KlejkRvqvD19nMoUW/uQGGbqNpA6Tufu5FL5BZgw==} + parse5@8.0.0: + resolution: {integrity: sha512-9m4m5GSgXjL4AjumKzq1Fgfp3Z8rsvjRNbnkVwfu2ImRqE5D0LnY2QfDen18FSY9C573YU5XxSapdHZTZ2WolA==} + path-data-parser@0.1.0: resolution: {integrity: sha512-NOnmBpt5Y2RWbuv0LMzsayp3lVylAHLPUTut412ZA3l+C4uw4ZVkQbjShYCQ8TCpUMdPapr4YjUqLYD6v68j+w==} @@ -2880,6 +3064,10 @@ packages: resolution: {integrity: sha512-vkcDPrRZo1QZLbn5RLGPpg/WmIQ65qoWWhcGKf/b5eplkkarX0m9z8ppCat4mlOqUsWpyNuYgO3VRyrYHSzX5g==} 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: resolution: {integrity: sha512-3ouUOpQhtgrbOa17J7+uxOTpITYWaGP7/AhoR3+A+/1e9skrzelGi/dXzEYyvbxubEF6Wn2ypscTKiKJFFn1ag==} @@ -2908,6 +3096,9 @@ packages: peerDependencies: 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: resolution: {integrity: sha512-qKxVopLT/TyA6BX3Ue5NwabOsAzm0Q7kAPwq6L+wWDwisYs7R8vZ0nRXqq6rkueboxpkjvLGU9fWifiX/ZZFxQ==} peerDependencies: @@ -2979,6 +3170,10 @@ packages: readdir-glob@1.1.3: resolution: {integrity: sha512-v05I2k7xN8zXvPD9N+z/uhXPaj0sUFCe2rcWZIpBsqxfP7xXFQ0tipAd/wjj1YxWyWtUS5IDJpOG82JKt2EAVA==} + redent@3.0.0: + resolution: {integrity: sha512-6tDA8g98We0zd0GvVeMT9arEOnTw9qM03L9cJXaCjrip1OO764RDBLBfrB4cwzNGDj5OA5ioymC9GkizgWJDUg==} + engines: {node: '>=8'} + rehype-highlight@7.0.2: resolution: {integrity: sha512-k158pK7wdC2qL3M5NcZROZ2tR/l7zOzjxXd5VGdcfIyoijjQqpHd3JKtYSBDpDZ38UI2WJWuFAtkMDxmx5kstA==} @@ -3035,6 +3230,10 @@ packages: safer-buffer@2.1.2: resolution: {integrity: sha512-YZo3K82SD7Riyi0E1EQPojLz7kpepnSQI9IyPbHHg1XXXevb5dJI7tpyN2ADxGcQbHG7vcyRHk0cbwqcQriUtg==} + saxes@6.0.0: + resolution: {integrity: sha512-xAg7SOnEhrm5zI3puOOKyy1OMcMlIJZYNJY7xLBwSze0UjhPLnWfj2GF2EpT0jmzaJKIWKHLsaSSajf35bcYnA==} + engines: {node: '>=v12.22.7'} + scheduler@0.27.0: resolution: {integrity: sha512-eNv+WrVbKu1f3vbYJT/xtiF5syA5HPIMtf9IgY/nKg0sWqzAUEvqY/xm7OcZc/qafLx/iO9FgOmeSAp4v5ti/Q==} @@ -3123,6 +3322,10 @@ packages: resolution: {integrity: sha512-gmBGslpoQJtgnMAvOVqGZpEz9dyoKTCzy2nfz/n8aIFhN/jCE/rCmcxabB6jOOHV+0WNnylOxaxBQPSvcWklhA==} 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: resolution: {integrity: sha512-6fPc+R4ihwqP6N/aIv2f1gMH8lOVtWQHoqC4yK6oSDVVocumAsfCqjkXnqiYMhmMwS/mEHLp7Vehlt3ql6lEig==} engines: {node: '>=8'} @@ -3155,6 +3358,9 @@ packages: resolution: {integrity: sha512-MpUEN2OodtUzxvKQl72cUF7RQ5EiHsGvSsVG0ia9c5RbWGL2CI4C7EpPS8UTBIplnlzZiNuV56w+FuNxy3ty2Q==} engines: {node: '>=10'} + symbol-tree@3.2.4: + resolution: {integrity: sha512-9QNk5KwDF+Bvz+PyObkmSYjI5ksVUYtjW7AU22r2NKcfLJcXp96hkDWU3+XndOsUb+AQ9QhfzfCT2O+CNWT5Tw==} + tailwind-merge@3.4.0: resolution: {integrity: sha512-uSaO4gnW+b3Y2aWoWfFpX62vn2sR3skfhbjsEnaBI81WD1wBLlHZe5sWf0AqjksNdYTbGBEd0UasQMT3SNV15g==} @@ -3197,10 +3403,25 @@ packages: resolution: {integrity: sha512-azl+t0z7pw/z958Gy9svOTuzqIk6xq+NSheJzn5MMWtWTFywIacg2wUlzKFGtt3cthx0r2SxMK0yzJOR0IES7Q==} 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: resolution: {integrity: sha512-sf4i37nQ2LBx4m3wB74y+ubopq6W/dIzXg0FDGjsYnZHVa1Da8FH853wlL2gtUhg+xJXjfk3kUZS3BRoQeoQBQ==} 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: resolution: {integrity: sha512-L0Orpi8qGpRG//Nd+H90vFB+3iHnue1zSSGmNOOCh1GLJ7rUKVwV2HvijphGQS2UmhUZewS9VgvxYIdgr+fG1A==} hasBin: true @@ -3409,9 +3630,25 @@ packages: vscode-uri@3.0.8: resolution: {integrity: sha512-AyFQ0EVmsOZOlAnxoFOGOq1SQDWAB7C6aqMGS23svWAllfOaxbuFvcT8D1i8z3Gyn8fraVeZNNmN6e9bxxXkKw==} + w3c-xmlserializer@5.0.0: + resolution: {integrity: sha512-o8qghlI8NZHU1lLPrpi2+Uq7abh4GGPpYANlalzWxyWteJOCsr/P+oPBA49TOLu5FTZO4d3F9MnWJfiMo4BkmA==} + engines: {node: '>=18'} + web-namespaces@2.0.1: 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: resolution: {integrity: sha512-BLI3Tl1TW3Pvl70l3yq3Y64i+awpwXqsGBYWkkqMtnbXgrMD+yj7rhW0kuEDxzJaYXGjEW5ogapKNMEKNMjibA==} engines: {node: '>= 8'} @@ -3434,6 +3671,25 @@ packages: resolution: {integrity: sha512-si7QWI6zUMq56bESFvagtmzMdGOtoxfR+Sez11Mobfc7tm+VkUckk9bW2UeffTGVUbOksxmSw0AA2gs8g71NCQ==} 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: resolution: {integrity: sha512-0pfFzegeDWJHJIAmTLRP2DwHjdF5s7jo9tuztdQxAhINCdvS+3nGINqPd00AphqJR/0LhANUS6/+7SCb98YOfA==} engines: {node: '>=10'} @@ -3486,11 +3742,33 @@ packages: snapshots: + '@acemir/cssom@0.9.30': {} + + '@adobe/css-tools@4.4.4': {} + '@antfu/install-pkg@1.1.0': dependencies: package-manager-detector: 1.6.0 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': dependencies: '@babel/helper-validator-identifier': 7.28.5 @@ -3580,6 +3858,8 @@ snapshots: '@babel/core': 7.28.5 '@babel/helper-plugin-utils': 7.27.1 + '@babel/runtime@7.28.4': {} + '@babel/template@7.27.2': dependencies: '@babel/code-frame': 7.27.1 @@ -3622,6 +3902,28 @@ snapshots: '@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': optional: true @@ -3746,6 +4048,8 @@ snapshots: '@eslint/core': 0.17.0 levn: 0.4.1 + '@exodus/bytes@1.8.0': {} + '@floating-ui/core@1.7.3': dependencies: '@floating-ui/utils': 0.2.10 @@ -4406,10 +4710,46 @@ snapshots: '@tanstack/query-core': 5.90.16 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': dependencies: '@types/readdir-glob': 1.1.5 + '@types/aria-query@5.0.4': {} + '@types/babel__core@7.20.5': dependencies: '@babel/parser': 7.28.5 @@ -4760,7 +5100,7 @@ snapshots: sirv: 3.0.2 tinyglobby: 0.2.15 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': dependencies: @@ -4797,6 +5137,8 @@ snapshots: dependencies: color-convert: 2.0.1 + ansi-styles@5.2.0: {} + ansi-styles@6.2.3: {} archiver-utils@5.0.2: @@ -4828,6 +5170,12 @@ snapshots: dependencies: tslib: 2.8.1 + aria-query@5.3.0: + dependencies: + dequal: 2.0.3 + + aria-query@5.3.2: {} + assertion-error@2.0.1: {} async@3.2.6: {} @@ -4863,6 +5211,10 @@ snapshots: baseline-browser-mapping@2.9.11: {} + bidi-js@1.0.3: + dependencies: + require-from-string: 2.0.2 + brace-expansion@1.1.12: dependencies: balanced-match: 1.0.2 @@ -5033,6 +5385,20 @@ snapshots: shebang-command: 2.0.0 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: {} cytoscape-cose-bilkent@4.1.0(cytoscape@3.33.1): @@ -5219,6 +5585,11 @@ snapshots: d3: 7.9.0 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: {} dayjs@1.11.19: {} @@ -5229,6 +5600,8 @@ snapshots: optionalDependencies: supports-color: 10.2.2 + decimal.js@10.6.0: {} + decode-named-character-reference@1.2.0: dependencies: character-entities: 2.0.2 @@ -5255,6 +5628,10 @@ snapshots: diff@8.0.2: {} + dom-accessibility-api@0.5.16: {} + + dom-accessibility-api@0.6.3: {} + dompurify@3.2.7: optionalDependencies: '@types/trusted-types': 2.0.7 @@ -5635,10 +6012,23 @@ snapshots: 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-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): dependencies: agent-base: 7.1.4 @@ -5663,6 +6053,8 @@ snapshots: imurmurhash@0.1.4: {} + indent-string@4.0.0: {} + index-to-position@1.2.0: {} inherits@2.0.4: {} @@ -5694,6 +6086,8 @@ snapshots: is-plain-obj@4.1.0: {} + is-potential-custom-element-name@1.0.1: {} + is-stream@2.0.1: {} isarray@1.0.0: {} @@ -5718,6 +6112,34 @@ snapshots: dependencies: 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: {} json-buffer@3.0.1: {} @@ -5834,6 +6256,8 @@ snapshots: lru-cache@10.4.3: {} + lru-cache@11.2.4: {} + lru-cache@5.1.1: dependencies: yallist: 3.1.1 @@ -5842,6 +6266,8 @@ snapshots: dependencies: react: 19.2.3 + lz-string@1.5.0: {} + magic-string@0.30.21: dependencies: '@jridgewell/sourcemap-codec': 1.5.5 @@ -6007,6 +6433,8 @@ snapshots: dependencies: '@types/mdast': 4.0.4 + mdn-data@2.12.2: {} + mermaid@11.12.2: dependencies: '@braintree/sanitize-url': 7.1.1 @@ -6227,6 +6655,8 @@ snapshots: dependencies: mime-db: 1.52.0 + min-indent@1.0.1: {} + minimatch@3.1.2: dependencies: brace-expansion: 1.1.12 @@ -6320,6 +6750,10 @@ snapshots: dependencies: entities: 6.0.1 + parse5@8.0.0: + dependencies: + entities: 6.0.1 + path-data-parser@0.1.0: {} path-exists@4.0.0: {} @@ -6364,6 +6798,12 @@ snapshots: 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@0.11.10: {} @@ -6383,6 +6823,8 @@ snapshots: dependencies: react: 19.2.3 + react-is@17.0.2: {} + react-markdown@10.1.0(@types/react@19.2.7)(react@19.2.3): dependencies: '@types/hast': 3.0.4 @@ -6468,6 +6910,11 @@ snapshots: dependencies: minimatch: 5.1.6 + redent@3.0.0: + dependencies: + indent-string: 4.0.0 + strip-indent: 3.0.0 + rehype-highlight@7.0.2: dependencies: '@types/hast': 3.0.4 @@ -6571,6 +7018,10 @@ snapshots: safer-buffer@2.1.2: {} + saxes@6.0.0: + dependencies: + xmlchars: 2.2.0 + scheduler@0.27.0: {} semver@6.3.1: {} @@ -6654,6 +7105,10 @@ snapshots: dependencies: 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@5.0.3: {} @@ -6682,6 +7137,8 @@ snapshots: dependencies: has-flag: 4.0.0 + symbol-tree@3.2.4: {} + tailwind-merge@3.4.0: {} tailwindcss@4.1.18: {} @@ -6720,8 +7177,22 @@ snapshots: tinyspy@4.0.4: {} + tldts-core@7.0.19: {} + + tldts@7.0.19: + dependencies: + tldts-core: 7.0.19 + 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: {} trim-lines@3.0.1: {} @@ -6876,7 +7347,7 @@ snapshots: 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)(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: '@types/chai': 5.2.3 '@vitest/expect': 3.2.4 @@ -6905,6 +7376,7 @@ snapshots: '@types/debug': 4.1.12 '@types/node': 24.10.4 '@vitest/ui': 3.2.4(vitest@3.2.4) + jsdom: 27.4.0 transitivePeerDependencies: - jiti - less @@ -6936,8 +7408,21 @@ snapshots: vscode-uri@3.0.8: {} + w3c-xmlserializer@5.0.0: + dependencies: + xml-name-validator: 5.0.0 + 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: dependencies: isexe: 2.0.0 @@ -6961,6 +7446,12 @@ snapshots: string-width: 5.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: {} yallist@3.1.1: {}