Top Tweets for #contactmessage
Day 97: Leaderboard, restaurant comparison, amenity filters, report system & recently viewed! ππ½οΈ
Today's highlights:
β Built Top Reviewers Leaderboard (Backend + Frontend + Native):
- GET /api/reviews/leaderboard β public endpoint with limit & period params
- Aggregates review count, average rating, helpful votes per user
- Auto-assigns levels: Newcomer β Regular Reviewer β Expert Taster β Food Critic
- Period filter: All Time, This Month, This Week
- Frontend /leaderboard page with podium top-3 cards + full ranked list
- Avatars, level badges, review stats, profile links
- Native LeaderboardScreen with pull-to-refresh + period toggle
- Dashboard quick-action card linking to leaderboard
β Built Restaurant Comparison (Backend + Frontend):
- GET /api/restaurants/compare?id1=...&id2= β side-by-side data
- Returns full restaurant details with dishes, review counts, ratings
- Frontend /compare page with dual restaurant picker (search-driven)
- Visual CompareBar with red vs blue bar charts for ratings
- Amenity check/cross comparison table
- Top dishes side-by-side display
- View detail links for each restaurant
β Built Cuisine Statistics API:
- GET /api/restaurants/cuisine-stats β groupBy cuisine with counts
- Frontend hook useCuisineStats for data consumption
β Built Amenity-based Restaurant Filtering (Backend + Frontend):
- Added amenities query param to GET /api/restaurants
- Prisma hasEvery filter for matching all selected amenities
- Amenity toggle pills on Discover page filter section
- Filter count badge includes amenity selections
- Clear filters resets amenities
β Built Restaurant Report System (Backend + Frontend):
- POST /api/restaurants/:id/report β authenticated report submission
- Stores as ContactMessage for admin management via existing admin UI
- Report modal on restaurant detail page with reason dropdown
- Reason options: Incorrect Info, Closed, Spam, Inappropriate, Other
- Optional details textarea for additional context
- Report button with AlertTriangle icon in hero section
β Built Recently Viewed Restaurants (Frontend):
- Auto-tracks last 20 viewed restaurants in localStorage
- Stores id, name, slug, coverImage, avgRating, city, timestamp
- Horizontal scroll section on Discover page
- Compact cards with image, name, rating, city
- Deduplication on re-visit (moves to top)
β Extended Native App APIs:
- Added getTopReviewers(limit, period)
- Added compareRestaurants(id1, id2)
- Added getCuisineStats()
- Added reportRestaurant(id, reason, details)
New backend endpoints: 5 | New frontend pages: 2 | New native screen: 1 | Features: 7
From reviews β rankings. The community now has a leaderboard to compete on! ππ³π΅
#buildinpublic #saas #nepal #trustflavor
Day 96: Restaurant claims, contact API, add-restaurant flow & dynamic city filters! ππ½οΈ
Today's highlights:
β Built Restaurant Claim System (Backend + Frontend):
- Added ClaimRequest model to Prisma schema with status tracking (PENDING/APPROVED/REJECTED)
- POST /api/claims β authenticated claim request submission
- GET /api/claims/mine β view user's claim history
- Admin endpoints: GET /admin/all, POST /admin/:id/approve, POST /admin/:id/reject
- Approval auto-sets restaurant ownerId and rejects other pending claims
- Claim button on restaurant detail page sidebar (only shows for unclaimed restaurants)
- Modal form with explanation field + submit/cancel flow
- Owner badge displayed when restaurant is already claimed
β Built Contact/Feedback API (Backend + Frontend):
- Added ContactMessage model to Prisma schema
- POST /api/contact β public endpoint, works for logged-in and anonymous users
- Admin endpoints: list, mark-read, delete, unread count
- Connected existing Contact page to real backend API
- Added loading state + toast notifications on submit
β Built Dynamic Cities API:
- GET /api/restaurants/cities β returns all cities with restaurant counts
- Discover page city filter now shows live cities from database
- Displays count per city (e.g., "Kathmandu (12)")
- Fallback to default cities when API unavailable
β Built Nearby Restaurants API:
- GET /api/restaurants/nearby?lat=...&lng=...&radius=...&limit=...
- Haversine distance calculation for accurate proximity matching
- Returns restaurants sorted by distance with distance field
- Full backend + frontend hook + native API method
β Built Add Restaurant Page (/add-restaurant):
- Multi-section form: Basic Info, Location, Contact, Cuisine & Price Range
- Cuisine type multi-select with toggle chips
- Price range selector (Budget β Luxury)
- Cover image URL preview
- Auth-gated with sign-in redirect
- "Add Restaurant" button on Discover page header
- Auto-redirects to new restaurant page on success
β Extended Native App APIs:
- Added getCities, getNearbyRestaurants
- Added submitClaim, getMyClaims
- Added submitContact
- Added createRestaurant
β Updated Prisma Schema:
- New ClaimRequest model with unique user+restaurant constraint
- New ContactMessage model with user relation
- New ClaimStatus enum (PENDING/APPROVED/REJECTED)
- Added relations to User and Restaurant models
New backend endpoints: 10 | New frontend pages: 1 | Features: 6
From browsing β owning. Restaurant owners can now claim their listings. ππ³π΅
#buildinpublic #saas #nepal #trustflavor
Last Seen Hashtags on Sotwe
taksimgay
Seen from Turkey
mgai
Seen from United States
ΰΈΰΈ₯ΰΈ΄ΰΈΰΈͺΰΈ²ΰΈ§ΰΉΰΈΰΈ’
Seen from Thailand
hnwoinfluence
Seen from India
tiktokbop
μ€μΊ
Seen from Korea
brosis(())***********()***************************
Seen from United States
blackmanwhitewoman
Seen from Turkey
adanagay
Seen from Turkey
lawuerita
Seen from Mexico
Most Popular Users

Elon Musk 
@elonmusk
239.3M followers

Barack Obama 
@barackobama
118.5M followers

Cristiano Ronaldo 
@cristiano
114.3M followers

Donald J. Trump 
@realdonaldtrump
111.7M followers

Narendra Modi 
@narendramodi
106.9M followers

Rihanna 
@rihanna
98.6M followers

NASA 
@nasa
92M followers

Justin Bieber 
@justinbieber
91.7M followers

KATY PERRY 
@katyperry
89.9M followers

Taylor Swift 
@taylorswift13
83.9M followers

Lady Gaga 
@ladygaga
75.4M followers

Virat Kohli 
@imvkohli
73.3M followers

Kim Kardashian 
@kimkardashian
70.8M followers

YouTube 
@youtube
68.6M followers

Neymar Jr 
@neymarjr
66.3M followers

Bill Gates 
@billgates
65.1M followers

Selena Gomez 
@selenagomez
63M followers

The Ellen Show
@theellenshow
62.1M followers

CNN 
@cnn
61.6M followers

X 
@x
60.6M followers
