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

@@ -8,6 +8,7 @@ import {
editorActor,
openEditor,
openReferences,
place,
openSection,
pickAnnotation,
pointOf,
@@ -88,6 +89,17 @@ test.describe('editor structures (A4)', () => {
'[id^="reference-"][id$="-citation"]:not(#reference-new-citation)',
)
await expect(citations).toHaveCount(2)
await expect(
place(page, 'references').getByText('citée 0 fois'),
).toHaveCount(2)
await page
.getByRole('searchbox', { name: dict['editor.references.search'] })
.fill('seconde')
await expect(citations).toHaveCount(1)
await page
.getByRole('searchbox', { name: dict['editor.references.search'] })
.fill('')
await expect(citations).toHaveCount(2)
await page
.getByRole('listitem')
.filter({ hasText: 'Seconde référence' })