supermemory/apps
vimzh 3fe7eb83d1 fix(tweet-preview): shape-check, fallback UI, memoize, and warn on bad data
Copilot review flagged three things:

1. Casting an arbitrary parsed object to Tweet without validating shape
   can still crash inside enrichTweet. Added an isTweetLike type guard
   that requires the 'user' field, which both CustomTweetHeader and the
   downstream enrichTweet expect.
2. Returning null on bad data silently hid the failure. Now render a
   small 'Tweet preview unavailable' fallback (matching the style of
   the existing fallback in document-modal/content/tweet.tsx) and emit
   a console.warn so failures show up during debugging.
3. JSON.parse was running on every render. Wrapped in useMemo keyed by
   the data prop so reparsing only happens when the input changes.
2026-05-24 12:44:28 +05:30
..
browser-extension feat: add codex and revamp plugins page (#931) 2026-05-11 23:13:08 +00:00
docs docs: align vibe-coding prompt + install guide with canonical API (#976) 2026-05-19 15:27:20 -07:00
mcp Update chat empty state and Auto space mode (#954) 2026-05-16 23:55:34 -07:00
memory-graph-playground use portless 2026-05-06 22:42:34 -07:00
raycast-extension feat: mobile responsive, lint formats, toast, render issue fix (#688) 2026-01-21 03:11:53 +00:00
web fix(tweet-preview): shape-check, fallback UI, memoize, and warn on bad data 2026-05-24 12:44:28 +05:30