Implement plan items: last repo persistence, remove folder selection, filter empty folders, separate repo selection URL
Backend changes:
- Add last_repo field to UserResponse in auth.go:27
- Update GetCurrentUser to include last_repo in response (auth.go:238)
- Update router to use POST /api/user/repo instead of /api/auth/last-repo (router.go:63)
- Implement empty folder filtering in github.go ListFiles function
- Add hasMatchingFiles helper to recursively check for matching files
Frontend changes:
- Simplify SetupWizard: remove 2-step wizard, default to root folder
- Add API call to save last_repo when completing setup
- Create new /select-repo page with SetupWizard component
- Update DashboardApp to check for last_repo from user data or URL params
- Redirect to /select-repo if no repo is configured
- Update 'Change repository' button to link to /select-repo
- Add last_repo field to User type in api.ts
This implements items 1-4 from the plan:
1. Save & Load Last Repo - Backend returns last_repo, frontend saves it via API
2. Remove Folder Selection - Setup wizard now single-step, defaults to root
3. Filter Empty Folders - Backend only returns folders with markdown files
4. Separate Repo Selection URL - New /select-repo page for repo selection