diff --git a/components/shared/notifications-bell.tsx b/components/shared/notifications-bell.tsx
index dcdd811..d126811 100644
--- a/components/shared/notifications-bell.tsx
+++ b/components/shared/notifications-bell.tsx
@@ -27,6 +27,7 @@ export function NotificationsBell({ currentUserId, isDemo }: NotificationsBellPr
)
return (
+
)
}
diff --git a/components/shared/panel-nav-bar.tsx b/components/shared/panel-nav-bar.tsx
index 41999f4..63b151f 100644
--- a/components/shared/panel-nav-bar.tsx
+++ b/components/shared/panel-nav-bar.tsx
@@ -8,7 +8,11 @@ interface PanelNavBarProps {
export function PanelNavBar({ title, actions, className }: PanelNavBarProps) {
return (
-
+
{title}
{actions &&
{actions}
}
diff --git a/components/shared/pbi-status-select.tsx b/components/shared/pbi-status-select.tsx
index 9730ef2..60912a9 100644
--- a/components/shared/pbi-status-select.tsx
+++ b/components/shared/pbi-status-select.tsx
@@ -26,6 +26,7 @@ interface PbiStatusSelectProps {
export function PbiStatusSelect({ value, onChange, className }: PbiStatusSelectProps) {
return (
+
+
)
}
diff --git a/components/shared/priority-select.tsx b/components/shared/priority-select.tsx
index a66e66c..e0f5561 100644
--- a/components/shared/priority-select.tsx
+++ b/components/shared/priority-select.tsx
@@ -25,6 +25,7 @@ interface PrioritySelectProps {
export function PrioritySelect({ value, onChange, className }: PrioritySelectProps) {
return (
+
+
)
}
diff --git a/components/shared/set-current-product.tsx b/components/shared/set-current-product.tsx
index c535eb6..6d173d2 100644
--- a/components/shared/set-current-product.tsx
+++ b/components/shared/set-current-product.tsx
@@ -11,5 +11,5 @@ export function SetCurrentProduct({ id, name }: { id: string; name: string }) {
return () => clearCurrentProduct()
}, [id, name, setCurrentProduct, clearCurrentProduct])
- return null
+ return
}
diff --git a/components/shared/sprint-switcher.tsx b/components/shared/sprint-switcher.tsx
index 28edcd6..bede739 100644
--- a/components/shared/sprint-switcher.tsx
+++ b/components/shared/sprint-switcher.tsx
@@ -68,21 +68,24 @@ export function SprintSwitcher({
if (sprints.length === 0) {
return (
-
-
-
- Geen sprints
-
- Maak een sprint aan vanuit de Product Backlog
-
-
+
+
+
+
+ Geen sprints
+
+ Maak een sprint aan vanuit de Product Backlog
+
+
+
)
}
return (
+
+
)
}
diff --git a/components/shared/status-bar-debug-toggle.tsx b/components/shared/status-bar-debug-toggle.tsx
new file mode 100644
index 0000000..e1af527
--- /dev/null
+++ b/components/shared/status-bar-debug-toggle.tsx
@@ -0,0 +1,31 @@
+'use client'
+
+import { useEffect } from 'react'
+import { useDebugStore } from '@/stores/debug-store'
+
+export function DebugToggle() {
+ const { debugMode, _hydrated, hydrate, toggleDebugMode } = useDebugStore()
+
+ useEffect(() => {
+ hydrate(localStorage.getItem('scrum4me:debug-mode') === 'true')
+ }, [hydrate])
+
+ useEffect(() => {
+ if (!_hydrated) return
+ localStorage.setItem('scrum4me:debug-mode', String(debugMode))
+ document.body.classList.toggle('debug-mode', debugMode)
+ }, [debugMode, _hydrated])
+
+ return (
+
+ )
+}
diff --git a/components/shared/status-bar.tsx b/components/shared/status-bar.tsx
index 96320a3..d426ff2 100644
--- a/components/shared/status-bar.tsx
+++ b/components/shared/status-bar.tsx
@@ -1,3 +1,7 @@
+'use client'
+
+import { DebugToggle } from './status-bar-debug-toggle'
+
const buildDate = process.env.NEXT_PUBLIC_BUILD_DATE
? new Date(process.env.NEXT_PUBLIC_BUILD_DATE).toLocaleDateString('nl-NL', {
day: 'numeric',
@@ -7,12 +11,17 @@ const buildDate = process.env.NEXT_PUBLIC_BUILD_DATE
: '—'
const version = process.env.NEXT_PUBLIC_APP_VERSION ?? '0.0.0'
+const isDev = process.env.NODE_ENV !== 'production'
export function StatusBar() {
return (
-