Right to Leave panel: export-and-go + Delete Day (0234 Wave 7) - #300
Merged
Conversation
… Day Settings → Data gains a one-click "Leave with everything" that bundles the whole workspace (browser-safe IndexedDB dump) + portable did:key identity + re-import README via the merged @xnetjs/plugins leave service; "Clear all data" now routes through the tested deleteDay (anonymous account.left, no guilt). New browser-safe exportBrowserWorkspace + createLeavePorts (deps-injected, unit-tested). Charter §Exit. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Contributor
🖼️ UI changes in this PRScreensAuto-captured by CI · run. Informational — not a blocking check. |
Contributor
|
Preview removed for PR #300. |
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.



Surfaces the Right to Leave service (merged in #293) in the app (Charter §Exit) — exploration 0234.
What landed
Settings → Data becomes the "your data & leaving" home:
leaveWithEverythingservice. "Nothing held back. You don't need our permission to leave."deleteDay(anonymousaccount.leftsignal, no guilt, no nagging).New modules:
apps/web/src/lib/browser-export.ts(browser-safe full export — the Node-only workspace exporter can't run in-browser) andapps/web/src/lib/leave.ts(createLeavePorts, deps-injected so it stays unit-testable + free of build-only imports).Verification
Verified live in the running app (screenshot below): the Data panel renders the new rows; "Export all" is wired.
leave.test.ts(4): identity export, deps routing, dated bundle download. The leave policy (leaveWithEverything/deleteDay) is unit-tested in #293.xnet-webtypecheck (39) + eslint + prettier + humane-patterns +fallow auditall pass.Checklist: 15/16 implementation, 6/9 validation.
xnet-webis an app (not publishable) — no changeset; changelog fragment included.🤖 Generated with Claude Code