Align rave-pipelines with shidashi PR #5 which moves register_output and standalone_viewer into shidashi (removing them from ravedash), adds stream_viz D3 htmlwidget with binary streaming, and adds SVG-to-PNG capture for MCP. The old ravedash functions will no longer exist — this is not deprecation, it's removal. Comment old code instead of deleting.
- Step 1.1: Add
fetchStreamData(id)method after_escapeAttr()(~L936) - Step 1.2: Update MCP
query_uihandler to use SVG capture (~L1713-L1775) - Step 1.3: Add
shidashi.set_shiny_inputhandler in_register_shiny() - Step 1.4: Add
shidashi.register_output_widgetshandler in_register_shiny() - Step 1.5: Update
launchStandaloneViewer()URL scheme to includetoken
- Step 2.1: Add
.shidashi-output-widget-*styles - Step 2.2: Comment out old
.ravedash-output-widget-*styles (~L2410-2460)
- Step 3.1: Add
captureSVG(svgEl)export
- Step 4.1: Update
modules/standalone_viewer/R/loader.R - Step 4.2: Update
modules/standalone_viewer/server.R - Step 4.3: Update
modules/standalone_viewer/module-ui.html
API change:
- Old (ravedash, being removed):
- UI:
ravedash::output_gadget_container(plotOutput(ns("id"))) - Server:
ravedash::register_output(outputId="id", render_function=renderPlot({...}), output_type="type")
- UI:
- New (shidashi):
- UI: bare
plotOutput(ns("id"))(no wrapper) - Server:
shidashi::register_output(renderPlot({...}), outputId="id", description="...", download_type="image")
- UI: bare
output_type → download_type mapping: csv→data, no-download→no-download, threeBrain→threeBrain, plots→image
- Step 5.1: notch_filter (1 UI + 1 server)
- Step 5.2: reference_module (3 UI + 3 server)
- Step 5.3: custom_3d_viewer (2 UI + 2 server)
- Step 5.4: electrode_localization (1 UI + 1 server)
- Step 5.5: power_explorer (10 UI + 16 server)
- Step 5.6: group_3d_viewer (1 UI + 1 server)
- Step 5.7: epoch_generator (2 UI + 2 server)
- Step 5.8: wavelet_module (2 UI + 2 server)
- Step 5.9: generate_surface_atlas (1 UI + 1 server)
- Step 5.10: connectivity_viewer (3 UI + 2 server)
- Step 6.1: Add
shidashi::stream_init(session)aftershidashi::register_session_id(session)
-
npm run build - Launch app and test overlay icons
- Test standalone viewer popout
- Test MCP query_ui SVG capture
- Test stream_viz widget
- Comment old ravedash code, don't delete (for debugging)
ravedash::register_outputandoutput_gadget_containerare being removed from ravedashravedash::plotOutput2is kept as-is — normal output function- SVG capture goes in
canvas-capture.jswhere capture logic lives - No
stream_vizdemo module in rave-pipelines