mirror of
https://github.com/opf/openproject.git
synced 2026-06-14 03:30:14 +00:00
978b89121e
Implement the dialog for creating a resource allocation as a two-step
Primer dialog driven by Turbo streams:
1. Kind step: choose between an explicit principal and a
filter-criteria placeholder.
2. Allocation step: the per-kind form (principal/work package, date
range, hours, filter name) swapped in without navigation.
Backend changes:
- Controller `new`/`step`/`create` actions render and update the
dialog via Turbo streams; entity and principal are resolved against
the project and the user's visibility.
- Add `principal_explicit` to distinguish an assigned principal from a
named filter placeholder, with validations and a
`needs_principal_assignment` scope on ResourceAllocation.
- Add the `step` collection route.
- ViewComponents and form objects under app/components and app/forms.
- Locales for the dialog copy.
Add request, feature, and model specs covering the flow.