Skip to main content

Module bookmarks_cmd

Module bookmarks_cmd 

Source
Expand description

Tauri commands for bookmarks and recent locations.

§Commands

§Validation gate

bookmarks_list and recents_list return the full unfiltered list. The frontend validation gate (per round-1 finding #9) is applied in the <Bookmarks> and <Recents> React components via useValidatedProfile. This keeps the data layer transport-agnostic and lets the UI render a disabled state for unvalidated profiles without an extra round-trip.

§OCP

Adding a new bookmark field = one new arm in BookmarkPatch + one line in bookmark_update. No existing commands change.

Functions§

bookmark_add
Add a new bookmark. Returns the created record.
bookmark_remove
Remove a bookmark by id.
bookmark_update
Update mutable fields of a bookmark.
bookmarks_list
Return all persisted bookmarks in insertion order.
recent_track
Record a navigation. Called after every pane location change.
recents_clear
Clear all recent locations and flush the empty list to disk.
recents_list
Return recent locations, newest first.