Description
`app/app/dashboard.tsx`'s page-level composition (loading/empty/populated states, and the `sent`/`received`/`all` view wiring) is untested, even though its child `DashboardStats` component is separately covered by existing tests.
Task
Add a test file covering: the page renders its loading state, its empty state (no streams), a populated state with mock stream data, and that switching between sent/received/all views filters the displayed streams correctly.
Good for contributors because
Clear page-level states to enumerate, good way to learn how the dashboard composes its data hooks and child components.
Description
`app/app/dashboard.tsx`'s page-level composition (loading/empty/populated states, and the `sent`/`received`/`all` view wiring) is untested, even though its child `DashboardStats` component is separately covered by existing tests.
Task
Add a test file covering: the page renders its loading state, its empty state (no streams), a populated state with mock stream data, and that switching between sent/received/all views filters the displayed streams correctly.
Good for contributors because
Clear page-level states to enumerate, good way to learn how the dashboard composes its data hooks and child components.