5019 Commits

Author SHA1 Message Date
shakespeare.diy 4eeba97a4e Show inline compose box on mobile at top of feed
Co-authored-by: shakespeare.diy <assistant@shakespeare.diy>
2026-02-16 21:15:23 -06:00
shakespeare.diy faf382cdcc Fix zap amount not showing on notes
- Fixed early return using old `zaps` key instead of `zapAmount`
- Added robust amount extraction with 3 fallback strategies:
  1. Top-level `amount` tag on the zap receipt
  2. `amount` tag inside the embedded zap request (description tag)
  3. Parsing the bolt11 invoice string
- This ensures zap amounts display even when relays omit the amount tag

Co-authored-by: shakespeare.diy <assistant@shakespeare.diy>
2026-02-16 17:54:53 -06:00
shakespeare.diy f181f58425 Show total zap amount (sats) instead of zap count on notes
- useEventStats now sums the `amount` tag (millisatoshis) from kind 9735
  zap receipts and returns `zapAmount` in sats instead of a zap count
- NoteCard displays the total with compact formatting (e.g. 1.2K, 3.5M)

Co-authored-by: shakespeare.diy <assistant@shakespeare.diy>
2026-02-16 17:53:22 -06:00
shakespeare.diy 03e563d3a5 Remove bookmark button from NoteCard action bar
Bookmark functionality is still accessible via the More menu dialog.

Co-authored-by: shakespeare.diy <assistant@shakespeare.diy>
2026-02-16 17:52:07 -06:00
shakespeare.diy 858ec3beaa Add post preview to More menu, blur modal backdrops, polish compose modal
- NoteMoreMenu now shows a compact post preview at the top (avatar,
  author name, timestamp, and 3-line-clamped content) before menu items
- Dialog overlay updated globally: bg-black/60 + backdrop-blur-sm for a
  frosted-glass effect behind all modals
- FloatingComposeButton modal reworked to match the same presentation
  pattern: rounded-2xl, hidden default close button replaced with a
  centered header (X / "New post" title), separator, compose area

Co-authored-by: shakespeare.diy <assistant@shakespeare.diy>
2026-02-16 17:50:46 -06:00
shakespeare.diy 6e92ff3468 Add More menu dialog to NoteCard (Ditto-style)
- Created NoteMoreMenu component as a centered dialog with grouped actions:
  - Show Post Details, Copy Link to Post, View on njump.me, Bookmark
  - Mute Conversation, Mention @user
  - Mute @user, Report @user (destructive)
  - Close button
- Added the ⋯ More button back to NoteCard action bar alongside Bookmark
- Menu items show the author's display name dynamically
- Copy Link copies nevent-based URL to clipboard with toast feedback
- Bookmark option in the menu toggles bookmark state via useBookmarks hook

Co-authored-by: shakespeare.diy <assistant@shakespeare.diy>
2026-02-16 17:48:48 -06:00
shakespeare.diy 589a60ec89 Replace "More" with Bookmarks page
- Created useBookmarks hook for NIP-51 kind 10003 bookmark list management
  (query, add, remove bookmarks)
- Created BookmarksPage with login prompt, loading skeletons, and empty state
- Replaced "More" nav item with "Bookmarks" in LeftSidebar
- Added bookmark toggle button to NoteCard action bar (replaces three-dot menu)
- Removed /more route from AppRouter
- Bookmarks are stored per NIP-51 as replaceable kind 10003 events

Co-authored-by: shakespeare.diy <assistant@shakespeare.diy>
2026-02-16 17:46:37 -06:00
shakespeare.diy 9b92141b95 Hide inline compose on mobile, polish FAB compose dialog
- Inline ComposeBox hidden below sidebar breakpoint (mobile uses FAB)
- "New post" dialog: rounded-2xl corners, clean header with title and
  border divider, no padding gap, overflow hidden for crisp edges
- Removed redundant DialogHeader wrapper, title sits in a flex bar

Co-authored-by: shakespeare.diy <assistant@shakespeare.diy>
2026-02-16 17:33:23 -06:00
shakespeare.diy 0f922c79f4 Fix emoji picker z-index (tabs to z-[1]) and center avatar in mobile top bar
- Tabs z-index lowered to z-[1] so the emoji popover portal (z-50)
  always renders above them
- Mobile top bar avatar container uses flex centering instead of
  fixed width, ensuring the profile picture is visually centered
- Logo wrapped in flex-1 centered container for proper horizontal balance

Co-authored-by: shakespeare.diy <assistant@shakespeare.diy>
2026-02-16 17:31:54 -06:00
shakespeare.diy 5a8a9376ad Shrink mobile top bar to h-10 (40px) and fix tab sticky offset
- Header: h-10 fixed height, smaller avatar (size-7), smaller logo (22px),
  tighter padding (px-3) — eliminates the gap/clipping between header
  and sticky tabs
- Tabs sticky offset updated to top-10 (40px) to sit flush under header

Co-authored-by: shakespeare.diy <assistant@shakespeare.diy>
2026-02-16 17:30:01 -06:00
shakespeare.diy f4c8e42343 Fix emoji picker z-index and make Follows/Global tabs sticky under header
- Lowered tabs z-index to z-[5] so the emoji popover (z-50 portal)
  renders above them
- Tabs now stick at top-[48px] on mobile (below the 48px top bar)
  and top-0 on desktop (sidebar: breakpoint), so they remain visible
  when scrolling through the feed

Co-authored-by: shakespeare.diy <assistant@shakespeare.diy>
2026-02-16 17:28:49 -06:00
shakespeare.diy d53ebfe197 Add real emoji picker with categorized grid, search, and cursor insertion
- EmojiPicker component with 9 categories: Smileys, Gestures, People,
  Nature, Food, Activities, Objects, Symbols, Flags
- Category tab bar with emoji icons for quick switching
- Search input filters by category name
- Scrollable grid of emoji buttons (8 columns)
- Click an emoji to insert it at the cursor position in the textarea
- Popover opens from the smiley face button in the compose toolbar
- Button highlights when the picker is open
- No external emoji dependencies — all native Unicode emoji

Co-authored-by: shakespeare.diy <assistant@shakespeare.diy>
2026-02-16 17:27:13 -06:00
shakespeare.diy 926874c0eb Expand compose box on focus with toolbar, char counter, and NIP-36 content warning
- Compact single-line compose expands to multi-line on focus/click
- Toolbar shows: paperclip (file upload via Blossom), emoji, content
  warning triangle (NIP-36 sensitive content toggle)
- Content warning toggle adds `content-warning`, `L`, and `l` tags
  per NIP-36 spec, with optional reason input field
- Circular progress ring shows character usage against 5000 char limit
- Ring turns amber at 90%, red when over limit
- Remaining character count displayed next to ring
- "Post!" button disabled when over limit or empty
- File uploads append URL to content via useUploadFile hook

Co-authored-by: shakespeare.diy <assistant@shakespeare.diy>
2026-02-16 17:24:22 -06:00
shakespeare.diy f4cdf89e60 Show right border on feed only when right sidebar is visible (lg+)
Left border appears at the sidebar breakpoint (900px), right border
only at lg (1024px) when the right sidebar is present. In the middle
view (sidebar visible, right panel hidden), the feed extends to the
edge without a floating right border — matching Ditto's behavior.

Co-authored-by: shakespeare.diy <assistant@shakespeare.diy>
2026-02-16 17:22:05 -06:00
shakespeare.diy e53210ce4d Raise sidebar breakpoint to 900px — no more icon-only strip
The sidebar now either shows fully (280px with labels, search, user
info) or is completely replaced by the mobile UI. The icon-only 72px
strip is eliminated — below 900px the mobile top bar, bottom nav,
drawer, and FAB take over entirely.

Co-authored-by: shakespeare.diy <assistant@shakespeare.diy>
2026-02-16 17:19:16 -06:00
shakespeare.diy 7740c63328 Use custom sidebar breakpoint (688px) for mobile/desktop toggle
The mobile layout now activates the moment the left sidebar would need
to shrink — at 688px (72px sidebar + 600px feed + padding). Added a
custom `sidebar` Tailwind screen breakpoint and replaced all `md:`
references that control the sidebar/mobile toggle with `sidebar:`.

This ensures the bottom nav, top bar, drawer, FAB, and full-width feed
kick in precisely when the sidebar can no longer fit alongside the feed.

Co-authored-by: shakespeare.diy <assistant@shakespeare.diy>
2026-02-16 17:17:37 -06:00
shakespeare.diy be5cb2180f Add responsive mobile layout with bottom nav, drawer menu, and FAB compose
Mobile UI (< md breakpoint):
- MobileTopBar: user avatar (opens drawer) + centered Mew logo
- MobileDrawer: left slide-out sheet with user profile, follower stats,
  menu items (Profile, Wallet, Bookmarks, Mutes, Preferences, Domain blocks,
  Logout), and expandable Switch accounts section
- MobileBottomNav: fixed bottom bar with Home, Notifications, Search, Vines
- FloatingComposeButton: purple FAB in bottom-right corner opens compose dialog
- Feed goes full-width on mobile, max-w-[600px] only on md+
- Left sidebar hidden on mobile, right sidebar hidden below lg
- Pages with their own headers use hideMobileTopBar to avoid double headers
- Safe area bottom padding for iOS devices
- Added routes for /bookmarks, /mutes, /domain-blocks placeholders

Co-authored-by: shakespeare.diy <assistant@shakespeare.diy>
2026-02-16 17:13:25 -06:00
shakespeare.diy 4f1b4800d0 Build Mew: a full-featured kind 1 Nostr client
- Dark theme with purple accent colors matching the reference design
- Three-column layout: left sidebar, main feed, right sidebar
- Left sidebar: Mew logo, search, navigation (Home, Notifications, Search, Vines, Profile, Wallet, Settings, More), compose button, user profile/login
- Main feed: compose box, Follows/Global tabs, live note cards with avatars, author info, NIP-05 verification, relative timestamps, image attachments, and action buttons (reply, repost, like, zap, more)
- Right sidebar: trending hashtags with sparklines, latest accounts, footer
- Full routing: home, profile, notifications, search, hashtags, settings (profile/relays), placeholder pages
- NIP-19 routing with automatic profile redirect
- Custom hooks: useFeed, useTrendingTags, useLatestAccounts, useEventStats
- NoteContent renders mentions, links, and hashtags as clickable elements
- Inter Variable font, skeleton loading states, responsive layout

Co-authored-by: shakespeare.diy <assistant@shakespeare.diy>
2026-02-16 17:05:32 -06:00
shakespeare.diy 98ff1e09e0 New project created with Shakespeare
Co-authored-by: shakespeare.diy <assistant@shakespeare.diy>
2026-02-16 16:54:01 -06:00