Fix [object Object] bugs in note page + add favicon #13
No reviewers
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!13
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "12-fix-object-object-bugs-add-favicon"
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?
Summary
Fix three bugs: breadcrumb rendered
note.projectas[object Object]instead of the project name, tag badges rendered tag objects as[object Object]instead of tag names, and the app had no favicon.Changes
src/lib/api.ts-- AddedNoteProjectandNoteTaginterfaces; updatedNote.projectfromstring | nulltoNoteProject | nullandNote.tagsfromstring[]toNoteTag[]to match actual API response shapesrc/lib/components/NoteLayout.svelte-- Fixed breadcrumb to usenote.project.slugfor URL andnote.project.namefor display; fixed tag badges to usetag.namefor URLs and displaysrc/routes/notes/+page.svelte-- Fixed notes list to usenote.project.namefor displaystatic/favicon.png-- Added a simple 32x32 favicon with the app accent colorTest Plan
[object Object])[object Object])/projects/{slug}/tags/{name}npm run checkpasses with 0 errorsnpm run buildsucceedsReview Checklist
npm run check-- 0 errors, 0 warningsnpm run build-- successNoteinterface changed)Related
Closes #12
The API returns project as {slug, name} and tags as [{name}] objects, but the Note interface typed them as string/string[]. Updated the TypeScript types to match reality and fixed all template references to use .slug/.name properties. Added a simple favicon to static/. Closes #12 Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>