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
9 lines
387 B
TypeScript
9 lines
387 B
TypeScript
// Anchored to the section root so per-resource log pages (e.g. a single edge
|
|
// function's logs) don't pull the banner outside Logs/Observability.
|
|
const LOGS_SECTION_PATH = /^\/project\/[^/]+\/(logs|observability)(\/|$)/
|
|
|
|
export function isLogsOrObservabilityPath(pathname: string | null | undefined): boolean {
|
|
if (!pathname) return false
|
|
return LOGS_SECTION_PATH.test(pathname)
|
|
}
|