Skip to content

feat: move deleted plans to a .trash folder with recover and clear - #17

Merged
GuiMoraesDev merged 2 commits into
mainfrom
feat/plan-trash
Oct 21, 2026
Merged

GuiMoraesDev merged 2 commits into
mainfrom
feat/plan-trash

Conversation

@GuiMoraesDev

@GuiMoraesDev GuiMoraesDev commented Oct 21, 2026 •

Copy link
Copy Markdown
Owner

Deleting a plan in the panel no longer runs rm -rf: it moves the plan to <plans dir>/.trash/<name>--<timestamp>/, from which it can be recovered. Clear trash is the only permanent delete, and it can reach only inside .trash/.

Based on #16.

Acceptance criteria

  • Delete moves the plan to .trash/<name>--<timestamp>/, nothing removed — names a trash entry with the plan and timestamp
  • A target outside the plans dir is refused — refuses a target outside the base
  • Trash view lists entries; .trash never listed as a plan — never lists .trash as a plan
  • Recover refuses onto an existing plan — refuses recover onto an existing plan
  • Clear trash touches only .trash/ — scopes clear to the .trash folder

Verification

Tests red against stubs, green after; lint, format:check, typecheck green. Containment is checked on real paths before every move or delete.

@GuiMoraesDev GuiMoraesDev added the enhancement New feature or request label Oct 21, 2026
@GuiMoraesDev GuiMoraesDev self-assigned this Oct 21, 2026
@GuiMoraesDev
GuiMoraesDev marked this pull request as ready for review October 21, 2026 16:11
@GuiMoraesDev
GuiMoraesDev added this pull request to stack #23 October 21, 2026 16:19
Base automatically changed from feat/plan-dir-resolver to main October 21, 2026 16:21
@GuiMoraesDev
GuiMoraesDev merged commit 605de7a into main Oct 21, 2026
@GuiMoraesDev
GuiMoraesDev deleted the feat/plan-trash branch October 21, 2026 16:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant