mirror of
https://github.com/standardnotes/app
synced 2026-08-28 11:56:51 -04:00
feat: Added command palette for quick actions and switching between items (#2933) [skip e2e]
* wip: command palette * use code instead of key * show recent items above commands * refactor * fix command * add placeholder * Tab/Shift-Tab to switch tabs * Fix test * Add menu item to general account menu * if shortcut_id is available, use that as the id * make toggle fn more stable * small naming changes * fix name * Close open modals and popovers when opening command palette * use stable ids + make sure selectedNotesCount only changes when the count actually changes * display all commands, even ones in recents list
This commit is contained in:
@@ -2,6 +2,19 @@ import { Environment, namespacedKey, Platform, RawStorageKey, SNLog } from '@sta
|
||||
import { WebApplication } from '@/Application/WebApplication'
|
||||
import { WebOrDesktopDevice } from './Device/WebOrDesktopDevice'
|
||||
|
||||
jest.mock('@standardnotes/sncrypto-web', () => {
|
||||
return {
|
||||
SNWebCrypto: class {
|
||||
initialize() {
|
||||
return Promise.resolve()
|
||||
}
|
||||
generateUUID() {
|
||||
return 'mock-uuid'
|
||||
}
|
||||
},
|
||||
}
|
||||
})
|
||||
|
||||
describe('web application', () => {
|
||||
let application: WebApplication
|
||||
|
||||
|
||||
Reference in New Issue
Block a user