From f555cb547b3f745d74b7645be234cc7b15e06131 Mon Sep 17 00:00:00 2001 From: Scrum4Me Agent <30029041+madhura68@users.noreply.github.com> Date: Sat, 9 May 2026 20:47:51 +0200 Subject: [PATCH] refactor(PBI-49): migrate 17 shared/ components to debugProps helper Replace hardcoded data-debug-id + data-debug-label attribute pairs with {...debugProps(id, component, file)} spread in all 17 components/shared/ files. Existing debug-ids preserved unchanged. --- components/shared/activate-product-button.tsx | 3 ++- components/shared/alert-toast.tsx | 3 ++- components/shared/app-icon.tsx | 5 +++-- components/shared/code-badge.tsx | 4 ++-- components/shared/demo-tooltip.tsx | 5 +++-- components/shared/min-width-banner.tsx | 5 +++-- components/shared/nav-bar.tsx | 4 ++-- components/shared/notifications-bell.tsx | 3 ++- components/shared/panel-nav-bar.tsx | 4 ++-- components/shared/pbi-status-select.tsx | 3 ++- components/shared/priority-select.tsx | 3 ++- components/shared/set-current-product.tsx | 3 ++- components/shared/sprint-switcher.tsx | 5 +++-- components/shared/status-bar.tsx | 4 ++-- components/shared/story-log.tsx | 8 ++++---- components/shared/user-avatar.tsx | 3 ++- components/shared/user-menu.tsx | 3 ++- 17 files changed, 40 insertions(+), 28 deletions(-) diff --git a/components/shared/activate-product-button.tsx b/components/shared/activate-product-button.tsx index c64da62..c8ab186 100644 --- a/components/shared/activate-product-button.tsx +++ b/components/shared/activate-product-button.tsx @@ -5,6 +5,7 @@ import { useTransition } from 'react' import { toast } from 'sonner' import { DemoTooltip } from '@/components/shared/demo-tooltip' import { setActiveProductAction } from '@/actions/active-product' +import { debugProps } from '@/lib/debug' interface Props { productId: string @@ -28,7 +29,7 @@ export function ActivateProductButton({ productId, isDemo, redirectTo, label = ' } return ( - +