Polish default demo project selection
This commit is contained in:
@@ -1,3 +1,33 @@
|
||||
## Sprint 45 Default demo selection polish (2026-06-17)
|
||||
|
||||
Changed:
|
||||
- Updated `frontend/src/hooks/useProjectWorkspace.ts` so cold-start project selection preserves an existing selected project, honors an explicit preferred project and otherwise prefers a populated demo/workbench project over an empty first project.
|
||||
- New project creation now selects the newly created project immediately after creation.
|
||||
- Updated `frontend/src/hooks/useDemoWorkflow.ts` so demo seed refresh passes the seeded project id to `loadProjects`.
|
||||
- Extended orchestration tests to cover preferred demo selection and project creation selection behavior.
|
||||
|
||||
Validation:
|
||||
- `cd backend && python -m pytest tests/test_sprint39_frontend_orchestration_hooks.py tests/test_sprint21_demo_workflow_smoke.py -q` passed: 11 tests.
|
||||
- `python -m compileall backend/app` passed.
|
||||
- `cd backend && python -m pytest -W error::DeprecationWarning` passed: 194 tests.
|
||||
- `bash scripts/run_readiness_check.sh` passed.
|
||||
- `cd frontend && npm run typecheck` passed.
|
||||
- `cd frontend && npm run build` passed.
|
||||
- `cd backend && python -m alembic heads` passed: `202606120900 (head)`.
|
||||
- `cd backend && python -m alembic upgrade head --sql` passed.
|
||||
- `bash -n scripts/live_migration_smoke.sh` passed.
|
||||
- Browser check against local Vite preview with live backend passed after async settle: selected project `GeoIntel Demo - Building QA`, status showed `1 area`, `2/2 ready` datasets and `2 checks`.
|
||||
|
||||
Open:
|
||||
- Tower deployment and live smoke should run before considering this pass deployed.
|
||||
|
||||
Limitations:
|
||||
- No API contracts, migrations, provider fetching, AI behavior or product capabilities changed.
|
||||
- The heuristic probes up to eight project candidates on cold start; a future backend list endpoint with area/dataset counts would make this cleaner.
|
||||
|
||||
Next recommended pass:
|
||||
- Add a lightweight browser regression script for the demo start page once the UI state is stable enough to automate end to end.
|
||||
|
||||
## Sprint 44 Workbench UI polish pass (2026-06-17)
|
||||
|
||||
Changed:
|
||||
|
||||
Reference in New Issue
Block a user