Trail editor: GPX without <name> keeps the .gpx extension in the fallback name, so a descriptive filename is replaced #70
Labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
public/wanderer#70
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Found in the live acceptance test of
deploy-676a7c62(2026-11-05), userclaude_test(#49 basic info, placeholder names).Problem: a GPX file whose filename is a real name but which has no
<name>inside gets its name replaced by the route-based "A – B".Why:
gpx2trail(gpxData, selectedFile.name)uses the full filename with the extension as the fallback name, giving "Gorges du Verdon Hiking.gpx".isStructuralPlaceholder()treats every name that matchesFILE_EXTENSIONas a placeholder, so any filename fallback counts as a placeholder no matter what it says.Results (same track, Nice):
<trk><name>Morning_Run.gpxMorning_Run.gpxGorges du Verdon Hiking.gpxGorges du Verdon Hiking.gpxEvidence:
/root/tools/wanderer-shots/acceptance/out/t4g-upload-verdonNoName.pngand/root/tools/wanderer-shots/acceptance/out/t4g-upload-verdonInside.png. Script:/root/tools/wanderer-shots/acceptance/t4_basic_info.mjs(GPX files in/root/tools/wanderer-shots/acceptance/gpx/).Fix idea: strip the extension from the filename fallback, so the trail is named "Gorges du Verdon Hiking". Then judge the base name with the same rules:
Morning_Runis still a Strava default once_is normalised, andActivity_123/Track 001are still placeholders. Low priority.🤖 Generated with Claude Code
Fixed in batch PR #72 (
deploy5577c715), live since 2026-11-05 ~22:10 CET inwanderer-web:deploy-5577c715(homelab-flux #857). Verified with the live e2e suite and acceptance re-runs asclaude_test.🤖 Generated with Claude Code