apps for kell creations management
Go to file
Mike Kell 197cc66169 feat(stage-11c): custom order tracking and fulfillment
Adds the workshop-side counterpart to Stage 11B's intake form: a tracking workspace filtered by fulfillment stage, an auditable timeline of stage changes, and inventory deduction on completion. Closes audit finding P2.2; Stage 11 is complete.

Domain: FulfillmentEvent (append-only transition record with operator notes and a malformed-line-tolerant wire format), MaterialUsage, MaterialConsumptionPort + MaterialDeductionResult. Order gains fulfillmentHistory, materialUsage, derived stage accessors, and withFulfillmentEvent(). All existing fields, defaults, and copyWith semantics preserved.

Data: advanceFulfillmentStatus() records an event with an optional note and injectable clock; recordMaterialUsage() added. WooCommerce round-trips both through _kc_ meta keys, skipping malformed lines and never blanking remote values.

Application/presentation: AdvanceFulfillment, CompleteCustomOrder, CustomOrderTrackingController, CustomOrderTrackingPage, FulfillmentTimeline, showAdvanceStageDialog. Illegal transitions surface the domain rejection reason verbatim.

Architecture: inventory deduction crosses the feature boundary through an outbound port, not a package dependency. feature_orders still has no dependency on feature_inventory; each app supplies InventoryMaterialConsumptionAdapter. Completion advances first and deducts second, so a rejected transition can never decrement stock, and a deduction failure warns rather than failing the commission.

Tests: 329 new (293 feature_orders, 22 kell_mobile, 14 kell_web). 1085/1085 feature_orders, 109/109 kell_mobile, 81/81 kell_web. dart analyze --fatal-infos clean.
2026-09-25 16:54:51 -04:00
.forgejo/workflows feat(ci): add test coverage visibility to CI pipeline (Stage 4D) 2026-05-22 10:22:05 -04:00
.vscode Updated Agentic Instructions 2026-07-25 11:03:51 -04:00
architecture/workspace Add deployment architecture 2026-04-03 17:25:33 -04:00
docs feat(stage-11c): custom order tracking and fulfillment 2026-09-25 16:54:51 -04:00
kell_creations_apps feat(stage-11c): custom order tracking and fulfillment 2026-09-25 16:54:51 -04:00
policies Add policy repository structure and initial governance documents 2026-04-03 19:33:22 -04:00
.clinerules Cline Rules for consistent builds 2026-07-25 15:06:18 -04:00
.gitignore feat(ci): add test coverage visibility to CI pipeline (Stage 4D) 2026-05-22 10:22:05 -04:00
.markdownlint.json docs: add suggested improvements to master development brief 2026-05-22 09:17:08 -04:00
PROJECT_STATE_AUDIT.md feat(stage-11c): custom order tracking and fulfillment 2026-09-25 16:54:51 -04:00
draft fix(feature_wordpress): allow pending review products to move to draft 2026-04-11 08:16:49 -04:00
filetree.txt Updated Agentic Instructions 2026-07-25 11:03:51 -04:00
mkdocs.yml feat(stage-16a): error logging, crash capture, and bug reporting 2026-08-29 10:48:18 -04:00