diff --git a/apps/framework-editor/app/(pages)/controls/ControlsClientPage.tsx b/apps/framework-editor/app/(pages)/controls/ControlsClientPage.tsx index 9de5e4cee5..3e5af15073 100644 --- a/apps/framework-editor/app/(pages)/controls/ControlsClientPage.tsx +++ b/apps/framework-editor/app/(pages)/controls/ControlsClientPage.tsx @@ -253,6 +253,8 @@ export function ControlsClientPage({ initialControls, emptyMessage, frameworkId rowId={row.original.id} columnId="description" onUpdate={updateCell} + expandable + expandTitle="Edit Control Description" /> ), }), diff --git a/apps/framework-editor/app/components/table/EditableCell.test.tsx b/apps/framework-editor/app/components/table/EditableCell.test.tsx new file mode 100644 index 0000000000..518d0a1861 --- /dev/null +++ b/apps/framework-editor/app/components/table/EditableCell.test.tsx @@ -0,0 +1,123 @@ +import { fireEvent, render, screen } from '@testing-library/react'; +import { beforeEach, describe, expect, it, vi } from 'vitest'; +import { EditableCell } from './EditableCell'; + +// The ui package ships untranspiled JSX in dist; stub the bits the cell uses. +vi.mock('@trycompai/ui', () => ({ + Button: ({ + children, + variant: _v, + ...props + }: { variant?: string } & React.ComponentProps<'button'>) => ( + + ), + Textarea: (props: React.ComponentProps<'textarea'>) =>