Streamline the connections workspace

Rename and remove now live on each sidebar row instead of a header
above the workspace. The pen swaps the row to an inline input (Enter or
blur saves, Escape cancels and returns focus to the pen) and the remove
control targets its own row without switching the open connection. The
row shows a status dot with text; on mobile a bar beside Show
connections shows the open connection and its status.

The per-connection activity timeline and its saved transfer history are
removed. Records from pre-release 0.0.5 builds lose their history field
on first load. A removal dialog closes when another tab removes its
connection, and focus moves to the next row after removing another one.

The README is reorganized without repetition and corrects the TypeScript
version; the 0.0.5 changelog now describes the net change since 0.0.4.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
SchluffeandClaude Opus 5.5 committed 2026-10-19 23:46:12 +02:00
1 parent 4323a8b774
commit f320bfb541
11 files changed
+552 -650

No files matched your search

+24 -60
View File
@@ -279,16 +279,24 @@ p.stun-hint {
.brand-name { display: block; font-family: ui-monospace, monospace; font-weight: 700; font-size: 1.45rem; letter-spacing: -0.05em; }
.brand p { font-size: 0.75rem; color: var(--muted); margin: 0.25rem 0 0; }
.sidebar-section-heading { display: flex; align-items: center; justify-content: space-between; padding: 0 0.65rem; }
.sidebar-section-heading h2, .eyebrow { text-transform: uppercase; font-size: 0.68rem; letter-spacing: 0.12em; color: var(--muted); margin: 0; font-weight: 650; }
.sidebar-section-heading h2 { text-transform: uppercase; font-size: 0.68rem; letter-spacing: 0.12em; color: var(--muted); margin: 0; font-weight: 650; }
.sidebar-section-heading > span { font-size: 0.72rem; color: var(--muted); }
.connection-nav { display: flex; flex-direction: column; gap: 0.35rem; }
.connection-link { display: flex; align-items: center; gap: 0.7rem; width: 100%; text-align: left; background: transparent; border: 1px solid transparent; padding: 0.75rem 0.6rem; border-radius: 9px; }
.connection-link.selected { background: var(--accent-soft); border-color: #65472e; }
.connection-avatar { flex: 0 0 34px; height: 34px; display: grid; place-items: center; border-radius: 10px; background: #252a36; font-size: 0.88rem; color: var(--muted); }
.selected .connection-avatar { color: var(--accent); background: #473022; }
.connection-label { display: flex; flex-direction: column; gap: 0.3rem; min-width: 0; flex: 1; }
.connection-name { font-size: 0.87rem; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.connection-preview { font-size: 0.72rem; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.connection-item { position: relative; border: 1px solid transparent; border-radius: 9px; }
.connection-item.selected { background: var(--accent-soft); border-color: #65472e; }
.connection-link, .connection-edit { display: flex; flex-direction: column; align-items: stretch; justify-content: center; gap: 0.4rem; min-width: 0; width: 100%; min-height: 64px; padding: 0.55rem 4.2rem 0.55rem 0.7rem; }
.connection-link { text-align: left; background: transparent; border: 0; border-radius: 8px; }
.connection-link:hover:not(:disabled) { background: #ffffff08; }
.connection-edit { padding-right: 2.4rem; }
.connection-name { color: var(--text); font-size: 0.87rem; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.connection-status-line { display: flex; align-items: center; gap: 0.45rem; min-width: 0; color: var(--muted); font-size: 0.72rem; }
.connection-status { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.connection-action { position: absolute; top: 0.45rem; display: grid; place-items: center; width: 30px; height: 30px; padding: 0; border: 0; background: transparent; color: var(--muted); font-size: 0.9rem; }
.connection-action:hover:not(:disabled), .connection-action:focus-visible { color: var(--accent); }
.edit-action { right: 2.25rem; }
.remove-action { right: 0.35rem; }
.remove-action:hover:not(:disabled), .remove-action:focus-visible { color: #ff9185; }
.connection-rename-input { width: 100%; min-width: 0; border: 1px solid var(--accent); border-radius: 6px; padding: 0.28rem 0.35rem; background: var(--bg); color: var(--text); font: inherit; font-size: 0.87rem; font-weight: 600; }
.connection-dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: #7c8495; flex-shrink: 0; }
.connection-dot.connected { background: #69d6a4; }
.connection-dot.connecting { background: var(--accent); }
@@ -306,19 +314,8 @@ summary:hover { color: var(--text); }
summary:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.privacy-details summary { font-size: 0.72rem; }
.main-pane { min-width: 0; min-height: 0; display: flex; flex-direction: column; }
.connection-header { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 80px; padding: 1rem var(--space-xl); border-bottom: 1px solid var(--border); background: #141720; }
.connection-title { min-width: 0; flex: 1; }
.title-line { display: flex; align-items: center; gap: 1rem; margin-top: 0.4rem; }
.title-line h1 { margin: 0; font-size: 1.35rem; font-weight: 600; font-family: inherit; overflow-wrap: anywhere; }
.header-action { font-size: 0.72rem; padding: 0.3rem 0.5rem; color: var(--muted); background: transparent; border-color: transparent; }
.header-action-icon { margin-right: 0.15rem; opacity: 0.65; }
.header-action:hover:not(:disabled), .header-action:focus-visible { color: #ff9185; }
.header-action:hover:not(:disabled) .header-action-icon, .header-action:focus-visible .header-action-icon { opacity: 1; }
.session-badge { display: inline-flex; align-items: center; gap: 0.45rem; color: var(--muted); font-size: 0.74rem; white-space: nowrap; border: 1px solid var(--border); border-radius: 20px; padding: 0.45rem 0.7rem; }
.session-badge.connected { color: #8ddbb6; border-color: #315344; }
.workspace-scroll { flex: 1; overflow-y: auto; padding: var(--space-2xl) 2.25rem; }
.connection-workspace { display: grid; grid-template-columns: minmax(0, 720px) minmax(240px, 320px); gap: var(--space-2xl); max-width: 1200px; margin-inline: auto; align-items: start; }
.session-column { min-width: 0; }
.connection-workspace { width: 100%; max-width: 720px; min-width: 0; margin-inline: auto; }
.workspace-intro { margin-bottom: 1.4rem; }
.workspace-intro h2 { font-size: 1.05rem; font-weight: 600; margin: 0 0 0.4rem; }
.workspace-intro p { font-size: 0.85rem; color: var(--muted); line-height: 1.6; margin: 0; }
@@ -338,32 +335,11 @@ input[type=file]::file-selector-button { border: 1px solid #505667; border-radiu
.code-details > .code-entry { margin-top: var(--space-md); }
.code-entry { display: flex; flex-direction: column; gap: var(--space-md); min-width: 0; }
.code-entry > button { align-self: start; font-size: 0.88rem; }
.activity-panel { min-width: 0; border-left: 1px solid var(--border); padding-left: var(--space-xl); }
.activity-heading { display: flex; align-items: center; gap: var(--space-sm); }
.activity-heading h2 { font-size: 0.9rem; font-weight: 600; margin: 0; }
.activity-heading > span { font-size: 0.68rem; color: var(--muted); border-radius: 5px; padding: 0.15rem 0.35rem; background: #242936; }
.empty-activity { padding: 3.5rem 0.25rem; text-align: center; }
.empty-activity-icon { font-size: 1.6rem; display: grid; place-items: center; margin: 0 auto 1rem; width: 54px; height: 54px; border-radius: 16px; border: 1px solid var(--border); color: var(--muted); }
.empty-activity h3 { font-size: 0.88rem; font-weight: 500; margin: 0 0 0.6rem; }
.empty-activity p { font-size: 0.8rem; line-height: 1.7; color: var(--muted); }
p.activity-note { font-size: 0.7rem; color: var(--muted); line-height: 1.6; }
.empty-activity .activity-note { margin-top: var(--space-xl); }
.activity-list { list-style: none; padding: 0; margin: var(--space-lg) 0; }
.activity-item { display: flex; gap: 0.7rem; padding: 1rem 0; border-bottom: 1px solid var(--border); font-size: 0.78rem; }
.activity-item > div { min-width: 0; }
.activity-icon { color: var(--accent); padding-top: 0.1rem; font-size: 1rem; }
.activity-filename { margin: 0; overflow-wrap: anywhere; font-weight: 500; }
.activity-meta, .activity-result { color: var(--muted); margin: 0.4rem 0; font-size: 0.72rem; }
.activity-item time { font-size: 0.68rem; color: var(--muted); }
.storage-error { color: #ffb4a9; background: #422725; border: 1px solid #8e5147; border-radius: 8px; padding: 1rem; font-size: 0.85rem; line-height: 1.6; }
.sidebar-toggle { display: none; }
.mobile-bar { display: none; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
@media (max-width: 1150px) {
.app-shell { grid-template-columns: 230px minmax(0, 1fr); }
.connection-workspace { grid-template-columns: minmax(0, 1fr); gap: var(--space-2xl); }
.activity-panel { border-left: 0; border-top: 1px solid var(--border); padding: var(--space-xl) 0 0; }
.empty-activity { padding: var(--space-xl) 0; }
.connection-header { padding-inline: var(--space-xl); }
.workspace-scroll { padding: var(--space-xl); }
}
@media (max-width: 700px) {
@@ -373,23 +349,14 @@ p.activity-note { font-size: 0.7rem; color: var(--muted); line-height: 1.6; }
.sidebar-open .sidebar { display: flex; }
.brand { padding-bottom: 0; }
.sidebar-footer { padding-top: 0; }
.connection-header { flex-wrap: wrap; padding: 1rem; min-height: 0; gap: 0.75rem; }
.sidebar-toggle { display: block; flex-basis: 100%; font-size: 0.8rem; text-align: left; background: transparent; padding: 0.5rem; }
.mobile-bar { display: flex; align-items: center; gap: 0.75rem; margin: 0.75rem 1rem 0; }
.mobile-current { display: flex; flex-direction: column; gap: 0.3rem; flex: 1; min-width: 0; }
.mobile-current-name { font-size: 0.95rem; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mobile-current-status { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sidebar-toggle { flex-shrink: 0; margin-left: auto; font-size: 0.8rem; background: transparent; padding: 0.5rem; }
.workspace-scroll { padding: var(--space-lg) 1rem; overflow: visible; }
.title-line { gap: 0.4rem; }
.title-line h1 { font-size: 1.15rem; }
.panel { padding: 1rem; }
.session-badge { font-size: 0.65rem; padding: 0.35rem 0.5rem; }
}
.title-line { flex-wrap: wrap; column-gap: 0.6rem; }
.editable-name { display: inline-flex; position: relative; max-width: min(100%, 26rem); min-width: 0; }
.editable-name input { width: 100%; min-width: 0; max-width: 100%; border: 1px solid transparent; border-radius: 7px; padding: 0.12rem 1.65rem 0.12rem 0.4rem; margin-left: -0.4rem; font: inherit; font-size: 1.35rem; font-weight: 600; color: var(--text); background: #ffffff03; text-overflow: ellipsis; transition: border-color 120ms, background 120ms; }
.editable-name input:hover { border-color: var(--border); background: #ffffff06; }
.editable-name input:focus { border-color: var(--accent); outline: none; background: var(--bg); }
.name-edit-icon { position: absolute; right: 0.65rem; top: 50%; transform: translateY(-50%); color: var(--muted); font-size: 0.9rem; pointer-events: none; opacity: 0.65; }
.editable-name:focus-within .name-edit-icon { color: var(--accent); opacity: 1; }
.app-dialog { width: min(460px, calc(100% - 2rem)); max-height: calc(100dvh - 2rem); margin: auto; padding: 1.5rem; border: 1px solid #414858; border-radius: 14px; color: var(--text); background: var(--panel); box-shadow: 0 24px 100px #0009; overflow-y: auto; }
.app-dialog::backdrop { background: #080b12b8; backdrop-filter: blur(4px); }
.dialog-header { display: flex; align-items: start; justify-content: space-between; gap: 1rem; }
@@ -401,7 +368,4 @@ p.activity-note { font-size: 0.7rem; color: var(--muted); line-height: 1.6; }
.dialog-actions button { font-size: 0.85rem; }
button.danger { border-color: #b84d42; background: #672f2b; color: #ffe3df; }
button.danger:hover:not(:disabled) { border-color: #ff9185; background: #813b34; }
@media (max-width: 700px) {
.editable-name input { font-size: 1.15rem; }
.app-dialog { padding: 1.2rem; }
}
@media (max-width: 700px) { .app-dialog { padding: 1.2rem; } }