Live wall attention cues: NEW lane, pin pulse, opt-in tone and notifications (#238) #276
No Reviewers
Labels
Clear labels
area/ai-pipeline
area/auth
area/billing
area/correlation
area/discord
area/frontend
area/governance
area/growth
area/infra-deploy
area/legal
area/map
area/mqtt
area/node-ota
area/osint
area/recording-audio
area/sdr-radio
area/transcription
board
board:agenda
minutes:draft
minutes:final
role:ceo
role:cfo
role:cio
role:ciso
role:cmo
role:coo
role:cto
Scene/entity extraction, summarizer, AI providers, embeddings
AuthN/Z, roles, tenancy/org scoping, API keys, credentials
Plans, entitlements, AI spend accounting and caps
Incident correlation, linking, lifecycle, severity, corr_debug
Discord bot, radio bots, voice streams, bot tokens, webhooks
Web UI: Next.js app and the edge-node local dashboard
Board process, minutes, unattended runner, agent tooling
Go-to-market, outreach, cold email, discovery conversations
CI/CD, VM, registry, Firestore rules/indexes deploy, Terraform/Caddy
ToS, retention, licences/DAAs, CAN-SPAM, E&O, name suppression
Live map: pins, paths, tiles, legend, geocoding
Node-C2 MQTT, checkins, commands, node sweeper, dynsec
Node install, enrollment, OTA updater, image skew
External feeds: cameras, 511, ADS-B, AIS, outages, and their licences
Call capture, boundaries, PulseAudio, ring buffer, trimming, attribution
OP25 decode, SDR hardware/tuning, conventional, second SDR, mesh radio
STT, transcript correction, place verification, name accuracy
Board process: minutes and board-filed items
Needs board scoping at the next sitting; CEO removes the label once scoped
One exec pre-read, closed by CEO
CEO ruling; open until enacted
Filed by the CEO
Filed by the CFO
Filed by the CIO
Filed by the CISO
Filed by the CMO
Filed by the COO
Filed by the CTO
kind
behavior-bug
Wrong product behavior; the instrument reads it correctly
kind
measurement-bug
Corrupts the recording/instrument (debug data, evals, health checks), not behavior
priority
p0
Drop everything: prod broken, live exposure, or owner-ruled P0
priority
p1
Next up: blocks a gate, a customer, or core incident quality
priority
p2
Normal: real defect or planned work, schedule in turn
priority
p3
Low: minor, cosmetic, or someday
status
blocked
Waiting on an external party, spend, or another issue
status
in-progress
Branch or PR open against it
status
needs-decision
Waiting on an owner or board ruling before work
status
needs-info
Root cause or repro unknown; needs a reading first
type
bug
Something built is wrong: code, data, or a measurement
type
chore
Maintenance, refactor, tests, pinning, cleanup: no user-visible change
type
decision
A ruling to make or record: board minutes, owner calls, legal reviews
type
docs
Docs, runbooks, CLAUDE.md, skills, SOPs
type
feature
New capability or an extension of an existing one
type
security
Security, privacy, credential or tenant-isolation exposure
type
tracking
Tracker, checklist, initiative or punch-list spanning several changes
No labels
Milestone
No items
No Milestone
Projects
Clear projects
No projects
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: logan/server-26#276
Reference in New Issue
Block a user
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
Attention cues on the live wall, client-only phase of #238.
What
lib/attention.ts— purediffAttention(prev, incidents, calls, keywords): Major opened, severity escalated (known rank up; unrated→Major counts), pursuit path gained a stop (new non-ghost geocoded call newer than the incident's newest known stop), priority keyword in a new transcript (default MAYDAY, 10-13, shots fired, officer down; whole-word, "10 13"/"1013" also match). First snapshot = silent baseline; calls baseline separately on their first non-empty snapshot; old calls pulled in by selection are not news.isVisibleEvent). A filtered-out incident's call never cues, even if the call itself passes a loose filter.components/live/NewLane.tsx— "NEW · last 15 min" overlay right of the zoom stack, capped above MapView's rail (top-[9.5rem]); mobile = compact chip that expands. Carries the Gate A inline notice.pulseIncidentIds(no MapView edit).components/live/AttentionControls.tsx— "Cues" popover in the wall bar: tone OFF by default (enabling click creates/resumes the AudioContext and beeps once; after reload the first gesture re-arms, the button says so until then), browser notifications viaNotification.requestPermission()fired only whiledocument.hidden, body = incident title +MACHINE_OUTPUT_NOTICE_TEXT; no transcript text in notifications. Prefs + keywords in localStorage behind try/catch.Outside the planned file list (small, non-breaking)
lib/useIncidents.ts— newuseActiveIncidentsState()returning{incidents, loaded}(loaded = first non-cache server snapshot);useActiveIncidents()is now a wrapper. Without it the baseline would be taken against the empty pre-load list and page open would cue every open Major.components/ui/MachineOutputNotice.tsx— exportsMACHINE_OUTPUT_NOTICE_TEXT(exact existing short wording) so the notification body reuses it rather than copying it.Verification
lib/attention.ts: baseline silent, new Major cues, new minor does not, escalation, keyword whole-word incl. "10 13" and not "210-135", filtered-out incident never visible, older stop not news, new stop cues, late call baseline silent, lane/pulse filtered and pulse expires at 2 min. (No JS test harness in the repo, so these are not committed.)Closes #238
🤖 Generated with Claude Code
Review (not merged) — pushed
292c4ffwith fixes:new Notification()(no SW) — the control showed "notify" and never delivered. Enabling now sends one confirmation notification and falls back to "unsupported" if it throws.useActiveIncidentsState:includeMetadataChangessoloadedflips on a metadata-only server sync (quiet org / offline start).Filed #279: MapView rebuilds incident icons every clock tick (1s), so the 1.8s pulse ring restarts before completing — MapView-owned, out of scope here.
Still unverified in a browser: tone, notifications, lane placement. tsc exit=0; c2-core 934 passed.