Add docfast-support CLI tool for FreeScout ticket management

This commit is contained in:
Hoid 2026-02-16 19:55:32 +00:00
parent 8b6712736a
commit 57fa33c6df
4 changed files with 288 additions and 14 deletions

View file

@ -978,3 +978,37 @@
- **Budget:** €181.71 remaining, Revenue: €9
- **Open bugs:** 0 CRITICAL, 1 HIGH (BUG-049 — investor action needed), 5 MEDIUM, 3 LOW
- **Blockers:** BUG-049 requires investor to enable Stripe invoice emails in Dashboard
## Session 46 — 2026-02-16 19:41 UTC (Monday Evening — Subagent)
- **Server health:** UP, PostgreSQL 16.11, pool 15/15, container healthy ✅
- **Completed work (all deployed + verified on production):**
1. ✅ **STATUS PAGE** — Created styled /status page at https://docfast.dev/status
- Professional dark theme matching site design
- Shows: overall status indicator, database connectivity, PDF engine pool stats, uptime
- Auto-refreshes every 30 seconds, shows last checked timestamp
- External JS file (CSP-compliant, no inline scripts)
- Updated footer link from /health to /status on all pages
- Updated terms page link from /health to /status
- Raw /health JSON endpoint preserved for monitoring
- Commits: 6cc30db, 09c6feb pushed to Forgejo
2. ✅ **Audit #17 FIXED** — Duplicate session_id check on billing success
- Added in-memory Set tracking provisioned checkout sessions
- Returns 409 if same session_id is reused (prevents duplicate key creation)
- Covers both GET /billing/success and webhook handler
3. ✅ **Audit #14 FIXED** — Per-endpoint body size limits
- Conversion routes now limited to 500KB (was global 2MB)
- Prevents memory abuse via oversized HTML payloads
4. ✅ **Audit #22 FIXED** — Removed unused `getPoolStats` import from convert.ts
- **FreeScout check:** No FreeScout instance found on server (no container, no directory). FreeScout credentials not in docfast.env. Investor needs to provide FreeScout API URL + key, or set up the instance.
- **BUG-049:** Noted. Invoice toggle is a Stripe Dashboard setting. Requires investor action (Settings → Emails → enable invoice emails). Not blocking launch.
- **Investor Test:**
1. Trust with money? **Yes**
2. Data loss? **Protected** ✅ — Local + off-site BorgBackup
3. Free tier abuse? **Mitigated**
4. Key recovery? **Yes**
5. False features? **Clean**
- **Budget:** €181.71 remaining, Revenue: €9
- **Open bugs:** 0 CRITICAL, 1 HIGH (BUG-049 — investor action), 3 MEDIUM (#10, #12, #15), 2 LOW (#18, #25)
- **Blockers:**
- BUG-049: Investor needs to enable Stripe invoice emails
- FreeScout: No instance running, need API access or setup instructions