Skip to content

Commit bc9ec44

Browse files
committed
feat: show upload size limit and header extraction info in web UI
Explain to users that BAM headers are extracted in the browser and CRAM/FASTA uploads are limited to 4MB. This addresses the UX concern of users not knowing limits before attempting large uploads.
1 parent d390c16 commit bc9ec44

2 files changed

Lines changed: 12 additions & 1 deletion

File tree

src/web/static/css/styles.css

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -721,6 +721,13 @@ button:disabled {
721721
white-space: pre;
722722
}
723723

724+
.upload-hint {
725+
color: var(--text-muted);
726+
font-size: 0.8rem;
727+
line-height: 1.5;
728+
margin-bottom: 0.75rem;
729+
}
730+
724731
.extraction-status {
725732
color: var(--accent);
726733
font-size: 0.85rem;

src/web/templates/index.html

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -143,7 +143,11 @@ <h2>Input & Configuration</h2>
143143
<div class="tab-content" id="tab-binary">
144144
<div class="card-body">
145145
<div class="tab-description">
146-
Upload BAM, CRAM, or FASTA files to automatically extract sequence information from headers. These files are uploaded and processed server-side.
146+
Upload BAM, CRAM, or FASTA files to automatically extract sequence information from headers.
147+
</div>
148+
<div class="upload-hint">
149+
<strong>BAM:</strong> Headers are extracted in your browser &mdash; large files are fine.<br>
150+
<strong>CRAM/FASTA:</strong> Upload limit is 4MB (headers only).
147151
</div>
148152
<div style="display: flex; gap: 1rem; margin-bottom: 1rem; flex-wrap: wrap;">
149153
<label for="binary-file-upload" class="demo-button" style="cursor: pointer;">📄 Upload</label>

0 commit comments

Comments
 (0)