Commit Graph

74 Commits

Author SHA1 Message Date
Your Name 5685668d18 Debounce map fetch and cap feed size 2025-12-26 01:01:39 -05:00
Your Name 903622e523 Refine search picks and cap map fetch 2025-12-26 00:49:01 -05:00
Your Name 43fefaf235 Limit visible posts in map view 2025-12-26 00:24:40 -05:00
Your Name 40b1924a77 Cap smart feed results and add search fetch 2025-12-26 00:20:04 -05:00
Your Name 8fa842ecb7 Refine sociowall feed and post media fallbacks 2025-12-25 00:45:15 -05:00
Your Name ffeaee6e88 Improve post modal auth flow and share handling 2025-12-24 23:02:11 -05:00
Your Name 40bc03d90d Add map clustering with priority pins 2025-12-24 14:59:14 -05:00
Your Name eca8c6c270 Improve map fetch, search UX, and filters 2025-12-24 14:30:44 -05:00
Your Name c659c0267d Fix: Hide PWA install button when installed, improve clustering, add debug logs
Fixes three major issues:

1. PWA Install Button (TopBar.jsx):
   - Import isRunningAsPWA() and canInstall() from pwaInstall.js
   - Add state to track if button should be shown
   - Listen to beforeinstallprompt and appinstalled events
   - Hide button when app is already installed or running as PWA

2. Search Suggestions Debug (SmartSearchBar.jsx, recoSearch.js):
   - Add console.log statements to trace search flow
   - Track: search query, results count, errors
   - Helps diagnose why suggestions don't appear
   - recoSearch: Log each endpoint attempt and response

3. Clustering Improvements (usePostsEngine.js, postPriority.js):
   - Reduce maxFullCards: 15 → 12 (fewer full cards)
   - Increase clusterRadius: 0.0015 → 0.002 (~200m for better grouping)
   - Increase minScoreForCard: 35 → 50 (stricter threshold)
   - Reduce default recoScore: 50 → 40 (lower baseline)
   - Add console.log for prioritization results
   - Result: More posts shown as simple markers, less clutter

Debug logs will be visible in browser console to diagnose issues

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
2025-12-23 15:23:44 -05:00
Your Name 76adb74833 Add intelligent post clustering and simple markers
Implement smart prioritization system to reduce map clutter:
- Create priority scoring based on reco score, category, freshness, distance, engagement
- Cluster nearby posts and show best post as full card, others as simple markers
- Simple markers: circular icons with category colors, hover preview, click to expand
- Max 15 full cards displayed, rest shown as compact markers
- Optimize search debounce: 220ms → 150ms for faster suggestions

New files:
- postPriority.js: Scoring and clustering algorithm

Updated:
- markerManager.js: Add createSimpleMarkerForPost() with hover cards
- usePostsEngine.js: Use prioritizePosts() to separate full cards vs simple markers
- SmartSearchBar.jsx: Faster debounce (150ms), increased limit to 12 suggestions

Result: Less visual clutter, better UX with prioritized content

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
2025-12-23 15:15:53 -05:00
Your Name a3903906df Integrate smart feed and unified search
- Update fetchSmartFeed() to call backend /api/smart-feed
- Update fetchUnifiedSearch() to call backend /api/unified-search
- Replace fetchPosts() with fetchSmartFeed() in usePostsEngine
- Add /api/unified-search as primary search endpoint
- Search now queries posts, profiles, and places together
- Map now shows personalized and trending posts

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
2025-12-23 11:32:59 -05:00
Your Name 477d8a13b3 update frontend 2025-12-21 00:29:28 -05:00
Your Name fe6bd0d808 update frontend 2025-12-21 00:29:08 -05:00
Your Name 9da994cfbb update frontend 2025-12-21 00:28:26 -05:00
Your Name 5bffb63028 bleh 2025-12-20 22:21:59 -05:00
Your Name c9872d6260 toit marche 2025-12-19 13:04:18 -05:00
Your Name 195b5634a1 toit msrxhe 2025-12-18 23:59:24 -05:00
Your Name 87394a44eb pewsqie pardair 2025-12-18 23:40:44 -05:00
Your Name 68c3648768 blehh 2025-12-18 22:39:29 -05:00
Your Name d7f12db601 nleh 2025-12-18 22:19:15 -05:00
Your Name 0b6bb6cc07 j essais de fix 2025-12-16 22:47:17 -05:00
Your Name caeaea97e8 fix load map 2025-12-13 14:32:03 -05:00
Your Name 9c5de18421 update frontend 2025-12-13 02:51:04 -05:00
Your Name 721e17d3a6 update frontend 2025-12-09 20:17:31 -05:00