Trek_CN/server/src
Maurice 95cb81b0e5 perf: major trip planner performance overhaul (#218)
Store & re-render optimization:
- TripPlannerPage uses selective Zustand selectors instead of full store
- placesSlice only updates affected days on place update/delete
- Route calculation only reacts to selected day's assignments
- DayPlanSidebar uses stable action refs instead of full store

Map marker performance:
- Shared photoService for PlaceAvatar and MapView (single cache, no duplicate requests)
- Client-side base64 thumbnail generation via canvas (CORS-safe for Wikimedia)
- Map markers use base64 data URL <img> tags for smooth zoom (no external image decode)
- Sidebar uses same base64 thumbnails with IntersectionObserver for visible-first loading
- Icon cache prevents duplicate L.divIcon creation
- MarkerClusterGroup with animate:false and optimized chunk settings
- Photo fetch deduplication and batched state updates

Server optimizations:
- Wikimedia image size reduced to 400px (from 600px)
- Photo cache: 5min TTL for errors (was 12h), prevents stale 404 caching
- Removed unused image-proxy endpoint

UX improvements:
- Splash screen with plane animation during initial photo preload
- Markdown rendering in DayPlanSidebar place descriptions
- Missing i18n keys added, all 12 languages synced to 1376 keys
2026-04-01 14:56:01 +02:00
..
db feat: add expense date and CSV export to budget 2026-04-01 12:16:11 +02:00
demo v2.6.2 — TREK Rebrand, OSM Enrichment, File Management, Hotel Bookings & Bug Fixes 2026-03-28 16:38:08 +01:00
mcp Merge pull request #179 from shanelord01/audit/remediation-clean 2026-03-31 20:53:48 +02:00
middleware fix: pin JWT algorithm to HS256 and harden token security 2026-03-31 00:33:53 +00:00
routes perf: major trip planner performance overhaul (#218) 2026-04-01 14:56:01 +02:00
services fix: tighten trip_edit and member_manage defaults to trip_owner 2026-03-31 23:52:29 +02:00
config.ts fix: pin JWT algorithm to HS256 and harden token security 2026-03-31 00:33:53 +00:00
index.ts Merge pull request #225 from andreibrebene/improvements/various-improvements 2026-03-31 21:40:26 +02:00
scheduler.ts feat: configurable trip reminders, admin full access, and enhanced audit logging 2026-03-31 22:23:38 +03:00
types.ts feat: notifications, audit logging, and admin improvements 2026-03-31 22:23:23 +03:00
websocket.ts fix: pin JWT algorithm to HS256 and harden token security 2026-03-31 00:33:53 +00:00