1.5 KiB
1.5 KiB
name, description
| name | description |
|---|---|
| compare-php | Compare a feature between PHP boha-app and TS boha-app-ts to verify migration parity |
Compare PHP vs TS Implementation
Compare a specific feature, component, or endpoint between the original PHP project (D:\cortex\boha-app) and the TypeScript migration (D:\cortex\boha-app-ts).
Usage
The user will specify what to compare. Examples:
/compare-php attendance print/compare-php invoice PDF generation/compare-php offer numbering logic
Process
- Search the PHP codebase (D:\cortex\boha-app) for the relevant implementation
- Search the TS codebase (D:\cortex\boha-app-ts) for the same feature
- Compare:
- API endpoints and request/response shape
- Business logic and calculations
- Database queries
- Frontend behavior
- Report differences found — what's missing, what's different, what's extra
Key directories
PHP project:
- API handlers:
D:\cortex\boha-app\api\admin\handlers\ - API routes:
D:\cortex\boha-app\api\admin\ - Frontend pages:
D:\cortex\boha-app\src\admin\pages\ - Frontend components:
D:\cortex\boha-app\src\admin\components\ - Frontend hooks:
D:\cortex\boha-app\src\admin\hooks\ - Includes/utils:
D:\cortex\boha-app\api\includes\
TS project:
- API routes:
D:\cortex\boha-app-ts\src\routes\admin\ - Services:
D:\cortex\boha-app-ts\src\services\ - Frontend pages:
D:\cortex\boha-app-ts\src\admin\pages\ - Frontend components:
D:\cortex\boha-app-ts\src\admin\components\ - Frontend hooks:
D:\cortex\boha-app-ts\src\admin\hooks\