Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 7 additions & 7 deletions server/otter/static/app.js
Original file line number Diff line number Diff line change
Expand Up @@ -919,17 +919,17 @@ function renderFirmwares() {
<td><span class="ver">${esc(f.version)}</span>${f.signed ? ` <span class="signed" title="Signed: devices built with the public key check it">🔏</span>` : ""}${
f.crash_count ? ` <span class="crash-chip" title="Crash reports from devices running it">💥 ${f.crash_count}</span>` : ""}</td>
<td${f.compressed_size ? ` title="Downloaded compressed: ${bytes(f.compressed_size)}"` : ""}>${bytes(f.size)}${
f.compressed_size ? ` <span class="muted">(${bytes(f.compressed_size)} zipped)</span>` : ""}</td>
f.compressed_size ? `<div class="sub muted">${bytes(f.compressed_size)} zipped</div>` : ""}</td>
<td class="mono muted" title="${esc(f.sha256)}">${esc(f.sha256.slice(0, 12))}…</td>
<td title="${esc(new Date(f.uploaded_at).toLocaleString())}">${ago(f.uploaded_at)}</td>
<td><select class="channel-select" aria-label="Publish on channel">${channelOptions(f.channel, "—")}</select></td>
<td class="muted">${esc(f.notes)}</td>
<td class="actions">
${f.has_factory && installFamily(f.hw) ? `<button class="install ghost" title="Install on a board plugged into this computer">Install…</button>` : ""}
<button class="staged ghost" title="Release ${esc(f.app)} ${esc(f.version)} progressively, in stages">Staged…</button>
<button class="rollout ghost" title="Deploy to every ${esc(f.app)} / ${esc(f.hw)} device${state.filter.tag ? ` tagged #${esc(state.filter.tag)}` : ""} not on this version">Roll out${state.filter.tag ? ` to #${esc(state.filter.tag)}` : ""}</button>
<td class="muted notes">${esc(f.notes)}</td>
<td class="actions"><div class="row-actions">
${f.has_factory && installFamily(f.hw) ? `<button class="install" title="Install on a board plugged into this computer">Install…</button>` : ""}
<button class="staged" title="Release ${esc(f.app)} ${esc(f.version)} progressively, in stages">Staged…</button>
<button class="rollout" title="Deploy to every ${esc(f.app)} / ${esc(f.hw)} device${state.filter.tag ? ` tagged #${esc(state.filter.tag)}` : ""} not on this version">Roll out${state.filter.tag ? ` to #${esc(state.filter.tag)}` : ""}</button>
<button class="delete ghost danger" title="Delete">✕</button>
</td>
</div></td>
</tr>`).join("");
$("#no-firmwares").hidden = state.firmwares.length > 0;
$("#firmware-count").textContent = state.firmwares.length || "";
Expand Down
7 changes: 7 additions & 0 deletions server/otter/static/style.css
Original file line number Diff line number Diff line change
Expand Up @@ -142,6 +142,8 @@ tr[data-status="off"] .avatar { --tone: var(--muted); }
.newer { font-family: system-ui, sans-serif; font-size: 11px; font-weight: 600; padding: 1px 7px; border-radius: 99px; color: var(--warn); background: color-mix(in srgb, var(--warn) 14%, transparent); }
.ver { font-family: var(--mono); font-size: 12.5px; padding: 2px 8px; border-radius: 6px; background: color-mix(in srgb, var(--accent) 10%, transparent); color: var(--accent); }
td.fw-app { font-weight: 600; }
#firmwares td.notes { white-space: normal; min-width: 110px; } /* the column that gives way */
#firmwares td .sub { font-size: 12px; margin-top: 1px; }
tr.offline td:not(.actions):not(.check) { opacity: .55; }
th.check, td.check { width: 32px; }
.update-col { width: 240px; }
Expand Down Expand Up @@ -192,6 +194,11 @@ input[type="checkbox"] { accent-color: var(--accent); }
@keyframes pulse { 50% { opacity: .5; } }

.actions { text-align: right; }
/* A firmware's actions: one row, real buttons; deleting stays discreet. */
.row-actions { display: flex; justify-content: flex-end; align-items: center; gap: 6px; }
.row-actions button:not(.ghost) { padding: 4px 10px; font-size: 13px; white-space: nowrap; }
.row-actions button:not(.ghost):hover { border-color: var(--accent); color: var(--accent); }
.row-actions .install { color: var(--accent); border-color: color-mix(in srgb, var(--accent) 40%, var(--border)); background: color-mix(in srgb, var(--accent) 8%, var(--surface)); }

.upload { display: flex; flex-wrap: wrap; gap: 10px; align-items: flex-end; margin-bottom: 12px; padding: 16px; background: var(--surface); border: 1px dashed color-mix(in srgb, var(--accent) 40%, var(--border)); border-radius: 12px; }
.upload-title { flex-basis: 100%; display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; font-size: 13px; }
Expand Down
Loading