Skip to content

Self-hosted, Self-Improving, Federated Everything App — dev management, agent orchestration, persistent mind, digital twin, second brain, and creative pipeline from a single dashboard over Tailscale to port the user into the OS

fix([inline-confirm-row-primitive]): forward passthrough props to root

[._.]/ Adam Eivy0c7d75e2cb83
diff --git a/client/src/components/ui/InlineConfirmRow.jsx b/client/src/components/ui/InlineConfirmRow.jsx
index 6ddd6004ef..796066d6c0 100644
--- a/client/src/components/ui/InlineConfirmRow.jsx
+++ b/client/src/components/ui/InlineConfirmRow.jsx
@@ -24,11 +24,12 @@ export default function InlineConfirmRow({
onCancel,
tone = 'error',
className = '',
+ ...rest
}) {
const t = TONES[tone] || TONES.error;
return (
- <div className={`flex items-center gap-2 p-2 border rounded ${t.wrapper} ${className}`.trim()}>
+ <div className={`flex items-center gap-2 p-2 border rounded ${t.wrapper} ${className}`.trim()} {...rest}>
<span className="text-xs text-white flex-1">{question}</span>
<button
type="button"
diff --git a/client/src/components/ui/InlineConfirmRow.test.jsx b/client/src/components/ui/InlineConfirmRow.test.jsx
index cbf03e97ec..243f6a1c12 100644
--- a/client/src/components/ui/InlineConfirmRow.test.jsx
+++ b/client/src/components/ui/InlineConfirmRow.test.jsx
@@ -63,4 +63,10 @@ describe('InlineConfirmRow', () => {
expect(screen.getByRole('button', { name: 'Delete' }).getAttribute('type')).toBe('button');
expect(screen.getByRole('button', { name: 'Cancel' }).getAttribute('type')).toBe('button');
});
+
+ it('forwards passthrough props (data-*/aria-*) to the root like sibling primitives', () => {
+ render(<InlineConfirmRow question="x" data-testid="confirm-row" aria-label="Confirm deletion" />);
+ const wrapper = screen.getByTestId('confirm-row');
+ expect(wrapper.getAttribute('aria-label')).toBe('Confirm deletion');
+ });
});