Clear channel name on new channel tab swap

This commit is contained in:
Jack Kingsman
2026-02-24 20:56:27 -08:00
parent 0826030f1c
commit 684724913f
2 changed files with 15 additions and 1 deletions
+6
View File
@@ -236,6 +236,12 @@ When touching cross-layer contracts, also run backend tests from repo root:
PYTHONPATH=. uv run pytest tests/ -v
```
## Errata & Known Non-Issues
### RawPacketList always scrolls to bottom
`RawPacketList` unconditionally scrolls to the latest packet on every update. This is intentional — the packet feed is a live status display, not an interactive log meant for lingering or long-term analysis. Users watching it want to see the newest packet, not hold a scroll position.
## Editing Checklist
1. If API/WS payloads change, update `types.ts`, handlers, and tests.
+9 -1
View File
@@ -133,7 +133,15 @@ export function NewMessageModal({
</DialogDescription>
</DialogHeader>
<Tabs value={tab} onValueChange={(v) => setTab(v as Tab)} className="w-full">
<Tabs
value={tab}
onValueChange={(v) => {
setTab(v as Tab);
setName('');
setError('');
}}
className="w-full"
>
<TabsList className="grid w-full grid-cols-4">
<TabsTrigger value="existing">Existing</TabsTrigger>
<TabsTrigger value="new-contact">Contact</TabsTrigger>