feat(projects): New Project form exposes status / dates / manager (PMS-361) #231
No reviewers
Labels
No labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
psa-systems/mokosh-apps!231
Loading…
Reference in a new issue
No description provided.
Delete branch "fix/pms-361-new-project-form-exposes-edit-fields"
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?
The Edit Project modal already lets the user set status, start_date, target_end_date, and project_manager_id, but the New Project form only carried name, company, description, and the two budget fields, so every project was born as "planning" with no schedule and needed a follow-up edit just to flip it to "active" or assign an owner. Brought the Create form to field-parity with the Edit modal: added a Status Select (defaulting to "planning" so the prior implicit default is preserved), a Project Manager Select fed by
/auth/users, and the two DateField rows matching the Edit modal's layout. Submit threads each through the POST body, with the optional fields only sent when non-empty so the server side doesn't have to special-case empty-string-as-uuid coercion. The server-sideCreateProjectRequestalready accepts every one of these (see PR #278 on mokosh-server which added the missingactual_end_datefield; the four fields surfaced here have been server-supported for longer).#PMS-361