mirror of
https://github.com/hoornet/vega.git
synced 2026-05-07 20:59:12 -07:00
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:
@@ -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") : "";
|
||||
|
||||
Reference in New Issue
Block a user