From ebac8e5827796f17187c5af73b93e8ba545d58a8 Mon Sep 17 00:00:00 2001
From: Scrum4Me Agent <30029041+madhura68@users.noreply.github.com>
Date: Sat, 9 May 2026 21:10:27 +0200
Subject: [PATCH] feat(PBI-49): add debugProps to products/ + settings/ +
notifications/ components
---
components/notifications/answer-modal.tsx | 2 ++
.../notifications/notifications-sheet.tsx | 3 ++-
components/notifications/push-toggle.tsx | 9 ++++---
.../products/archive-product-button.tsx | 4 ++-
components/products/auto-pr-toggle.tsx | 3 ++-
components/products/edit-product-button.tsx | 5 ++--
components/products/pr-strategy-select.tsx | 3 ++-
components/products/product-form.tsx | 3 ++-
components/products/team-manager.tsx | 3 ++-
components/settings/leave-product-button.tsx | 27 ++++++++++---------
components/settings/min-quota-editor.tsx | 3 ++-
components/settings/profile-editor.tsx | 3 ++-
components/settings/role-manager.tsx | 3 ++-
components/settings/token-manager.tsx | 3 ++-
14 files changed, 46 insertions(+), 28 deletions(-)
diff --git a/components/notifications/answer-modal.tsx b/components/notifications/answer-modal.tsx
index bd6ffec..553b69f 100644
--- a/components/notifications/answer-modal.tsx
+++ b/components/notifications/answer-modal.tsx
@@ -34,6 +34,7 @@ import {
import { ANSWER_MAX_CHARS } from '@/lib/schemas/question-answer'
import { answerQuestion } from '@/actions/questions'
import { useNotificationsStore, type NotificationQuestion } from '@/stores/notifications-store'
+import { debugProps } from '@/lib/debug'
interface AnswerModalProps {
question: NotificationQuestion | null
@@ -82,6 +83,7 @@ export function AnswerModal({ question, isDemo, onClose }: AnswerModalProps) {
showCloseButton={false}
onKeyDown={handleKeyDown}
className={entityDialogContentClasses}
+ {...debugProps('answer-modal', 'AnswerModal', 'components/notifications/answer-modal.tsx')}
>
diff --git a/components/notifications/notifications-sheet.tsx b/components/notifications/notifications-sheet.tsx
index a161eb2..cef7acb 100644
--- a/components/notifications/notifications-sheet.tsx
+++ b/components/notifications/notifications-sheet.tsx
@@ -20,6 +20,7 @@ import { AnswerModal } from './answer-modal'
import { PushToggle } from './push-toggle'
import { cn } from '@/lib/utils'
import type { NotificationQuestion } from '@/stores/notifications-store'
+import { debugProps } from '@/lib/debug'
interface NotificationsSheetProps {
trigger: React.ReactNode
@@ -40,7 +41,7 @@ export function NotificationsSheet({
<>
-
+
Vragen van Claude ({questions.length})
diff --git a/components/notifications/push-toggle.tsx b/components/notifications/push-toggle.tsx
index 0351335..c4945a1 100644
--- a/components/notifications/push-toggle.tsx
+++ b/components/notifications/push-toggle.tsx
@@ -10,6 +10,7 @@ import {
subscribeToPush,
unsubscribeFromPush,
} from '@/lib/push-client'
+import { debugProps } from '@/lib/debug'
type PushStatus =
| 'loading'
@@ -85,7 +86,7 @@ export function PushToggle({ vapidPublicKey }: PushToggleProps) {
if (status === 'ios-needs-install') {
return (
-
+
Op iPhone/iPad: tik op het delen-icoon en kies{' '}
Zet op beginscherm. Daarna kun je notificaties activeren.
@@ -94,7 +95,7 @@ export function PushToggle({ vapidPublicKey }: PushToggleProps) {
if (status === 'denied') {
return (
-
+
Notificaties zijn geblokkeerd. Schakel ze in via je browser-instellingen.
)
@@ -102,14 +103,14 @@ export function PushToggle({ vapidPublicKey }: PushToggleProps) {
if (status === 'unsubscribed') {
return (
-