fix(frontend): restore capture/drag overlay state vars

Same class of bug as cd982f2: 9878ab4 (extract FilesTab) also
removed 'let' declarations for capture/drag-drop state that's still
used by the inbox capture flow and CaptureDropOverlay:

  captureDropActive, captureDropLabel, captureDragDepth,
  lastCaptureDragOverAt, captureDragResetTimer,
  dropRootValid, inboxDropValid

Without them, Svelte runtime throws ReferenceError on first render
('captureDropActive is not defined'), leaving the WebView empty.

Verified with headless render smoke: .app + .sidebar mount,
sidebar shows system views + workspace, welcome screen renders.

Rebuild embedded frontend bundle.
This commit is contained in:
mirivlad 2026-06-15 17:46:10 +00:00
parent cd982f2f28
commit 2b3de296b9
4 changed files with 96 additions and 88 deletions

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@ -19,7 +19,7 @@
background: #13131f;
}
</style>
<script type="module" crossorigin src="/assets/main-QJp1UtIq.js"></script>
<script type="module" crossorigin src="/assets/main-C0D__Sxo.js"></script>
<link rel="stylesheet" crossorigin href="/assets/main-Bl-yCbt2.css">
</head>
<body>

View File

@ -89,6 +89,14 @@
let previewContent = ''
let previewLoading = false
let previewError = ''
// Capture/drag-drop overlay state (kept in App.svelte; used by inbox capture flow)
let captureDropActive = false
let captureDropLabel = ''
let captureDragDepth = 0
let lastCaptureDragOverAt = 0
let captureDragResetTimer = null
let dropRootValid = false
let inboxDropValid = false
let notes = []
let noteEditor = null
let noteEditorPanel = undefined; // bind:this ref for NoteEditorPanel