diff --git a/.changeset/clean-moons-arrive.md b/.changeset/clean-moons-arrive.md new file mode 100644 index 000000000..66ec674a2 --- /dev/null +++ b/.changeset/clean-moons-arrive.md @@ -0,0 +1,5 @@ +--- +"nostrudel": minor +--- + +Show users joined communities on about page diff --git a/src/app.tsx b/src/app.tsx index 88c6e862a..49187099e 100644 --- a/src/app.tsx +++ b/src/app.tsx @@ -69,6 +69,7 @@ import RelaysView from "./views/relays"; import RelayView from "./views/relays/relay"; import RelayReviewsView from "./views/relays/reviews"; import PopularRelaysView from "./views/relays/popular"; +import UserDMsTab from "./views/user/dms"; const UserTracksTab = lazy(() => import("./views/user/tracks")); const ToolsHomeView = lazy(() => import("./views/tools")); @@ -200,6 +201,7 @@ const router = createHashRouter([ { path: "relays", element: }, { path: "reports", element: }, { path: "muted-by", element: }, + { path: "dms", element: }, ], }, { diff --git a/src/components/debug-modals/note-debug-modal.tsx b/src/components/debug-modals/note-debug-modal.tsx index 72a27fff3..d64dfcf87 100644 --- a/src/components/debug-modals/note-debug-modal.tsx +++ b/src/components/debug-modals/note-debug-modal.tsx @@ -10,7 +10,7 @@ import RawPre from "./raw-pre"; export default function NoteDebugModal({ event, ...props }: { event: NostrEvent } & Omit) { return ( - + diff --git a/src/components/embed-event/event-types/embedded-unknown.tsx b/src/components/embed-event/event-types/embedded-unknown.tsx index 2cc8a009f..5c3b4a464 100644 --- a/src/components/embed-event/event-types/embedded-unknown.tsx +++ b/src/components/embed-event/event-types/embedded-unknown.tsx @@ -1,4 +1,4 @@ -import { Box, Card, CardBody, CardHeader, CardProps, Flex, Link, Text } from "@chakra-ui/react"; +import { Box, Button, Card, CardBody, CardHeader, CardProps, Flex, Link, Text, useDisclosure } from "@chakra-ui/react"; import { getSharableEventAddress } from "../../../helpers/nip19"; import { NostrEvent } from "../../../types/nostr-event"; @@ -11,8 +11,11 @@ import { useMemo } from "react"; import { embedEmoji, embedNostrHashtags, embedNostrLinks, embedNostrMentions } from "../../embed-types"; import { EmbedableContent } from "../../../helpers/embeds"; import Timestamp from "../../timestamp"; +import { CodeIcon } from "../../icons"; +import NoteDebugModal from "../../debug-modals/note-debug-modal"; export default function EmbeddedUnknown({ event, ...props }: Omit & { event: NostrEvent }) { + const debugModal = useDisclosure(); const address = getSharableEventAddress(event); const content = useMemo(() => { @@ -26,24 +29,30 @@ export default function EmbeddedUnknown({ event, ...props }: Omit - - - - - - - - - - - Kind: {event.kind} - - {address && truncatedId(address)} + <> + + + + + + + - - {content} - - + + + + Kind: {event.kind} + + {address && truncatedId(address)} + + + + {content} + + + {debugModal.isOpen && } + ); } diff --git a/src/components/layout/nav-items.tsx b/src/components/layout/nav-items.tsx index a4f4cb57c..ccd4525da 100644 --- a/src/components/layout/nav-items.tsx +++ b/src/components/layout/nav-items.tsx @@ -19,6 +19,7 @@ import { ToolsIcon, LogoutIcon, NotesIcon, + LightningIcon, } from "../icons"; import { useCurrentAccount } from "../../hooks/use-current-account"; import accountService from "../../services/account"; @@ -194,6 +195,9 @@ export default function NavItems() { > Settings + {account && (