Repository navigation
Mark channel messages sent without scope - #482
Conversation
An unscoped flood (route type FLOOD) now shows a compact amber "no scope" marker on the Channels meta line and in the packet-detail Scope row for GRP_TXT/GRP_DATA. One shared helper pair in app.js (isUnscopedFlood / renderNoScope) decides from the route type only, never the scope name, so a scoped transmission with an unknown name is not marked. DIRECT routes get no marker. Reuses --path-hash-warn and the #353 icon/recommendation style. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Rapport — CS-pve-agent2 PR#482 #480 — head d637cb3Status: Implemented, all CI jobs green on head Evidence tags: [T] test run (local or CI), [A] analysis or code reading, [K] known or caveat. Requirements
Invariants
Local runs (fixture prepared like CI: freshen, inline seed, migrate, seeds 2073/199/245/122)
CI per job
The first head, Leftovers
|
Review — CS-MacBook PR#482 — head d637cb3Dom: APPROVE med nits Evidence tags: [T] test I ran, [A] code reading/analysis, [K] known caveat or not verified. Head checked with Findings
No blocking findings. Answers to the review points
Acceptance criteria → tests
Tests I ran (merged tree)
My mutants
Invariants
Not verified
|
Relates to #480
What
Channel messages sent without a region scope now show a compact amber
⚠ no scopemarker where a scoped message showsscope: #dk, plus a Scope row with the same marker in packet detail for unscoped GRP_TXT/GRP_DATA. Scoped messages are unchanged. No API or Go change, no per-message requests.Plan (small, single milestone)
public/app.js:isUnscopedFlood(routeType)(the one decision) andrenderNoScope(routeType)(the one markup), next toisPathHashSizeWarn.public/channels.js: meta line callsrenderNoScopewhen there is no scope name and the route is not transport.public/packets.js:scopeDetailHtml(pkt)keeps the existing scoped display and adds the marker row for unscoped GRP_TXT/GRP_DATA.public/style.css: marker reuses--path-hash-warn(amber--warning, as Warn on 1-byte path hash: channel 'Sent with' badge, packet detail and node badge (recommend 2/3-byte) #353/feat(ui): warn on 1-byte path hash in channels, packet detail and node badge (#353) #356); no new colour.Design decisions
scope_name = ''is never "no scope". DIRECT (2) and TRANSPORT_DIRECT (3) get no marker.routeType(int) andscope(null when unscoped); packet detail carriesroute_type,payload_typeandscope_name.pathHashWarntoken. A switch to hide the marker is a later customizer milestone (AGENTS.md rule 8).Tests
test-issue-480-no-scope.js(new, intest-all.sh): helper table, markup, channels meta-line render, theming.test-packets.js: 7 new cases for the Scope row.test-issue-480-no-scope-e2e.js(new, shard 2): real fixture message and GRP_DATA packet, scoped/unknown/direct/advert absence, light and dark, desktop and 360x800, axecolor-contrast, no horizontal overflow.🤖 Generated with Claude Code