v0.1.4-pre.016

This commit is contained in:
2026-08-16 19:00:49 +02:00
parent d92eb01bc2
commit 5aa538ed5d
29 changed files with 994 additions and 73 deletions

View File

@@ -1,5 +1,5 @@
// file: crates/ksp-app-config-desk/frontend/ts/main.ts
// version: 10
// version: 11
import "bootstrap";
import ResizeObserver from "resize-observer-polyfill";
@@ -146,10 +146,18 @@ async function loadSnapshot(): Promise<void> {
frontendTrace("main", "Main shell status replaced", { status: "ready" });
}
function bindRuntimeSnapshotRefresh(): void {
window.addEventListener("ksp:logging-runtime-updated", () => {
frontendDebug("main", "Application snapshot refresh requested after Logging runtime update");
void loadSnapshot();
});
}
async function initializeMain(): Promise<void> {
const windowLabel = getCurrentWindow().label;
frontendInfo("main", "Config Desk main frontend loaded", { windowLabel });
bindNavigation();
bindRuntimeSnapshotRefresh();
initializeDocumentsPanel();
initializeProfilesPanel();
initializeEnvironmentPanel();