Notifications: opt-in per-post OS banner class and per-channel sounds
Follow-up to #3160 (desktop implementation: #3233).
v1 per-channel notification levels deliberately add no per-post OS banners (VISION.md: zero-by-default) — level "All new posts" is exactly today's behavior. Slack parity eventually wants:
- An opt-in per-channel notification class that raises ordinary posts to OS banners (desktop + mobile), layered on the existing
notifyDecisionForEventladder as a delivery-surface concern (SoC: the ladder decides whether, the class decides how loud). - Per-channel notification sounds.
Both are additive fields on the channel-notify-prefs schema (docs/nips/NIP-CN.md), which round-trips unknown fields, so older clients are unaffected.
🤖 Generated with Claude Code
Data point from a small team using Buzz daily: this was the most requested change for us. People expected Discord-style "All messages" per channel, and saw only a dock bounce for ordinary posts.
We run a lightweight version on a local desktop build:
- per-channel level in the channel context menu: Default / All messages / Only @mentions / Nothing (Nothing = existing mute), plus a global default in Settings → Notifications with an "apply default to all channels" reset;
- channels at "All messages" get the same native card as a DM for every new top-level post (not for the channel being viewed, not for @mentions — those keep the existing home-feed path so nothing double-notifies), with its own
channel_messagesound slot.
It is device-local (localStorage) rather than the synced kind-30078 blob from #3233, so it is much smaller — but we'd happily adapt it to whatever storage #3233 lands with if a per-post banner class is still wanted.