Allow new-client setup in any folder without a .lily file #69
Loading…
Reference in a new issue
No description provided.
Delete branch "allow-client-in-nonempty-folder"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Problem
A client could only be set up in a folder with no subfolders. The library tree routed any folder-with-children to an expand-only node, so a folder that already held, e.g., an onboarding-documents subfolder couldn't be selected to create a
.lily. The backend never enforced an empty-folder rule — this was purely an artifact of the tree rendering.Changes
is_clientcheck, i.e. no.lilyalready present in that folder.has_lily_filedirectly — opening the folder if it's already a client, or routing into the same Create Client flow if not, instead of silently showing an empty content pane.ClientsHubso both entry points feed one create flow.No backend changes;
has_lily_fileandcreate_lily_filealready existed.Verification
make typecheck,make lint(Biome + clippy), andmake test(96 passed) all green.