Implementation:AIScientists Dev WorldSeed StreamPanel
| Knowledge Sources | |
|---|---|
| Domains | Frontend, UI |
| Last Updated | 2026-10-26 18:00 GMT |
Overview
Concrete React component rendering the live event stream panel with filtered records, tick grouping, auto-scroll, and replay sync, provided by the WorldSeed frontend.
Description
The StreamPanel component consumes `useStreamStore` for records/filters, `useWorldStore` for events/actionDefs, and `useReplayStore` for active replay tick. It computes filtered records via `computeStreamFilteredRecords` with `all` view mode, groups them by tick, and renders collapsible tick groups with `recClass`/`formatEffect`/`formatParams`/`hasFreeText`/`extractFreeText`. When replay is active, it auto-scrolls to the nearest stream tick ≤ replay tick. Sub-filter chips (digest/story/all) toggle the `streamSubFilter`.
Usage
Import this component in the dashboard layout to display the live event stream alongside the map view.
Code Reference
Source Location
- Repository: WorldSeed
- File: frontend/src/components/stream/StreamPanel.tsx
Signature
export default function StreamPanel(): JSX.Element;
Import
import StreamPanel from '@/components/stream/StreamPanel';
I/O Contract
Inputs
| Name | Type | Required | Description |
|---|---|---|---|
| (store data) | — | — │ Reads from useStreamStore, useWorldStore, useReplayStore, useUIStore |
Outputs
| Name | Type | Description |
|---|---|---|
| renders | JSX │ Filtered stream panel with tick groups + auto-scroll |
Usage Examples
import StreamPanel from '@/components/stream/StreamPanel';
function Dashboard() {
return (
<div className="flex">
<MapView />
<StreamPanel />
</div>
);
}