From 8a11c6bb4a7c70fefbd3ad0ce5f0511f0704053f Mon Sep 17 00:00:00 2001 From: bntvllnt Date: Tue, 12 May 2026 21:19:30 +0200 Subject: [PATCH] fix(react-doctor): rename generic handlers --- .../registry/default/ai-artifact/ai-artifact.tsx | 16 ++++++++-------- .../registry/default/ai-sidebar/ai-sidebar.tsx | 8 ++++---- .../bottom-activity-strip.tsx | 4 ++-- .../chronological-timeline.tsx | 4 ++-- .../registry/default/comment-pin/comment-pin.tsx | 4 ++-- .../floating-toolbar/floating-toolbar.tsx | 4 ++-- .../interactive-timeline.tsx | 4 ++-- .../registry/default/jarvis-dock/jarvis-dock.tsx | 4 ++-- .../default/knowledge-check/knowledge-check.tsx | 4 ++-- .../default/map-timeline/map-timeline.tsx | 8 ++++---- .../policy-delivery-panel.tsx | 4 ++-- .../prompt-templates/prompt-templates.tsx | 4 ++-- .../relationship-inspector.tsx | 4 ++-- .../routing-assignment-panel.tsx | 4 ++-- .../default/run-timeline/run-timeline.tsx | 4 ++-- .../timeline-scrubber/timeline-scrubber.tsx | 6 ++++-- .../viewport-bookmarks/viewport-bookmarks.tsx | 4 ++-- .../world-breadcrumbs/world-breadcrumbs.tsx | 4 ++-- .../src/components/ai-artifact/ai-artifact.tsx | 16 ++++++++-------- .../ui/src/components/ai-sidebar/ai-sidebar.tsx | 8 ++++---- .../bottom-activity-strip.tsx | 4 ++-- .../chronological-timeline.tsx | 4 ++-- .../src/components/comment-pin/comment-pin.tsx | 4 ++-- .../floating-toolbar/floating-toolbar.tsx | 4 ++-- .../interactive-timeline.tsx | 4 ++-- .../src/components/jarvis-dock/jarvis-dock.tsx | 4 ++-- .../knowledge-check/knowledge-check.tsx | 4 ++-- .../src/components/map-timeline/map-timeline.tsx | 8 ++++---- .../policy-delivery-panel.tsx | 4 ++-- .../prompt-templates/prompt-templates.tsx | 4 ++-- .../relationship-inspector.tsx | 4 ++-- .../routing-assignment-panel.tsx | 4 ++-- .../src/components/run-timeline/run-timeline.tsx | 4 ++-- .../src/components/share-dialog/share-dialog.tsx | 4 ++-- .../ui/src/components/social-fab/social-fab.tsx | 12 ++++++------ .../timeline-scrubber/timeline-scrubber.tsx | 6 ++++-- packages/ui/src/components/toast/toast.test.tsx | 6 +++--- .../viewport-bookmarks/viewport-bookmarks.tsx | 4 ++-- .../world-breadcrumbs/world-breadcrumbs.tsx | 4 ++-- 39 files changed, 107 insertions(+), 103 deletions(-) diff --git a/apps/registry/registry/default/ai-artifact/ai-artifact.tsx b/apps/registry/registry/default/ai-artifact/ai-artifact.tsx index 784648c0..5e45699a 100644 --- a/apps/registry/registry/default/ai-artifact/ai-artifact.tsx +++ b/apps/registry/registry/default/ai-artifact/ai-artifact.tsx @@ -470,7 +470,7 @@ export const AIArtifactCopyButton = forwardRef< ToolbarButtonProps >(({ className, onClick, ...rest }, ref) => { const { copied, copy, labels } = useAIArtifact(); - const handleClick = useCallback( + const handleCopyArtifact = useCallback( (event: React.MouseEvent) => { onClick?.(event); if (event.defaultPrevented) return; @@ -482,7 +482,7 @@ export const AIArtifactCopyButton = forwardRef<