mirror of
https://github.com/hoornet/vega.git
synced 2026-05-07 20:59:12 -07:00
Grouped emoji reactions, npub search, notification fix, dev logger
- Emoji reactions now display as grouped pills (❤️5 🤙3 🔥2) instead of a single aggregated count. Multi-reaction per note supported. - Throttled reaction fetch queue (max 4 concurrent) prevents relay overload. - Searching a bare npub/nprofile navigates directly to that profile. - Notification poller waits for relay connection before first fetch, fixing empty results on startup. - Dev-only debug logger (src/lib/debug.ts) — silent in production builds.
This commit is contained in:
8
src/lib/debug.ts
Normal file
8
src/lib/debug.ts
Normal file
@@ -0,0 +1,8 @@
|
||||
/** Dev-only logger — all output is stripped in production builds. */
|
||||
const isDev = import.meta.env.DEV;
|
||||
|
||||
export const debug = {
|
||||
log: (...args: unknown[]) => { if (isDev) console.log("[Wrystr]", ...args); },
|
||||
warn: (...args: unknown[]) => { if (isDev) console.warn("[Wrystr]", ...args); },
|
||||
error: (...args: unknown[]) => { if (isDev) console.error("[Wrystr]", ...args); },
|
||||
};
|
||||
Reference in New Issue
Block a user