diff --git a/AGENTS.md b/AGENTS.md
index bf0d117..317838f 100644
--- a/AGENTS.md
+++ b/AGENTS.md
@@ -19,7 +19,7 @@ This project is a Nostr client application built with React 18.x, TailwindCSS 3.
- `/src/components/`: UI components including NostrProvider for Nostr integration
- `/src/components/ui/`: shadcn/ui components (48+ components available)
- `/src/components/auth/`: Authentication-related components (LoginArea, LoginDialog, etc.)
- - Zap components: `ZapButton`, `ZapDialog`, `WalletModal` for Lightning payments
+ - Zap components: `ZapButton` (unified component with Cashu integration), `LightningWalletModal` for Lightning fallback management
- `/src/hooks/`: Custom hooks including:
- `useNostr`: Core Nostr protocol integration
- `useAuthor`: Fetch user profile data by pubkey
@@ -33,8 +33,10 @@ This project is a Nostr client application built with React 18.x, TailwindCSS 3.
- `useLoggedInAccounts`: Manage multiple accounts
- `useLoginActions`: Authentication actions
- `useIsMobile`: Responsive design helper
- - `useZaps`: Lightning zap functionality with payment processing
- - `useWallet`: Unified wallet detection (WebLN + NWC)
+ - `useZaps`: Lightning zap functionality with Cashu integration and payment processing
+ - `useCashu`: Cashu wallet management (balances, mints, melt quotes)
+ - `useLightningAddress`: Lightning address validation and LNURL endpoint discovery
+ - `useWallet`: Unified wallet detection (Cashu + WebLN + NWC) with intelligent payment method selection
- `useNWC`: Nostr Wallet Connect connection management
- `useNWCContext`: Access NWC context provider
- `useShakespeare`: AI chat completions with Shakespeare AI API
@@ -109,6 +111,8 @@ The project includes a **`docs/`** directory containing specialized documentatio
- **`docs/NOSTR_INFINITE_SCROLL.md`**: Read when building feed interfaces, implementing pagination for Nostr events, or creating social media-style infinite scroll experiences.
+- **`docs/CASHU_ZAP_INTEGRATION.md`**: Read when implementing zap functionality, integrating Cashu wallet payments, or building Lightning payment features. Essential for understanding the unified ZapButton architecture and Cashu-powered Lightning zaps.
+
## System Prompt Management
The AI assistant's behavior and knowledge is defined by the AGENTS.md file, which serves as the system prompt. To modify the assistant's instructions or add new project-specific guidelines:
@@ -970,6 +974,39 @@ When users specify color schemes:
- Implement responsive design with Tailwind breakpoints
- Add hover and focus states for interactive elements
+### Dialog Component Patterns
+
+When using Dialog components, always ensure accessibility compliance by including required elements:
+
+```tsx
+import { Dialog, DialogContent, DialogHeader, DialogTitle, DialogDescription } from "@/components/ui/dialog";
+
+// ✅ Correct - Always include DialogHeader with DialogTitle
+
+```
+
+**Important**: Even if you want to hide the title visually, use the `VisuallyHidden` component to maintain accessibility:
+
+```tsx
+import { VisuallyHidden } from "@radix-ui/react-visually-hidden";
+
+
{event.content}
+{event.content}
+Cashu Wallet
++ {isCashuInitialized + ? `${cashuBalance.toLocaleString()} sats available` + : "Instant Bitcoin payments" + } +
+- Install a WebLN extension or connect a NWC wallet for zaps. + Set up your Cashu wallet for instant payments, or install a WebLN extension/connect NWC wallet for Lightning fallback.