feat(notification): rich notification content with shared format helpers (#245)

* loop: notification-format completed after 2 iterations

* refactor: deduplicate permission display logic into shared package
This commit is contained in:
Chris Scott authored and GitHub committed 2026-05-31 13:07:04 -04:00
1 parent dbd6866682
commit 626a4c42d1
8 files changed
+313 -140

No files matched your search

@@ -1,5 +1,6 @@
import { BottomSheet, BottomSheetHeader, BottomSheetContent } from '@/components/ui/bottom-sheet'
import { usePermissions, useQuestions } from '@/contexts/EventContext'
import { getQuestionText } from '@opencode-manager/shared/notifications'
import { Bell, HelpCircle } from 'lucide-react'
interface NotificationsSheetProps {
@@ -87,7 +88,7 @@ export function NotificationsSheet({ isOpen, onClose }: NotificationsSheetProps)
className="flex flex-col items-start gap-1 p-3 rounded-lg border border-border hover:bg-accent transition-colors text-left w-full"
>
<span className="font-medium text-foreground">
{currentQuestion.questions?.[0]?.question || 'Question'}
{getQuestionText(currentQuestion) || 'Question'}
</span>
<span className="text-xs text-muted-foreground truncate w-full">
Tap to view