feat: complete Phase 2 Hono route migration#41
feat: complete Phase 2 Hono route migration#41chitcommit merged 5 commits intophase2-hono-migrationfrom
Conversation
Remove stale references to demo-key fallback, mock data integrations, and inaccurate testing integration docs. Reflects actual conditional client init pattern and per-integration implementation status. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Empty catch block silently swallowed module load failures, making it impossible to diagnose ChittyConnect JWT verification issues. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Add 8 new Hono route modules for tenants, properties, transactions, integrations, tasks, AI messages, webhooks, and OpenAPI docs. Refactor app.ts with shared storageMiddleware for DRY auth+tenant+storage setup. Add getProperty, getUnits, getLeasesByUnits to SystemStorage. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Mercury accounts via ChittyConnect proxy, GitHub repo/commits/PRs/issues endpoints, Stripe customer connect and checkout session creation. All routes use c.env for edge-compatible config access. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Complete Phase 2 Hono migration with final 3 route groups: - Wave OAuth: edge-compatible HMAC state tokens, public callback - Recurring charges: stub-based charge detection with optimization analysis - Forensic accounting: 21 endpoints for investigations, evidence, analysis, reports Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
|
You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard. |
|
Important Review skippedAuto reviews are disabled on base/target branches other than the default branch. Please check the settings in the CodeRabbit UI or the You can disable this status message by setting the Use the checkbox below for a quick retry:
✨ Finishing Touches🧪 Generate unit tests (beta)✅ Unit Test PR creation complete.
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
PR Review: feat: complete Phase 2 Hono route migrationGreat work completing the Hono migration — the 17-module structure is clean, the per-prefix middleware pattern is well-reasoned, and the edge-compatible OAuth state implementation in Critical — Security1. Stripe webhook signature is never verified ( The endpoint checks for the presence of Fix: instantiate 2. Forensic analysis sub-routes lack investigation ownership checks ( The individual analyze endpoints ( Same issue in: 3. Hard-coded fallback OAuth secret ( If High — Correctness4. Repeat analysis inserts create duplicates The 5. Dynamic import inside request handlers ( This appears inside hot-path handlers and runs on every request. Hoist to a top-level import — the runtime caches the module but the async overhead and hidden dependency are unnecessary. 6. Unvalidated body spread in PATCH routes Both Medium — Code Quality / Architecture7. Forensics routes bypass shared
8. A missing 9. Stripe API version Use 10. Service type typo in Wave callback (
11. The file handles CRUD, evidence management, 4 analysis algorithms, flow of funds, damage calculations, and reports. Given the project's module-per-concern structure, breaking it into Minor
SummaryThe three blocking issues before merge:
Everything else can reasonably land in a follow-up PR. Generated with Claude Code |
|
Note Unit test generation is a public access feature. Expect some limitations and changes as we gather feedback and continue to improve it. Generating unit tests... This may take up to 20 minutes. |
|
✅ Created PR with unit tests: #109 |
Summary
Changes
server/lib/oauth-state-edge.tsusing Web Crypto APITest plan
🤖 Generated with Claude Code