egutierrez
bcc5fdcaef
migrate 4 panel tables to data_table::render with renderers (issue 0081-J)
...
- ##browsers: 6 data cols with Mode Badge (#headless=#f59e0b, visible=#22c55e); actions as inline button list
- ##tabs: 5 data cols with Type Badge + Attached Badge; actions as inline button list
- ##wsframes: 4 cols with Dir Badge (send=#3b82f6, recv=#22c55e) + Op Badge (text/binary/close/ping/pong)
- ##requests: 7 cols with Status Badge (2xx/3xx/4xx/5xx), Method Badge (GET/POST/PUT/DELETE/PATCH), Time Duration renderer; Waterfall col omitted (requires custom ImDrawList, not a Fase-1 renderer)
- CMakeLists.txt: add fn_table_viz linkage (guarded by TARGET check for lua-absent builds)
- app.md: add 12 uses_functions IDs for fn_table_viz stack
- fn doctor cpp-apps: navegator_dashboard now OK (0 inline BeginTable remaining)
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com >
2026-05-15 16:55:12 +02:00
egutierrez
cc1b324ffb
feat(navegator_dashboard): v1+v2 — CDP HTTP client, real Tabs panel, full Network panel
...
CDP HTTP client (cdp_http.h/cpp): WinSock raw + crude_json. GET /json/version,
/json (list tabs), PUT /json/new (Chrome 137+), GET /json/activate/{id},
/json/close/{id}.
CDP WebSocket client (cdp_ws.h/cpp): RFC 6455 handshake + framing manual,
masked client frames, async dispatcher con queue + wait_response. Soporta
fragmentacion (FIN=0 + continuation), ping/pong, close frame. Stats bytes
in/out + frames in.
Cross-panel session (session_state.h/cpp): selected_browser_port +
selected_tab_id. Cambiar tab cierra/abre NetworkSession.
Tabs panel: real. List + filtro titulo/URL + Refresh + New tab + Focus +
Close + Select (alimenta Network panel).
Network panel: DevTools-like.
- Tabla: Name | Status (color) | Method | Type | Initiator | Size | Time | Waterfall
- Filtros: text + invert + chips (Doc/CSS/JS/XHR/Img/Media/Font/WS/Other) + All toggle
- Toggles: Preserve log, Disable cache, Hide data:, Only failed, Pause/Resume
- Detalle por request: Headers (general + req + res) | Payload | Response (lazy
Network.getResponseBody) | Cookies | Timing | WS Messages (frames in/out)
- Right-click row: Copy URL / Copy as cURL / Copy as fetch
- Status bar: N requests | bytes transferred | resources | Finish | DCL | Load
- Export HAR 1.2 a archivo junto al exe
NetworkSession parsea Network.requestWillBeSent + ExtraInfo, responseReceived
+ ExtraInfo, dataReceived, loadingFinished, loadingFailed, webSocketCreated,
webSocketFrameSent/Received/Closed, Page.frameNavigated (autoclear si !preserve),
domContentEventFired, loadEventFired.
API local extendida (local_api.cpp):
- GET /browser/{port}/version
- GET /browser/{port}/tabs
- POST /browser/{port}/tab/new?url=
- POST /browser/{port}/tab/{id}/focus
- POST /browser/{port}/tab/{id}/close
- GET /browser/{port}/har (HAR 1.2 export de la sesion activa)
Build:
- CMakeLists.txt linka imgui_node_editor solo para reusar crude_json (sin
codigo de node-editor en runtime).
- 15 MB exe Windows. Cross-compile mingw-w64 OK.
app.md: bump version 0.2.0 -> 0.3.0, panels matrix actualizado, e2e_checks
añade api_health + api_browsers (warning).
Issue 0002 (sub-issue del roadmap navegator_dashboard 0001).
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com >
2026-05-10 12:51:23 +02:00