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:
1 parent
d9dbcf1609
commit
3dc5820e3a
29 files changed
+1489
-243
No files matched your search
@@ -109,6 +109,10 @@ describe('sanitizeView', () => {
|
||||
expect(sanitizeView(creation)?.reference).toEqual({ create: true })
|
||||
const elsewhere = { ...view('general'), reference: { create: true } }
|
||||
expect(sanitizeView(elsewhere)?.reference).toBeNull()
|
||||
// Rev 5: a creation over the citations dialog is never read back (POP, reload).
|
||||
const overCitations = { ...sheet, reference: { create: true } }
|
||||
expect(sanitizeView(overCitations)?.reference).toBeNull()
|
||||
expect(sanitizeView(overCitations)?.finding).toEqual(sheet.finding)
|
||||
expect(
|
||||
sanitizeView({ ...tab, reference: { edit: '' } })?.reference,
|
||||
).toBeNull()
|
||||
|
||||
Reference in new issue
Block a user