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:
@@ -26,7 +26,8 @@ import {
|
||||
notificationEnvironment,
|
||||
notificationPermissionState,
|
||||
} from "../notify.js";
|
||||
import { bannerState } from "../connection.js";
|
||||
import { bannerState, protocolMismatch } from "../connection.js";
|
||||
import { PROTOCOL_VERSION } from "../protocol.js";
|
||||
|
||||
export function createSettingsView(rt) {
|
||||
const { state, repo, setServerUrlDraft, endpointConfigured } = rt;
|
||||
@@ -48,6 +49,7 @@ export function createSettingsView(rt) {
|
||||
function renderSettingsView() {
|
||||
const pane = h("div", { class: "settings" });
|
||||
pane.append(
|
||||
h("h1", { class: "settings-page-title", id: "detailTitle", tabindex: "-1", text: "Settings" }),
|
||||
renderSettingsConnection(),
|
||||
renderSettingsWorkspace(),
|
||||
renderSettingsNotifications(),
|
||||
@@ -138,6 +140,12 @@ function renderSettingsConnection() {
|
||||
card.append(h("p", { class: "settings-status-line", text: line }));
|
||||
});
|
||||
section.append(card, renderTrustWarning());
|
||||
const warning = protocolMismatch(PROTOCOL_VERSION, state.serverProtocol);
|
||||
if (warning) {
|
||||
section.append(
|
||||
h("p", { class: "settings-warning-line settings-protocol-warning", role: "alert", text: warning }),
|
||||
);
|
||||
}
|
||||
return section;
|
||||
}
|
||||
|
||||
@@ -223,7 +231,7 @@ function renderTrustWarning() {
|
||||
/**
|
||||
* Route a Settings connection control through the page's existing single client,
|
||||
* mirroring AppViewModel: Disconnect closes the shared socket, Connect is
|
||||
* connect-only (validate + persist + open — never the header's toggle), and
|
||||
* connect-only (validate + persist + open — never a toggle), and
|
||||
* Reconnect re-opens the same validated endpoint now. Nothing here opens a second
|
||||
* connection.
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user