forked from dries/ocman
feat(ui): browse filesystem for new projects #7
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "codex/session-project-create-actions"
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?
Why
The Sessions and Projects dashboard pages should have obvious creation actions, but they should not do the same job:
Pre-populating the New project flow with known projects was confusing, because selecting a known project does not add anything new. Reusing the filesystem browser for New session was confusing in the other direction, because starting a session is usually a project-list action once projects exist.
Observed
Inferred / Assumed
Changes
GET /api/filesystem/directories?dir=...GET /api/filesystem/directory-search?root=&q=&limit=50Alt+N, and "New session in project".Caveats
opencodein a project first.Verification
cd frontend && pnpm exec vitest run src/components/CommandPalette.render.test.tsx src/components/GettingStartedEmpty.test.tsxcd frontend && pnpm exec tsc -bcd frontend && pnpm lintcd frontend && pnpm testmake lintgit diff --checkmake buildhttp://127.0.0.1:8228:/projects→ "New project" opensBrowse project directories...withUse this directory./→ "New session" opensSelect a project to start a session...with known projects and no filesystem confirm button.GOCACHE=/Users/peter/workspace/ocman/tmp/go-build go test ./internal/server -run 'TestHandleFilesystem|TestHandleCreateSession_RefreshesProjectsIndex|TestHandleProjects_UsesInMemoryIndexUntilRefresh'GOCACHE=/Users/peter/workspace/ocman/tmp/go-build go test ./...3d230c55b4to1f9100608c@dries This one takes a bit of assumptions on sessions and projects. You might want to make sure these are aligned with your intentions
Pull request closed