Feat v0.4.1 folders #23

Merged
xcaliber merged 3 commits from feat/v0.4.1-folders into main 2026-03-29 12:23:47 +00:00
Owner
No description provided.
xcaliber added 3 commits 2026-03-29 12:18:54 +00:00
Add folders as a first-class concept in the Notes surface with full
CRUD, nested tree navigation, and folder-based note filtering.

Backend (script.star):
- Folder CRUD handlers: list, create, update, delete
- Move-note endpoint to reassign folder_id
- Delete cascades: orphan notes to unfiled, reparent child folders
- Stats now include unfiled and folder counts

Frontend (js/main.js):
- FolderTree component with flat-to-tree builder via useMemo
- FolderNode recursive component with expand/collapse, inline rename
- Folder state: activeFolderId, showUnfiled for sidebar filtering
- Editor folder select dropdown for moving notes between folders
- New notes inherit active folder on creation

Schema (manifest.json):
- New ext_notes_folders table (name, parent_id, creator_id, sort_order)
- 5 new API routes: GET/POST /folders, PUT/DELETE /folders/*, POST /notes/move
- Version bumped to 0.2.0

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
The editor folder select was a flat list making it impossible to
distinguish subfolder nesting. Now builds a tree and renders with
└ prefix indentation (e.g. "  └ Projects" under "Work").

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Update version, changelog, and roadmap for v0.4.1
All checks were successful
CI/CD / detect-changes (pull_request) Successful in 4s
CI/CD / test-frontend (pull_request) Successful in 5s
CI/CD / test-go-pg (pull_request) Successful in 2m36s
CI/CD / test-sqlite (pull_request) Successful in 2m45s
CI/CD / build-and-deploy (pull_request) Successful in 1m30s
cb8238baf7
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
xcaliber merged commit 03c182b9d1 into main 2026-03-29 12:23:47 +00:00
xcaliber deleted branch feat/v0.4.1-folders 2026-03-29 12:23:48 +00:00
xcaliber referenced this issue from a commit 2026-03-29 12:23:49 +00:00
This repo is archived. You cannot comment on pull requests.
No Reviewers
No Label
1 Participants
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: switchboard/core#23