Skip to content

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

chore: update LogEventChart title to be more intuitive (#9679)

Ziinc80adb8d3966d
diff --git a/studio/components/interfaces/Settings/Logs/LogEventChart.tsx b/studio/components/interfaces/Settings/Logs/LogEventChart.tsx
index ac4e51cca10..cc81a902c95 100644
--- a/studio/components/interfaces/Settings/Logs/LogEventChart.tsx
+++ b/studio/components/interfaces/Settings/Logs/LogEventChart.tsx
@@ -33,7 +33,7 @@ const LogEventChart: React.FC<Props> = ({ data, onBarClick }) => {
chartSize="tiny"
data={transformedData}
attribute="count"
- label="Events"
+ label="Logs / Time"
onBarClick={(v?: { activePayload?: { payload: any }[] }) => {
if (!v || !v?.activePayload?.[0]?.payload) return
const unixOrIsoTimestamp = v.activePayload[0].payload.timestamp
diff --git a/studio/tests/pages/projects/LogEventChart.test.js b/studio/tests/pages/projects/LogEventChart.test.js
index 58f3862ada7..b9ea349a3ee 100644
--- a/studio/tests/pages/projects/LogEventChart.test.js
+++ b/studio/tests/pages/projects/LogEventChart.test.js
@@ -34,5 +34,5 @@ test('renders chart', async () => {
// )
// userEvent.click(paths[0])
// expect(mock).toBeCalledTimes(1)
- await screen.findByText('Events')
+ await screen.findByText(/Logs \/ Time/)
})
diff --git a/studio/tests/pages/projects/LogsPreviewer.test.js b/studio/tests/pages/projects/LogsPreviewer.test.js
index 86cc684f691..0b1855f8957 100644
--- a/studio/tests/pages/projects/LogsPreviewer.test.js
+++ b/studio/tests/pages/projects/LogsPreviewer.test.js
@@ -309,7 +309,7 @@ test('log event chart hide', async () => {
return { result: [] }
})
render(<LogsPreviewer projectRef="123" tableName={LogsTableName.EDGE} />)
- await screen.findByText('Events')
+ await screen.findByText(/Logs \/ Time/)
const toggle = await screen.findByText(/Chart/)
userEvent.click(toggle)
await expect(screen.findByText('Events')).rejects.toThrow()