Commit Graph

5 Commits

Author SHA1 Message Date
shakespeare.diy 3ce7cff7ab Remove border below post interactions header
- Remove Separator component between header and tabs
- Remove unused Separator import
- Cleaner visual separation in modal

Co-authored-by: shakespeare.diy <assistant@shakespeare.diy>
2026-02-18 20:45:08 -06:00
shakespeare.diy 029bbc8345 Fix cramped interaction modal tabs: widen modal, tighten tab spacing
- Increased modal max-width from 420px to 460px
- Reduced tab gap, font size, and padding for breathing room
- Hide tab labels on very narrow screens (below 400px) showing icon + count only
- Shrunk active indicator width to match compact layout

Co-authored-by: shakespeare.diy <assistant@shakespeare.diy>
2026-02-17 10:37:56 -06:00
shakespeare.diy ef48351510 Add quote counts to note cards, post detail page, and interactions modal
- Updated useEventStats to query for quotes via `#q` tag (NIP-18 q-tag)
- Added quote count button (blue Quote icon) on NoteCard action bar
- Added quote count to PostDetailPage stats row and action buttons
- Updated useEventInteractions to fetch quote events
- Added Quotes tab to InteractionsModal showing who quoted with content preview

Co-authored-by: shakespeare.diy <assistant@shakespeare.diy>
2026-02-17 10:34:30 -06:00
shakespeare.diy 42446fe0c7 Move X close button to the right side on all compose/reply/interaction modals
Updated ReplyComposeModal, FloatingComposeButton, and InteractionsModal
to place the title on the left and the dismiss X button on the right,
matching the standard dialog layout pattern.

Co-authored-by: shakespeare.diy <assistant@shakespeare.diy>
2026-02-16 22:22:50 -06:00
shakespeare.diy c6317c3893 Add interactions modal for reposts, reactions, and zaps on post details
- Created useEventInteractions hook that fetches kind 6 (reposts),
  kind 7 (reactions), and kind 9735 (zap receipts) for a given event ID
- Created InteractionsModal component with three tabs:
  - Reposts: shows who reposted with avatar, name, and timestamp
  - Reactions: groups reactions by emoji, showing each user under the
    emoji header with counts
  - Zaps: shows who zapped with amount badges (sorted by largest first),
    zap messages, and a total sats summary at top
- Stats row text (e.g. "2 Reposts", "1 👍", "500 sats") is now clickable
  and opens the modal to the relevant tab
- Action buttons (Repost, Reactions, Zaps) in the post detail view also
  open the modal to their respective tabs
- All user rows link to the user's profile page

Co-authored-by: shakespeare.diy <assistant@shakespeare.diy>
2026-02-16 22:14:40 -06:00