mirror of
https://github.com/supabase/supabase.git
synced 2026-05-11 19:26:38 +08:00
## I have read the [CONTRIBUTING.md](https://github.com/supabase/supabase/blob/master/CONTRIBUTING.md) file. YES ## What kind of change does this PR introduce? - Remove queue operations from feature preview into settings - Refactor dashboard settings - Resolves DEPR-434 <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit * **New Features** * Dashboard settings panel in Account preferences with toggles for Inline Editor and Queue Operations; “Dashboard” added to project Configuration. * **Removed** * Old Inline Editor settings UI and the Queue Operations feature-preview UI removed. * **Refactor** * Consolidated dashboard preferences into a single settings surface; banners and actions now navigate to preferences; account/preferences layouts and back-navigation behavior adjusted for platform vs self-hosted. * **Tests** * Added tests for settings UI, menu generation, redirects, and local-storage. <!-- end of auto-generated comment: release notes by coderabbit.ai --> --------- Co-authored-by: Joshen Lim <joshenlimek@gmail.com> Co-authored-by: Danny White <3104761+dnywh@users.noreply.github.com>
17 lines
594 B
TypeScript
17 lines
594 B
TypeScript
import { clearLocalStorage, LOCAL_STORAGE_KEYS } from 'common'
|
|
import { describe, expect, it } from 'vitest'
|
|
|
|
describe('clearLocalStorage', () => {
|
|
it('preserves queue operations preferences while removing non-allowlisted keys', () => {
|
|
localStorage.clear()
|
|
|
|
localStorage.setItem(LOCAL_STORAGE_KEYS.UI_PREVIEW_QUEUE_OPERATIONS, 'true')
|
|
localStorage.setItem('not-allowlisted', 'remove-me')
|
|
|
|
clearLocalStorage()
|
|
|
|
expect(localStorage.getItem(LOCAL_STORAGE_KEYS.UI_PREVIEW_QUEUE_OPERATIONS)).toBe('true')
|
|
expect(localStorage.getItem('not-allowlisted')).toBeNull()
|
|
})
|
|
})
|