Add ability to delete workspace and create a new one - #33
Merged
Merged
Conversation
Password-gated POST /api/workspace/destroy wipes the local vault so users can create a new empty or demo workspace from Unlock or Settings. Co-authored-by: Damon van der linde <zord.lack.net@gmail.com>
Right-side “On this page” nav stays visible, highlights the active section, and smooth-scrolls on click (horizontal sticky chips on phone). Co-authored-by: Damon van der linde <zord.lack.net@gmail.com>
Briefly lock the sticky nav active state after a jump so IntersectionObserver does not overwrite the target mid-scroll. Co-authored-by: Damon van der linde <zord.lack.net@gmail.com>
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.
Summary
Adds a password-gated delete workspace flow so you can wipe the local vault and create a fresh empty or demo workspace without manually deleting
data/.Also adds a sticky On this page section nav on Settings (right side on desktop; horizontal sticky chips on phone) that scroll-jumps to each section and highlights the active one.
Changes
POST /api/workspace/destroywith{ password, confirm: "DELETE" }(public, like unlock). Wipes DB/vault/files/backups; blocks when legal hold is on.PageSectionNav) with active-section highlighting and click-to-scroll.README.md/AGENTS.md.Test plan
DELETE) → create empty workspace