fix: browser-log follow-ups from #47 (500 on unknown trail edit id, local avatars, map style warning, empty label for) #48
No reviewers
Labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
public/wanderer!48
Loading…
Reference in a new issue
No description provided.
Delete branch "fix/47-browser-log"
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?
Browser-log follow-ups from #47 (Firefox,
/trail/edit/new). The 504 itself was in trail-analyze and is fixed in jmz/homelab-flux#819. This PR has the app-side fixes. Each commit is self-contained.Source map error: request failed with status 500 … /trail/edit/<anonymous code>,installHook.js.map/trail/edit/[id]lettrails_show's APIError escape (Error: Trail not found.in the pod log).fix(trail-edit): map APIError toerror(status), the same as the trail view page. Unknown ids now get 404.api.dicebear.com/7.x/initials/svg?seed=jmzfix(privacy): newavatar_util.initialsAvatar()builds an initials-on-gradient SVG data URI locally, with vitest tests.There is no style added to the map.map.isStyleLoaded()warns when it is called beforesetStyle(4 call sites in the editor and map component).fix(map):isMapStyleLoaded(map)checksmap.stylefirst.Empty string passed to getElementById()name="", which renders<label for="">.fix(forms): dropfor/idwhen there is no name. If the line still appears afterwards, it is Firefox internals.XML Parsing Error: syntax error … Line 1, Column 1[email protected]dist/lib/parser.js:12parses the literal'INVALID'at module load to detect the parsererror namespace. Firefox logs every failing DOMParser parse with the document URL.Error in parsing value for 'user-select: undefined'src/util/dom.ts:90-92DOM.enableDrag()restores a saveduserSelectthat is stillundefinedwhendisableDrag()never ran. Firefox drops the declaration.may not load or link to file:///file://reference exists in the app. It comes with the devtoolsinstallHook.jssource map.GET /trail/edit/new 304If-None-Matchwith 304 after rendering. The page is still rendered on every request, so nothing is served stale.-moz-column-gap,-webkit-text-size-adjust,::-moz-focus-innergap-x-*), Tailwind preflight, andmaplibre-gl.css(.maplibregl-ctrl button::-moz-focus-inner).Deploy: after merge, an image build (
image.yml,ref=deploy, web) and a digest bump in homelab-fluxapps/wanderer/wanderer.yaml.Refs #47
🤖 Generated with Claude Code
https://claude.ai/code/session_01XMf4EKNjKMd6bwCpS7K4jU
Base fields default name to "", so a labelled field without a name rendered <label for="">, which makes Firefox's form autofill call getElementById("") ("Empty string passed to getElementById()"). Refs #47 Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01XMf4EKNjKMd6bwCpS7K4jU