mirror of
https://github.com/bitbaum/orangecat.git
synced 2026-12-06 02:07:23 +01:00
Most people never review unless asked, and a track record nobody writes stays empty. - review-nudges cron (hourly systemd timer, deterministic, no model): asks each side that has not reviewed once 3 days after the deal settles, and once more in the last 5 days of the window. Sent in-app and by email (notification type deal_review). - deal_review_nudges records each nudge BEFORE sending, so a crash loses one and never sends a second. - When one side reviews, the other is told that it happened, never what was said. - The Cat's dashboard suggestions carry the most urgent unreviewed deal, using the same timing rule as the cron (EN + DE copy). Claude-Session: https://claude.ai/code/session_018wXxVRKVqzamrf61n6ctaQ Co-authored-by: Claude <noreply@anthropic.com>
Scripts Directory
This directory contains all automation scripts organized by purpose.
Directory Structure
analysis/- Bundle analysis, documentation checking, and optimization toolsauth-fix/- Scripts to fix authentication and RLS policy issuesdb/- Database operations, migrations, and schema management- Migration scripts moved from root:
apply-migration.js,apply-*-migration.js - Old schema files archived in
db/archive/
- Migration scripts moved from root:
deployment/- Deployment, production setup, and monitoring scriptsdev/- Development helpers, local setup, and debugging toolsdiagnostics/- Health checks and system diagnosticsmaintenance/- Cleanup, optimization, and maintenance scriptsmonitoring/- Performance monitoring and bundle size trackingoauth/- OAuth provider setup and configurationprofile-fix/- Scripts to fix profile-related issuesschema-fix/- Database schema fixes and migrationsstorage/- Supabase storage bucket setup and managementtest/- Testing utilities and validation scripts- Test/debug scripts moved from root:
test-*.js,check-*.js,debug-*.js
- Test/debug scripts moved from root:
Usage
Most scripts can be run with:
node scripts/{category}/script-name.js
For deployment scripts:
bash scripts/deployment/script-name.sh
Important Scripts
scripts/dev/dev-start.js- Main development server starterscripts/deployment/browser-verify.js- Post-deploy browser smoke test (deploys themselves happen on the box — see docs/deployment/DEPLOYMENT_PROCESS.md)scripts/db/apply-migrations.ts- Database migrationsscripts/maintenance/cleanup-console-logs.ts- Remove console.log statements