refactor(module1): drop live board feed + actor map; focus on Layer 1
Module 1 is now: domain (carried, read-only) → ADD Layer 1 (domain & events) → proceed. Removed the Live board feed and Actor map cards. The node feed hook stays (its online signal still gates Proceed), just no longer rendered. Co-Authored-By: Claude Opus 4.8 <[email protected]>
This commit is contained in:
co-authored by
Claude Opus 4.8
parent
f6979a685a
commit
c2ef338888
@@ -47,20 +47,10 @@ describe('Module1', () => {
|
|||||||
expect(screen.queryByLabelText(/your domain/i)).toBeNull()
|
expect(screen.queryByLabelText(/your domain/i)).toBeNull()
|
||||||
})
|
})
|
||||||
|
|
||||||
it('renders the actor map and the live board feed', () => {
|
it('focuses on Layer 1 — no live board feed or actor map cards', () => {
|
||||||
renderPage()
|
renderPage()
|
||||||
expect(screen.getByTestId('actor-map')).toBeInTheDocument()
|
expect(screen.queryByTestId('live-board-feed')).toBeNull()
|
||||||
expect(screen.getByTestId('live-board-feed')).toBeInTheDocument()
|
expect(screen.queryByTestId('actor-map')).toBeNull()
|
||||||
})
|
|
||||||
|
|
||||||
it('streams real board activity into the feed', async () => {
|
|
||||||
renderPage()
|
|
||||||
act(() =>
|
|
||||||
emit({ type: 'node:activity', teamId: 'x', kind: 'flash', label: 'Flashing sketch to the MCU', ts: '' }),
|
|
||||||
)
|
|
||||||
await waitFor(() =>
|
|
||||||
expect(screen.getByTestId('live-board-activity')).toHaveTextContent(/flashing sketch/i),
|
|
||||||
)
|
|
||||||
})
|
})
|
||||||
|
|
||||||
it('gates Proceed until the board is online and L1 is filled', async () => {
|
it('gates Proceed until the board is online and L1 is filled', async () => {
|
||||||
|
|||||||
@@ -1,10 +1,7 @@
|
|||||||
import { Link, useNavigate } from 'react-router-dom'
|
import { Link, useNavigate } from 'react-router-dom'
|
||||||
import { Button } from '@/components/ui/button'
|
import { Button } from '@/components/ui/button'
|
||||||
import { Card, CardContent, CardHeader, CardTitle } from '@/components/ui/card'
|
|
||||||
import { Badge } from '@/components/ui/badge'
|
import { Badge } from '@/components/ui/badge'
|
||||||
import { PhaseStrip } from '@/components/PhaseStrip'
|
import { PhaseStrip } from '@/components/PhaseStrip'
|
||||||
import { LiveBoardFeed } from '@/components/LiveBoardFeed'
|
|
||||||
import { ActorMap } from '@/components/ActorMap'
|
|
||||||
import { AddLayerForm } from '@/components/AddLayerForm'
|
import { AddLayerForm } from '@/components/AddLayerForm'
|
||||||
import { useNodeFeed } from '@/lib/useNodeFeed'
|
import { useNodeFeed } from '@/lib/useNodeFeed'
|
||||||
import { useSession } from '@/store/session'
|
import { useSession } from '@/store/session'
|
||||||
@@ -64,26 +61,6 @@ export function Module1() {
|
|||||||
)}
|
)}
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div className="grid lg:grid-cols-2 gap-6">
|
|
||||||
<Card>
|
|
||||||
<CardHeader>
|
|
||||||
<CardTitle className="text-base">Live board feed</CardTitle>
|
|
||||||
</CardHeader>
|
|
||||||
<CardContent className="space-y-4">
|
|
||||||
<LiveBoardFeed feed={feed} />
|
|
||||||
</CardContent>
|
|
||||||
</Card>
|
|
||||||
|
|
||||||
<Card>
|
|
||||||
<CardHeader>
|
|
||||||
<CardTitle className="text-base">Actor map</CardTitle>
|
|
||||||
</CardHeader>
|
|
||||||
<CardContent>
|
|
||||||
<ActorMap />
|
|
||||||
</CardContent>
|
|
||||||
</Card>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<AddLayerForm
|
<AddLayerForm
|
||||||
layer="L1"
|
layer="L1"
|
||||||
title="ADD · Layer 1 — Domain & events"
|
title="ADD · Layer 1 — Domain & events"
|
||||||
|
|||||||
Reference in New Issue
Block a user