Implement JQHTML function cache ID system and fix bundle compilation Implement underscore prefix for system tables Fix JS syntax linter to support decorators and grant exception to Task system SPA: Update planning docs and wishlists with remaining features SPA: Document Navigation API abandonment and future enhancements Implement SPA browser integration with History API (Phase 1) Convert contacts view page to SPA action Convert clients pages to SPA actions and document conversion procedure SPA: Merge GET parameters and update documentation Implement SPA route URL generation in JavaScript and PHP Implement SPA bootstrap controller architecture Add SPA routing manual page (rsx:man spa) Add SPA routing documentation to CLAUDE.md Phase 4 Complete: Client-side SPA routing implementation Update get_routes() consumers for unified route structure Complete SPA Phase 3: PHP-side route type detection and is_spa flag Restore unified routes structure and Manifest_Query class Refactor route indexing and add SPA infrastructure Phase 3 Complete: SPA route registration in manifest Implement SPA Phase 2: Extract router code and test decorators Rename Jqhtml_Component to Component and complete SPA foundation setup 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
Storage Snapshot - Broken Bundle State
Created
2025-11-12
How Created
- Ran
php artisan rsx:dev:update_npm - Command executed:
- npm update (no packages changed, already up to date)
- rsx:clean (cleared all caches)
- rsx:bundle:compile (compiled all 12 bundles via CLI)
What This Demonstrates
This snapshot captures the broken state where CLI-built bundles are missing JS stubs.
Observable Issue
When loading /contacts after this CLI build:
JavaScript Console Error:
Frontend_Clients_Controller is not defined
at Frontend_Bundle__app.8e0e8df3.js:19231:31
The Problem
- JS stub file EXISTS:
rsx-build/js-stubs/Frontend_Clients_Controller.jsis present in filesystem - Bundle is MISSING stub: The compiled
Frontend_Bundle__app.8e0e8df3.jsdoes not include the stub - Result: JavaScript references to
Frontend_Clients_Controllerfail at runtime
Key Files to Examine
rsx-build/js-stubs/*.js- Generated stub files (DO exist)rsx-build/manifest_data.php- Manifest metadata (check if stubs are registered)_compiled/Frontend_Bundle__app.*.js- Compiled bundle (check if stubs are included)
Root Cause Hypothesis
The manifest may not be properly registering stub files during initial CLI build, causing the bundle compiler to skip them. Stubs might only get registered on a second pass when the system checks for existing stubs.
Reproduction Steps
# Start fresh
php artisan rsx:dev:update_npm
# Test (will show error)
php artisan rsx:debug /contacts --user-id=1
# Expected error: Frontend_Clients_Controller is not defined
Known Working State
Running php artisan rsx:clean followed by a browser page load will trigger a rebuild that DOES include stubs correctly.