Skip to content

The Postgres development platform. Supabase gives you a dedicated Postgres database to build your web, mobile, and AI applications.

chore: preview settings logs improved layout

Jonathan Summers-Muir5b9da2c81e56
diff --git a/studio/components/interfaces/Settings/Logs/LogsPreviewer.tsx b/studio/components/interfaces/Settings/Logs/LogsPreviewer.tsx
index 5983434675e..a8d5f664ad1 100644
--- a/studio/components/interfaces/Settings/Logs/LogsPreviewer.tsx
+++ b/studio/components/interfaces/Settings/Logs/LogsPreviewer.tsx
@@ -158,6 +158,7 @@ export const LogsPreviewer: React.FC<Props> = ({ projectRef, queryType, override
dispatchWhereFilters={dispatchWhereFilters}
whereFilters={whereFilters}
table={table}
+ condensedLayout={condensedLayout}
/>
{showChart && !isLoading ? (
<div>
diff --git a/studio/components/interfaces/Settings/Logs/PreviewFilterPanel.tsx b/studio/components/interfaces/Settings/Logs/PreviewFilterPanel.tsx
index e4d8bdf21d9..63f25a966f2 100644
--- a/studio/components/interfaces/Settings/Logs/PreviewFilterPanel.tsx
+++ b/studio/components/interfaces/Settings/Logs/PreviewFilterPanel.tsx
@@ -37,6 +37,7 @@ interface Props {
dispatchWhereFilters: (x: any) => void
whereFilters: any
table: LogsTableName
+ condensedLayout: Boolean
}
dayjs.extend(utc)
@@ -58,6 +59,7 @@ const PreviewFilterPanel: FC<Props> = ({
table,
isShowingEventChart,
onToggleEventChart,
+ condensedLayout,
}) => {
const [search, setSearch] = useState('')
@@ -158,7 +160,9 @@ const PreviewFilterPanel: FC<Props> = ({
// console.log('this is what is going through', FILTER_OPTIONS[table])
return (
- <div className="flex items-center justify-between w-full">
+ <div
+ className={'flex items-center justify-between w-full' + (condensedLayout ? ' px-5 pt-4' : '')}
+ >
<div className="flex flex-row gap-4 items-center">
<form
id="log-panel-search"
diff --git a/studio/pages/project/[ref]/functions/[id]/details.tsx b/studio/pages/project/[ref]/functions/[id]/details.tsx
index 92a3b3a2c36..adb4e0939ea 100644
--- a/studio/pages/project/[ref]/functions/[id]/details.tsx
+++ b/studio/pages/project/[ref]/functions/[id]/details.tsx
@@ -96,9 +96,14 @@ const PageLayout = () => {
return (
<FunctionLayout>
- <div className="grid grid-cols-2 lg:gap-x-16 py-12">
+ <div className="grid gap-y-12 lg:grid-cols-2 lg:gap-x-16 py-12">
<div>
- <div className="px-12 py-8 bg-scale-100 dark:bg-scale-300 rounded border">
+ <div
+ className="
+ px-12 py-8 bg-scale-100 dark:bg-scale-300 rounded border drop-shadow-sm
+
+ "
+ >
{console.log('inside the render', functions.byId(id))}
<div>{selectedFunction?.createdAt}</div>
@@ -179,7 +184,12 @@ const PageLayout = () => {
</div>
</div>
<div>
- <div className="px-12 py-8 bg-scale-100 dark:bg-scale-300 rounded border space-y-6">
+ <div
+ className="px-12 py-8
+ bg-scale-100 dark:bg-scale-300 border drop-shadow-sm
+ rounded
+ space-y-6"
+ >
<div className="flex items-center gap-3">
<div className="border p-2 flex items-center justify-center w-8 h-8 text-scale-100 dark:text-scale-1200 bg-scale-1200 dark:bg-scale-100 rounded">
<IconTerminal strokeWidth={2} />
diff --git a/studio/pages/project/[ref]/settings/logs/[type].tsx b/studio/pages/project/[ref]/settings/logs/[type].tsx
index c2dcb0375fa..6ca33cbaeb0 100644
--- a/studio/pages/project/[ref]/settings/logs/[type].tsx
+++ b/studio/pages/project/[ref]/settings/logs/[type].tsx
@@ -99,7 +99,11 @@ export const LogPage: NextPage = () => {
return (
<SettingsLayout title={title}>
- <LogsPreviewer projectRef={ref as string} queryType={type as QueryType} />
+ <LogsPreviewer
+ projectRef={ref as string}
+ queryType={type as QueryType}
+ condensedLayout={true}
+ />
</SettingsLayout>
)
}