From 68a2439b7254258ad73887bdb302785f0d3a3fae Mon Sep 17 00:00:00 2001 From: Scrum4Me Agent <30029041+madhura68@users.noreply.github.com> Date: Sat, 9 May 2026 22:35:56 +0200 Subject: [PATCH] feat(PBI-49): add BEM sub-element data-debug-id to admin, auth, dialogs, entity-dialog, mobile, split-pane --- components/admin/jobs-table.tsx | 8 ++++---- components/admin/products-table.tsx | 6 +++--- components/admin/users-table.tsx | 6 +++--- components/auth/auth-form.tsx | 7 +++++-- components/dialogs/product-dialog.tsx | 3 ++- components/entity-dialog/dirty-close-guard.tsx | 6 ++++-- components/mobile/landscape-guard.tsx | 2 +- components/mobile/mobile-tab-bar.tsx | 1 + components/split-pane/split-pane.tsx | 2 ++ 9 files changed, 25 insertions(+), 16 deletions(-) diff --git a/components/admin/jobs-table.tsx b/components/admin/jobs-table.tsx index 2d7e7d3..a236bed 100644 --- a/components/admin/jobs-table.tsx +++ b/components/admin/jobs-table.tsx @@ -101,7 +101,7 @@ function JobRow({ job }: { job: Job }) { function StatusTable({ jobs }: { jobs: Job[] }) { return ( - +
ID @@ -172,7 +172,7 @@ function CostRow({ job }: { job: Job }) { function CostsTable({ jobs }: { jobs: Job[] }) { return ( -
+
ID @@ -204,8 +204,8 @@ export function JobsTable({ jobs }: { jobs: Job[] }) { const [view, setView] = useState<'status' | 'costs'>('status') return ( -
-
+
+
+ Naam Eigenaar @@ -91,7 +91,7 @@ export function ProductsTable({ products }: { products: Product[] }) { Acties - + {products.length === 0 && ( diff --git a/components/admin/users-table.tsx b/components/admin/users-table.tsx index 7c96c0b..32161c5 100644 --- a/components/admin/users-table.tsx +++ b/components/admin/users-table.tsx @@ -191,8 +191,8 @@ export function UsersTable({ currentUserId: string }) { return ( -
- +
+ Gebruiker Email @@ -202,7 +202,7 @@ export function UsersTable({ Acties - + {users.map(user => ( {user.username} diff --git a/components/auth/auth-form.tsx b/components/auth/auth-form.tsx index 6ec179b..4879c57 100644 --- a/components/auth/auth-form.tsx +++ b/components/auth/auth-form.tsx @@ -4,13 +4,14 @@ import { useActionState } from 'react' import { useFormStatus } from 'react-dom' import { Button } from '@/components/ui/button' import { Input } from '@/components/ui/input' +import { debugProps } from '@/lib/debug' type ActionResult = { error: string | Record } | undefined function SubmitButton({ label }: { label: string }) { const { pending } = useFormStatus() return ( - ) @@ -34,7 +35,7 @@ export function AuthForm({ action, submitLabel }: AuthFormProps) { const errorMessage = getErrorMessage(state) return ( -
+
@@ -64,6 +66,7 @@ export function AuthForm({ action, submitLabel }: AuthFormProps) { minLength={8} placeholder="••••••••" className="bg-input-background border-border focus-visible:ring-primary" + data-debug-id="auth-form__password" /> diff --git a/components/dialogs/product-dialog.tsx b/components/dialogs/product-dialog.tsx index 937627a..20eeaea 100644 --- a/components/dialogs/product-dialog.tsx +++ b/components/dialogs/product-dialog.tsx @@ -172,6 +172,7 @@ export function ProductDialog(props: Props) { id="product-form" onSubmit={form.handleSubmit(onSubmit)} className={entityDialogBodyClasses} + data-debug-id="product-dialog__content" >
)} diff --git a/components/mobile/mobile-tab-bar.tsx b/components/mobile/mobile-tab-bar.tsx index daf3af4..b29fb36 100644 --- a/components/mobile/mobile-tab-bar.tsx +++ b/components/mobile/mobile-tab-bar.tsx @@ -54,6 +54,7 @@ export function MobileTabBar({ activeProductId }: MobileTabBarProps) { href={tab.href} aria-label={tab.label} aria-current={active ? 'page' : undefined} + data-debug-id={`mobile-tab-bar__tab-${tab.label.toLowerCase()}`} className={cn( 'flex-1 h-14 flex items-center justify-center transition-colors', active diff --git a/components/split-pane/split-pane.tsx b/components/split-pane/split-pane.tsx index 1b2434b..52d1710 100644 --- a/components/split-pane/split-pane.tsx +++ b/components/split-pane/split-pane.tsx @@ -163,6 +163,7 @@ export function SplitPane({ {i > 0 && (
setDragging(i - 1)} className={cn( 'w-1 shrink-0 bg-border hover:bg-primary transition-colors cursor-col-resize', @@ -173,6 +174,7 @@ export function SplitPane({
{pane}