Add detached service windows and selectable terminal themes

Support standalone APRS, Monitor, Chat and Terminal views with courtesy screens, window focus and return controls, shared sessions and suspended embedded polling.

Add five persistent phosphor palettes, remove Console terminal idle disconnections, and display decoded Mic-E movement and altitude with expandable original packets.

Document the new behavior and add regression coverage. Validation: 182 tests passed; the known hanging PowerShell startup readiness test was excluded.
This commit is contained in:
alberto committed 2026-10-19 22:15:15 +02:00
1 parent 8ee4e9636a
commit c98c67e18b
24 files changed
+415 -22

No files matched your search

+24
View File
@@ -1,3 +1,27 @@
#terminal{height:calc(100dvh - 76px);display:flex;flex-direction:column;min-height:560px;padding:24px 28px}.terminal-heading{display:flex;align-items:center;justify-content:space-between;gap:18px;margin-bottom:20px;flex-shrink:0}.terminal-heading h1{font-size:28px;font-weight:500}.terminal-heading p{font-size:11px;color:var(--muted);margin-top:5px}.terminal-actions{display:flex;gap:9px}.terminal-actions button{font-size:11px}.phosphor-case{flex:1;min-height:0;display:flex;flex-direction:column;border-radius:16px;border:1px solid #51452b;background:#11110e;padding:7px;box-shadow:0 16px 45px #0005,inset 0 1px #8e774822;overflow:hidden}.phosphor-top,.phosphor-bottom{display:flex;justify-content:space-between;align-items:center;gap:18px;color:#9e844d;font:10px Consolas,'Courier New',monospace;letter-spacing:1px;flex-shrink:0;padding:14px 19px}.phosphor-top{border-bottom:1px solid #4a3a1c}.phosphor-top>span:first-child{display:flex;align-items:center;gap:10px}.phosphor-top i{display:inline-block;width:6px;height:6px;background:#5d5033;border-radius:50%}.phosphor-top i.online{background:#ffd477;box-shadow:0 0 9px #ffbd4d}.phosphor-screen{flex:1;min-height:0;overflow:auto;padding:24px 26px;color:#ffd376;background:radial-gradient(ellipse at center,#241d0d 0%,#131106 70%,#0b0b06 100%);box-shadow:inset 0 0 55px #000a;scrollbar-color:#72572a #151207;position:relative;isolation:isolate}.phosphor-screen:before{content:'';position:absolute;inset:0;min-height:100%;pointer-events:none;background:repeating-linear-gradient(0deg,transparent 0 2px,#0002 2px 3px);z-index:1}.phosphor-screen pre{font:14px/1.55 Consolas,'Courier New',monospace;white-space:pre-wrap;overflow-wrap:anywhere;tab-size:8;letter-spacing:.2px;text-shadow:0 0 5px #ffc14b66;margin:0;position:relative;z-index:2;user-select:text}.phosphor-screen pre::selection{background:#94702f;color:#fff2c4}.phosphor-cursor{display:inline-block;color:#ffda84;font:16px Consolas,monospace;animation:phosphor-blink 1.1s steps(1) infinite;text-shadow:0 0 8px #ffc354}#terminal-form{display:flex;align-items:center;gap:12px;margin:0;padding:12px 20px;border-top:1px solid #4a3a1c;background:#1c180e;color:#ffd376;flex-shrink:0}#terminal-form label{font:18px Consolas,monospace}#terminal-input{flex:1;width:0;min-width:0;background:transparent;border:0;border-radius:0;box-shadow:none;color:#ffda8a;font:14px Consolas,'Courier New',monospace;padding:10px 0;caret-color:#ffe2a2}#terminal-input::placeholder{color:#82704b}#terminal-input:focus-visible{outline:0;box-shadow:0 1px #c09c4a}#terminal-send{background:#30250f;border:1px solid #665126;color:#e9c779;font:11px Consolas,monospace;padding:10px 13px;border-radius:5px}.phosphor-bottom{font-size:9px;padding:12px 18px;letter-spacing:.5px;flex-wrap:wrap}.phosphor-bottom button{background:transparent;border:0;color:#ffda84;font:inherit;padding:0}@keyframes phosphor-blink{50%{opacity:0}}@media(prefers-reduced-motion:reduce){.phosphor-cursor{animation:none}}@media(max-width:850px){.terminal-heading{align-items:flex-start;flex-direction:column}.terminal-actions{flex-wrap:wrap}.phosphor-screen{padding:16px}.phosphor-screen pre{font-size:12px}.phosphor-top{font-size:9px;letter-spacing:.3px}}@media(max-width:600px){#terminal{padding:20px 14px;height:calc(100dvh - 175px);min-height:510px}.terminal-heading h1{font-size:25px}.terminal-actions button{padding:8px 10px}.phosphor-top{padding:12px 10px}#terminal-form{padding:10px 12px}.phosphor-bottom>span:nth-child(2){display:none}nav{flex-wrap:wrap}}
@media(min-width:601px){.sidebar:has([data-page=terminal]) nav{min-height:100px;overflow-y:auto;flex-shrink:1;scrollbar-width:thin}.sidebar:has([data-page=terminal])>.brand,.sidebar:has([data-page=terminal])>.side-label,.sidebar:has([data-page=terminal])>.profile{flex-shrink:0}.sidebar:has([data-page=terminal])>.side-station{padding-block:14px;flex-shrink:0}}
/* Coordinated phosphor palettes shared by embedded and detached terminal views. */
#terminal{--phosphor:#ffd376;--phosphor-rgb:255,193,75;--phosphor-muted:#a78c57;--phosphor-bg:#100e08;--phosphor-surface:#1c180e}
#terminal[data-theme=green]{--phosphor:#9cf7ad;--phosphor-rgb:109,244,139;--phosphor-muted:#71a781;--phosphor-bg:#070f0a;--phosphor-surface:#101c14}
#terminal[data-theme=ice]{--phosphor:#b3edff;--phosphor-rgb:113,212,255;--phosphor-muted:#779eaf;--phosphor-bg:#080f15;--phosphor-surface:#101c26}
#terminal[data-theme=violet]{--phosphor:#ddbcff;--phosphor-rgb:186,132,255;--phosphor-muted:#a38bb6;--phosphor-bg:#100a16;--phosphor-surface:#1b1325}
#terminal[data-theme=white]{--phosphor:#e8eee9;--phosphor-rgb:216,230,222;--phosphor-muted:#91a29a;--phosphor-bg:#0c100f;--phosphor-surface:#171e1b}
#terminal .phosphor-case{border-color:rgba(var(--phosphor-rgb),.28);background:var(--phosphor-bg);box-shadow:0 16px 45px #0005,inset 0 1px rgba(var(--phosphor-rgb),.12)}
#terminal .phosphor-top,#terminal .phosphor-bottom{color:var(--phosphor-muted);border-color:rgba(var(--phosphor-rgb),.2)}
#terminal .phosphor-top i.online{background:var(--phosphor);box-shadow:0 0 9px rgba(var(--phosphor-rgb),.8)}
#terminal .phosphor-screen{color:var(--phosphor);background:radial-gradient(ellipse at center,rgba(var(--phosphor-rgb),.075),transparent 80%),var(--phosphor-bg);scrollbar-color:var(--phosphor-muted) var(--phosphor-bg)}
#terminal .phosphor-screen pre{color:var(--phosphor);text-shadow:0 0 5px rgba(var(--phosphor-rgb),.32)}
#terminal .phosphor-screen pre::selection{background:rgba(var(--phosphor-rgb),.35);color:var(--phosphor)}
#terminal .phosphor-cursor{color:var(--phosphor);text-shadow:0 0 8px rgba(var(--phosphor-rgb),.65)}
#terminal-form{background:var(--phosphor-surface);color:var(--phosphor);border-color:rgba(var(--phosphor-rgb),.22)}
#terminal-input{color:var(--phosphor);caret-color:var(--phosphor)}#terminal-input::placeholder{color:var(--phosphor-muted)}#terminal-input:focus-visible{box-shadow:0 1px var(--phosphor-muted)}
#terminal-send{color:var(--phosphor);background:rgba(var(--phosphor-rgb),.08);border-color:rgba(var(--phosphor-rgb),.3)}#terminal .phosphor-bottom button{color:var(--phosphor)}
.terminal-actions{flex-wrap:wrap;justify-content:flex-end}.terminal-theme-bar{display:flex;align-items:center;gap:18px;margin:-5px 0 14px;flex-shrink:0}.terminal-theme-bar>span{color:#8396a6;font-size:10px;letter-spacing:1.5px;text-transform:uppercase}.terminal-theme-bar>div{display:flex;gap:5px;flex-wrap:wrap}
.terminal-theme-bar button{display:inline-flex;align-items:center;gap:7px;padding:6px 10px;border:1px solid transparent;border-radius:6px;background:transparent;color:#899dad;font-size:11px;line-height:1.3}.terminal-theme-bar button::before{content:'';width:7px;height:7px;border-radius:50%;background:var(--theme-dot)}
[data-terminal-theme=amber]{--theme-dot:#ffd376}[data-terminal-theme=green]{--theme-dot:#9cf7ad}[data-terminal-theme=ice]{--theme-dot:#b3edff}[data-terminal-theme=violet]{--theme-dot:#ddbcff}[data-terminal-theme=white]{--theme-dot:#e8eee9}
.terminal-theme-bar button:hover{background:#abc4d40a;color:#cddde8}.terminal-theme-bar button[aria-pressed=true]{color:var(--theme-dot);border-color:#8ba6bc35;background:#abc4d40c}
body.terminal-detached{background:#0d141c;color:#d7e3ec;overflow:hidden}.terminal-detached main{margin:0;padding:0;max-width:none;width:100%;height:100dvh}.terminal-detached #terminal{height:100dvh;min-height:0;padding:20px}.terminal-detached .terminal-heading{margin-bottom:15px}.terminal-detached .terminal-heading h1{font-size:23px}.terminal-detached .phosphor-screen{padding:20px 23px}
#terminal-window-error{margin:10vh auto;max-width:460px;padding:28px;border:1px solid #354656;border-radius:14px;background:#172330}#terminal-window-error p{margin:15px 0 22px;color:#a5bbcc}#terminal-window-error a{text-decoration:none}
@media(max-width:650px){.terminal-detached #terminal{padding:12px}.terminal-theme-bar{gap:10px;align-items:flex-start}.terminal-theme-bar button{padding:6px 7px}.terminal-actions{justify-content:flex-start}.terminal-detached .phosphor-screen{padding:15px}.terminal-theme-bar>span{padding-top:6px}}