Commit Graph
8 Commits
Author SHA1 Message Date
Rami BitarandClaude Opus 5.5 6104838684 Upgrade Next to 16.3.8 and default the store domain to mock.shop
An unset or blank NEXT_PUBLIC_SHOPIFY_DOMAIN reached the Hydrogen client
as an empty storeDomain, which throws 'storeDomain is required and must
be non-empty'. Fall back to the tokenless mock.shop store, only send the
public token alongside a configured domain, and have the editor's Shopify
plugin read the same resolved config.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-03 11:56:31 -04:00
Rami BitarandClaude Opus 5 69ca137c7d Rename block .editor files to .config
Also drop the color and leftSideBarVisible overrides from PageEditor.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_014xjLo7mFxZXfPDCHuKX4Dz
2026-08-29 11:10:24 -04:00
Rami BitarandClaude Opus 5 bd7e6810b7 Remove quantityAvailable from product variant query
The Storefront API only returns ProductVariant.quantityAvailable when the
app has the unauthenticated_read_product_inventory scope, and nothing in
the template reads the field — availableForSale already drives stock state.

Also hides the editor left sidebar by default in PageEditor.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01FaxyZTjAyd7UXK8xpQpF7o
2026-08-15 16:49:25 -04:00
Rami Bitar 0fb6cef226 Update React Editor integration and clean up template 2026-08-15 13:47:33 -04:00
Rami BitarandClaude Opus 5 f11a764426 Load page.json by import, publish via fs, drop cookie auth
The editor no longer round-trips through /api/pages. Each route's
editor/page.tsx imports its own `../page.json` and hands it to
PageEditor as a prop, so the editor opens with the page already in
hand — no fetch, no loading state, no undo history seeded from a
placeholder. Globals still come from app.globals.json.

Publishing moves from `PUT /api/pages` to a `publishPage` server
action that writes the route's page.json with node:fs directly.
The target path is still built from the lib/pages.ts registry rather
than from the caller, so an unknown route key is rejected instead of
escaping app/.

Removes the customer account auth entirely: the httpOnly cookie
session, the /api/account/* handlers, the customer service and
GraphQL documents, the account-* blocks, and the /account/* routes.
The template has no auth, so nothing reads a cookie now.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01STGDvL4X7FhHHnxdRE2ayo
2026-08-09 16:36:18 -04:00
Rami Bitar 63ecc5e284 Add React editor project 2026-08-09 16:00:10 -04:00
Rami Bitar ff2de13f99 remove editor routes, these will be served by the platform 2026-06-06 18:56:07 -04:00
Rami Bitar aa58af410d add nextjs style routes 2026-06-06 13:46:56 -04:00