feat: add restore command integration and development workflow improvements

- Add restore command to CLI root (cmd/root.go)
- Add restore-clean justfile target for development workflow
- Update justfile clean command to remove backups
- Improve auth UI status display and enhance button visibility
- Clean up auth.js formatting and enhance button management
This commit is contained in:
2025-09-11 14:16:17 +02:00
parent ef1d1083ce
commit 74a54e4b5e
3 changed files with 38 additions and 36 deletions

View File

@@ -135,7 +135,7 @@ health port="8080":
@echo "🔍 Checking API server health..."
@curl -s http://localhost:{{port}}/health | jq . || echo "❌ Server not responding at localhost:{{port}}"
# Clean all build artifacts
# Clean all build artifacts and backups
clean:
rm -rf lib/dist
rm -rf insertr
@@ -145,6 +145,12 @@ clean:
rm -rf lib/node_modules
rm -f dev.db
rm -f insertr.db
@echo "🧹 Cleaned all build artifacts and backups"
# Restore demo site to clean original state
restore-clean:
@echo "🧹 Restoring demo site to clean state..."
./insertr restore demo --clean
# Lint code (placeholder for now)
lint:
@@ -180,7 +186,8 @@ status:
@echo " just enhance - Build-time content injection"
@echo ""
@echo "🔍 Check server: just health"
@echo "🧹 Restore clean: just restore-clean"
# Generate sqlc code (for database schema changes)
sqlc:
sqlc generate
sqlc generate