ServiceJobApi.createJob, and the back-link builder

Featurekamo-internal
Shipped
August 27, 2026 at 5:02 PM UTC
Author
kamo
Commit
82587e3

Restores the client half of SW6c Task 2, which landed as 157fa714 and was dropped by a history rewrite in a concurrent session; the create screen itself survived inside bddd3617 and has been importing both of these since. `createJob` posts `CreateJobInput` at the base path and answers with the detail projection, so a caller may adopt the returned job whole. Seven fields and not one column the server owns: no status, no job number, no totals, no sign-off. SW6b removed exactly those five from `JobInput` after finding `PUT /{uid}` accepted them verbatim, and `CreateJobInput` joins the contract test's input pairs so a `status` added on this side alone fails rather than being serialised and silently ignored. `commerceBackHref` is documented at its definition: `/commerce?tab=service` never named a real tab, and every caller today passes no market because no service record carries one.

All changes

Like what you see shipping?

Every one of these updates lands in your workspace automatically. Start free and watch it grow week after week.

Start Free ForeverView Pricing