feat(editor): references dialog over the finding, view mode
A modal Dialog replaces the citations side sheet; families open it too (isCitable). The finding dialog shows only « Références citées » and « X références », also at zero; its edit form no longer carries reference_ids. A dirty form refusing « Aller à » or « Tout afficher » closes the clean references dialog first.
This commit is contained in:
1 parent
ff21b0315e
commit
abc781df52
29 files changed
+432
-858
No files matched your search
@@ -6,7 +6,7 @@ type User = ReturnType<typeof userEvent.setup>
|
||||
|
||||
export const treeRow = (name: RegExp) => screen.getByRole('treeitem', { name })
|
||||
|
||||
/** The open finding dialog: the layer dialog that is not the citations sheet. */
|
||||
/** The open finding dialog: the layer dialog that is not the references dialog. */
|
||||
export const findingDialog = () =>
|
||||
[...document.querySelectorAll<HTMLElement>('dialog[open][data-layer]')].find(
|
||||
(dialog) => !dialog.querySelector('[data-testid="editor-citations-panel"]'),
|
||||
|
||||
Reference in new issue
Block a user