feat(editor): edit mode of the references dialog

« Modifier » turns the references dialog into a draft of adds and removes,
saved as one update on the current citations. A new layer, citations,
guards it between the finding and the reference dialogs: close, Back,
POP refusal and the leave cascade ask it. « Modifier la référence » and
« Nouvelle référence » stack the reference dialog over it; a creation it
started joins its draft.
This commit is contained in:
bchanot committed 2026-11-15 16:39:43 +01:00
1 parent d9dbcf1609
commit 3dc5820e3a
29 files changed
+1489 -243

No files matched your search

@@ -180,6 +180,20 @@ describe('navigationReducer', () => {
})
})
it('a creation over the citations dialog keeps the tab and both dialogs under it', () => {
const created = run(
initialNavigation('findings'),
{ type: 'open_finding', key: node },
{ type: 'open_citations', citedBy: node },
{ type: 'create_reference' },
)
expect(created).toMatchObject({
tab: 'findings',
finding: { key: node, citations: true },
reference: { create: true },
})
})
it('the filter belongs to the References tab: any move to another tab drops it', () => {
const filtered = run(initialNavigation('findings'), {
type: 'show_all_references',