Signal chats in the app (desktop only) with a chat button on every screen
build-container / build (push) Successful in 6m44s

- signal.js: talks to signal-cli-rest-api (a linked device of your Signal account); keeps conversations in /data/signal; live updates; send/receive text, files, replies, reactions, groups, receipts
- Signal tab and a floating chat panel on every screen, shown only on desktop-class windows; new Signal permission per person
- compose: signal bridge container sharing the hub's network
- tools/signal-test.js (fake bridge), README

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
nmemmertandClaude Sonnet 5.5 committed 2026-10-21 10:18:02 -04:00
1 parent 5157e42bc4
commit d0070aa0bb
10 files changed
+746 -11

No files matched your search

+80
View File
@@ -343,3 +343,83 @@ body:not(.editing) #view { padding-top: 8px; }
body.nav-mini .navcol svg { transform: rotate(180deg); }
body.nav-mini .navcol span { display: none; }
}
/* Unread badge on the menu */
#nav a { position: relative; }
.nbadge { background: var(--danger); color: #fff; font-size: 11px; font-style: normal; font-weight: 700; line-height: 18px; min-width: 18px; padding: 0 5px; border-radius: 9px; text-align: center; position: absolute; top: 4px; left: calc(50% + 6px); }
@media (min-width: 1024px) { body:not(.nav-mini) #nav .nbadge { position: static; margin-left: auto; } }
/* Signal */
.sgwrap { max-width: 1200px; }
.sg { display: block; }
.sg .sgm { display: none; }
.sg.open .sgl { display: none; }
.sg.open .sgm { display: flex; }
.sghead { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 8px; }
.sghead h1 { margin: 0; }
.sglist { margin-top: 10px; }
.sgrow { padding: 10px 14px; }
.sgrow.on { background: var(--panel2); }
.sgav { width: 42px; height: 42px; border-radius: 50%; color: #fff; display: grid; place-items: center; font-weight: 700; flex: none; }
.sgav svg { width: 22px; height: 22px; }
.sgside { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; flex: none; }
.sgm { flex-direction: column; height: calc(100dvh - 210px); min-height: 360px; background: var(--panel); border: 1px solid var(--line); border-radius: 16px; overflow: hidden; }
.sgbar { display: flex; align-items: center; gap: 10px; padding: 8px 12px; border-bottom: 1px solid var(--line); }
.sgbar .grow { min-width: 0; } .sgbar b, .sgbar small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .sgbar small { color: var(--muted); }
.sgmsgs { flex: 1; overflow-y: auto; padding: 12px; display: flex; flex-direction: column; gap: 4px; -webkit-overflow-scrolling: touch; }
.sgday { align-self: center; color: var(--muted); font-size: 12px; margin: 10px 0 4px; }
.sgb { max-width: min(78%, 520px); padding: 8px 12px 6px; border-radius: 16px; background: var(--panel2); align-self: flex-start; word-break: break-word; position: relative; cursor: pointer; }
.sgb.out { align-self: flex-end; background: var(--accent); color: var(--accent-t); border-bottom-right-radius: 4px; }
.sgb.in { border-bottom-left-radius: 4px; }
.sgb .who { display: block; font-weight: 700; font-size: 12px; margin-bottom: 2px; }
.sgt a { color: inherit; text-decoration: underline; }
.sgmeta { display: block; text-align: right; font-size: 11px; opacity: .7; margin-top: 2px; }
.sgmeta .rd { color: #8be28b; font-weight: 700; }
.sgb.out .sgmeta .rd { color: #fff; }
.sgimg { display: block; max-width: 100%; max-height: 320px; border-radius: 10px; margin-bottom: 4px; }
.sgb audio, .sgb video { max-width: 100%; display: block; margin-bottom: 4px; }
.sgfile { display: flex; align-items: center; gap: 8px; text-decoration: underline; margin-bottom: 4px; }
.sgfile svg { width: 18px; height: 18px; }
.sgq { border-left: 3px solid currentColor; opacity: .85; padding: 2px 8px; margin-bottom: 6px; font-size: 13px; }
.sgq b, .sgq span { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sgdel { opacity: .7; }
.sgre { position: absolute; right: 8px; bottom: -12px; background: var(--panel); color: var(--text); border: 1px solid var(--line); border-radius: 12px; padding: 0 6px; font-size: 13px; }
.sgb:has(.sgre) { margin-bottom: 12px; }
.sgrep, .sgtray { display: flex; align-items: center; gap: 8px; padding: 6px 12px; border-top: 1px solid var(--line); background: var(--panel2); }
.sgrep[hidden], .sgtray[hidden] { display: none; }
.sgrep .grow { min-width: 0; border-left: 3px solid var(--accent); padding-left: 8px; } .sgrep b, .sgrep small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sgtray { overflow-x: auto; }
.sgchip { display: flex; align-items: center; gap: 6px; background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 2px 4px 2px 8px; flex: none; max-width: 200px; }
.sgchip img { width: 32px; height: 32px; object-fit: cover; border-radius: 6px; } .sgchip small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 110px; } .sgchip .ibtn { width: 32px; height: 32px; }
.sgc { display: flex; align-items: flex-end; gap: 4px; padding: 8px; border-top: 1px solid var(--line); }
.sgc textarea { flex: 1; min-height: 44px; max-height: 140px; resize: none; border-radius: 22px; border: 1px solid var(--line); background: var(--bg); padding: 11px 14px; font-size: 16px; }
.sgsend { background: var(--accent); color: var(--accent-t); }
.sgsend:disabled { opacity: .5; }
.sgemo { display: flex; justify-content: space-around; } .sgemo .ibtn { font-size: 26px; width: 52px; height: 52px; }
.sgsteps { margin: 0 0 6px; padding-left: 20px; }
@media (min-width: 1024px) {
.sgwrap .sg { display: grid; grid-template-columns: 340px 1fr; gap: 20px; align-items: start; }
.sgwrap .sg .sgl, .sgwrap .sg.open .sgl, .sgwrap .sg .sgm, .sgwrap .sg.open .sgm { display: flex; }
.sgwrap .sg .sgl { flex-direction: column; }
.sgwrap .sgback { display: none; }
.sgwrap .sgm { height: calc(100dvh - 150px); }
}
/* The floating chat (desktop): a button on every screen that opens Signal over it */
#sgfab { position: fixed; z-index: 14; right: 22px; bottom: calc(var(--ph, 0px) + 22px); width: 54px; height: 54px; border-radius: 50%; border: 0; background: var(--accent); color: var(--accent-t); display: grid; place-items: center; box-shadow: 0 6px 20px rgba(0,0,0,.35); cursor: pointer; }
#sgfab svg { width: 26px; height: 26px; }
#sgfab .nbadge { top: -2px; left: auto; right: -2px; position: absolute; }
#sgfab[hidden], #sgdock[hidden], body.editing #sgfab, body.editing #sgdock { display: none; }
#sgdock { position: fixed; z-index: 14; right: 22px; bottom: calc(var(--ph, 0px) + 88px); width: 400px; max-width: calc(100vw - 44px); height: min(640px, calc(100dvh - var(--ph, 0px) - 120px)); display: flex; flex-direction: column; background: var(--panel); border: 1px solid var(--line); border-radius: 16px; box-shadow: 0 12px 40px rgba(0,0,0,.4); overflow: hidden; }
.sgdtop { display: flex; align-items: center; gap: 2px; padding: 4px 6px 4px 14px; border-bottom: 1px solid var(--line); }
.sgdtop .ibtn { width: 38px; height: 38px; } .sgdtop svg { width: 20px; height: 20px; }
.sgdbody { flex: 1; min-height: 0; overflow-y: auto; display: flex; flex-direction: column; }
.sgdockin { padding: 10px; flex: 1; min-height: 0; display: flex; flex-direction: column; }
.sgdockin .sg { flex: 1; min-height: 0; display: flex; flex-direction: column; }
.sgdockin .sg .sgl { display: block; } .sgdockin .sg.open .sgl { display: none; }
.sgdockin .sg .sgm { display: none; } .sgdockin .sg.open .sgm { display: flex; flex: 1; height: auto; min-height: 0; border: 0; border-radius: 0; background: none; }
.sgdockin .sgbar { padding-left: 0; }
.sgdt { font-size: 15px; }
.sgdockin .sgm .sgmsgs { padding: 8px 4px; }
.sgdockin .sgb { max-width: 86%; }
@media (display-mode: standalone) { #sgfab { bottom: calc(var(--ph, 0px) + 22px + var(--sab, 0px)); } }