web: app shell — left destination rail, settings-hosted connection, viewport panes

The layout item's work plus the two defects its review found:
- the wide grid sized the list track from its MAX, so at 600-759px the detail pane
  was clipped to 40-199px; cap the list below 900px and narrow the rail there
  (measured now: detail 232px at 600, 332 at 700, 340 at 900, 880 at 1440);
- the shell said 'Not connected' on a fresh page because the prefilled proxy URL
  validated; the status now reflects a SAVED endpoint ('Not configured' until then)
  and refreshes as the draft changes.

Includes the rail + bottom dock, connection moved into Settings, viewport-only
scrolling with panes that scroll themselves, tab semantics, skip link, h1 per
route, and the design tokens.
This commit is contained in:
2026-10-19 20:03:56 +01:00
parent 321e046377
commit 84e136436c
26 changed files with 2619 additions and 830 deletions
+13 -6
View File
@@ -1351,14 +1351,21 @@ export function mount(container, graph, options = {}) {
selectNode(key, { notify: false });
// The pane is still detached while the caller builds the detail, so reveal
// it on the next frame, once renderContent has put it in the document. The
// sticky top bar must stay clear of the pane head: scroll to the pane's top
// minus the bar's own measured height (CSS scroll-margin-top is the
// fallback for browsers that reveal it another way).
// detail's own `.pane-scroll` is the only scroller in the shell: move it,
// never the never-scrolling document.
const reveal = () => {
if (typeof pane.getBoundingClientRect !== "function") return;
const topbar = document.querySelector(".topbar");
const bar = topbar?.getBoundingClientRect?.().height ?? 0;
const top = pane.getBoundingClientRect().top + (window.scrollY ?? 0) - bar - 12;
const scroller = pane.closest(".pane-scroll");
if (scroller) {
const top =
pane.getBoundingClientRect().top -
scroller.getBoundingClientRect().top +
scroller.scrollTop -
12;
scroller.scrollTop = Math.max(0, top);
return;
}
const top = pane.getBoundingClientRect().top + (window.scrollY ?? 0) - 12;
window.scrollTo?.({ top: Math.max(0, top), behavior: "instant" });
};
if (typeof requestAnimationFrame === "function") requestAnimationFrame(reveal);