Fix [object Object] bugs in note page + add favicon #12
Labels
No labels
domain:backend
domain:devops
domain:frontend
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
forgejo_admin/pal-e-docs-app#12
Loading…
Add table
Add a link
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?
Lineage
plan-pal-e-docs→ Phase 4 → Phase 4c (E2E bug fixes)Repo
forgejo_admin/pal-e-appUser Story
As a user browsing notes
I want to see correct project names and tag names in the UI
So that navigation works and the page doesn't show
[object Object]Context
Playwright E2E testing against the live deployment (
pal-e-app.tail5b443a.ts.net) found two rendering bugs on the note detail page. The API returns objects forprojectandtags, but the Svelte template renders them as strings.File Targets
src/routes/notes/[slug]/+page.svelte— fix breadcrumb project link and tag renderingsrc/routes/notes/[slug]/+page.server.ts— may need to extract project slug/name before passing to pagestatic/favicon.png— add a favicon (orstatic/favicon.ico)Acceptance Criteria
/projects/{project.slug}(not/projects/[object Object])/tags/{tag.name}(not/tags/%5Bobject%20Object%5D)[object Object]anywhere in rendered pagesnpm run check && npm run buildpassesTest Expectations
npm run check && npm run buildConstraints
projectas{"slug": "...", "name": "...", ...}andtagsas[{"id": N, "name": "..."}].slugand.nameproperties explicitly — don't rely on string coercionChecklist
Closes #12
Related
pal-e-docs— project