diff --git a/e2e/board.smoke.spec.ts b/e2e/board.smoke.spec.ts index c12b19c..fea4897 100644 --- a/e2e/board.smoke.spec.ts +++ b/e2e/board.smoke.spec.ts @@ -30,6 +30,12 @@ test('move, folder expansion, empty-board pan, desktop wheel zoom, mobile pinch, await expect(page.locator('.documents-panel')).toHaveClass(/\bclosed\b/) await expect(page.locator('.brief-panel')).toBeVisible() await expect(page.getByRole('button', { name: 'Case brief', exact: true })).toContainText('2') + await page.getByRole('button', { name: 'Minimize brief', exact: true }).click() + await expect(page.locator('.brief-panel')).toHaveClass(/\bminimized\b/) + await expect(page.locator('.brief-panel > p')).toBeHidden() + await expect(page.getByRole('button', { name: 'Close brief', exact: true })).toBeVisible() + await page.getByRole('button', { name: 'Restore brief', exact: true }).click() + await expect(page.locator('.brief-panel')).not.toHaveClass(/\bminimized\b/) await page.getByRole('button', { name: 'BEGIN INVESTIGATION', exact: true }).click() const folder = page.locator('[data-temporal-id="widget:11111111-1111-4111-8111-111111111111"]') diff --git a/src/App.tsx b/src/App.tsx index d0b6aa6..f8f7c19 100644 --- a/src/App.tsx +++ b/src/App.tsx @@ -720,9 +720,10 @@ function ThreadEditor({ connection, sourceName, targetName, isNew, onClose, onSa } function BriefPanel({ brief, parties, recentlyCreatedExhibitId, canEdit, onClose, onEdit, onClassify, onNewParty, onLocate, onEditParty }: { brief: LevelBrief; parties: Evidence[]; recentlyCreatedExhibitId: string | null; canEdit: boolean; onClose: () => void; onEdit: () => void; onClassify: (id: string, kind: PartyKind) => void; onNewParty: () => void; onLocate: (id: string) => void; onEditParty: (id: string) => void }) { + const [minimized, setMinimized] = useState(false) const partyById = new Map(parties.map(party => [party.id, party])) const unresolved = brief.concepts.filter(concept => !concept.resolvedPartyExhibitId).length - return