feat: Implement basic general folder support (#2051)

- Related: #1748
This commit is contained in:
Dermot Duffy
2025-05-21 19:59:21 -07:00
committed by GitHub
parent 2eb0d9e35e
commit c6a4c8aea2
350 changed files with 12837 additions and 4509 deletions
@@ -80,7 +80,7 @@ describe('ActionsManager', () => {
expect(manager.getMergedActions()).toEqual({});
});
describe('should get merged actions with live view', () => {
describe('should get merged actions with view', () => {
it.each([
[
'live' as const,
@@ -100,6 +100,16 @@ describe('ActionsManager', () => {
},
},
],
[
'folder' as const,
{
tap_action: {
action: 'navigate',
// Folder also uses the media gallery.
navigation_path: '3',
},
},
],
[
'clip' as const,
{
@@ -313,6 +323,7 @@ describe('ActionsManager', () => {
describe('should forward haptics', () => {
afterEach(() => {
vi.restoreAllMocks();
vi.unstubAllGlobals();
});
@@ -329,6 +340,8 @@ describe('ActionsManager', () => {
});
it('should forward warning haptic', async () => {
vi.spyOn(global.console, 'warn').mockReturnValue(undefined);
const handler = vi.fn();
window.addEventListener('haptic', handler);