Skip to content

Rework P2P federation as opt-in Community Feed#72

Merged
MrSuttonmann merged 1 commit into
mainfrom
community-feed-rework
May 22, 2026
Merged

Rework P2P federation as opt-in Community Feed#72
MrSuttonmann merged 1 commit into
mainfrom
community-feed-rework

Conversation

@MrSuttonmann
Copy link
Copy Markdown
Owner

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.

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.
@MrSuttonmann MrSuttonmann merged commit 6a53cdf into main May 22, 2026
11 checks passed
@MrSuttonmann MrSuttonmann deleted the community-feed-rework branch May 22, 2026 12:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant