Skip to content

Commit 7329348

Browse files
committed
chore: minor usability tweeks
1 parent f7d986b commit 7329348

1 file changed

Lines changed: 7 additions & 4 deletions

File tree

webapp/static/index.html

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -105,11 +105,12 @@ <h1>infinishield</h1>
105105
</div>
106106
</div>
107107

108-
<div id="embed-result" style="display:none">
108+
<div id="embed-result" style="display:none; margin-top:24px; padding-top:24px; border-top:1px solid var(--border)">
109+
<h2 style="font-size:1.2rem; margin-bottom:16px;">Result</h2>
109110
<div class="output-panel has-content" id="embed-output"></div>
110111
<div class="comparison" id="embed-comparison"></div>
111112
<div style="margin-top:16px">
112-
<button class="btn btn-primary" id="reset-btn">New Embed</button>
113+
<button class="btn btn-primary" id="reset-btn">Start Over (New File)</button>
113114
</div>
114115
</div>
115116
</div>
@@ -317,7 +318,6 @@ <h1>infinishield</h1>
317318
const data = await res.json();
318319

319320
form.classList.remove('locked');
320-
form.style.display = 'none';
321321
document.getElementById('embed-result').style.display = 'block';
322322
document.getElementById('embed-output').textContent = data.output || data.error;
323323

@@ -356,13 +356,16 @@ <h1>infinishield</h1>
356356
});
357357

358358
document.getElementById('reset-btn').addEventListener('click', () => {
359-
document.getElementById('embed-form').style.display = 'block';
360359
document.getElementById('embed-result').style.display = 'none';
361360
document.getElementById('embed-comparison').textContent = '';
362361
document.getElementById('embed-preview').style.display = 'none';
363362
document.getElementById('embed-preview').textContent = '';
364363
document.getElementById('embed-upload-info').style.display = 'none';
365364
document.getElementById('embed-btn').disabled = true;
365+
document.getElementById('embed-file').value = '';
366+
document.getElementById('dryrun-output').textContent = 'Upload a file to see dry-run preview';
367+
document.getElementById('dryrun-output').classList.remove('has-content');
368+
setIndicator('idle', 'Dry-run idle');
366369
embedFilePath = null;
367370
embedFileName = null;
368371
});

0 commit comments

Comments
 (0)