mirror of
https://github.com/supabase/supabase.git
synced 2026-10-06 09:55:06 +03:00
I removed the Studio Privacy Policy update notice that #50397 added on 2026-09-16, when Privacy Policy v4 took effect. It has been up for almost three weeks, and the ToS v4 banner (#51109) goes out next. I did the same in #44380, removing the March 2026 privacy notice after 15 days. This is the exact inverse of #50397: the banner component and its test, the banner ID, the dismissal local storage key, and the org-landing path helper that only this notice used. ## To test Tested on Vercel preview: - [ ] In a fresh browser profile (no `privacy-policy-update-2026-09-16-dismissed` key), open `/organizations`: expect no Privacy Policy notice - [ ] Open `/org/<slug>`: expect no Privacy Policy notice and the project list renders normally - [ ] Open a project's Logs page: expect the logs deprecation banner behavior unchanged (only shows before its expiry) ## Linear - fixes GROWTH-1322
29 lines
776 B
TypeScript
29 lines
776 B
TypeScript
import { describe, expect, test } from 'vitest'
|
|
|
|
import { isLogsOrObservabilityPath } from '@/components/interfaces/App/AppBannerWrapper.utils'
|
|
|
|
describe('isLogsOrObservabilityPath', () => {
|
|
test.each([
|
|
'/project/abc/logs',
|
|
'/project/abc/logs/',
|
|
'/project/abc/logs/explorer',
|
|
'/project/abc/observability',
|
|
'/project/abc/observability/query-performance',
|
|
])('matches %s', (pathname) => {
|
|
expect(isLogsOrObservabilityPath(pathname)).toBe(true)
|
|
})
|
|
|
|
test.each([
|
|
undefined,
|
|
null,
|
|
'',
|
|
'/project/abc',
|
|
'/project/abc/editor',
|
|
'/project/abc/logs-explorer',
|
|
'/project/abc/functions/my-fn/logs',
|
|
'/org/abc/logs',
|
|
])('does not match %s', (pathname) => {
|
|
expect(isLogsOrObservabilityPath(pathname)).toBe(false)
|
|
})
|
|
})
|