Skip to content

Commit 1acdf9a

Browse files
committed
style(sql): apply ultracite lint fixes (import order, formatting) [UX-1330]
1 parent c7e7d9f commit 1acdf9a

3 files changed

Lines changed: 15 additions & 3 deletions

File tree

frontend/src/components/pages/sql/sql-results.tsx

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,19 @@ import { Spinner } from 'components/redpanda-ui/components/spinner';
2828
import { StatusDot } from 'components/redpanda-ui/components/status-dot';
2929
import { InlineCode, Text } from 'components/redpanda-ui/components/typography';
3030
import { cn } from 'components/redpanda-ui/lib/utils';
31-
import { Braces, CircleX, Clock, Database, Download, GitMerge, Lightbulb, Plus, Rows3, Terminal, X } from 'lucide-react';
31+
import {
32+
Braces,
33+
CircleX,
34+
Clock,
35+
Database,
36+
Download,
37+
GitMerge,
38+
Lightbulb,
39+
Plus,
40+
Rows3,
41+
Terminal,
42+
X,
43+
} from 'lucide-react';
3244
import { createContext, useContext, useMemo, useState } from 'react';
3345
import DataGrid, { type Column } from 'react-data-grid';
3446
import { isMacOS } from 'utils/platform';

frontend/src/components/pages/sql/sql-types.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ describe('arrayElementPgType', () => {
6666

6767
describe('splitQueryError', () => {
6868
test('splits the trailing hint onto its own field', () => {
69-
const { message, hint } = splitQueryError("operator does not exist: record -> unknown\n\nHint: use (user).id");
69+
const { message, hint } = splitQueryError('operator does not exist: record -> unknown\n\nHint: use (user).id');
7070
expect(message).toBe('operator does not exist: record -> unknown');
7171
expect(hint).toBe('use (user).id');
7272
});

frontend/src/components/pages/sql/sql-workspace.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,8 +52,8 @@ import {
5252
isArrayPgType,
5353
type QueryRun,
5454
type ResultRow,
55-
splitQueryError,
5655
type SqlRole,
56+
splitQueryError,
5757
type TableRef,
5858
} from './sql-types';
5959
import { createTableSql, SqlWizard, type WizardTopic } from './sql-wizard';

0 commit comments

Comments
 (0)