Remove 'host' field from UnifiedLogs interface (#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.
This commit is contained in:
Jonathan Summers-Muir authored and GitHub committed 2025-07-17 12:36:43 +00:00
1 parent b0c3af5e0b
commit a797ae2674
3 files changed
-40

No files matched your search

@@ -98,22 +98,6 @@ export const filterFields = [
)
},
},
{
label: 'Host',
value: 'host',
type: 'checkbox',
defaultOpen: false,
options: [],
hasDynamicOptions: true,
hasAsyncSearch: true,
component: (props: Option) => {
return (
<span className="truncate block text-[0.75rem]" title={props.value as string}>
{props.value}
</span>
)
},
},
{
label: 'Pathname',
value: 'pathname',
@@ -196,12 +180,6 @@ export const sheetFields = [
),
skeletonClassName: 'w-56',
},
{
id: 'host',
label: 'Host',
type: 'input',
skeletonClassName: 'w-24',
},
{
id: 'pathname',
label: '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',