toga-ai 1.0.127 → 1.0.128
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -4,4 +4,4 @@
|
|
|
4
4
|
|-----|---------|-------|
|
|
5
5
|
| [TOGa Supply (toga2-supply) Architecture](architecture.md) | `toga2-supply` is the **React + Vite frontend** for TOGa Supply — warehouse fulfillment tooling (shipment selection, fulfill & ship against carrier APIs, NetSui | toga2-supply/src/api/toga.ts, toga2-supply/src/pages/ShipmentItems/view/ShipmentItemsPage.tsx, toga2-supply/src/pages/EditShipment/view/EditShipmentPage.tsx, toga2-supply/src/pages/EditShipment/api/UpdateShipmentApi.ts, toga2-supply/src/pages/Shipments/view/components/ShipmentsCardTableForm/ShipmentsCardTableForm.tsx |
|
|
6
6
|
| [Fulfill & Ship](features/fulfill-and-ship.md) | Fulfill & Ship lets a warehouse user select sales-order line items, enter serials, pick a carrier/method, and in one action: create the Item Fulfillment records | toga2-supply/src/pages/ShipmentItems/view/ShipmentItemsPage.tsx, toga2-supply/src/pages/EditShipment/view/EditShipmentPage.tsx, toga2-supply/src/pages/EditShipment/view/components/forms/EditShipmentForm.tsx, toga2-supply/src/pages/EditShipment/api/UpdateShipmentApi.ts, toga2-supply/src/pages/Shipments/view/components/ShipmentsCardTableForm/ShipmentsCardTableForm.tsx, toga2-supply/src/pages/Shipments/api/ShipmentsApi.ts, _underscore/Model/Client/ItemFulfillment.php, _underscore/Trait/Netsuite/ItemFulfillment.php, _underscore/Component/Library/Carriers/Ups/Ups.php |
|
|
7
|
-
| [AWS Amplify Build & Deploy (non-prod environments)](workflows/amplify-build-and-deploy.md) | How `toga2-supply` (React + Vite) builds and deploys on **AWS Amplify**. | toga2-supply/amplify.yml, toga2-supply/.github/workflows/sync-stage-environments.yml, toga2-supply/.env.qc-security |
|
|
7
|
+
| [AWS Amplify Build & Deploy (non-prod environments)](workflows/amplify-build-and-deploy.md) | How `toga2-supply` (React + Vite) builds and deploys on **AWS Amplify**. | toga2-supply/amplify.yml, toga2-supply/.gitattributes, toga2-supply/.github/workflows/sync-stage-environments.yml, toga2-supply/.env.qc-security |
|
|
@@ -10,6 +10,7 @@ updated: 2026-06-18
|
|
|
10
10
|
owners: ["jcardinal"]
|
|
11
11
|
files:
|
|
12
12
|
- toga2-supply/amplify.yml
|
|
13
|
+
- toga2-supply/.gitattributes
|
|
13
14
|
- toga2-supply/.github/workflows/sync-stage-environments.yml
|
|
14
15
|
- toga2-supply/.env.qc-security
|
|
15
16
|
related:
|
|
@@ -75,6 +76,23 @@ _stage ──▶ Amplify ──▶ build --mode stage
|
|
|
75
76
|
|
|
76
77
|
## Edge cases & escalation
|
|
77
78
|
|
|
79
|
+
- **Console build spec silently overrides the repo `amplify.yml`.** A build spec saved in the
|
|
80
|
+
Amplify console (App settings → Build settings) **takes precedence over the repo-root
|
|
81
|
+
`amplify.yml`**. Symptom seen: the log ran the custom `preBuild` (`NODE_OPTIONS=8192`,
|
|
82
|
+
`npm ci --legacy-peer-deps`) but the `build` phase started and completed instantly with **zero
|
|
83
|
+
commands** (`# Starting phase: build` → `# Completed phase: build`, no `# Executing command:`
|
|
84
|
+
lines), producing no `dist/` → `CustomerError: Artifact directory doesn't exist: dist`. Cause:
|
|
85
|
+
the console spec had the custom `preBuild` but an **empty `build` phase**, and it won over the
|
|
86
|
+
repo file. Fix: either paste the full spec (with the build command) into the console editor, or
|
|
87
|
+
remove the console override so Amplify uses the repo `amplify.yml`. Diagnostic: if you don't see
|
|
88
|
+
the `Branch '...' -> Vite mode '...'` echo in the build log, the build phase isn't running.
|
|
89
|
+
- **`amplify.yml` must be LF, not CRLF.** A CRLF-terminated `amplify.yml` (easy to produce on
|
|
90
|
+
Windows) can break Amplify's parsing of a multi-line `- |` block-scalar command — the simple
|
|
91
|
+
one-line `preBuild` entries survive but the block-scalar `build` command is dropped, giving the
|
|
92
|
+
same empty-build symptom as above. Mitigations applied: `.gitattributes` pins `*.yml`/`*.yaml`
|
|
93
|
+
to `eol=lf`, and the build step is written as a **single-line** command (no block scalar) to
|
|
94
|
+
remove the parsing fragility entirely. `core.autocrlf` is `false` in this repo, so bytes commit
|
|
95
|
+
as-is — keep the file LF.
|
|
78
96
|
- **Silent wrong-endpoint trap (caused a production outage):** When Vite is given a `--mode`
|
|
79
97
|
with no matching `.env.<mode>`, it **silently falls back to the base `.env`** (which points at
|
|
80
98
|
beta) instead of erroring. An `amplify.yml` that built `--mode "$AWS_BRANCH"` therefore ran
|
|
@@ -96,6 +114,10 @@ _stage ──▶ Amplify ──▶ build --mode stage
|
|
|
96
114
|
|
|
97
115
|
## Change history
|
|
98
116
|
|
|
117
|
+
- 2026-06-18 — Diagnosed empty-`build`-phase failure (`Artifact directory doesn't exist: dist`):
|
|
118
|
+
console build spec overrides the repo `amplify.yml`, and CRLF can drop the block-scalar build
|
|
119
|
+
command. Switched build step to a single-line command, added `.gitattributes` pinning `*.yml`
|
|
120
|
+
to LF. (jcardinal)
|
|
99
121
|
- 2026-06-18 — Fixed production-breaking deploy: `amplify.yml` now strips the leading `_` from
|
|
100
122
|
`$AWS_BRANCH` to get the Vite mode and **fails loudly** if `.env.$MODE` is missing (was
|
|
101
123
|
silently falling back to beta); heap set to 8192; sync workflow targets underscore-prefixed
|
package/package.json
CHANGED