Fix datagrid pagination, document rsx:debug --eval, update jqhtml

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
root
2025-12-12 03:00:48 +00:00
parent 958da28f64
commit c4ba2b743f
138 changed files with 212 additions and 150 deletions

View File

@@ -1126,10 +1126,16 @@ rsx:debug /contacts --console # Show console.log output
rsx:debug /page --screenshot-path=/tmp/page.png --screenshot-width=mobile # Capture screenshot
rsx:debug /page --dump-dimensions=".card" # Add position/size data attributes to elements
rsx:debug /path --help # Show all options
# Simulate user interactions with --eval (executes before DOM capture)
rsx:debug /contacts --user=1 --eval="$('.page-link[data-page=\"2\"]').click(); await sleep(2000)"
rsx:debug /form --eval="$('#name').val('test'); $('form').submit(); await sleep(500)"
```
Screenshot presets: mobile, iphone-mobile, tablet, desktop-small, desktop-medium, desktop-large
The `--eval` option runs JavaScript after page load but before DOM capture. Use `await sleep(ms)` to wait for async operations. This is powerful for testing pagination, form submissions, and other interactive behavior.
Use this instead of manually browsing, especially for SPA pages and Ajax-heavy features.
**CRITICAL: SPA routes ARE server routes.** The server knows all SPA routes. `rsx:debug` uses Playwright to fully render pages including all JavaScript and SPA navigation. If you get a 404, the route genuinely doesn't exist - check your URL pattern and route definitions. Never dismiss 404s as "SPA routes can't be tested server-side" - this analysis is incorrect.