Skip to content

Commit 445aa82

Browse files
Copilothotlong
andcommitted
Changes before error encountered
Co-authored-by: hotlong <50353452+hotlong@users.noreply.github.com>
1 parent db8100b commit 445aa82

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

apps/console/src/__tests__/ObjectView.test.tsx

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -798,7 +798,10 @@ describe('ObjectView Component', () => {
798798

799799
// The drawer should render a "Show Discussion" button (ChatterPanel is defaultCollapsed)
800800
await vi.waitFor(() => {
801-
expect(screen.getByLabelText('Show discussion')).toBeInTheDocument();
801+
const showBtn = screen.getByLabelText('Show discussion');
802+
expect(showBtn).toBeInTheDocument();
803+
// Verify items count shows (0) since items are initially empty
804+
expect(showBtn).toHaveTextContent('Show Discussion (0)');
802805
});
803806
});
804807
});

apps/console/src/components/ObjectView.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -658,7 +658,8 @@ export function ObjectView({ dataSource, objects, onEdit, onRowClick }: any) {
658658
dataSource={dataSource}
659659
onEdit={() => onEdit({ _id: recordId, id: recordId })}
660660
/>
661-
{/* Discussion panel — collapsible in drawer/overlay mode */}
661+
{/* Discussion panel — collapsible in drawer/overlay mode.
662+
Items start empty; full data fetching is in RecordDetailView (page mode). */}
662663
<div className="mt-6 border-t pt-6">
663664
<RecordChatterPanel
664665
config={{

0 commit comments

Comments
 (0)