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

@ -2,6 +2,7 @@
import { Select, SelectContent, SelectItem, SelectTrigger } from '@/components/ui/select'
import { cn } from '@/lib/utils'
import { debugProps } from '@/lib/debug'
export const PRIORITY_LABELS: Record<number, string> = {
1: 'Kritiek',
@ -25,7 +26,7 @@ interface PrioritySelectProps {
export function PrioritySelect({ value, onChange, className }: PrioritySelectProps) {
return (
<span data-debug-id="priority-select" data-debug-label="PrioritySelect — shared/priority-select.tsx">
<span {...debugProps('priority-select', 'PrioritySelect', 'shared/priority-select.tsx')}>
<Select
value={String(value)}
onValueChange={(v) => { if (v) onChange(parseInt(v)) }}