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.
This commit is contained in:
Scrum4Me Agent 2026-05-09 20:47:51 +02:00
parent a7cc48a230
commit f555cb547b
17 changed files with 40 additions and 28 deletions

View file

@ -1,4 +1,5 @@
import { cn } from '@/lib/utils'
import { debugProps } from '@/lib/debug'
interface CodeBadgeProps {
code: string | null | undefined
@ -9,8 +10,7 @@ export function CodeBadge({ code, className }: CodeBadgeProps) {
if (!code) return null
return (
<span
data-debug-id="code-badge"
data-debug-label="CodeBadge — shared/code-badge.tsx"
{...debugProps('code-badge', 'CodeBadge', 'shared/code-badge.tsx')}
className={cn(
'inline-flex items-center rounded-md border border-border bg-surface-container px-1.5 py-0.5 font-mono text-[11px] leading-none text-muted-foreground',
className,