mirror of
https://github.com/supabase/supabase.git
synced 2026-10-15 06:09:08 +03:00
Remove 'host' field from UnifiedLogs interface
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.
This commit is contained in:
1 parent
bae257c69f
commit
bd50d5ada0
3 files changed
-32
No files matched your search
@@ -105,20 +105,6 @@ export const filterFields = [
|
||||
)
|
||||
},
|
||||
},
|
||||
{
|
||||
label: 'Host',
|
||||
value: 'host',
|
||||
type: 'checkbox',
|
||||
defaultOpen: false,
|
||||
options: [], // Will be populated dynamically from facets
|
||||
component: (props: Option) => {
|
||||
return (
|
||||
<span className="truncate block text-[0.75rem]" title={props.value as string}>
|
||||
{props.value}
|
||||
</span>
|
||||
)
|
||||
},
|
||||
},
|
||||
{
|
||||
label: 'Pathname',
|
||||
value: 'pathname',
|
||||
|
||||
@@ -11,7 +11,6 @@ export const columnSchema = z.object({
|
||||
id: z.string(),
|
||||
log_type: z.enum(LOG_TYPES),
|
||||
method: z.enum(METHODS),
|
||||
host: z.string(),
|
||||
pathname: z.string(),
|
||||
level: z.enum(LEVELS),
|
||||
status: z.number(),
|
||||
@@ -36,7 +35,6 @@ export const columnFilterSchema = z.object({
|
||||
.transform((val) => val.split(ARRAY_DELIMITER))
|
||||
.pipe(z.enum(METHODS).array())
|
||||
.optional(),
|
||||
host: z.string().optional(),
|
||||
pathname: z.string().optional(),
|
||||
status: z
|
||||
.string()
|
||||
|
||||
@@ -127,22 +127,6 @@ export const UNIFIED_LOGS_COLUMNS: ColumnDef<ColumnSchema>[] = [
|
||||
'font-mono w-[--col-status-size] max-w-[--col-status-size] min-w-[--col-status-size]',
|
||||
},
|
||||
},
|
||||
|
||||
{
|
||||
accessorKey: 'host',
|
||||
header: 'Host',
|
||||
cell: ({ row }) => {
|
||||
const value = row.getValue<ColumnSchema['host']>('host')
|
||||
return <TextWithTooltip text={value} />
|
||||
},
|
||||
enableSorting: false,
|
||||
size: 220,
|
||||
minSize: 220,
|
||||
meta: {
|
||||
cellClassName: 'font-mono w-[--col-host-size] max-w-[--col-host-size]',
|
||||
headerClassName: 'min-w-[--header-host-size] w-[--header-host-size]',
|
||||
},
|
||||
},
|
||||
{
|
||||
accessorKey: 'pathname',
|
||||
header: 'Pathname',
|
||||
|
||||
Reference in new issue
Block a user