Fix contact add link to use Contacts_Edit_Action SPA route
Add multi-route support for controllers and SPA actions Add screenshot feature to rsx:debug and convert contacts edit to SPA 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
@@ -151,7 +151,9 @@ class Route_Debug_Command extends Command
|
||||
{--console-debug-benchmark : Include benchmark timing prefixes in console_debug output}
|
||||
{--console-debug-all : Show all console_debug channels (overrides filter)}
|
||||
{--console-debug-disable : Disable console_debug entirely for this test}
|
||||
{--console-list : Alias for --console-log to display all console output}';
|
||||
{--console-list : Alias for --console-log to display all console output}
|
||||
{--screenshot-width= : Screenshot width (px or preset: mobile, iphone-mobile, tablet, desktop-small, desktop-medium, desktop-large). Defaults to 1920}
|
||||
{--screenshot-path= : Path to save screenshot file (triggers screenshot capture, max height 5000px)}';
|
||||
|
||||
/**
|
||||
* The console command description.
|
||||
@@ -263,6 +265,10 @@ class Route_Debug_Command extends Command
|
||||
$timeout = 30000; // Default 30 seconds
|
||||
}
|
||||
|
||||
// Get screenshot options
|
||||
$screenshot_width = $this->option('screenshot-width');
|
||||
$screenshot_path = $this->option('screenshot-path');
|
||||
|
||||
// Get console debug options (with environment variable fallbacks)
|
||||
$console_debug_filter = $this->option('console-debug-filter') ?: env('CONSOLE_DEBUG_FILTER');
|
||||
$console_debug_benchmark = $this->option('console-debug-benchmark') ?: env('CONSOLE_DEBUG_BENCHMARK', false);
|
||||
@@ -458,6 +464,14 @@ class Route_Debug_Command extends Command
|
||||
$command_args[] = "--console-debug-disable";
|
||||
}
|
||||
|
||||
if ($screenshot_width) {
|
||||
$command_args[] = "--screenshot-width={$screenshot_width}";
|
||||
}
|
||||
|
||||
if ($screenshot_path) {
|
||||
$command_args[] = "--screenshot-path={$screenshot_path}";
|
||||
}
|
||||
|
||||
// Pass Laravel log path as environment variable
|
||||
$laravel_log_path = storage_path('logs/laravel.log');
|
||||
|
||||
@@ -526,8 +540,12 @@ class Route_Debug_Command extends Command
|
||||
|
||||
$this->comment('DEBUGGING OUTPUT:');
|
||||
$this->line(' php artisan rsx:debug / --console-log # All console output');
|
||||
$this->line(' php artisan rsx:debug / --console-list # Alias for --console-log');
|
||||
$this->line(' php artisan rsx:debug / --console-debug-filter=AUTH # Filter console_debug');
|
||||
$this->line(' php artisan rsx:debug / --console-debug-all # Show all console_debug channels');
|
||||
$this->line(' php artisan rsx:debug / --console-debug-benchmark # With timing');
|
||||
$this->line(' php artisan rsx:debug / --console-debug-disable # Disable console_debug');
|
||||
$this->line(' php artisan rsx:debug / --log # Display Laravel error log');
|
||||
$this->line(' php artisan rsx:debug / --all-logs # Show all log files');
|
||||
$this->line('');
|
||||
|
||||
@@ -555,6 +573,19 @@ class Route_Debug_Command extends Command
|
||||
$this->line(' php artisan rsx:debug /slow --timeout=60000 # 60 second timeout');
|
||||
$this->line('');
|
||||
|
||||
$this->comment('SCREENSHOTS:');
|
||||
$this->line(' php artisan rsx:debug /page --screenshot-path=/tmp/screenshot.png');
|
||||
$this->line(' # Screenshot at 1920px (default)');
|
||||
$this->line(' php artisan rsx:debug /page --screenshot-width=mobile --screenshot-path=/tmp/mobile.png');
|
||||
$this->line(' # Mobile device (412px)');
|
||||
$this->line(' php artisan rsx:debug /page --screenshot-width=tablet --screenshot-path=/tmp/tablet.png');
|
||||
$this->line(' # Tablet device (768px)');
|
||||
$this->line(' php artisan rsx:debug /page --screenshot-width=1024 --screenshot-path=/tmp/custom.png');
|
||||
$this->line(' # Custom width (1024px)');
|
||||
$this->line(' # Available presets: mobile (412px), iphone-mobile (390px), tablet (768px),');
|
||||
$this->line(' # desktop-small (1366px), desktop-medium (1920px), desktop-large (2560px)');
|
||||
$this->line('');
|
||||
|
||||
$this->comment('IMPORTANT NOTES:');
|
||||
$this->line(' • When using rsx:debug with grep and no output appears, re-run without grep');
|
||||
$this->line(' to see the full context and any errors that may have occurred');
|
||||
|
||||
Reference in New Issue
Block a user