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> |
||
|---|---|---|
| public | ||
| src | ||
| utils | ||
| .gitignore | ||
| README.md | ||
| deploy.sh | ||
| eslint.config.js | ||
| index.html | ||
| logo-master.png | ||
| package-lock.json | ||
| package.json | ||
| vite.config.js | ||
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:
- @vitejs/plugin-react uses Babel (or oxc when used in rolldown-vite) for Fast Refresh
- @vitejs/plugin-react-swc uses SWC for Fast Refresh
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.