Skip to content

Private listings#52

Open
0xthrpw wants to merge 3 commits intomainfrom
private-listings
Open

Private listings#52
0xthrpw wants to merge 3 commits intomainfrom
private-listings

Conversation

@0xthrpw
Copy link
Member

@0xthrpw 0xthrpw commented Jan 29, 2026

CreateListingModal - Private Listing Toggle

File: src/components/modal/listing/createListingModal.tsx

  • Added private listing state variables (showPrivateSection, privateBuyerAddress, privateBuyerAddressInput)
  • Added address resolution using the same pattern as broker address (React Query with fetchAccount)
  • Added validation to prevent self-private listings
  • Added collapsible "Private Listing" UI section (only visible when Grails marketplace is selected)
  • Passes privateBuyerAddress to the createListing function

useSeaportClient Hook

Files: src/hooks/useSeaportClient.ts, src/context/seaport.tsx

  • Added privateBuyerAddress parameter to the createListing function signature
  • Updated all API calls (/api/listings/create, /api/brokered-listings) to include private_buyer_address

Profile Page - "Private For Me" Tab

New Files:

  • src/app/profile/[user]/hooks/usePrivateListings.ts - Hook to fetch private listings from /listings/private-for-me API
  • src/app/profile/[user]/components/privateForMePanel.tsx - Tab panel component displaying private listings

Modified Files:

  • src/constants/domains/portfolio/tabs.ts - Added private_for_me tab constant
  • src/constants/domains/marketplaceDomains.ts - Added PORTFOLIO_PRIVATE_FOR_ME_DISPLAYED_COLUMNS
  • src/app/profile/[user]/components/tabSwitcher.tsx - Added visibility logic for the new tab (only shows to profile owner when private listings exist)
  • src/app/profile/[user]/components/main-panel.tsx - Added rendering of PrivateForMePanel

@vercel
Copy link

vercel bot commented Jan 29, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Review Updated (UTC)
grails Ready Ready Preview, Comment Jan 29, 2026 5:05am

Request Review

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant