From ce38dad70447d31751c7e8e281bbde7b8eaffc87 Mon Sep 17 00:00:00 2001 From: Claude Date: Sun, 4 Jan 2026 21:35:11 +0000 Subject: [PATCH] fix: correct AddressPointer import and apply prettier formatting - Change AddressPointer import from applesauce-core/helpers to nostr-tools/nip19 to match codebase conventions - Auto-fix prettier formatting for nip89 files --- .../ApplicationHandlerDetailRenderer.tsx | 13 +++++++----- .../HandlerRecommendationDetailRenderer.tsx | 21 ++++++++----------- src/lib/nip89-helpers.test.ts | 6 ++---- src/lib/nip89-helpers.ts | 10 ++++----- 4 files changed, 23 insertions(+), 27 deletions(-) diff --git a/src/components/nostr/kinds/ApplicationHandlerDetailRenderer.tsx b/src/components/nostr/kinds/ApplicationHandlerDetailRenderer.tsx index 9cc6ca5..65009a7 100644 --- a/src/components/nostr/kinds/ApplicationHandlerDetailRenderer.tsx +++ b/src/components/nostr/kinds/ApplicationHandlerDetailRenderer.tsx @@ -11,7 +11,13 @@ import { KindBadge } from "@/components/KindBadge"; import { Badge } from "@/components/ui/badge"; import { useCopy } from "@/hooks/useCopy"; import { UserName } from "../UserName"; -import { Copy, CopyCheck, Globe, Smartphone, TabletSmartphone } from "lucide-react"; +import { + Copy, + CopyCheck, + Globe, + Smartphone, + TabletSmartphone, +} from "lucide-react"; import { CopyableJsonViewer } from "@/components/JsonViewer"; import { useMemo } from "react"; @@ -200,10 +206,7 @@ export function ApplicationHandlerDetailRenderer({ Event ID:{" "} {event.id} -
- Created:{" "} - {new Date(event.created_at * 1000).toLocaleString()} -
+
Created: {new Date(event.created_at * 1000).toLocaleString()}
); diff --git a/src/components/nostr/kinds/HandlerRecommendationDetailRenderer.tsx b/src/components/nostr/kinds/HandlerRecommendationDetailRenderer.tsx index c9a3645..be48c30 100644 --- a/src/components/nostr/kinds/HandlerRecommendationDetailRenderer.tsx +++ b/src/components/nostr/kinds/HandlerRecommendationDetailRenderer.tsx @@ -14,12 +14,7 @@ import { Badge } from "@/components/ui/badge"; import { useNostrEvent } from "@/hooks/useNostrEvent"; import { useGrimoire } from "@/core/state"; import { UserName } from "../UserName"; -import { - Globe, - Smartphone, - TabletSmartphone, - Package, -} from "lucide-react"; +import { Globe, Smartphone, TabletSmartphone, Package } from "lucide-react"; import { useState } from "react"; interface HandlerRecommendationDetailRendererProps { @@ -104,7 +99,8 @@ function HandlerCard({ {supportedKinds.length > 0 && (

- Handles {supportedKinds.length} kind{supportedKinds.length > 1 ? "s" : ""} + Handles {supportedKinds.length} kind + {supportedKinds.length > 1 ? "s" : ""}

{supportedKinds.slice(0, 10).map((kind) => ( @@ -151,13 +147,14 @@ function HandlerCard({
{platform && (
- Recommended for: {platform} + Recommended for:{" "} + + {platform} +
)} {relayHint && ( -
- Relay hint: {relayHint} -
+
Relay hint: {relayHint}
)}
)} @@ -227,7 +224,7 @@ export function HandlerRecommendationDetailRenderer({ {platforms.map((platform) => { const count = allHandlers.filter( - (h) => h.platform === platform + (h) => h.platform === platform, ).length; return (