feat(import): selective GPX/KML element import and performance improvements

Add type-selector UI in the file import modal letting users choose which
GPX elements (waypoints, routes, tracks) or KML/KMZ elements (points,
paths) to import. KML LineString placemarks are now imported as path
places with route_geometry.

Performance improvements:
- Extract MemoPlaceRow with React.memo and contentVisibility:auto to cut
  unnecessary re-renders in PlacesSidebar
- Add weatherQueue to cap concurrent weather fetches at 3
- Replace sequential per-place deletes with a single bulkDelete API call
  (new DELETE /places/bulk endpoint + deletePlacesMany service)
- Memoize atlas/photo/weather service calls to avoid redundant requests
- Add multi-select mode to PlacesSidebar for bulk operations

Add large GPX/KML/KMZ fixtures for integration/perf testing and two
profiler analysis scripts under scripts/.
This commit is contained in:
jubnl
2026-04-18 01:28:37 +02:00
parent 9a31fcac7b
commit 6a718fccea
45 changed files with 22471 additions and 285 deletions
+18
View File
@@ -10,6 +10,9 @@ const nl: Record<string, string> = {
'common.add': 'Toevoegen',
'common.loading': 'Laden...',
'common.import': 'Importeren',
'common.select': 'Selecteren',
'common.selectAll': 'Alles selecteren',
'common.deselectAll': 'Alles deselecteren',
'common.error': 'Fout',
'common.unknownError': 'Onbekende fout',
'common.tooManyAttempts': 'Te veel pogingen. Probeer het later opnieuw.',
@@ -876,6 +879,8 @@ const nl: Record<string, string> = {
'trip.toast.reservationAdded': 'Reservering toegevoegd',
'trip.toast.deleted': 'Verwijderd',
'trip.confirm.deletePlace': 'Weet je zeker dat je deze plaats wilt verwijderen?',
'trip.confirm.deletePlaces': '{count} plaatsen verwijderen?',
'trip.toast.placesDeleted': '{count} plaatsen verwijderd',
// Day Plan Sidebar
'dayplan.emptyDay': 'Geen plaatsen gepland voor deze dag',
@@ -920,6 +925,17 @@ const nl: Record<string, string> = {
'places.importFileError': 'Importeren mislukt',
'places.importAllSkipped': 'Alle plaatsen waren al in de reis.',
'places.gpxImported': '{count} plaatsen geïmporteerd uit GPX',
'places.gpxImportTypes': 'Wat wil je importeren?',
'places.gpxImportWaypoints': 'Waypoints',
'places.gpxImportRoutes': 'Routes',
'places.gpxImportTracks': 'Tracks (met routegeometrie)',
'places.gpxImportNoneSelected': 'Selecteer minstens één type om te importeren.',
'places.kmlImportTypes': 'Wat wil je importeren?',
'places.kmlImportPoints': 'Punten (Placemarks)',
'places.kmlImportPaths': 'Paden (LineStrings)',
'places.kmlImportNoneSelected': 'Selecteer minstens één type.',
'places.selectionCount': '{count} geselecteerd',
'places.deleteSelected': 'Selectie verwijderen',
'places.kmlKmzImported': '{count} plaatsen geïmporteerd uit KMZ/KML',
'places.urlResolved': 'Plaats geïmporteerd van URL',
'places.importList': 'Lijst importeren',
@@ -936,6 +952,7 @@ const nl: Record<string, string> = {
'places.assignToDay': 'Aan welke dag toevoegen?',
'places.all': 'Alle',
'places.unplanned': 'Ongepland',
'places.filterTracks': 'Tracks',
'places.search': 'Plaatsen zoeken...',
'places.allCategories': 'Alle categorieën',
'places.categoriesSelected': 'categorieën',
@@ -1699,6 +1716,7 @@ const nl: Record<string, string> = {
'undo.reorder': 'Locaties hergeordend',
'undo.optimize': 'Route geoptimaliseerd',
'undo.deletePlace': 'Locatie verwijderd',
'undo.deletePlaces': 'Plaatsen verwijderd',
'undo.moveDay': 'Locatie naar andere dag verplaatst',
'undo.lock': 'Vergrendeling locatie gewijzigd',
'undo.importGpx': 'GPX-import',