gramps-web icon indicating copy to clipboard operation
gramps-web copied to clipboard

Bookmarks

Open DavidMStraub opened this issue 1 year ago • 5 comments

Currently, Gramps.js does not have a bookmark feature, but it would be useful and simple to implement. We can add a simple star/bookmark button to each object and add a Bookmarks view just like the Recent view.

The main open question is whether to use Gramps bookmarks or not, or a combination.

From the user perspective, there are three ways how bookmarks could work:

  1. Bookmarks are saved in the Gramps database, are visible to all tree users, and can be synced to desktop
  2. Bookmarks are only visible to the user who adds them and only on the device where they added them
  3. Bookmarks are only visible to the user but are synced across (web) devices

The 3rd option is currently not possible, since we don't store configuration in the user database. So the options at present would be:

  • bookmark feature backed by Gramps database. The downside is that this limits use of the bookmark feature to users with edit rights, which is usually a small minority
  • bookmark feature stored in the browser. The downside is that it is not synced with desktop, not backed up, and not synced across devices
  • both of the above. This would be the most flexible option and not difficult to implement, but I'm not sure what the UI would be in this case. How do we distinguish between publicly visible bookmarks stored in the database vs private bookmarks stored in the browser
    • for displaying the bookmark status?
    • when creating/removing a new bookmark?

Any thoughts/ideas?

DavidMStraub avatar Dec 16 '23 10:12 DavidMStraub

A thought I had at one time was that it might be nice to be able to support collections or sets of bookmarks. My thought was to store them in note records, and have a tool that would support clearing the ones currently in the Gramps database and loading a set from a collection, and alternately saving the set in the Gramps database to a collection.

cdhorn avatar Dec 16 '23 13:12 cdhorn

What you're describing sounds exactly like tags to me, not bookmarks. I think we could achieve such a feature by making tags more accessible; e.g. having a view where we could browse objects by tag.

DavidMStraub avatar Dec 16 '23 13:12 DavidMStraub

I was wondering whether we could do this like in Firefox or Chrome when clicking the :star: icon in the address bar, it opens a dialog to edit the details of the bookmark. We could offer a selection dialog explaining that the bookmark can be public/global or private/local.

DavidMStraub avatar Dec 21 '23 20:12 DavidMStraub

Work in progress in #335.

DavidMStraub avatar Dec 24 '23 12:12 DavidMStraub

Keeping open until in-database bookmarks are supported.

DavidMStraub avatar Jan 03 '24 19:01 DavidMStraub