- Backend: payment_sessions + pairing_failures tables; payment.service.js and pairing-failure.service.js (new); rewritten pairing.service.js (payment-gated blast + targeted "Curhat lagi" + cancel + fallback); rewritten extension.service.js (data-driven auto-approve with offline safeguard, charge-at-approval); pricing.service.js (extension tiers without free trial); mitra-status.service.js (countAvailableMitras cached path); 60s sweeper for stale payment sessions - Backend routes: client.payment.routes, client.mitra-availability.routes, internal/failed-pairings.routes; client.chat.routes rewritten for payment-gated start + /returning + /cancel + /fallback-to-blast; internal/config.routes adds 4 new keys with Valkey invalidate publish - client_app: mitra-availability poll, payment screen + notifier, pairing notifier rewrite (PairingTargetedWaiting + PairingFailed states), targeted-waiting overlay + bestie-unavailable dialog, "Curhat lagi" CTA, failed-pairing terminal, extension via payment-session - mitra_app: PairingRequestType enum, returning-chat 20s countdown auto-dismiss, extension card "otomatis disetujui" copy - control_center: 4 new config rows in Settings, Failed Pairings page (filter + paginate + action menu), sidebar + route registered - Test infrastructure: Vitest backend (7/7 pass), Playwright CC (4/4 pass), Maestro mobile scaffold (CLI install pending) - Bugs found via Playwright + fixed: LoginPage labels not associated with inputs (a11y); backend internal CORS missing PATCH/PUT/DELETE in allow-methods (silent settings breakage in browsers since Stage 4) - Docs: phase3.7.md PRD, phase3.7-plan.md, phase3.7-questions.md (Q&A), phase3.7-testing.md (E2E checklist), phase3.7-test-run-2026-05-03.md (today's run results) Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
39 lines
999 B
JSON
39 lines
999 B
JSON
{
|
|
"name": "halo-bestie-backend",
|
|
"version": "1.0.0",
|
|
"description": "Halo Bestie backend API",
|
|
"main": "src/server.js",
|
|
"type": "module",
|
|
"scripts": {
|
|
"dev": "node --watch src/server.js",
|
|
"start": "node src/server.js",
|
|
"db:migrate": "node src/db/migrate.js",
|
|
"db:seed": "node src/db/seed.js",
|
|
"test": "vitest run",
|
|
"test:watch": "vitest",
|
|
"test:coverage": "vitest run --coverage"
|
|
},
|
|
"dependencies": {
|
|
"@fastify/cookie": "^11.0.2",
|
|
"@fastify/cors": "^11.0.0",
|
|
"@fastify/sensible": "^6.0.0",
|
|
"@fastify/websocket": "^11.0.0",
|
|
"bcrypt": "^5.1.1",
|
|
"dotenv": "^16.4.5",
|
|
"fastify": "^5.0.0",
|
|
"firebase-admin": "^12.2.0",
|
|
"google-auth-library": "^9.15.1",
|
|
"ioredis": "^5.4.1",
|
|
"jsonwebtoken": "^9.0.3",
|
|
"jwks-rsa": "^3.2.2",
|
|
"pg": "^8.12.0",
|
|
"postgres": "^3.4.4",
|
|
"zod": "^3.23.8"
|
|
},
|
|
"devDependencies": {
|
|
"@types/pg": "^8.11.6",
|
|
"@vitest/coverage-v8": "^4.1.5",
|
|
"vitest": "^4.1.5"
|
|
}
|
|
}
|