Repository navigation
feat: migrate Aspen to Hydrogen 2026.10 and Weaverse v6 - #22
Conversation
Port request handling, typed GraphQL, cart/account flows, product selection, collection browsing, analytics and Weaverse integration while preserving Aspen theme settings and presentation. Add regression coverage for collection sorting, category filters, cursor recovery and transient account failures. Validation: 179 unit tests, focused browser checks, typecheck, build and Biome. Oxygen deployment and live customer OTP verification are deferred; no release. Refs #11
hta218
left a comment
There was a problem hiding this comment.
Please fix the combined-listing target regression and migrate its regression suite before merging. The selected Red child can produce a CTA to the Blue child. The existing suite currently fails at import; connecting it to the new production adapter exposes two failures out of four cases.
Validation: migration 8/8, customer-auth 11/11 and collection 4/4 tests passed. Isolated combined-listing probes used the committed production adapter. Build and live browser/checkout were not rechecked; local Node is 26, outside the supported range.
hta218
left a comment
There was a problem hiding this comment.
Re-reviewed the full migration against base 3f0887d at head 5b1a079, including server lifecycle, cart, customer sessions, product selection, collections/search, caching and compatibility helpers. The two previous combined-listing findings are fixed. Please address the two new issues noted inline before merging.
Validation on Node 24: typecheck, GraphQL validation and production build pass; TypeScript unit tests pass 184/186, with both failures in the migrated Studio schema fixture described inline; combined-listing tests pass 6/6. JavaScript unit tests pass 62/66; the four failures are in the unchanged MiniOxygen security suite with the same dependency version as base, so they are not attributed to this PR. The checkout finding was verified through source and a mocked cart-read probe; live authenticated checkout and browser flows were not exercised.
|
@thanh251 this PR has merge conflicts with |
hta218
left a comment
There was a problem hiding this comment.
Re-reviewed the follow-up at 8f4a0e3 against previously reviewed 5b1a079, including the connected cart consumers and Studio fixtures. The Studio runtime fixture is fixed, and the combined-listing regression remains fixed. The authenticated checkout handoff is still incomplete for mutation responses; please address the inline finding before merging.
Validation on supported Node 24 with the committed lockfile: checkout handoff 5/5, Studio schema 10/10 and combined-listing 6/6 tests pass; typecheck, GraphQL validation and production build pass. An independent mocked probe using the production gateway and baseline selector confirms that a signed-in note mutation drops logged_in=true from the checkout URL used by the UI. Vite-node emitted EMFILE watcher warnings, but all assertions completed.
The branch still conflicts with main; please resolve those conflicts and rerun checks. Live OAuth, checkout, Studio and Oxygen deployment were not rerun.
hta218
left a comment
There was a problem hiding this comment.
Thanks for pushing this through. The migration follows Pilot's 2026.10 layout closely and the earlier review threads hold up. The combined-listing fix is in, and every gateway cart path (create, line add/update/remove, discounts, note, buyer identity, gift cards) now gets logged_in=true from a token resolved before the writes. #25's recordCompletedCartAdd flow also made it through the merge intact.
One real problem is left: Hydrogen 2026.10's CSP builder throws on invalid sources, and getWeaverseCsp still puts the raw ?weaverseHost= query value into the policy, so anyone can turn any page into a 500. Beyond that there's an extra Storefront round trip on every add, plus a set of nits: dead code, leftover Pilot references and a stale lint directive.
One more thing outside the diff: vite.config.ts CHECK_IGNORES still lists the deleted storefront-api.generated.d.ts / customer-account-api.generated.d.ts. Please swap them for the gitignored storefront-graphql-env.d.ts / customer-account-graphql-env.d.ts.
|
@thanh251 heads-up: #12 (Themivo wishlist) just landed, so this PR conflicts with
|
|
Addressed the latest review in 85ae6c2 and merged current main (b1d415e, including #12). The branch is mergeable again.
Local validation on Node 24: typecheck/GraphQL validation, production build, static checks (no errors), all 37 TypeScript unit suites, combined-listing tests, 21 existing targeted browser tests, the 2 new private-wishlist analytics browser tests, and the worker/SSR/client optimizer runtime probe passed. This follow-up did not rerun live OAuth/checkout or deploy a new Oxygen preview. The new browser regressions use the production components and SDK cart tracker with fixture transport/store boundaries. CI passed on this commit: https://github.com/Weaverse/aspen/actions/runs/45327199213 |
hta218
left a comment
There was a problem hiding this comment.
Re-reviewed 85ae6c2 against 34c4e64. I separated your fixes from the merge of #12 with git show --remerge-diff. All 16 threads from the last round are addressed: the CSP host is sanitized, the cart add no longer double-syncs, the fragments are composed, the charset now comes first, and the dead code is gone. The Themivo merge resolution (analytics opt-out, Oxygen-Cache-Control, SessionData, the login path) also looks right.
One regression came in with the merge: the Themivo queries lost their market context. See inline. The rest are nits.
Validation on Node 24.20: npm run check (0 errors), format:check, typecheck (including hydrogen gql check) and the production build all pass. Every CI regression suite passes: checkout handoff 40/40, CSP 7/7, layout fragments 1/1, customer auth 12/12, Studio schema 10/10, Themivo wishlist 22/22, products 6/6, appearance 9/9 and combined listing 6/6. I did not run the private-wishlist Playwright suite.
hta218
left a comment
There was a problem hiding this comment.
All four follow-ups verified at 14db276: Themivo queries carry market context again, the locale copy is gone, and the config files are formatting-only changes. Re-ran on Node 24.20: typecheck (incl. hydrogen gql check), check, format:check and build pass; themivo-products 10/10, customer-auth 12/12, checkout handoff 40/40, CSP 7/7 and themivo-wishlist 22/22.
Summary
Migrate Aspen to Hydrogen 2026.10 and @weaverse/hydrogen 6, following Pilot's migration approach.
Validation
Oxygen Preview
Release follow-up
An Unreleased changelog entry is included. The date-based version bump, tag and GitHub Release will follow in a separate release change after merge. Live Spanish OTP remains unverified.
Closes #11.