• Joined on 2026-06-16
hermes commented on pull request jocke/bilhej#17 2026-06-22 10:48:45 +00:00
feat(guest): guest checkout without login (Swish + QR)

Advisory code review - guest checkout without login (Swish + QR)

hermes commented on pull request jocke/bilhej#17 2026-06-22 10:48:44 +00:00
feat(guest): guest checkout without login (Swish + QR)

ℹ️ host: true binds Vite to 0.0.0.0, exposing the dev server on the LAN when running outside Docker. Consider restricting this to only when VITE_API_PROXY_TARGET is set.

hermes commented on pull request jocke/bilhej#17 2026-06-22 10:45:31 +00:00
feat(guest): guest checkout without login (Swish + QR)

Rebased onto master + added frontend tests

Rebase: replayed the 4 guest-checkout commits on top of master (which now includes PR #16: Swish QR scannability fix, payment unit tests, e2e…

hermes pushed to feature/guest-checkout at jocke/bilhej 2026-06-22 10:45:03 +00:00
2ef093ba2b test(guest): add frontend unit tests for guest checkout flow
d16f048630 fix(db): make V12 migration H2-compatible (drop partial-index WHERE clauses)
8ff71f8e32 fix(test): remove non-existent setCreatedAt call that broke compileTestJava
33ffc8851d test(guest): add backend unit tests for guest checkout to fix CI
6381b6fd63 feat(guest): guest checkout without login (Swish + QR)
Compare 9 commits »
hermes commented on pull request jocke/bilhej#16 2026-06-22 10:13:36 +00:00
fix(payment): make Swish QR code scannable by the Swish app

🔵 Removing curl -f correctly fixes the false-failure (404 on a non-existent plate is a valid "server-up" signal), but it also masks HTTP 500 — which would indicate a genuinely broken backend (e.g., DB-connection error after Spring Boot boots). If Spring Boot Actuator is available, pointing at a real health endpoint would be cleaner:\nsh\ncurl -sf http://backend:8080/actuator/health > /dev/null && break;\n\nOtherwise, explicitly exclude 5xx:\n```sh\ncurl -s -o /dev/null -w "%{http_code}" http://backend:8080/api/vehicles/ZZZ999

hermes commented on pull request jocke/bilhej#16 2026-06-22 10:13:36 +00:00
fix(payment): make Swish QR code scannable by the Swish app

Verdict: Solid fix — Swish QR scannability addressed at the root cause, well-tested. One suggestion on the e2e health check.

hermes commented on pull request jocke/bilhej#16 2026-06-22 10:06:25 +00:00
fix(payment): make Swish QR code scannable by the Swish app

Investigated the E2E browser test failure (CI run 103).

Root cause

The E2E job failed because 2 of 94 tests timed out on navigation to /betalning/ under 4 parallel Playwright workers…

hermes pushed to fix/swish-qr-scannability at jocke/bilhej 2026-06-22 10:06:10 +00:00
d768b11add fix(e2e): retry transient CI failures and fix backend health check
hermes deleted branch pr-16 from jocke/bilhej 2026-06-22 10:06:10 +00:00
hermes created branch pr-16 in jocke/bilhej 2026-06-22 10:05:43 +00:00
hermes pushed to pr-16 at jocke/bilhej 2026-06-22 10:05:43 +00:00
d768b11add fix(e2e): retry transient CI failures and fix backend health check
hermes pushed to feature/guest-checkout at jocke/bilhej 2026-06-19 20:47:57 +00:00
afe70125f1 fix(db): make V12 migration H2-compatible (drop partial-index WHERE clauses)
hermes commented on pull request jocke/bilhej#17 2026-06-19 20:37:20 +00:00
feat(guest): guest checkout without login (Swish + QR)

🔴 Swish QR quiet zone too small — won't scan on desktop.

hermes commented on pull request jocke/bilhej#17 2026-06-19 20:37:20 +00:00
feat(guest): guest checkout without login (Swish + QR)

🔵 Isolate QR generation in its own try/catch.

hermes commented on pull request jocke/bilhej#17 2026-06-19 20:37:20 +00:00
feat(guest): guest checkout without login (Swish + QR)

🟡 No rate limiting on this public endpoint.

hermes commented on pull request jocke/bilhej#17 2026-06-19 20:37:20 +00:00
feat(guest): guest checkout without login (Swish + QR)

🟡 Honor-system pay — no payment verification.

hermes commented on pull request jocke/bilhej#17 2026-06-19 20:37:20 +00:00
feat(guest): guest checkout without login (Swish + QR)

🟡 amountPaid is never set on confirmation.

hermes commented on pull request jocke/bilhej#17 2026-06-19 20:37:20 +00:00
feat(guest): guest checkout without login (Swish + QR)

Advisory review — guest checkout (Swish Tier 0 + QR)

hermes pushed to feature/guest-checkout at jocke/bilhej 2026-06-19 20:32:57 +00:00
be069aa92c fix(test): remove non-existent setCreatedAt call that broke compileTestJava
hermes commented on pull request jocke/bilhej#16 2026-06-19 19:48:31 +00:00
fix(payment): make Swish QR code scannable by the Swish app

💡 Suggestion (low): /[\s+]/g strips every + from anywhere in the string, but the JSDoc above (L51) and the PR note describe stripping only a leading +. For valid phone numbers this is harmless (a + only ever appears as the international prefix), so no behaviour change — but the comment slightly overstates the intent. Either reword to "strips whitespace and any +", or for leading-only use replace(/\s/g, '').replace(/^\+/, ''). Either is fine.