Tours: day GPX import, wanderer trails and planning over an import

- GPX files drop onto the map or a day; the import lands on that day
- wanderer connection per user in Integrations; the workspace offers the
  user's own trails only, behind an admin switch under the Tours addon
- wanderer difficulty is stored on the SAC scale (T1 to T3), backfilled
- a GPX or wanderer import can be planned as an editable tour, either in
  place (the recorded track is kept and can be restored) or as a new tour
  that remembers the import it came from
- rails, rows and detail dialog follow the plan sidebar's cards and badges
- admin addon shelves with more than one row fold, collapsed by default
- reverse-geocoded waypoint names are cached on the device
This commit is contained in:
Maurice
2026-10-15 17:44:15 +02:00
parent 31ffcf1228
commit 782e613506
237 changed files with 13023 additions and 1049 deletions
+21
View File
@@ -10,6 +10,7 @@ import { JwtAuthGuard } from '../auth-core/jwt-auth.guard';
import { RegistrationInvitesService } from '../auth/registration-invites.service';
import { KitineraryExtractorService } from '../booking-import/kitinerary-extractor.service';
import { ManagedForbidden } from '../common/managed';
import { ResponseContract } from '../common/response-contract';
import { NotificationsService } from '../notifications/notifications.service';
import { OauthService } from '../oauth/oauth.service';
import { PluginRuntimeService } from '../plugins/plugin-runtime.service';
@@ -41,6 +42,7 @@ import {
Req,
UseGuards,
} from '@nestjs/common';
import { adminFeatureToggleResponseSchema } from '@trek/shared';
import type { Request } from 'express';
@@ -283,6 +285,25 @@ export class AdminController {
return result;
}
@Get('tours-wanderer')
@ResponseContract(adminFeatureToggleResponseSchema)
getToursWanderer() {
return this.addons.getToursWanderer();
}
@Put('tours-wanderer')
@ResponseContract(adminFeatureToggleResponseSchema)
async updateToursWanderer(@CurrentUser() user: User, @Body() body: AdminFeatureToggleDto, @Req() req: Request) {
const result = await this.addons.updateToursWanderer(body.enabled);
await this.audit.writeAudit({
userId: user.id,
action: 'admin.tours_wanderer',
ip: getClientIp(req),
details: { enabled: result.enabled },
});
return result;
}
@Get('places-photos')
getPlacesPhotos() {
return this.addons.getPlacesPhotos();