feat(editor): references side panel with filter, search and counts

Non-modal panel in a relative container after the tab row (scrim over the
tab panels, which are inert while it is open). Chip "Citées par" opened
from a finding's Citations block, "Tout afficher (N)", accent- and
case-insensitive search on citation, DOI and URL, "citée n fois" per card
(citationCounts, memoised TS read; the core stays the authority for
refused deletions). Up/down only without filter or search. "Aller à" a
reference clears a hiding search then focuses the card.

Rewritten assertions (R-24): editor-shell "the references panel keeps its
form text and no id repeats" closes the panel before reaching the inert
tab panels. Added: Chromium clickability at 1 024 and 1 280 px (top and
scrolled), editor-structures count and search, unit
editor-references-panel, editor-citations, navigation clear_cited_by.
This commit is contained in:
bchanot committed 2026-11-08 17:33:26 +01:00
1 parent cf9c300c80
commit ab51ea764d
19 files changed
+891 -85

No files matched your search

@@ -135,6 +135,16 @@ describe('navigationReducer', () => {
expect(state.references).toEqual({ open: true, citedBy: view })
})
it('clear_cited_by drops the filter and keeps the panel open', () => {
const state = run(
initialNavigation('annotations'),
{ type: 'open_references', citedBy: view },
{ type: 'clear_cited_by' },
)
expect(state.references).toEqual({ open: true, citedBy: null })
expect(state.focus).toBeUndefined()
})
it('opens a section and goes back to the drawing', () => {
const state = run(initialNavigation('annotations'), {
type: 'open_section',