stagesForType() returned OTHER_STAGES (including 'done') for the unset type case, but backend stages.py::valid_stages_for(None) only allows ['new'] when type is unset. This let the UI offer 'Done' as a stage option with no type selected, which the backend rejects with 422. Also add a watch on type that resets stage to 'new' when the current stage is no longer valid for the newly selected type, preventing a stale invalid stage from being silently submitted. |
||
|---|---|---|
| .. | ||
| src | ||
| tests | ||
| .gitignore | ||
| Dockerfile | ||
| index.html | ||
| package-lock.json | ||
| package.json | ||
| vite.config.js | ||
| vitest.config.js | ||