Generic Shipment Options UI for Carrier-Specific Fields #1090
ChrisNolan
started this conversation in
Ideas
Replies: 1 comment
-
|
When working with #1095 and doing more options this came up again. The above was a bit too strict -- there is some ability atm in the It also wasn't immediately clear when the 'carrierOptions' was populated because the shipping options show right away, but you don't select the carrier until later. Also in that case, how does it handle you entering options for one carrier, then changing to another carrier, and maybe switching back again in the UI 🤔 |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Generic Shipment Options UI for Carrier-Specific Fields
Summary
The dashboard currently supports only a subset of shipment options in a consistent way across create-label flows. Carrier-specific options are not surfaced uniformly, which makes valid provider options (for example FedEx customer reference-related fields like
fedex_po_number) harder to populate from UI.This proposal adds a generic, metadata-driven shipment options UI so any carrier option exposed by API references can be configured from the dashboard without one-off form work.
This came about after #1089
Problem
optionsare the correct payload surface for carrier request behavior, but UI coverage is incomplete.packages/core/modules/Labels/create_labels.tsxincludes typed dynamic rendering.packages/core/modules/Shipments/create_label.tsxandpackages/core/modules/Orders/create_label.tsxare more limited and not fully generic.Goals
boolean,string,number,enum,list).shipment.optionswith canonical keys.Non-Goals
metadata.Proposed Approach
CarrierShipmentOptionsForm) inpackages/ui.useConnections().carrierOptionsuseAPIMetadata().references.optionsshipment.optionsboolean-> checkboxstring-> text inputnumber-> numeric inputenum-> selectlist-> multi-select/token input (or staged fallback to comma-separated input)shipment.options[optionKey].packages/core/modules/Shipments/create_label.tsxpackages/core/modules/Orders/create_label.tsxpackages/core/modules/Labels/create_labels.tsxshipment.optionsobject.UX Notes
Acceptance Criteria
fedex_po_numberfrom all create-label flows.shipment.optionsand included in purchase payload.Testing Plan
Risks
Mitigations
Rollout
Beta Was this translation helpful? Give feedback.
All reactions