Retain Names reference state when Context changes books within a series

This commit is contained in:
Nick Beckley 2026-11-26 16:42:54 +00:00
parent 481b3fcdd7
commit f04d7eea6e
2 changed files with 3 additions and 1 deletions

View File

@ -31,3 +31,5 @@ The pre-existing Names tab now mounts the same shared workspace. Its adapter onl
## Query plan stability
Authenticated Development acceptance exposed a timeout when a cached catalogue plan was reused across different prefix/default/locale/usage filters on a small cast. Forward-only migration 333 recompiles the final catalogue statement for the current parameters, without changing matching, metadata, ordering or pagination. Migration 325 remains immutable. Qualification now alternates narrow and broad searches, locale/era criteria and assigned/available filters with a two-character cast, in addition to the 500-character fixture. The benchmark restores the latest procedure after measuring historical SQL, so tests do not leave the database on an earlier definition.
Context Names state is keyed by series and pane, so switching books within the same series retains the author's search and selection. Requests still use the current authorised Context book; moving to another series uses independent state.

View File

@ -4,7 +4,7 @@
window.PlotDirectorContextLifecycles.names={
mount(node,{paneId}){
const host=node.querySelector('[data-context-names]'),root=host?.querySelector('[data-names-workspace]');if(!root)return;
const book=host.dataset.book,key=book+':'+paneId;
const book=host.dataset.book,key=root.dataset.project+':'+paneId;
root.dataset.searchUrl='/Writing/Context/Names/Search?contextBookId='+encodeURIComponent(book);
root.dataset.detailsUrl='/Writing/Context/Names/Details?contextBookId='+encodeURIComponent(book);
// A pane owns its reference-tool state. No manuscript-focus commands or SignalR connections.