Skip to content

Bookmarks in DB - UI - #414

Merged
Bohreromir merged 9 commits into
feat-277-bookmarks-apifrom
feat-277-bookmarks-ui
Oct 29, 2026
Merged

Bohreromir merged 9 commits into
feat-277-bookmarks-apifrom
feat-277-bookmarks-ui

Conversation

@Bohreromir

@Bohreromir Bohreromir commented Oct 27, 2026 •

Copy link
Copy Markdown
Member

Description

Docs

Release note

Checklist

Author

  • AI review done, findings addressed
  • Tests added or updated
  • Changelog updated (if the repo keeps one)

Reviewer

  • Useful comments and logging
  • Docs added or updated per the style guide

Acceptance

  • Check for release notes and docs

@Bohreromir
Bohreromir added this pull request to stack #415 October 27, 2026 14:03
@github-actions

github-actions Bot commented Oct 27, 2026 •

Copy link
Copy Markdown

Coverage Report

Status Category Percentage Covered / Total
🔵 Lines 66.9% 9092 / 13590
🔵 Statements 65.87% 12253 / 18599
🔵 Functions 67.8% 2928 / 4318
🔵 Branches 56.92% 5219 / 9169
File Coverage
File Stmts Branches Functions Lines Uncovered Lines
Changed Files
src/lib/components/dashboard/AddBookmarkModal.svelte 99.24% 88.73% 100% 100% 143, 153
src/lib/components/dashboard/DashboardBookmarks.svelte 99.14% 81.25% 100% 100% 37
src/lib/components/layout/sidebar/Sidebar.svelte 0% 0% 0% 0% 115-285
src/lib/dashboard/bookmarks-api.ts 100% 100% 100% 100%
src/lib/dashboard/types.ts 100% 100% 100% 100%
src/routes/(app)/+layout.server.ts 100% 100% 100% 100%
src/routes/(app)/+layout.svelte 0% 0% 0% 0% 10-101
src/routes/(app)/+page.svelte 84.61% 80% 100% 80% 5-14
Generated in workflow #1188 for commit f1340e4 by the Vitest Coverage Report Action

@Bohreromir
Bohreromir force-pushed the feat-277-bookmarks-ui branch from 5e8b435 to d1039c7 Compare October 27, 2026 14:33
Bookmarks are loaded in the (app) layout and changed through the bookmarks API instead of localStorage. Without a signed-in user, or when loading them fails, the bookmark section is hidden.

Closes #277
The layout load now tells a failed load apart from having no signed-in user. Without a user the section stays hidden; after a failure it says the bookmarks could not be loaded.
A failed request now reloads the list, e.g. after a change in another tab. A reload that fails after a saved change is retried once, then a toast offers a page reload instead of leaving the list stale.
A 409 shows the limit instead of a generic error, and a status region announces the save to screen readers while the spinner is shown.
@Bohreromir
Bohreromir force-pushed the feat-277-bookmarks-ui branch from d1039c7 to 68afd15 Compare October 27, 2026 15:32
@Bohreromir Bohreromir self-assigned this Oct 27, 2026
@Bohreromir
Bohreromir marked this pull request as ready for review October 27, 2026 15:51
@Bohreromir Bohreromir linked an issue Oct 27, 2026 that may be closed by this pull request
1 task
@Bohreromir Bohreromir moved this to Development: Waiting for Review in Stackable Engineering Oct 27, 2026
…t-277-bookmarks-ui

# Conflicts:
#	src/routes/(app)/+page.svelte
SvelteKit's invalidate() does not reject when the reload fails: it shows
its error page and resolves. The retry and the "Reload" toast after a
saved change therefore never ran, and their unit tests faked a rejection
that does not happen. Verified with Playwright by failing __data.json
after a successful save: one request, no toast, bare 500 page.

When the server refuses a change, start the reload without awaiting it,
so the dialog shows the error without waiting for the reload.
All sidebar tests seeded bookmarks and then loaded the page, so the
invalidate path from a dashboard change to the layout's bookmarks was
untested end to end.
@dervoeti dervoeti moved this from Development: Waiting for Review to Development: In Review in Stackable Engineering Oct 28, 2026
@Bohreromir Bohreromir moved this from Development: In Review to Development: Done in Stackable Engineering Oct 29, 2026
@Bohreromir
Bohreromir added this pull request to the merge queue Oct 29, 2026
Merged via the queue into main with commit ea1039b Oct 29, 2026
12 checks passed
@Bohreromir
Bohreromir deleted the feat-277-bookmarks-ui branch October 29, 2026 08:40
@lfrancke lfrancke moved this from Development: Done to Done in Stackable Engineering Oct 29, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Development

Successfully merging this pull request may close these issues.

Migrate bookmarks from localStorage to DB

3 participants