fix(browser): populate sessions/activity panels via new rpc methods #14

Merged
salmaelsoly merged 1 commit from development_dashboard_rpc_fix into development 2026-04-27 06:50:42 +00:00
Member

Summary

Fixes the empty Sessions and Activity Log panels on the Browser dashboard by:

  • Adding three new JSON-RPC methods on the server: browser_list_sessions, browser_get_activity, browser_get_session_activity (using the existing underscore convention).
  • Extracting the page-walking logic into a shared sessions::collect_sessions helper so REST (/api/sessions) and the new RPC method return byte-identical shapes (defended by a parity test).
  • Rewiring dashboard.js to call the new RPC methods.
  • Updating the Integration Guide tab to document the real RPC + REST surface.
  • Bumping recursion_limit to 256 for the deeply-nested json! schemas in openrpc.rs.
  • Side fix: light-mode CSS no longer clobbers the active session highlight (white-on-white invisibility bug, surfaced once the panel actually populated).

Tests

cargo test --workspace --bins --tests: 14/14 passing. Four new tests in rpc_handler::tests cover the new methods plus a REST/RPC parity invariant.

cargo build -p hero_browser_sdk succeeds (the openrpc_client! macro now exposes typed wrappers for the new methods).

Closes #13.

## Summary Fixes the empty Sessions and Activity Log panels on the Browser dashboard by: - Adding three new JSON-RPC methods on the server: browser_list_sessions, browser_get_activity, browser_get_session_activity (using the existing underscore convention). - Extracting the page-walking logic into a shared sessions::collect_sessions helper so REST (/api/sessions) and the new RPC method return byte-identical shapes (defended by a parity test). - Rewiring dashboard.js to call the new RPC methods. - Updating the Integration Guide tab to document the real RPC + REST surface. - Bumping recursion_limit to 256 for the deeply-nested json! schemas in openrpc.rs. - Side fix: light-mode CSS no longer clobbers the active session highlight (white-on-white invisibility bug, surfaced once the panel actually populated). ## Tests cargo test --workspace --bins --tests: 14/14 passing. Four new tests in rpc_handler::tests cover the new methods plus a REST/RPC parity invariant. cargo build -p hero_browser_sdk succeeds (the openrpc_client! macro now exposes typed wrappers for the new methods). Closes #13.
fix(browser): populate sessions/activity panels via new rpc methods
All checks were successful
Test / test (pull_request) Successful in 2m53s
Build and Test / build (pull_request) Successful in 4m19s
4698be90f0
salmaelsoly merged commit e293763f8f into development 2026-04-27 06:50:42 +00:00
salmaelsoly deleted branch development_dashboard_rpc_fix 2026-04-27 06:50:51 +00:00
Sign in to join this conversation.
No reviewers
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
lhumina_code/hero_browser!14
No description provided.