Bump to v0.8.0 — polish, portability, discovery

Profile banner polish (hero height, click-to-lightbox, avatar overlap),
data export (bookmarks/follows/relays as JSON), relay recommendations
(discover from follows' NIP-65 lists), reading list tracking (read/unread
on bookmarked articles with sidebar badge), trending hashtags (clickable
pills on search idle screen). Updated CLAUDE.md and release notes.
This commit is contained in:
Jure
2026-03-19 19:54:14 +01:00
parent d257075023
commit d993ae1131
16 changed files with 390 additions and 23 deletions

View File

@@ -75,6 +75,8 @@ export function ArticleView() {
const naddr = pendingArticleNaddr ?? "";
const { markArticleRead } = useBookmarkStore();
useEffect(() => {
if (!naddr) { setLoading(false); return; }
// Use cached event if available (from ArticleCard click), skip relay fetch
@@ -96,6 +98,15 @@ export function ArticleView() {
.finally(() => setLoading(false));
}, [naddr]);
// Auto-mark article as read when opened
useEffect(() => {
if (!event) return;
const dTag = event.tags.find((t) => t[0] === "d")?.[1];
if (dTag) {
markArticleRead(`30023:${event.pubkey}:${dTag}`);
}
}, [event]);
const title = event ? getTag(event, "title") : "";
const summary = event ? getTag(event, "summary") : "";
const image = event ? getTag(event, "image") : "";