Skip to content

Commit a797ae2

Browse files
authored
Remove 'host' field from UnifiedLogs interface (supabase#37232)
Eliminated the 'host' field from filter fields, schema definitions, and column configuration in UnifiedLogs. This streamlines the logs interface and removes unused or unnecessary data.
1 parent b0c3af5 commit a797ae2

File tree

3 files changed

+0
-40
lines changed

3 files changed

+0
-40
lines changed

apps/studio/components/interfaces/UnifiedLogs/UnifiedLogs.fields.tsx

Lines changed: 0 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -98,22 +98,6 @@ export const filterFields = [
9898
)
9999
},
100100
},
101-
{
102-
label: 'Host',
103-
value: 'host',
104-
type: 'checkbox',
105-
defaultOpen: false,
106-
options: [],
107-
hasDynamicOptions: true,
108-
hasAsyncSearch: true,
109-
component: (props: Option) => {
110-
return (
111-
<span className="truncate block text-[0.75rem]" title={props.value as string}>
112-
{props.value}
113-
</span>
114-
)
115-
},
116-
},
117101
{
118102
label: 'Pathname',
119103
value: 'pathname',
@@ -196,12 +180,6 @@ export const sheetFields = [
196180
),
197181
skeletonClassName: 'w-56',
198182
},
199-
{
200-
id: 'host',
201-
label: 'Host',
202-
type: 'input',
203-
skeletonClassName: 'w-24',
204-
},
205183
{
206184
id: 'pathname',
207185
label: 'Pathname',

apps/studio/components/interfaces/UnifiedLogs/UnifiedLogs.schema.ts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@ export const columnSchema = z.object({
1111
id: z.string(),
1212
log_type: z.enum(LOG_TYPES),
1313
method: z.enum(METHODS),
14-
host: z.string(),
1514
pathname: z.string(),
1615
level: z.enum(LEVELS),
1716
status: z.number(),
@@ -36,7 +35,6 @@ export const columnFilterSchema = z.object({
3635
.transform((val) => val.split(ARRAY_DELIMITER))
3736
.pipe(z.enum(METHODS).array())
3837
.optional(),
39-
host: z.string().optional(),
4038
pathname: z.string().optional(),
4139
status: z
4240
.string()

apps/studio/components/interfaces/UnifiedLogs/components/Columns.tsx

Lines changed: 0 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -127,22 +127,6 @@ export const UNIFIED_LOGS_COLUMNS: ColumnDef<ColumnSchema>[] = [
127127
'font-mono w-[--col-status-size] max-w-[--col-status-size] min-w-[--col-status-size]',
128128
},
129129
},
130-
131-
{
132-
accessorKey: 'host',
133-
header: 'Host',
134-
cell: ({ row }) => {
135-
const value = row.getValue<ColumnSchema['host']>('host')
136-
return <TextWithTooltip text={value} />
137-
},
138-
enableSorting: false,
139-
size: 220,
140-
minSize: 220,
141-
meta: {
142-
cellClassName: 'font-mono w-[--col-host-size] max-w-[--col-host-size]',
143-
headerClassName: 'min-w-[--header-host-size] w-[--header-host-size]',
144-
},
145-
},
146130
{
147131
accessorKey: 'pathname',
148132
header: 'Pathname',

0 commit comments

Comments
 (0)