mirror of
https://github.com/bitbaum/orangecat.git
synced 2026-12-05 17:38:14 +01:00
OrangeCat's separate apps now share one system (config/own-apps.ts): each owns its paths (ownAppIdFor in routes.ts), and AppShell gives those pages the app's own bar (OwnAppBar) in place of the site header, sidebar, footer and tab bar. - Studio: /studio (moved onto the shared bar and registry). - Calendar: /dashboard/calendar and /dashboard/tasks, with Calendar and To-do as tabs in the bar. - Messages: /messages. The bar is as tall as the site header and keeps its app-header class, so the messages frame and the phone's immersive chat work unchanged. With no tab bar, .oc-own-app points --mobile-nav-clearance at the home indicator. Each app installs as itself: its own manifest and icon (the cat head with the app's face: spark, calendar page, speech bubble), written by scripts/generate-own-app-assets.mjs and checked by own-apps.test.ts. Claude-Session: https://claude.ai/code/session_019MDtmtGQGmWpPN74gmLuBf 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
- 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 run from.github/workflows/cd.ymlviascripts/deploy-selfhost.sh— see docs/operations/deployment/DEPLOYMENT_PROCESS.md)scripts/apply-migrations.sh- Applies pendingsupabase/migrations/*.sqlon every deploy (run byscripts/deploy-selfhost.sh).scripts/db/apply-migrations.tsis a legacy script, not the deploy path.scripts/maintenance/cleanup-console-logs.ts- Remove console.log statements