Commit Graph
10 Commits
Author SHA1 Message Date
libretech c2b42f1b0d feat(orders): pass the CMS's status and safe error fields to the browser
The order routes (get, put, add-product, remove-product, checkout, capture)
call forwardToCms, which throws a CMS error on as
createError({ statusCode, statusMessage, data: { message, errors?, missing? } }),
built by the pure shopErrorFromCms (server/utils/cmsError.ts).

Before, the FetchError was thrown on as it was: the browser got the CMS's
status, but Nitro treated it as unhandled, answered "Server Error" without
data and logged every CMS 4xx as [unhandled]. Now the browser also gets the
CMS's message, the errors of a rejected update and the fields a checkout
misses, and no other field. A status that is the shop's own fault (401, 403,
...) is answered 500, a CMS that does not answer 503; 5xx are logged without
the query and the order uuid.

npm test runs tests/unit with Node's type stripping and no dependencies, as
in libreshop/cms. nuxt.config keeps tests/ out of the app's type check.

Refs libretech/mp#71
2026-10-15 10:16:06 +02:00
libretech 60b8f1ab58 Analytics: queued events, once-per-order revenue, heatmap on product pages (#17)
build / build (push) Failing after 8s
Analytics: queued events, once-per-order revenue, heatmap on product pages (#17)
Co-authored-by: Michael Czechowski <mail@librete.ch>
(cherry picked from commit d5dd109c63)
v0.1.1
2026-10-15 09:04:02 +02:00
libretech 024df873ac ci: bump runner-image pin v0.1.0 → v0.2.0 (#15)
Co-authored-by: Michael Czechowski <mail@dailysh.it>
Co-committed-by: Michael Czechowski <mail@dailysh.it>
(cherry picked from commit e9cd3d9c20)
2026-10-15 09:04:02 +02:00
libretech a2058927d9 fix(ci): correct image digest separator
(cherry picked from commit cfe37519bd)
2026-10-15 09:04:02 +02:00
libretech a052c846f7 ci: digest-pin runner-image v0.1.0
(cherry picked from commit 60ab9dcc23)
2026-10-15 09:04:02 +02:00
libretech 376e50357a ci: update runner-image path to public/ namespace
(cherry picked from commit 4fe5b9043d)
2026-10-15 09:04:01 +02:00
libretech 08f24534b6 chore: update action ref to public/actions
(cherry picked from commit f8d4c6a47d)
2026-10-15 09:04:01 +02:00
libretech 3581015486 chore: slim build.yml to use shared docker-build action (#1)
(cherry picked from commit ed6771e03a)
2026-10-15 09:04:00 +02:00
Michael Czechowski 304c20c1b8 ci: kick first build after enabling Gitea Actions
Build and publish / build (push) Successful in 1m41s
v0.1.0
2026-04-29 17:51:13 +02:00
Michael Czechowski 44107c0734 feat: extract shop from mp/shop — initial libreshop/shop
Build and publish / build (push) Failing after 19s
Source moved verbatim from mp/shop/ on 2026-04-29; mp was the first
concrete adapter consuming the libreshop toolkit. Builds and publishes
git.librete.ch/libreshop/shop on every main / v* push via the standard
.gitea/workflows/build.yml shared across libreshop components.
2026-04-29 17:48:56 +02:00