diff --git a/studio/components/interfaces/Settings/Logs/Logs.constants.ts b/studio/components/interfaces/Settings/Logs/Logs.constants.ts index d093f590878..0e35c90f232 100644 --- a/studio/components/interfaces/Settings/Logs/Logs.constants.ts +++ b/studio/components/interfaces/Settings/Logs/Logs.constants.ts @@ -354,7 +354,7 @@ export const FILTER_OPTIONS: FilterOptions = { // Edge logs edge_logs: { status_code: { - label: 'Status code', + label: 'Status', key: 'status_code', options: [ { @@ -425,7 +425,7 @@ export const FILTER_OPTIONS: FilterOptions = { // function_edge_logs function_edge_logs: { status_code: { - label: 'Status code', + label: 'Status', key: 'status_code', options: [ { diff --git a/studio/components/interfaces/Settings/Logs/Logs.filter.tsx b/studio/components/interfaces/Settings/Logs/Logs.filter.tsx index c4a0f0ee2e1..1339850c555 100644 --- a/studio/components/interfaces/Settings/Logs/Logs.filter.tsx +++ b/studio/components/interfaces/Settings/Logs/Logs.filter.tsx @@ -2,7 +2,7 @@ import { Button, Checkbox, Form, Popover } from '@supabase/ui' import { pluckObjectFields } from 'lib/helpers' import { useState } from 'react' -export const LogsFilter = ({ options, filtersState, dispatchFilters }: any) => { +export const LogsFilter = ({ options, filtersState, dispatchFilters, classes }: any) => { const [open, setOpen] = useState(false) function handleReset() { @@ -127,7 +127,12 @@ export const LogsFilter = ({ options, filtersState, dispatchFilters }: any) => { showClose side="bottom" > - diff --git a/studio/components/interfaces/Settings/Logs/PreviewFilterPanel.tsx b/studio/components/interfaces/Settings/Logs/PreviewFilterPanel.tsx index a6189f02403..80372546f52 100644 --- a/studio/components/interfaces/Settings/Logs/PreviewFilterPanel.tsx +++ b/studio/components/interfaces/Settings/Logs/PreviewFilterPanel.tsx @@ -125,7 +125,7 @@ const PreviewFilterPanel: FC = ({ onChange={(e) => setSearch(e.target.value)} onBlur={(e: React.FocusEvent) => { setSearch(e.target.value) - handleSearch({query: e.target.value}) + handleSearch({ query: e.target.value }) }} icon={
@@ -158,16 +158,28 @@ const PreviewFilterPanel: FC = ({
-
+
{FILTER_OPTIONS[table] && - Object.values(FILTER_OPTIONS[table]).map((x) => ( - - ))} + Object.values(FILTER_OPTIONS[table]).map((x, i: number) => { + const classes = [] + + if (i === 0) { + classes.push('rounded-tr-none rounded-br-none') + } else if (i === Object.values(FILTER_OPTIONS[table]).length - 1) { + classes.push('rounded-tl-none rounded-bl-none') + } else { + classes.push('rounded-none') + } + return ( + + ) + })}