feat(forms): inline create-company on contact, contract, and asset forms (PMS-352 AC3) #249
Loading…
Reference in a new issue
No description provided.
Delete branch "feat/pms-352-inline-create-remaining-pickers"
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?
What
Finishes PMS-352 AC3: the inline "+ Create new company" affordance (added to the New Ticket form in PR #188) now exists on every other company-required FK picker, so a first-time tenant with zero companies is never dead-ended on a create form.
Call sites converted (AC3 list)
allow_inline_create: true(one flag - same component)SelectSelectSelectBehavior
errorprop, so the existingcompany_errinline message is surfaced just below the picker on the contract and asset forms.Out of scope (documented, not skipped silently)
The time-entry Work Item picker is a required FK too, but its dependency is a ticket or project, not a company - CompanyPicker does not apply. It needs ticket/project inline-create (heavier; the issue's fallback #3 redirect-with-return pattern), tracked separately. It is unblocked transitively: ticket creation can now seed a company inline, so the no-company root cause no longer cascades.
Verification
cargo fmt --all --check,cargo clippy --target wasm32-unknown-unknown --lib -- -D warnings, and a wasmcargo checkall pass.#PMS-352