@adecore/database 0.54.8 → 0.54.10

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -58,7 +58,7 @@ export function ConnectionManager({ value, onValueChange, selected, onSelectedCh
58
58
  select(rest[Math.min(index, rest.length - 1)]?.id ?? null);
59
59
  };
60
60
  const list = (_jsxs("div", { className: "flex w-56 shrink-0 flex-col border-r border-border max-[640px]:max-h-60 max-[640px]:w-auto max-[640px]:border-r-0 max-[640px]:border-b", children: [_jsxs(ScrollArea, { render: _jsx("nav", {}), "aria-label": t('connections.list'), className: "grow", viewportClassName: "flex flex-col gap-0.5 p-2", children: [value.length === 0 && _jsx("p", { className: "px-2 py-1.5 text-xs text-text-faint", children: t('connections.empty') }), value.map((connection) => (_jsxs(MasterItem, { selected: connection.id === current?.id, onSelect: () => select(connection.id), children: [_jsx(EngineIcon, { engine: connection.config.engine, size: 16, className: "shrink-0 text-text-muted" }), _jsxs("span", { className: "flex min-w-0 flex-col", children: [_jsx("span", { className: "truncate", children: connection.name || t('connections.untitled') }), _jsx("span", { className: "truncate text-xs text-text-faint", children: targetOf(connection) })] })] }, connection.id)))] }), _jsx("div", { className: "flex shrink-0 flex-col gap-1 border-t border-border p-2", children: _jsxs(Menu.Root, { children: [_jsxs(Menu.Trigger, { render: _jsx(Button, { variant: "ghost", size: "sm", className: "justify-start" }), children: [_jsx(Icon, { icon: Plus, size: 14 }), t('connections.new')] }), _jsxs(Menu.Popup, { children: [ENGINES.map((engine) => (_jsxs(Menu.Item, { onClick: () => add(engine), children: [_jsx(Icon, { icon: ENGINE_ICONS[engine], size: 14 }), t(`engine.${engine}`)] }, engine))), _jsx(Menu.Separator, {}), _jsxs(Menu.SubmenuRoot, { children: [_jsxs(Menu.SubmenuTrigger, { children: [_jsx(Icon, { icon: Container, size: 14 }), t('connections.fromDocker.label')] }), _jsx(Menu.Popup, { children: _jsx(DockerMenuItems, { onPick: addFromContainer }) })] })] })] }) })] }));
61
- const detail = current === null ? (_jsx(EmptyState, { icon: Database, children: t('connections.empty') })) : (_jsxs(_Fragment, { children: [shown !== null && (_jsx(Banner, { icon: 'info' in shown ? CircleCheck : CircleAlert, tone: 'info' in shown ? 'neutral' : 'error', className: "sticky top-0 z-10", message: 'info' in shown
61
+ const detail = current === null ? (_jsx(EmptyState, { icon: Database, children: t('connections.empty') })) : (_jsxs(_Fragment, { children: [shown !== null && (_jsx(Banner, { icon: 'info' in shown ? CircleCheck : CircleAlert, tone: 'info' in shown ? 'positive' : 'error', className: "sticky top-0 z-10", message: 'info' in shown
62
62
  ? t('connections.test.success', { server: `${t(`engine.flavor.${shown.info.flavor}`)} ${shown.info.version}` })
63
63
  : shown.error, children: _jsx(CloseButton, { size: "sm", label: t('connections.test.dismiss'), onClick: () => setOutcome(null) }) })), _jsx(DetailHeader, { mark: _jsx(EngineIcon, { engine: current.config.engine, size: 20, className: "mt-0.5 shrink-0 text-text-muted" }), title: current.name || t('connections.untitled'), subtitle: targetOf(current), actions: _jsxs(Button, { variant: "danger-outline", onClick: () => setDeleting(true), children: [_jsx(Icon, { icon: Trash2, size: 14 }), t('connections.delete.action')] }) }), _jsxs("div", { className: "flex flex-col gap-4", children: [_jsx(ConnectionForm, { value: current, onValueChange: change, onBrowse: onBrowse }), renderFields?.(current)] }), _jsx(ConnectionTest, { connection: current, onOutcome: setOutcome }, current.id), _jsx(PromptDialog, { open: deleting, danger: true, onOpenChange: setDeleting, title: t('connections.delete.title'), description: t('connections.delete.description', { name: current.name || t('connections.untitled') }), confirmLabel: t('connections.delete.confirm'), onConfirm: async () => {
64
64
  await remove(current);
@@ -2,7 +2,7 @@ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
2
  import { Icon, IconButton, Input, ScrollArea, isApplePlatform, isModHeld } from '@adecore/ui';
3
3
  import { formatMoment, formatNumber } from '@adecore/ui/format';
4
4
  import clsx from 'clsx';
5
- import { Check, CircleAlert, Search, Trash2 } from 'lucide-react';
5
+ import { CircleAlert, CircleCheck, Search, Trash2 } from 'lucide-react';
6
6
  import { useState } from 'react';
7
7
  import { useTranslation } from 'react-i18next';
8
8
  import { searchHistory } from './history.js';
@@ -11,5 +11,5 @@ export function HistoryPanel({ entries, onPick, onClear, className, ref }) {
11
11
  const { t } = useTranslation('database');
12
12
  const [query, setQuery] = useState('');
13
13
  const shown = searchHistory(entries, query);
14
- return (_jsxs("aside", { ref: ref, "aria-label": t('console.history.title'), className: clsx('flex w-72 shrink-0 flex-col border-l border-border', className), children: [_jsxs("div", { className: "flex shrink-0 items-center gap-2 p-2", children: [_jsx(Input, { size: "sm", type: "search", icon: Search, className: "min-w-0 flex-1", "aria-label": t('console.history.search'), placeholder: t('console.history.search'), value: query, onChange: (event) => setQuery(event.target.value) }), _jsx(IconButton, { icon: Trash2, size: "sm", label: t('console.history.clear'), disabled: entries.length === 0, onClick: onClear })] }), _jsx("div", { className: "relative min-h-24 flex-1 border-t border-border", children: shown.length === 0 ? (_jsx("p", { className: "p-3 text-xs text-text-muted", children: entries.length === 0 ? t('console.history.empty') : t('console.history.noMatches') })) : (_jsx(ScrollArea, { render: _jsx("ul", {}), className: "absolute inset-0", children: shown.map((entry) => (_jsx("li", { className: "border-b border-border-soft", children: _jsxs("button", { type: "button", className: "flex w-full min-w-0 flex-col gap-0.5 px-3 py-2 text-left hover:bg-surface-hover", onClick: (event) => onPick(entry, isModHeld(event, isApplePlatform())), onDoubleClick: () => onPick(entry, true), children: [_jsx("span", { className: "truncate font-mono text-xs text-text", children: entry.sql.replace(/\s+/g, ' ') }), _jsxs("span", { className: "flex items-center gap-1.5 text-xs text-text-muted tabular-nums", children: [_jsx(Icon, { icon: entry.ok ? Check : CircleAlert, size: 12, className: entry.ok ? 'text-positive' : 'text-status-error' }), formatMoment(entry.at), entry.rows !== null && t('console.history.rows', { count: entry.rows, formatted: formatNumber(entry.rows) })] })] }) }, `${entry.at}:${entry.sql}`))) })) }), _jsx("p", { className: "shrink-0 border-t border-border px-3 py-2 text-xs text-text-faint", children: t('console.history.hint') })] }));
14
+ return (_jsxs("aside", { ref: ref, "aria-label": t('console.history.title'), className: clsx('flex w-72 shrink-0 flex-col border-l border-border', className), children: [_jsxs("div", { className: "flex shrink-0 items-center gap-2 p-2", children: [_jsx(Input, { size: "sm", type: "search", icon: Search, className: "min-w-0 flex-1", "aria-label": t('console.history.search'), placeholder: t('console.history.search'), value: query, onChange: (event) => setQuery(event.target.value) }), _jsx(IconButton, { icon: Trash2, size: "sm", label: t('console.history.clear'), disabled: entries.length === 0, onClick: onClear })] }), _jsx("div", { className: "relative min-h-24 flex-1 border-t border-border", children: shown.length === 0 ? (_jsx("p", { className: "p-3 text-xs text-text-muted", children: entries.length === 0 ? t('console.history.empty') : t('console.history.noMatches') })) : (_jsx(ScrollArea, { render: _jsx("ul", {}), className: "absolute inset-0", children: shown.map((entry) => (_jsx("li", { className: "border-b border-border-soft", children: _jsxs("button", { type: "button", className: "flex w-full min-w-0 flex-col gap-0.5 px-3 py-2 text-left hover:bg-surface-hover", onClick: (event) => onPick(entry, isModHeld(event, isApplePlatform())), onDoubleClick: () => onPick(entry, true), children: [_jsx("span", { className: "truncate font-mono text-xs text-text", children: entry.sql.replace(/\s+/g, ' ') }), _jsxs("span", { className: "flex items-center gap-1.5 text-xs text-text-muted tabular-nums", children: [_jsx(Icon, { icon: entry.ok ? CircleCheck : CircleAlert, size: 12, className: entry.ok ? 'text-positive' : 'text-status-error' }), formatMoment(entry.at), entry.rows !== null && t('console.history.rows', { count: entry.rows, formatted: formatNumber(entry.rows) })] })] }) }, `${entry.at}:${entry.sql}`))) })) }), _jsx("p", { className: "shrink-0 border-t border-border px-3 py-2 text-xs text-text-faint", children: t('console.history.hint') })] }));
15
15
  }
@@ -2,7 +2,7 @@ import { Fragment as _Fragment, jsx as _jsx, jsxs as _jsxs } from "react/jsx-run
2
2
  import { Banner, Button, ColumnResizeHandle, Icon, IconButton, messageOf, PromptDialog, Spinner, Tabs, Tooltip, useColumnResize } from '@adecore/ui';
3
3
  import { formatNumber } from '@adecore/ui/format';
4
4
  import clsx from 'clsx';
5
- import { Check, CircleAlert, History, Play, Square, X } from 'lucide-react';
5
+ import { CircleAlert, CircleCheck, History, Play, Square, X } from 'lucide-react';
6
6
  import { useEffect, useId, useMemo, useRef, useState } from 'react';
7
7
  import { useTranslation } from 'react-i18next';
8
8
  import { useDatabaseAction, useDatabaseClient, useDatabaseFiles, useDatabaseNotice, useDatabaseStorage } from '../client-context.js';
@@ -302,7 +302,7 @@ export function QueryConsole({ connection, schema, onSchemaChange, value, defaul
302
302
  placeholder: t('console.placeholder'),
303
303
  autoFocus
304
304
  };
305
- return (_jsxs("div", { ref: ref, className: clsx('flex min-h-0 flex-col bg-surface text-text', className), children: [_jsxs("div", { className: "flex min-h-0 flex-1", children: [_jsxs("div", { className: "flex min-w-0 flex-1 flex-col", children: [_jsxs("div", { className: "flex shrink-0 flex-wrap items-center gap-2 border-b border-border px-3 py-2", children: [session !== null && (_jsxs(_Fragment, { children: [_jsx(RunButtons, { running: run.status === 'running', disabled: blank || busy, onCancel: () => running.current?.abort(), onRun: (scope) => requestRun(targetOf(scope)) }), _jsx(TransactionControls, { mode: mode, onModeChange: changeMode, open: inTransaction, busy: busy, onCommit: () => void settle('commit'), onRollback: () => void settle('rollback') })] })), _jsxs("div", { className: "ml-auto flex items-center gap-2", children: [toolbarEnd, session !== null && schemas.length > 0 && (_jsx(SchemaPicker, { schemas: schemas, value: activeSchema ?? null, disabled: busy, onValueChange: onSchemaChange ?? setPickedSchema })), session !== null && (_jsxs(Button, { variant: "secondary", size: "sm", "aria-pressed": historyOpen, className: "aria-pressed:bg-surface-active aria-pressed:text-text", onClick: () => setHistoryOpen(!historyOpen), children: [_jsx(Icon, { icon: History, size: 12 }), t('console.history.title')] }))] })] }), _jsx("div", { className: clsx('flex min-h-0 flex-1 flex-col', renderEditor === undefined && 'p-3'), children: renderEditor === undefined ? _jsx(SqlEditor, { ...editorProps }) : _jsx(AppEditor, { render: renderEditor, ...editorProps }) })] }), session !== null && historyOpen && _jsx(HistoryPanel, { entries: history.entries, onPick: pickHistory, onClear: history.clear })] }), session !== null && notice !== null && (_jsx(Banner, { icon: notice.tone === 'error' ? CircleAlert : Check, tone: notice.tone === 'error' ? 'error' : 'neutral', message: notice.description ?? notice.title, className: "shrink-0 pb-2", children: _jsx(Button, { size: "xs", onClick: () => setNotice(null), children: t('console.dismiss') }) })), session !== null && resultsOpen && (_jsxs("section", { ref: resultsPane, "aria-label": t('console.results'), className: "relative flex min-h-24 shrink-0 flex-col border-t border-border", style: { height: resultsHeight ?? '50%', maxHeight: `calc(100% - ${MIN_EDITOR_HEIGHT}px)` }, children: [_jsx(ColumnResizeHandle, { from: "bottom", onPointerDown: startResize }), _jsx(Tabs.Root, { value: index, onValueChange: (next) => setTab(Number(next)), children: _jsx(Tabs.List, { "aria-label": t('console.results'), className: "shrink-0 pr-1.5 pl-3", end: _jsx(IconButton, { icon: X, size: "sm", label: t('console.closeResults'), onClick: () => setResultsOpen(false) }), children: results.map((result, position) => (_jsx(Tabs.Tab, { value: position, children: statementLabel(result.sql) }, position))) }) }), run.status === 'failed' && _jsx(Banner, { icon: CircleAlert, tone: "error", message: run.message, className: "shrink-0 pt-2" }), run.status === 'cancelled' && _jsx(Banner, { icon: CircleAlert, tone: "neutral", message: t('console.cancelled'), className: "shrink-0 pt-2" }), shown !== undefined && (_jsx(StatementResultView, { result: shown, offset: offset, pager: pager, onExport: exportBase === undefined ? undefined : (format) => void exportResult(exportBase, format), exporting: exporting, engine: engine, valuePanelOpen: panelOpen, onValuePanelOpenChange: setPanelOpen, keys: keys, onNotice: notify, onFollowReference: act === undefined || connection === undefined
305
+ return (_jsxs("div", { ref: ref, className: clsx('flex min-h-0 flex-col bg-surface text-text', className), children: [_jsxs("div", { className: "flex min-h-0 flex-1", children: [_jsxs("div", { className: "flex min-w-0 flex-1 flex-col", children: [_jsxs("div", { className: "flex shrink-0 flex-wrap items-center gap-2 border-b border-border px-3 py-2", children: [session !== null && (_jsxs(_Fragment, { children: [_jsx(RunButtons, { running: run.status === 'running', disabled: blank || busy, onCancel: () => running.current?.abort(), onRun: (scope) => requestRun(targetOf(scope)) }), _jsx(TransactionControls, { mode: mode, onModeChange: changeMode, open: inTransaction, busy: busy, onCommit: () => void settle('commit'), onRollback: () => void settle('rollback') })] })), _jsxs("div", { className: "ml-auto flex items-center gap-2", children: [toolbarEnd, session !== null && schemas.length > 0 && (_jsx(SchemaPicker, { schemas: schemas, value: activeSchema ?? null, disabled: busy, onValueChange: onSchemaChange ?? setPickedSchema })), session !== null && (_jsxs(Button, { variant: "secondary", size: "sm", "aria-pressed": historyOpen, className: "aria-pressed:bg-surface-active aria-pressed:text-text", onClick: () => setHistoryOpen(!historyOpen), children: [_jsx(Icon, { icon: History, size: 12 }), t('console.history.title')] }))] })] }), _jsx("div", { className: clsx('flex min-h-0 flex-1 flex-col', renderEditor === undefined && 'p-3'), children: renderEditor === undefined ? _jsx(SqlEditor, { ...editorProps }) : _jsx(AppEditor, { render: renderEditor, ...editorProps }) })] }), session !== null && historyOpen && _jsx(HistoryPanel, { entries: history.entries, onPick: pickHistory, onClear: history.clear })] }), session !== null && notice !== null && (_jsx(Banner, { icon: notice.tone === 'error' ? CircleAlert : CircleCheck, tone: notice.tone === 'error' ? 'error' : 'positive', message: notice.description ?? notice.title, className: "shrink-0 pb-2", children: _jsx(Button, { size: "xs", onClick: () => setNotice(null), children: t('console.dismiss') }) })), session !== null && resultsOpen && (_jsxs("section", { ref: resultsPane, "aria-label": t('console.results'), className: "relative flex min-h-24 shrink-0 flex-col border-t border-border", style: { height: resultsHeight ?? '50%', maxHeight: `calc(100% - ${MIN_EDITOR_HEIGHT}px)` }, children: [_jsx(ColumnResizeHandle, { from: "bottom", onPointerDown: startResize }), _jsx(Tabs.Root, { value: index, onValueChange: (next) => setTab(Number(next)), children: _jsx(Tabs.List, { "aria-label": t('console.results'), className: "shrink-0 pr-1.5 pl-3", end: _jsx(IconButton, { icon: X, size: "sm", label: t('console.closeResults'), onClick: () => setResultsOpen(false) }), children: results.map((result, position) => (_jsx(Tabs.Tab, { value: position, children: statementLabel(result.sql) }, position))) }) }), run.status === 'failed' && _jsx(Banner, { icon: CircleAlert, tone: "error", message: run.message, className: "shrink-0 pt-2" }), run.status === 'cancelled' && _jsx(Banner, { icon: CircleAlert, tone: "neutral", message: t('console.cancelled'), className: "shrink-0 pt-2" }), shown !== undefined && (_jsx(StatementResultView, { result: shown, offset: offset, pager: pager, onExport: exportBase === undefined ? undefined : (format) => void exportResult(exportBase, format), exporting: exporting, engine: engine, valuePanelOpen: panelOpen, onValuePanelOpenChange: setPanelOpen, keys: keys, onNotice: notify, onFollowReference: act === undefined || connection === undefined
306
306
  ? undefined
307
307
  : (reference) => act({
308
308
  kind: 'open-table',
@@ -2,7 +2,7 @@ import { Fragment as _Fragment, jsx as _jsx, jsxs as _jsxs } from "react/jsx-run
2
2
  import { Banner, Button, ContextMenu, Icon, isApplePlatform, Kbd, KEY_SHORTCUTS, matchesShortcut, messageOf, PanelEmpty, PromptDialog, shortcut, Spinner } from '@adecore/ui';
3
3
  import { formatNumber } from '@adecore/ui/format';
4
4
  import clsx from 'clsx';
5
- import { ArrowDownWideNarrow, ArrowUpRight, Check, CircleAlert, CopyPlus, Download, Filter, FilterX, RefreshCw, Trash2, Undo2 } from 'lucide-react';
5
+ import { ArrowDownWideNarrow, ArrowUpRight, CircleAlert, CircleCheck, CopyPlus, Download, Filter, FilterX, RefreshCw, Trash2, Undo2 } from 'lucide-react';
6
6
  import { useEffect, useMemo, useRef, useState } from 'react';
7
7
  import { useTranslation } from 'react-i18next';
8
8
  import { useDatabaseAction, useDatabaseClient, useDatabaseFiles, useDatabaseNotice, useDatabaseStorage } from '../client-context.js';
@@ -475,5 +475,5 @@ function TableBody({ connection, schema, table, toolbarStart, defaultWhere, defa
475
475
  }
476
476
  function TransferBanner({ notice, onCancel, onDismiss }) {
477
477
  const { t } = useTranslation('database');
478
- return (_jsx(Banner, { icon: notice.kind === 'failed' ? CircleAlert : notice.kind === 'exporting' ? Download : Check, tone: notice.kind === 'failed' ? 'error' : 'neutral', message: transferText(notice, t), className: "shrink-0 pt-2", children: notice.kind === 'exporting' ? (_jsxs(_Fragment, { children: [_jsx(Spinner, { size: 12, label: t('table.export.running', { format: notice.format.toUpperCase() }) }), _jsx(Button, { size: "xs", onClick: onCancel, children: t('table.export.cancel') })] })) : (_jsx(Button, { size: "xs", onClick: onDismiss, children: t('table.dismiss') })) }));
478
+ return (_jsx(Banner, { icon: notice.kind === 'failed' ? CircleAlert : notice.kind === 'exporting' ? Download : CircleCheck, tone: notice.kind === 'failed' ? 'error' : notice.kind === 'exporting' ? 'neutral' : 'positive', message: transferText(notice, t), className: "shrink-0 pt-2", children: notice.kind === 'exporting' ? (_jsxs(_Fragment, { children: [_jsx(Spinner, { size: 12, label: t('table.export.running', { format: notice.format.toUpperCase() }) }), _jsx(Button, { size: "xs", onClick: onCancel, children: t('table.export.cancel') })] })) : (_jsx(Button, { size: "xs", onClick: onDismiss, children: t('table.dismiss') })) }));
479
479
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@adecore/database",
3
- "version": "0.54.8",
3
+ "version": "0.54.10",
4
4
  "description": "Browse, query and edit SQLite and MySQL databases: React views for the page, a host for the backend and a native helper that talks to the server.",
5
5
  "license": "FSL-1.1-MIT",
6
6
  "author": "Bas Milius",
@@ -56,26 +56,26 @@
56
56
  "helper:test": "cargo test --locked --manifest-path helper/Cargo.toml"
57
57
  },
58
58
  "dependencies": {
59
- "@adecore/utils": "0.54.8",
59
+ "@adecore/utils": "0.54.10",
60
60
  "@base-ui/react": "^1.9.0",
61
61
  "clsx": "^2.1.1",
62
62
  "lucide-react": "^1.65.0"
63
63
  },
64
64
  "optionalDependencies": {
65
- "@adecore/database-darwin-arm64": "0.54.8",
66
- "@adecore/database-linux-arm64": "0.54.8",
67
- "@adecore/database-linux-x64": "0.54.8",
68
- "@adecore/database-win32-x64": "0.54.8"
65
+ "@adecore/database-darwin-arm64": "0.54.10",
66
+ "@adecore/database-linux-arm64": "0.54.10",
67
+ "@adecore/database-linux-x64": "0.54.10",
68
+ "@adecore/database-win32-x64": "0.54.10"
69
69
  },
70
70
  "peerDependencies": {
71
- "@adecore/ui": "^0.54.8",
71
+ "@adecore/ui": "^0.54.10",
72
72
  "i18next": "^26.4.2",
73
73
  "react": "^19.3.0",
74
74
  "react-dom": "^19.3.0",
75
75
  "react-i18next": "^17.0.15"
76
76
  },
77
77
  "devDependencies": {
78
- "@adecore/ui": "0.54.8",
78
+ "@adecore/ui": "0.54.10",
79
79
  "@happy-dom/global-registrator": "^21.0.4",
80
80
  "@types/bun": "^1.4.4",
81
81
  "@types/node": "^26.6.6",
@@ -139,7 +139,7 @@ export function ConnectionManager({ value, onValueChange, selected, onSelectedCh
139
139
  {shown !== null && (
140
140
  <Banner
141
141
  icon={'info' in shown ? CircleCheck : CircleAlert}
142
- tone={'info' in shown ? 'neutral' : 'error'}
142
+ tone={'info' in shown ? 'positive' : 'error'}
143
143
  className="sticky top-0 z-10"
144
144
  message={
145
145
  'info' in shown
@@ -1,7 +1,7 @@
1
1
  import { Icon, IconButton, Input, ScrollArea, isApplePlatform, isModHeld } from '@adecore/ui';
2
2
  import { formatMoment, formatNumber } from '@adecore/ui/format';
3
3
  import clsx from 'clsx';
4
- import { Check, CircleAlert, Search, Trash2 } from 'lucide-react';
4
+ import { CircleAlert, CircleCheck, Search, Trash2 } from 'lucide-react';
5
5
  import { useState, type Ref } from 'react';
6
6
  import { useTranslation } from 'react-i18next';
7
7
  import { searchHistory, type HistoryEntry } from './history.ts';
@@ -51,7 +51,11 @@ export function HistoryPanel({ entries, onPick, onClear, className, ref }: Histo
51
51
  >
52
52
  <span className="truncate font-mono text-xs text-text">{entry.sql.replace(/\s+/g, ' ')}</span>
53
53
  <span className="flex items-center gap-1.5 text-xs text-text-muted tabular-nums">
54
- <Icon icon={entry.ok ? Check : CircleAlert} size={12} className={entry.ok ? 'text-positive' : 'text-status-error'} />
54
+ <Icon
55
+ icon={entry.ok ? CircleCheck : CircleAlert}
56
+ size={12}
57
+ className={entry.ok ? 'text-positive' : 'text-status-error'}
58
+ />
55
59
  {formatMoment(entry.at)}
56
60
  {entry.rows !== null && t('console.history.rows', { count: entry.rows, formatted: formatNumber(entry.rows) })}
57
61
  </span>
@@ -1,7 +1,7 @@
1
1
  import { Banner, Button, ColumnResizeHandle, Icon, IconButton, messageOf, PromptDialog, Spinner, Tabs, Tooltip, useColumnResize } from '@adecore/ui';
2
2
  import { formatNumber } from '@adecore/ui/format';
3
3
  import clsx from 'clsx';
4
- import { Check, CircleAlert, History, Play, Square, X } from 'lucide-react';
4
+ import { CircleAlert, CircleCheck, History, Play, Square, X } from 'lucide-react';
5
5
  import { useEffect, useId, useMemo, useRef, useState, type ReactNode, type Ref } from 'react';
6
6
  import { useTranslation } from 'react-i18next';
7
7
  import type { DatabaseNotice } from '../actions.ts';
@@ -498,8 +498,8 @@ export function QueryConsole({
498
498
  </div>
499
499
  {session !== null && notice !== null && (
500
500
  <Banner
501
- icon={notice.tone === 'error' ? CircleAlert : Check}
502
- tone={notice.tone === 'error' ? 'error' : 'neutral'}
501
+ icon={notice.tone === 'error' ? CircleAlert : CircleCheck}
502
+ tone={notice.tone === 'error' ? 'error' : 'positive'}
503
503
  message={notice.description ?? notice.title}
504
504
  className="shrink-0 pb-2"
505
505
  >
@@ -16,7 +16,7 @@ import {
16
16
  import { formatNumber } from '@adecore/ui/format';
17
17
  import clsx from 'clsx';
18
18
  import type { TFunction } from 'i18next';
19
- import { ArrowDownWideNarrow, ArrowUpRight, Check, CircleAlert, CopyPlus, Download, Filter, FilterX, RefreshCw, Trash2, Undo2 } from 'lucide-react';
19
+ import { ArrowDownWideNarrow, ArrowUpRight, CircleAlert, CircleCheck, CopyPlus, Download, Filter, FilterX, RefreshCw, Trash2, Undo2 } from 'lucide-react';
20
20
  import { useEffect, useMemo, useRef, useState, type KeyboardEvent, type ReactNode, type Ref } from 'react';
21
21
  import { useTranslation } from 'react-i18next';
22
22
  import { useDatabaseAction, useDatabaseClient, useDatabaseFiles, useDatabaseNotice, useDatabaseStorage } from '../client-context.ts';
@@ -876,8 +876,8 @@ function TransferBanner({ notice, onCancel, onDismiss }: TransferBannerProps) {
876
876
 
877
877
  return (
878
878
  <Banner
879
- icon={notice.kind === 'failed' ? CircleAlert : notice.kind === 'exporting' ? Download : Check}
880
- tone={notice.kind === 'failed' ? 'error' : 'neutral'}
879
+ icon={notice.kind === 'failed' ? CircleAlert : notice.kind === 'exporting' ? Download : CircleCheck}
880
+ tone={notice.kind === 'failed' ? 'error' : notice.kind === 'exporting' ? 'neutral' : 'positive'}
881
881
  message={transferText(notice, t)}
882
882
  className="shrink-0 pt-2"
883
883
  >