Commit Graph
9 Commits
Author SHA1 Message Date
ngqileandClaude Opus 5.5 6b6215f1b5 feat: browser tab icon from Infinity's own site icon
CI / build (push) Failing after 0s
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01EFUzfmHGGiYUjNcvJoyzdf
2026-12-01 12:19:07 +08:00
ngqileandClaude Opus 5.5 ad5996283e fix: address review of the Postgres move
- close the pool on SIGTERM before exiting; query_timeout on the pool
- SIGTERM test fails instead of hanging; test cleanup in finally
- preStop sleep so rollouts don't drop form posts; Postgres startupProbe
- CI step timeout, clear error if test Postgres never starts, remove test image
- export stops on SQL errors; README note on changing the DB password

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01EFUzfmHGGiYUjNcvJoyzdf
2026-12-01 11:59:55 +08:00
ngqileandClaude Opus 5.5 20e07e9d80 test: npm test starts a throwaway Postgres when TEST_DATABASE_URL is unset
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01EFUzfmHGGiYUjNcvJoyzdf
2026-12-01 11:56:11 +08:00
ngqileandClaude Opus 5.5 f78bd635a2 feat: store leads in PostgreSQL instead of SQLite
- server.js uses pg (pinned 8.23.1), reads DATABASE_URL, creates the
  leads table on start, fails fast if Postgres is unreachable
- tests run against a real Postgres in a throwaway schema
- CI runs the test image against a throwaway Postgres on DinD
- k8s: Postgres 18 StatefulSet (Longhorn, 2Gi), init container wait,
  password secret, network policy app-to-postgres; app no longer needs
  a volume or Recreate
- README: DBeaver via port-forward, CSV export via docs/export-leads.sql

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01EFUzfmHGGiYUjNcvJoyzdf
2026-12-01 11:55:14 +08:00
ngqileandClaude Opus 5.5 5bb2a7343d docs: schema.sql reference and DBeaver snapshot instructions
A test fails if docs/schema.sql drifts from the table server.js creates.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01EFUzfmHGGiYUjNcvJoyzdf
2026-12-01 11:41:56 +08:00
ngqileandClaude Opus 5.5 c2ebee08df feat: hotel technology landing page per owner brief
- new copy and sections for the five hotel services
- form fields: name, work email, phone, company, service
- reject free email providers on page and server
- second form in the final CTA, mobile WhatsApp/call bar
- schema: industry and message replaced by service

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01EFUzfmHGGiYUjNcvJoyzdf
2026-12-01 11:12:04 +08:00
ngqileandClaude Opus 5.5 f75da6d928 fix: harden server per final review
- load static files at startup so a missing file fails fast instead of crashing on request
- WAL + busy_timeout so a manual export cannot fail live submissions
- exit cleanly on SIGTERM (node is PID 1 in the container)
- honour PORT=0
- document a required ingress rate limit
- square card corners and larger card titles

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01EFUzfmHGGiYUjNcvJoyzdf
2026-12-01 10:43:30 +08:00
ngqileandClaude Opus 5.5 d71ba850e8 feat: INS landing page with lead form
Page sends document.referrer in the lead body; the request Referer
header only ever holds the landing page URL.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01EFUzfmHGGiYUjNcvJoyzdf
2026-12-01 10:37:35 +08:00
ngqileandClaude Opus 5.5 32c0d835cd feat: lead capture API with SQLite storage
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01EFUzfmHGGiYUjNcvJoyzdf
2026-12-01 10:34:20 +08:00