Rework P2P federation as opt-in Community Feed#72
Merged
Conversation
Frontend name flips to "Community Feed"; backend identifiers (P2PConfigStore, /api/p2p/config, /data/p2p.json, P2P_* env vars) stay put. Fresh installs no longer share by default — the relay client refuses to dial out until the operator opts in. Existing v1 p2p.json files grandfather forward (consent_given = enabled) so anyone already sharing keeps sharing across the upgrade. The entry point moves from a buried sidebar filter chip to a discoverable header status pill: accent-blue when off, muted with live "N receivers" once on. On a fresh browser the pill is followed up by an auto-opened onboarding dialog 8 s after the first snapshot — long enough for the map to populate, short enough that the user is still oriented. A localStorage flag ensures it fires once. P2P_ENABLED env-var is removed: consent-gated opt-in makes the kill switch redundant. Tests and the Playwright harness inherit "no outbound" from the fresh-install default.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Frontend name flips to "Community Feed"; backend identifiers (P2PConfigStore, /api/p2p/config, /data/p2p.json, P2P_* env vars) stay put. Fresh installs no longer share by default — the relay client refuses to dial out until the operator opts in. Existing v1 p2p.json files grandfather forward (consent_given = enabled) so anyone already sharing keeps sharing across the upgrade.
The entry point moves from a buried sidebar filter chip to a discoverable header status pill: accent-blue when off, muted with live "N receivers" once on. On a fresh browser the pill is followed up by an auto-opened onboarding dialog 8 s after the first snapshot — long enough for the map to populate, short enough that the user is still oriented. A localStorage flag ensures it fires once.
P2P_ENABLED env-var is removed: consent-gated opt-in makes the kill switch redundant. Tests and the Playwright harness inherit "no outbound" from the fresh-install default.