Browse the glossary by topic and one term at a time #13
Loading…
Reference in a new issue
No description provided.
Delete branch "feat/glossary-browsing"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Two ways to browse the glossary graph, picked from five local spikes (the other three, a neighbourhood diagram, a path finder and per-relation views, are parked), plus a fix found on the way.
Group two-way relations under one heading. A card grouped relations by direction, so a term on both ends of
works-withedges listed "Works with" twice (ACME did).Filter by topic. Terms already had
tags; the page now shows them as a row of topic buttons with counts under the filters, and as buttons on each card. Topic names live ingraph.jsonunder a new top-leveltags, in English and Finnish, andcheck-glossary.mjsfails on an unknown tag, a missing translation, or a name no term uses.Focus on a term. A link to a term narrows the list to that term (first) and its neighbours, with a bar and a trail of visited terms. Search, kind, topic, "Show all" and Escape return to the full list; each adds a history entry, so Back returns to the focused term.
Checked:
html-validate public/,node scripts/check-glossary.mjs, and headless Chromium at 1100px and 320px in light and dark, EN and FI, Back/Escape/keyboard flows, no console errors and no horizontal scroll at 320px.Known trade-off: at 320px the topic row wraps to about 13 lines above the list.