mirror of
https://github.com/hoornet/vega.git
synced 2026-06-30 14:08:34 -07:00
Bump version to v0.1.8 — Windows playtest fixes
- Fix switchAccount: check signer was set after loginWithNsec before returning; fall back to loginWithPubkey on silent failure; always navigate to feed after switch to clear stale UI - Fix profile edit button: hidden in read-only (npub) mode; read-only badge shown in profile header to make state visible - Sidebar: show version number (v0.1.8) below WRYSTR brand, auto-tracked from package.json — no more hardcoding - Support page: increase QR code gap (gap-8 → gap-16) to prevent accidentally scanning the wrong address - ROADMAP: add language/alphabet feed filter to Phase 3 backlog Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -4,7 +4,7 @@ import { useUIStore } from "../../stores/ui";
|
||||
import { useUserStore } from "../../stores/user";
|
||||
import { useMuteStore } from "../../stores/mute";
|
||||
import { useProfile, invalidateProfileCache } from "../../hooks/useProfile";
|
||||
import { fetchUserNotes, publishProfile } from "../../lib/nostr";
|
||||
import { fetchUserNotes, publishProfile, getNDK } from "../../lib/nostr";
|
||||
import { shortenPubkey } from "../../lib/utils";
|
||||
import { uploadImage } from "../../lib/upload";
|
||||
import { NoteCard } from "../feed/NoteCard";
|
||||
@@ -272,8 +272,13 @@ export function ProfileView() {
|
||||
← {editing ? "cancel" : "back"}
|
||||
</button>
|
||||
<h1 className="text-text text-sm font-medium">{isOwn ? "Your Profile" : "Profile"}</h1>
|
||||
{isOwn && !getNDK().signer && (
|
||||
<span className="text-text-dim text-[10px] border border-border px-2 py-0.5">
|
||||
read-only
|
||||
</span>
|
||||
)}
|
||||
</div>
|
||||
{isOwn && !editing && (
|
||||
{isOwn && !editing && !!getNDK().signer && (
|
||||
<button
|
||||
onClick={() => setEditing(true)}
|
||||
className="text-[11px] px-3 py-1 border border-border text-text-muted hover:text-accent hover:border-accent/40 transition-colors"
|
||||
|
||||
Reference in New Issue
Block a user