diff --git a/ui/src/components/HandButton.tsx b/ui/src/components/Button.tsx
similarity index 90%
rename from ui/src/components/HandButton.tsx
rename to ui/src/components/Button.tsx
index 8bfdd9efa..4a63539bd 100644
--- a/ui/src/components/HandButton.tsx
+++ b/ui/src/components/Button.tsx
@@ -1,7 +1,7 @@
import type { ReactNode, ButtonHTMLAttributes } from 'react';
import { radius } from '../design';
-interface HandButtonProps extends ButtonHTMLAttributes {
+interface ButtonProps extends ButtonHTMLAttributes {
children: ReactNode;
variant?: 'primary' | 'secondary' | 'danger' | 'ghost';
size?: 'sm' | 'md' | 'lg';
@@ -20,7 +20,7 @@ const sizeClasses = {
lg: 'px-8 py-3.5 text-lg',
};
-export default function HandButton({
+export default function Button({
children,
variant = 'primary',
size = 'md',
@@ -28,7 +28,7 @@ export default function HandButton({
disabled,
style,
...props
-}: HandButtonProps) {
+}: ButtonProps) {
return (
{cancelText && (
-
{cancelText}
-
+
)}
-
{loading ? 'Working...' : confirmText}
-
+
diff --git a/ui/src/components/ErrorBoundary.tsx b/ui/src/components/ErrorBoundary.tsx
index fc883aba3..2c1bf1aa6 100644
--- a/ui/src/components/ErrorBoundary.tsx
+++ b/ui/src/components/ErrorBoundary.tsx
@@ -1,7 +1,7 @@
import { Component, type ReactNode } from 'react';
import { AlertTriangle } from 'lucide-react';
import Card from './Card';
-import HandButton from './HandButton';
+import Button from './Button';
interface Props {
children: ReactNode;
@@ -36,9 +36,9 @@ export class ErrorBoundary extends Component {
>
{this.state.error?.message || 'An unexpected error occurred.'}
- window.location.reload()}>
+ window.location.reload()}>
Reload page
-
+
diff --git a/ui/src/components/FileViewerModal.tsx b/ui/src/components/FileViewerModal.tsx
index a2c595e8b..403ea86ae 100644
--- a/ui/src/components/FileViewerModal.tsx
+++ b/ui/src/components/FileViewerModal.tsx
@@ -10,7 +10,7 @@ import { javascript } from '@codemirror/lang-javascript';
import { EditorView } from '@codemirror/view';
import Card from './Card';
import CopyButton from './CopyButton';
-import HandButton from './HandButton';
+import Button from './Button';
import { api, type SkillFileContent } from '../api/client';
import { handTheme } from '../lib/codemirror-theme';
import { radius } from '../design';
@@ -91,9 +91,9 @@ export default function FileViewerModal({ skillName, filepath, sourcePath, onClo
copiedLabelClassName="text-xs font-normal"
/>
-
+
-
+
{/* Content */}
diff --git a/ui/src/components/HubManagerModal.tsx b/ui/src/components/HubManagerModal.tsx
index e60c218d1..9476a808b 100644
--- a/ui/src/components/HubManagerModal.tsx
+++ b/ui/src/components/HubManagerModal.tsx
@@ -1,8 +1,8 @@
import { useState, useEffect } from 'react';
import { Plus, Trash2, Server } from 'lucide-react';
import Card from './Card';
-import HandButton from './HandButton';
-import { HandInput } from './HandInput';
+import Button from './Button';
+import { Input } from './Input';
import { radius } from '../design';
export interface SavedHub {
@@ -138,20 +138,20 @@ export default function HubManagerModal({
Built-in
) : confirmDelete === hub.url ? (
- handleDelete(hub.url)}
>
Confirm
-
-
+ setConfirmDelete(null)}
>
Cancel
-
+
) : (
-
setNewLabel(e.target.value)}
/>
-
-
+
Add
-
-
+
+
Close
-
+
diff --git a/ui/src/components/HandInput.tsx b/ui/src/components/Input.tsx
similarity index 92%
rename from ui/src/components/HandInput.tsx
rename to ui/src/components/Input.tsx
index 966970ff3..25f95ded3 100644
--- a/ui/src/components/HandInput.tsx
+++ b/ui/src/components/Input.tsx
@@ -3,11 +3,11 @@ import type { InputHTMLAttributes, TextareaHTMLAttributes } from 'react';
import { Check, ChevronDown } from 'lucide-react';
import { radius, shadows } from '../design';
-interface HandInputProps extends InputHTMLAttributes {
+interface InputProps extends InputHTMLAttributes {
label?: string;
}
-export function HandInput({ label, className = '', style, id, ...props }: HandInputProps) {
+export function Input({ label, className = '', style, id, ...props }: InputProps) {
const autoId = useId();
const inputId = id ?? autoId;
@@ -41,11 +41,11 @@ export function HandInput({ label, className = '', style, id, ...props }: HandIn
);
}
-interface HandTextareaProps extends TextareaHTMLAttributes {
+interface TextareaProps extends TextareaHTMLAttributes {
label?: string;
}
-export function HandTextarea({ label, className = '', style, id, ...props }: HandTextareaProps) {
+export function Textarea({ label, className = '', style, id, ...props }: TextareaProps) {
const autoId = useId();
const inputId = id ?? autoId;
@@ -85,7 +85,7 @@ export interface SelectOption {
description?: string;
}
-interface HandSelectProps {
+interface SelectProps {
label?: string;
value: string;
onChange: (value: string) => void;
@@ -93,7 +93,7 @@ interface HandSelectProps {
className?: string;
}
-export function HandSelect({ label, value, onChange, options, className = '' }: HandSelectProps) {
+export function Select({ label, value, onChange, options, className = '' }: SelectProps) {
const [open, setOpen] = useState(false);
const [focusIdx, setFocusIdx] = useState(-1);
const containerRef = useRef(null);
@@ -238,14 +238,14 @@ export function HandSelect({ label, value, onChange, options, className = '' }:
);
}
-interface HandCheckboxProps {
+interface CheckboxProps {
label: string;
checked: boolean;
onChange: (checked: boolean) => void;
className?: string;
}
-export function HandCheckbox({ label, checked, onChange, className = '' }: HandCheckboxProps) {
+export function Checkbox({ label, checked, onChange, className = '' }: CheckboxProps) {
return (
+
-
setSource(e.target.value)}
onKeyDown={(e) => e.key === 'Enter' && handleInstall()}
/>
- setName(e.target.value)}
/>
- setInto(e.target.value)}
/>
-
-
-
-
{installing ? 'Installing...' : 'Install'}
-
+
);
diff --git a/ui/src/components/SkillPickerModal.tsx b/ui/src/components/SkillPickerModal.tsx
index ebebcb501..a5820559f 100644
--- a/ui/src/components/SkillPickerModal.tsx
+++ b/ui/src/components/SkillPickerModal.tsx
@@ -1,8 +1,8 @@
import { useState, useEffect, useRef, useMemo } from 'react';
import { Download, Search } from 'lucide-react';
import Card from './Card';
-import HandButton from './HandButton';
-import { HandCheckbox } from './HandInput';
+import Button from './Button';
+import { Checkbox } from './Input';
import { radius } from '../design';
import { useFocusTrap } from '../hooks/useFocusTrap';
import type { DiscoveredSkill } from '../api/client';
@@ -137,7 +137,7 @@ export default function SkillPickerModal({
{/* Select All */}
-
{filtered.map((skill) => (
-
toggle(skill.path)}
@@ -179,15 +179,15 @@ export default function SkillPickerModal({
{/* Footer */}
-
Cancel
-
-
+
+
diff --git a/ui/src/design.ts b/ui/src/design.ts
index e71bb5e51..5fb796d33 100644
--- a/ui/src/design.ts
+++ b/ui/src/design.ts
@@ -38,30 +38,3 @@ export const palette = {
warning: '#d4870e',
danger: '#c0392b',
} as const;
-
-// ── Backward compatibility aliases ──────────────────────
-// These will be removed after all files are migrated.
-// DO NOT use in new code.
-/** @deprecated Use `radius` instead */
-export const wobbly = {
- full: radius.full,
- md: radius.md,
- sm: radius.sm,
- btn: radius.btn,
-} as const;
-
-/** @deprecated Use `palette` instead */
-export const colors = {
- paper: '#f7f6f3',
- paperWarm: '#ffffff',
- pencil: '#141312',
- pencilLight: '#5a5750',
- muted: '#e2dfd8',
- mutedDark: '#9e9b94',
- accent: '#dc4538',
- blue: '#2d5da1',
- postit: '#fff9c4',
- success: '#2e8b57',
- warning: '#d4870e',
- danger: '#c0392b',
-} as const;
diff --git a/ui/src/pages/AuditPage.tsx b/ui/src/pages/AuditPage.tsx
index a0e26c115..d00287679 100644
--- a/ui/src/pages/AuditPage.tsx
+++ b/ui/src/pages/AuditPage.tsx
@@ -17,9 +17,9 @@ import {
import { api } from '../api/client';
import type { AuditAllResponse, AuditResult, AuditFinding } from '../api/client';
import Card from '../components/Card';
-import HandButton from '../components/HandButton';
+import Button from '../components/Button';
import Badge from '../components/Badge';
-import { HandSelect } from '../components/HandInput';
+import { Select } from '../components/Input';
import EmptyState from '../components/EmptyState';
import { PageSkeleton } from '../components/Skeleton';
import { useToast } from '../components/Toast';
@@ -137,12 +137,12 @@ export default function AuditPage() {
-
+
Custom Rules
-
+
-
{loading ? 'Scanning...' : 'Run Audit'}
-
+
@@ -162,7 +162,7 @@ export default function AuditPage() {
total={progress.total}
startTime={startTimeRef.current}
icon={ShieldCheck}
- iconClassName="animate-pulse-gentle"
+ iconClassName="animate-pulse"
labelDiscovering="Scanning skills..."
labelRunning="Scanning skills..."
units="skills"
@@ -255,9 +255,9 @@ export default function AuditPage() {
title="No audit results yet"
description="Click 'Run Audit' to scan your installed skills for security threats"
action={
-
+
Run Audit
-
+
}
/>
)}
@@ -363,7 +363,7 @@ function StatCard({
{/* Pulse dot for non-zero danger/warning */}
{!isZero && (variant === 'danger' || variant === 'warning') && (
-
+
)}
@@ -524,7 +524,7 @@ function TriagePanel({
{/* Bottom row: filter + help */}
- onSeverityChange(value)}
diff --git a/ui/src/pages/AuditRulesPage.tsx b/ui/src/pages/AuditRulesPage.tsx
index e91422dc2..a00e6923b 100644
--- a/ui/src/pages/AuditRulesPage.tsx
+++ b/ui/src/pages/AuditRulesPage.tsx
@@ -22,10 +22,10 @@ import { yaml } from '@codemirror/lang-yaml';
import { EditorView } from '@codemirror/view';
import { useQuery, useQueryClient, useMutation } from '@tanstack/react-query';
import Card from '../components/Card';
-import HandButton from '../components/HandButton';
+import Button from '../components/Button';
import Badge from '../components/Badge';
import ConfirmDialog from '../components/ConfirmDialog';
-import { HandInput } from '../components/HandInput';
+import { Input } from '../components/Input';
import EmptyState from '../components/EmptyState';
import { PageSkeleton } from '../components/Skeleton';
import { useToast } from '../components/Toast';
@@ -313,7 +313,7 @@ export default function AuditRulesPage() {
- setViewMode(viewMode === 'structured' ? 'yaml' : 'structured')}
variant="secondary"
size="md"
@@ -323,9 +323,9 @@ export default function AuditRulesPage() {
) : (
<>
Rule Browser>
)}
-
+
{viewMode === 'structured' && stats.custom > 0 && (
- setShowResetConfirm(true)}
disabled={resetMutation.isPending}
variant="danger"
@@ -333,7 +333,7 @@ export default function AuditRulesPage() {
>
{resetMutation.isPending ? 'Resetting...' : 'Reset All'}
-
+
)}
{viewMode === 'yaml' && rawQuery.data?.exists && (
<>
@@ -345,10 +345,10 @@ export default function AuditRulesPage() {
unsaved changes
)}
-
+
{saving ? 'Saving...' : 'Save'}
-
+
>
)}
@@ -436,7 +436,7 @@ export default function AuditRulesPage() {
strokeWidth={2.5}
className="absolute left-3 top-1/2 -translate-y-1/2 text-pencil-light pointer-events-none"
/>
-
setSearch(e.target.value)}
@@ -500,10 +500,10 @@ export default function AuditRulesPage() {
title="No custom rules file"
description={`Create ${isProjectMode ? 'a project-level' : 'a global'} audit-rules.yaml to add or override security rules`}
action={
-
+
{creating ? 'Creating...' : 'Create Rules File'}
-
+
}
/>
)}
diff --git a/ui/src/pages/BackupPage.tsx b/ui/src/pages/BackupPage.tsx
index 2e902e76d..01124b1ca 100644
--- a/ui/src/pages/BackupPage.tsx
+++ b/ui/src/pages/BackupPage.tsx
@@ -16,7 +16,7 @@ import { useAppContext } from '../context/AppContext';
import { queryKeys, staleTimes } from '../lib/queryKeys';
import { formatSize } from '../lib/format';
import Card from '../components/Card';
-import HandButton from '../components/HandButton';
+import Button from '../components/Button';
import Badge from '../components/Badge';
import ConfirmDialog from '../components/ConfirmDialog';
import EmptyState from '../components/EmptyState';
@@ -201,7 +201,7 @@ export default function BackupPage() {
)}
-
Create Backup>
)}
-
+
{backups.length > 0 && (
-
setCleanupOpen(true)}
>
Cleanup
-
+
)}
@@ -233,9 +233,9 @@ export default function BackupPage() {
title="No backups found"
description="Create your first backup to protect your target configurations"
action={
-
+
Create First Backup
-
+
}
/>
) : (
@@ -378,14 +378,14 @@ function BackupCard({
{/* Actions */}
{backup.targets.map((t) => (
- onRestore(t)}
>
Restore {t}
-
+
))}
diff --git a/ui/src/pages/CollectPage.tsx b/ui/src/pages/CollectPage.tsx
index 0f79f804f..0cfb83b8a 100644
--- a/ui/src/pages/CollectPage.tsx
+++ b/ui/src/pages/CollectPage.tsx
@@ -16,7 +16,7 @@ import {
} from 'lucide-react';
import Card from '../components/Card';
import Badge from '../components/Badge';
-import HandButton from '../components/HandButton';
+import Button from '../components/Button';
import EmptyState from '../components/EmptyState';
import ConfirmDialog from '../components/ConfirmDialog';
import { PageSkeleton } from '../components/Skeleton';
@@ -187,7 +187,7 @@ export default function CollectPage() {
@@ -200,7 +200,7 @@ export default function CollectPage() {
{/* Scan control area */}
-
handleScan(presetTarget)}
disabled={phase === 'scanning' || phase === 'collecting'}
variant="primary"
@@ -218,7 +218,7 @@ export default function CollectPage() {
{phase === 'idle' ? 'Scan for Local Skills' : 'Re-scan'}
>
)}
-
+
{presetTarget && (
@@ -266,22 +266,22 @@ export default function CollectPage() {
Found {totalCount} local skill{totalCount !== 1 ? 's' : ''}
- toggleAll(true)}
variant="ghost"
size="sm"
disabled={phase === 'collecting'}
>
Select All
-
-
+ toggleAll(false)}
variant="ghost"
size="sm"
disabled={phase === 'collecting'}
>
Select None
-
+
@@ -301,7 +301,7 @@ export default function CollectPage() {
{/* Collect button */}
{phase !== 'done' && (
- setConfirming(true)}
disabled={selected.size === 0 || phase === 'collecting'}
variant="primary"
@@ -319,7 +319,7 @@ export default function CollectPage() {
Collect {selected.size} Skill{selected.size !== 1 ? 's' : ''}
>
)}
-
+
)}
@@ -340,10 +340,10 @@ export default function CollectPage() {
Skills collected to source! Run Sync to distribute them to all targets.
-
+
Go to Sync
-
+
diff --git a/ui/src/pages/ConfigPage.tsx b/ui/src/pages/ConfigPage.tsx
index 648d58351..341008883 100644
--- a/ui/src/pages/ConfigPage.tsx
+++ b/ui/src/pages/ConfigPage.tsx
@@ -5,7 +5,7 @@ import { yaml } from '@codemirror/lang-yaml';
import { EditorView } from '@codemirror/view';
import { useQuery, useQueryClient } from '@tanstack/react-query';
import Card from '../components/Card';
-import HandButton from '../components/HandButton';
+import Button from '../components/Button';
import { PageSkeleton } from '../components/Skeleton';
import { useToast } from '../components/Toast';
import { api } from '../api/client';
@@ -90,7 +90,7 @@ export default function ConfigPage() {
unsaved changes
)}
-
{saving ? 'Saving...' : 'Save'}
-
+
diff --git a/ui/src/pages/DashboardPage.tsx b/ui/src/pages/DashboardPage.tsx
index 884f209b0..150eead88 100644
--- a/ui/src/pages/DashboardPage.tsx
+++ b/ui/src/pages/DashboardPage.tsx
@@ -290,7 +290,7 @@ export default function DashboardPage() {
diff --git a/ui/src/pages/ExtrasPage.tsx b/ui/src/pages/ExtrasPage.tsx
index 69450176e..492d5620a 100644
--- a/ui/src/pages/ExtrasPage.tsx
+++ b/ui/src/pages/ExtrasPage.tsx
@@ -7,8 +7,8 @@ import { queryKeys, staleTimes } from '../lib/queryKeys';
import { useAppContext } from '../context/AppContext';
import { useToast } from '../components/Toast';
import Card from '../components/Card';
-import HandButton from '../components/HandButton';
-import { HandInput, HandSelect } from '../components/HandInput';
+import Button from '../components/Button';
+import { Input, Select } from '../components/Input';
import Badge from '../components/Badge';
import EmptyState from '../components/EmptyState';
import ConfirmDialog from '../components/ConfirmDialog';
@@ -111,7 +111,7 @@ function AddExtraModal({
{/* Name */}
-
(
- updateTarget(i, 'path', e.target.value)}
@@ -138,7 +138,7 @@ function AddExtraModal({
/>
- updateTarget(i, 'mode', v)}
options={MODE_OPTIONS}
@@ -157,7 +157,7 @@ function AddExtraModal({
))}
-
Add Target
-
+
-
+
Cancel
-
-
+
+
{saving ? 'Creating...' : 'Create'}
-
+
@@ -213,12 +213,12 @@ function ExtraCard({
)}
- onSync(extra.name)}>
+ onSync(extra.name)}>
Sync
-
- onRemove(extra.name)}>
+
+ onRemove(extra.name)}>
-
+
@@ -346,13 +346,13 @@ export default function ExtrasPage() {
{extras.length > 0 && (
-
+
Sync All
-
+
)}
-
setShowAdd(true)}>
+ setShowAdd(true)}>
Add Extra
-
+
setShowAdd(true)}>
+ setShowAdd(true)}>
Add Extra
-
+
}
/>
)}
diff --git a/ui/src/pages/GitSyncPage.tsx b/ui/src/pages/GitSyncPage.tsx
index abff811d7..246827cd7 100644
--- a/ui/src/pages/GitSyncPage.tsx
+++ b/ui/src/pages/GitSyncPage.tsx
@@ -20,8 +20,8 @@ import { queryKeys, staleTimes } from '../lib/queryKeys';
import { useAppContext } from '../context/AppContext';
import { shortenHome } from '../lib/paths';
import Card from '../components/Card';
-import HandButton from '../components/HandButton';
-import { HandInput, HandCheckbox } from '../components/HandInput';
+import Button from '../components/Button';
+import { Input, Checkbox } from '../components/Input';
import Badge from '../components/Badge';
import { PageSkeleton } from '../components/Skeleton';
import { useToast } from '../components/Toast';
@@ -222,7 +222,7 @@ export default function GitSyncPage() {
{/* Commit Message */}
-
-
- Push>
)}
-
+
{pushResult && (
@@ -322,12 +322,12 @@ export default function GitSyncPage() {
)}
{/* Pull Results */}
diff --git a/ui/src/pages/LogPage.tsx b/ui/src/pages/LogPage.tsx
index 75c4312a0..f8ba34c59 100644
--- a/ui/src/pages/LogPage.tsx
+++ b/ui/src/pages/LogPage.tsx
@@ -5,13 +5,13 @@ import { api } from '../api/client';
import type { LogEntry, LogStatsResponse } from '../api/client';
import { queryKeys, staleTimes } from '../lib/queryKeys';
import Card from '../components/Card';
-import HandButton from '../components/HandButton';
+import Button from '../components/Button';
import Badge from '../components/Badge';
import ConfirmDialog from '../components/ConfirmDialog';
import EmptyState from '../components/EmptyState';
import { PageSkeleton } from '../components/Skeleton';
import { useToast } from '../components/Toast';
-import { HandSelect } from '../components/HandInput';
+import { Select } from '../components/Input';
import { radius, shadows } from '../design';
/* ──────────────────────────────────────────────────────────────────────
@@ -746,15 +746,15 @@ export default function LogPage() {
-
+
Refresh
-
+
{hasEntries && (
- setConfirmOpen(true)} variant="danger" size="sm" disabled={clearing}>
+ setConfirmOpen(true)} variant="danger" size="sm" disabled={clearing}>
Clear
-
+
)}
@@ -774,7 +774,7 @@ export default function LogPage() {
{/* ─── Filters ─── */}
-
-
- switchMode('github')}
variant={mode === 'github' ? 'primary' : 'secondary'}
size="sm"
>
GitHub
-
-
+ switchMode('hub')}
variant={mode === 'hub' ? 'primary' : 'secondary'}
size="sm"
>
Hub
-
+
{/* Hub selector (only in hub mode) */}
@@ -354,13 +354,13 @@ export default function SearchPage() {
{savedHubs.length > 0 ? (
- ({ value: h.url, label: h.label }))}
className="flex-1"
/>
- setShowHubManager(true)}
variant="ghost"
size="sm"
@@ -368,21 +368,21 @@ export default function SearchPage() {
>
Manage
-
+
) : (
No hubs configured. Add one to get started.
-
setShowHubManager(true)}
variant="secondary"
size="sm"
>
Manage Hubs
-
+
)}
@@ -411,7 +411,7 @@ export default function SearchPage() {
strokeWidth={2.5}
className="absolute left-4 top-1/2 -translate-y-1/2 text-muted-dark pointer-events-none"
/>
-
- handleSearch(query)}
disabled={searching}
variant="primary"
@@ -428,7 +428,7 @@ export default function SearchPage() {
>
{searching ? 'Searching...' : 'Search'}
-
+
{mode === 'github' && (
@@ -451,7 +451,7 @@ export default function SearchPage() {
strokeWidth={2.5}
className="absolute left-3 top-1/2 -translate-y-1/2 text-muted-dark pointer-events-none"
/>
-
- handleInstall(r.source, r.skill)}
disabled={installing === r.source}
variant="secondary"
@@ -507,7 +507,7 @@ export default function SearchPage() {
>
{installing === r.source ? 'Installing...' : 'Install'}
-
+
))}
@@ -531,7 +531,7 @@ export default function SearchPage() {
{!results && !searching && (
@@ -546,14 +546,14 @@ export default function SearchPage() {
? 'Type a query above to find skills on GitHub'
: 'Type a query above, or search with empty query to browse all'}
- handleSearch('')}
variant="secondary"
size="sm"
>
{mode === 'github' ? 'Browse Popular Skills' : 'Browse All Skills'}
-
+
)}
diff --git a/ui/src/pages/SkillDetailPage.tsx b/ui/src/pages/SkillDetailPage.tsx
index ffabe334b..d45819724 100644
--- a/ui/src/pages/SkillDetailPage.tsx
+++ b/ui/src/pages/SkillDetailPage.tsx
@@ -12,7 +12,7 @@ import { queryKeys, staleTimes } from '../lib/queryKeys';
import Badge from '../components/Badge';
import Card from '../components/Card';
import CopyButton from '../components/CopyButton';
-import HandButton from '../components/HandButton';
+import Button from '../components/Button';
import { PageSkeleton } from '../components/Skeleton';
import { useToast } from '../components/Toast';
import ConfirmDialog from '../components/ConfirmDialog';
@@ -354,7 +354,7 @@ export default function SkillDetailPage() {
{hasManifest && (
{(skill.isInRepo || skill.source) && (
- handleUpdate()}
disabled={updating}
variant="secondary"
@@ -467,9 +467,9 @@ export default function SkillDetailPage() {
>
{updating ? 'Updating...' : 'Update'}
-
+
)}
- setConfirmDelete(true)}
disabled={deleting}
variant="danger"
@@ -482,7 +482,7 @@ export default function SkillDetailPage() {
: skill.isInRepo
? 'Uninstall Repo'
: 'Uninstall'}
-
+
diff --git a/ui/src/pages/SkillsPage.tsx b/ui/src/pages/SkillsPage.tsx
index 6e63ca1ad..fe61b096b 100644
--- a/ui/src/pages/SkillsPage.tsx
+++ b/ui/src/pages/SkillsPage.tsx
@@ -17,7 +17,7 @@ import { VirtuosoGrid } from 'react-virtuoso';
import type { GridComponents } from 'react-virtuoso';
import { queryKeys, staleTimes } from '../lib/queryKeys';
import Badge from '../components/Badge';
-import { HandInput, HandSelect } from '../components/HandInput';
+import { Input, Select } from '../components/Input';
import { PageSkeleton } from '../components/Skeleton';
import EmptyState from '../components/EmptyState';
import Card from '../components/Card';
@@ -341,7 +341,7 @@ export default function SkillsPage() {
strokeWidth={2.5}
className="absolute left-4 top-1/2 -translate-y-1/2 text-muted-dark pointer-events-none"
/>
-
-
setSortType(v as SortType)}
options={[
diff --git a/ui/src/pages/SyncPage.tsx b/ui/src/pages/SyncPage.tsx
index 320e8d8ff..204f7b1aa 100644
--- a/ui/src/pages/SyncPage.tsx
+++ b/ui/src/pages/SyncPage.tsx
@@ -19,7 +19,7 @@ import {
import { Virtuoso } from 'react-virtuoso';
import Card from '../components/Card';
import Badge from '../components/Badge';
-import HandButton from '../components/HandButton';
+import Button from '../components/Button';
import { useToast } from '../components/Toast';
import { api, type SyncResult, type DiffTarget } from '../api/client';
import { queryKeys } from '../lib/queryKeys';
@@ -140,7 +140,7 @@ export default function SyncPage() {
{/* Visual Pipeline */}
@@ -237,7 +237,7 @@ export default function SyncPage() {
)}
{/* Big sync button */}
-
{syncing ? 'Syncing...' : dryRun ? 'Preview Sync' : 'Sync Now'}
-
+
{/* Advanced options toggle */}
-
{
if (adding) {
setAdding(false);
@@ -135,7 +135,7 @@ export default function TargetsPage() {
>
{adding ? 'Cancel' : 'Add Target'}
-
+
{/* Add target form */}
@@ -166,16 +166,16 @@ export default function TargetsPage() {
{shortenHome(newTarget.path)}
- setNewTarget({ name: '', path: '' })}
variant="ghost"
size="sm"
>
Change
-
+
-
-
+
Add Target
-
-
+ {
setAdding(false);
setNewTarget({ name: '', path: '' });
@@ -199,20 +199,20 @@ export default function TargetsPage() {
size="sm"
>
Cancel
-
+
) : customMode ? (
/* Custom target entry mode */
-
setNewTarget({ ...newTarget, name: e.target.value })}
placeholder="my-custom-target"
/>
-
-
+
Add Target
-
-
+ {
setCustomMode(false);
setNewTarget({ name: '', path: '' });
@@ -233,8 +233,8 @@ export default function TargetsPage() {
size="sm"
>
Back to picker
-
-
+ {
setAdding(false);
setNewTarget({ name: '', path: '' });
@@ -245,7 +245,7 @@ export default function TargetsPage() {
size="sm"
>
Cancel
-
+
) : (
@@ -342,7 +342,7 @@ export default function TargetsPage() {
Enter custom target
- {
setAdding(false);
setNewTarget({ name: '', path: '' });
@@ -353,7 +353,7 @@ export default function TargetsPage() {
size="sm"
>
Cancel
-
+
)}
@@ -394,7 +394,7 @@ export default function TargetsPage() {
Sync mode:
- {
try {
@@ -437,7 +437,7 @@ export default function TargetsPage() {
)}
{editingFilter === target.name && (
-
+
- {
setSavingFilter(true);
try {
@@ -474,14 +474,14 @@ export default function TargetsPage() {
disabled={savingFilter}
>
{savingFilter ? 'Saving...' : 'Save'}
-
-
+ setEditingFilter(null)}
variant="ghost"
size="sm"
>
Cancel
-
+
@@ -531,10 +531,10 @@ export default function TargetsPage() {
description="Add a target to start syncing your skills."
action={
!adding ? (
-
setAdding(true)} variant="secondary" size="sm">
+ setAdding(true)} variant="secondary" size="sm">
Add Your First Target
-
+
) : undefined
}
/>
@@ -580,7 +580,7 @@ function TargetPickerItem({
return (
onSelect(target)}
- className="w-full text-left px-3 py-2.5 flex items-center gap-3 border-b border-muted/60 hover:bg-postit/40 transition-colors cursor-pointer group"
+ className="w-full text-left px-3 py-2.5 flex items-center gap-3 border-b border-muted/60 hover:bg-muted/20 transition-colors cursor-pointer group"
>
{isDetected ? (
diff --git a/ui/src/pages/TrashPage.tsx b/ui/src/pages/TrashPage.tsx
index 0f852199a..8b00011e1 100644
--- a/ui/src/pages/TrashPage.tsx
+++ b/ui/src/pages/TrashPage.tsx
@@ -12,7 +12,7 @@ import { queryKeys, staleTimes } from '../lib/queryKeys';
import { useAppContext } from '../context/AppContext';
import { formatSize } from '../lib/format';
import Card from '../components/Card';
-import HandButton from '../components/HandButton';
+import Button from '../components/Button';
import Badge from '../components/Badge';
import ConfirmDialog from '../components/ConfirmDialog';
import EmptyState from '../components/EmptyState';
@@ -146,13 +146,13 @@ export default function TrashPage() {
)}
{items.length > 0 && (
- setEmptyOpen(true)}
>
Empty Trash
-
+
)}
@@ -277,12 +277,12 @@ function TrashCard({
{/* Actions */}
-
+
Restore
-
-
+
+
Delete
-
+
diff --git a/ui/src/pages/UpdatePage.tsx b/ui/src/pages/UpdatePage.tsx
index 5c2f29263..2e233412c 100644
--- a/ui/src/pages/UpdatePage.tsx
+++ b/ui/src/pages/UpdatePage.tsx
@@ -5,8 +5,8 @@ import {
Circle, CheckCircle, XCircle, MinusCircle, ShieldAlert,
} from 'lucide-react';
import Card from '../components/Card';
-import HandButton from '../components/HandButton';
-import { HandCheckbox } from '../components/HandInput';
+import Button from '../components/Button';
+import { Checkbox } from '../components/Input';
import Badge from '../components/Badge';
import { queryKeys } from '../lib/queryKeys';
import { useToast } from '../components/Toast';
@@ -239,7 +239,7 @@ export default function UpdatePage() {
{phase === 'idle' && (
-
Check Now
-
+
)}
{phase === 'idle' && hasUpdates && totalSelected > 0 && (
-
+
Update Selected ({totalSelected})
-
+
)}
@@ -281,9 +281,9 @@ export default function UpdatePage() {
)}
{phase === 'done' && (
-
+
Done
-
+
)}
@@ -342,7 +342,7 @@ export default function UpdatePage() {
All tracked repositories and skills are at their latest versions.
-
Check Again
-
+
@@ -362,9 +362,9 @@ export default function UpdatePage() {
Tracked Repositories ({updatableRepos.length})
-
+
{selectedRepos.size === updatableRepos.length ? 'Deselect All' : 'Select All'}
-
+
{updatableRepos.map((repo) => (
@@ -373,7 +373,7 @@ export default function UpdatePage() {
className="flex items-center gap-3 px-3 py-2 border border-pencil/10"
style={{ borderRadius: radius.sm }}
>
-
toggleRepo(repo.name)} />
+ toggleRepo(repo.name)} />
{repo.name}
@@ -395,9 +395,9 @@ export default function UpdatePage() {
Skills with Updates ({updatableSkills.length})
-
+
{selectedSkills.size === updatableSkills.length ? 'Deselect All' : 'Select All'}
-
+
{updatableSkills.map((skill) => (
@@ -406,7 +406,7 @@ export default function UpdatePage() {
className="flex items-center gap-3 px-3 py-2 border border-pencil/10"
style={{ borderRadius: radius.sm }}
>
-
toggleSkill(skill.name)} />
+ toggleSkill(skill.name)} />
{skill.name}