diff --git a/src/App.tsx b/src/App.tsx index 8bb897e..b12b711 100644 --- a/src/App.tsx +++ b/src/App.tsx @@ -50,7 +50,7 @@ function UpdateBanner() { > {installing ? "Installing…" : "Update & restart"} - + ); diff --git a/src/components/article/ArticleFeed.tsx b/src/components/article/ArticleFeed.tsx index 88340b4..c5f35ac 100644 --- a/src/components/article/ArticleFeed.tsx +++ b/src/components/article/ArticleFeed.tsx @@ -95,7 +95,7 @@ export function ArticleFeed() { {/* Articles list */}
{loading && ( -
Loading articles...
+
Loading articles…
)} {!loading && articles.length === 0 && ( diff --git a/src/components/dm/DMView.tsx b/src/components/dm/DMView.tsx index 07a6707..94c9289 100644 --- a/src/components/dm/DMView.tsx +++ b/src/components/dm/DMView.tsx @@ -6,6 +6,7 @@ import { useNotificationsStore } from "../../stores/notifications"; import { fetchDMConversations, fetchDMThread, sendDM, decryptDM, getNDK } from "../../lib/nostr"; import { useProfile } from "../../hooks/useProfile"; import { timeAgo, shortenPubkey, profileName } from "../../lib/utils"; +import { debug } from "../../lib/debug"; // ── Helpers ────────────────────────────────────────────────────────────────── @@ -141,7 +142,7 @@ function ThreadPanel({ setMessages([]); fetchDMThread(myPubkey, partnerPubkey) .then(setMessages) - .catch((err) => console.error("Failed to fetch DM thread:", err)) + .catch((err) => debug.error("Failed to fetch DM thread:", err)) .finally(() => setLoading(false)); }, [partnerPubkey, myPubkey]); @@ -155,17 +156,17 @@ function ThreadPanel({ setSending(true); setSendError(null); try { - console.log("[DM-UI] sending to", partnerPubkey.slice(0, 8)); + debug.log("[DM-UI] sending to", partnerPubkey.slice(0, 8)); await sendDM(partnerPubkey, content); - console.log("[DM-UI] send completed, re-fetching thread..."); + debug.log("[DM-UI] send completed, re-fetching thread"); setText(""); // Re-fetch thread to include the sent message const updated = await fetchDMThread(myPubkey, partnerPubkey); - console.log("[DM-UI] re-fetch got", updated.length, "messages"); + debug.log("[DM-UI] re-fetch got", updated.length, "messages"); setMessages(updated); textareaRef.current?.focus(); } catch (err) { - console.error("[DM-UI] send failed:", err); + debug.error("[DM-UI] send failed:", err); setSendError(String(err)); } finally { setSending(false); @@ -321,7 +322,7 @@ export function DMView() { })); useNotificationsStore.getState().computeDMUnread(convList); }) - .catch((err) => console.error("Failed to fetch DM conversations:", err)) + .catch((err) => debug.error("Failed to fetch DM conversations:", err)) .finally(() => setLoading(false)); }, [pubkey, hasSigner]); diff --git a/src/components/feed/MediaCards.tsx b/src/components/feed/MediaCards.tsx index abdaf1a..d89a746 100644 --- a/src/components/feed/MediaCards.tsx +++ b/src/components/feed/MediaCards.tsx @@ -103,8 +103,8 @@ export function VimeoCard({ seg }: { seg: ContentSegment }) { rel="noopener noreferrer" className="mt-2 flex items-center gap-3 rounded-sm bg-bg-raised border border-border p-3 hover:bg-bg-hover transition-colors cursor-pointer" > -
- +
+
Vimeo
@@ -141,8 +141,8 @@ export function TidalCard({ seg }: { seg: ContentSegment }) { rel="noopener noreferrer" className="mt-2 flex items-center gap-3 rounded-sm bg-bg-raised border border-border p-3 hover:bg-bg-hover transition-colors cursor-pointer" > -
- T +
+ T
Tidal · {seg.mediaType}
diff --git a/src/components/feed/NoteContent.tsx b/src/components/feed/NoteContent.tsx index f9fb1eb..137f217 100644 --- a/src/components/feed/NoteContent.tsx +++ b/src/components/feed/NoteContent.tsx @@ -101,7 +101,7 @@ function ImageGrid({ images, onImageClick }: { images: string[]; onImageClick: ( className="absolute inset-0 bg-black/50 flex items-center justify-center rounded-sm cursor-zoom-in" onClick={(e) => { e.stopPropagation(); onImageClick(idx); }} > - +{extraCount} + +{extraCount}
)}
diff --git a/src/components/podcast/PodcastsView.tsx b/src/components/podcast/PodcastsView.tsx index c9bb516..57e8565 100644 --- a/src/components/podcast/PodcastsView.tsx +++ b/src/components/podcast/PodcastsView.tsx @@ -116,7 +116,7 @@ export function PodcastsView() {
) ) : loading ? ( -
Loading...
+
Loading…
) : displayShows.length === 0 ? (
{tab === "search" ? "No results. Try a different search." : "No trending podcasts found."}