Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions src/lib/components/Sidebar.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@
/** Settings, on the Labs page. @type {(() => void) | null} */
onopenlabs = null,
oncheckupdates = () => {},
/** A manual update check is running: the button spins. */
/** A manual update check is running: the button's icon fades in and out. */
checkingUpdate = false,
/** An update was found ('available') or downloaded ('ready'): the button becomes a pill (T3). */
updateState = /** @type {'' | 'available' | 'ready'} */ (''),
Expand Down Expand Up @@ -3236,7 +3236,7 @@
{updateState === 'ready' ? 'Restart' : 'Update'}
</button>
{:else}
<button type="button" class="ml-auto inline-flex size-7 items-center justify-center rounded-full text-muted-foreground outline-none transition-[background-color,color,scale] duration-[120ms] ease-[var(--ease-out)] hover:bg-sidebar-accent hover:text-foreground active:scale-[0.94] focus-visible:ring-2 focus-visible:ring-ring disabled:pointer-events-none" title={checkingUpdate ? 'Checking for updates…' : 'Check for updates'} aria-label={checkingUpdate ? 'Checking for updates' : 'Check for updates'} aria-busy={checkingUpdate} disabled={checkingUpdate} onclick={oncheckupdates}><Icon name={checkingUpdate ? 'loader-2' : 'download'} class={checkingUpdate ? 'size-3.5 shrink-0 animate-spin' : 'size-3.5 shrink-0'} /></button>
<button type="button" class="ml-auto inline-flex size-7 items-center justify-center rounded-full text-muted-foreground outline-none transition-[background-color,color,scale] duration-[120ms] ease-[var(--ease-out)] hover:bg-sidebar-accent hover:text-foreground active:scale-[0.94] focus-visible:ring-2 focus-visible:ring-ring disabled:pointer-events-none" title={checkingUpdate ? 'Checking for updates…' : 'Check for updates'} aria-label={checkingUpdate ? 'Checking for updates' : 'Check for updates'} aria-busy={checkingUpdate} disabled={checkingUpdate} onclick={oncheckupdates}><Icon name="download" class={checkingUpdate ? 'size-3.5 shrink-0 animate-pulse' : 'size-3.5 shrink-0'} /></button>
{/if}
</div>
</aside>
Expand Down
8 changes: 4 additions & 4 deletions src/lib/icon-registry.js
Original file line number Diff line number Diff line change
Expand Up @@ -154,7 +154,7 @@ import {
ArrowRight01Icon, ArrowLeft01Icon, Add01Icon, MinusSignIcon, Search01Icon,
Delete02Icon, Logout01Icon, Table01Icon, GridTableIcon, RefreshIcon, Copy01Icon, Loading03Icon, Key01Icon,
LinkSquare01Icon, Database01Icon, SourceCodeIcon, TerminalIcon, ChartLineData02Icon,
SparklesIcon, GitBranchIcon, Download04Icon, PlayIcon, EyeIcon, EyeOffIcon,
SparklesIcon, GitBranchIcon, Download04Icon, PlayIcon, ViewIcon, ViewOffSlashIcon,
AiBrain01Icon, Alert02Icon, AlertCircleIcon, Shield01Icon, PencilEdit01Icon,
BracketsIcon, SquareLock01Icon, DashboardSquare01Icon, HistoryIcon, Clock01Icon,
FlashIcon, Settings01Icon, Maximize01Icon, FilterIcon, MoreHorizontalIcon,
Expand Down Expand Up @@ -194,7 +194,7 @@ export const ICON_MAP = {
// A view is an eye everywhere in the app - TabBar picks 'eye' for view tabs,
// so the sidebar has to agree. Plain table glyphs made views indistinguishable
// from tables at size-3.
'table-view': { lucide: Eye, huge: EyeIcon },
'table-view': { lucide: Eye, huge: ViewIcon },
'refresh-cw': { lucide: RefreshCw, huge: RefreshIcon },
'copy': { lucide: Copy, huge: Copy01Icon },
'copy-plus': { lucide: CopyPlus, huge: Copy01Icon },
Expand All @@ -210,8 +210,8 @@ export const ICON_MAP = {
'git-branch': { lucide: GitBranch, huge: GitBranchIcon },
'download': { lucide: Download, huge: Download04Icon },
'play': { lucide: Play, huge: PlayIcon },
'eye': { lucide: Eye, huge: EyeIcon },
'eye-off': { lucide: EyeOff, huge: EyeOffIcon },
'eye': { lucide: Eye, huge: ViewIcon },
'eye-off': { lucide: EyeOff, huge: ViewOffSlashIcon },
'bot': { lucide: Bot, huge: AiBrain01Icon },
'alert-triangle': { lucide: AlertTriangle, huge: Alert02Icon },
'alert-circle': { lucide: AlertCircle, huge: AlertCircleIcon },
Expand Down
Loading