fix(editor): Task 2 review round 1, trace calls, form hooks, keyboard proof
This commit is contained in:
1 parent
c893dec60b
commit
b703333b20
15 files changed
+476
-261
No files matched your search
@@ -1,4 +1,5 @@
|
||||
import { vi } from 'vitest'
|
||||
import type { FindingLayer } from '@/editor/tabs'
|
||||
import CitationsSheet from '@/components/editor/references/CitationsSheet'
|
||||
import FindingsTab from '@/components/editor/tabs/FindingsTab'
|
||||
import { findingLayerOf } from '@/editor/findingLayer'
|
||||
@@ -36,3 +37,19 @@ export default function FindingsHost({
|
||||
</ReadOnlyContext>
|
||||
)
|
||||
}
|
||||
|
||||
/** A layer that never opens: for a test that mounts Constats only to read its focus. */
|
||||
export const testLayer: FindingLayer = {
|
||||
view: null,
|
||||
guards: {
|
||||
register: () => undefined,
|
||||
ask: () => ({ allowed: true }),
|
||||
askAll: () => ({ allowed: true }),
|
||||
},
|
||||
open: () => undefined,
|
||||
start: () => undefined,
|
||||
close: () => true,
|
||||
replace: () => undefined,
|
||||
openCitations: () => undefined,
|
||||
announce: () => undefined,
|
||||
}
|
||||
Reference in new issue
Block a user