SocioWire frontend (working JS source, swchrist/sw-fe) — self-hosted mirror w/ v2 globe+clusters
Go to file
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
public update frontend 2025-12-21 23:37:00 -05:00
src Fix: Hide PWA install button when installed, improve clustering, add debug logs 2025-12-23 15:23:44 -05:00
utils update frontend 2025-12-21 00:28:26 -05:00
.gitignore yeah 2025-12-08 23:22:58 +00:00
README.md carche 2025-12-22 02:30:42 -05:00
deploy.sh blehh 2025-12-18 22:39:29 -05:00
eslint.config.js yeah 2025-12-08 23:22:58 +00:00
index.html update frontend 2025-12-21 22:54:50 -05:00
logo-master.png update frontend 2025-12-21 20:16:34 -05:00
package-lock.json bleh 2025-12-19 16:24:21 -05:00
package.json j essais de fix 2025-12-16 22:47:17 -05:00
vite.config.js j essais de fix 2025-12-16 22:47:17 -05:00

README.md

React + Vite

char ok tourbmarxhe y

This template provides a minimal setup to get React working in Vite with HMR and some ESLint rules.

Currently, two official plugins are available:

React Compiler

The React Compiler is not enabled on this template because of its impact on dev & build performances. To add it, see this documentation.

Expanding the ESLint configuration

If you are developing a production application, we recommend using TypeScript with type-aware lint rules enabled. Check out the TS template for information on how to integrate TypeScript and typescript-eslint in your project.