Skip to content

RFC: Favourites API #485

Description

@filvecchiato

Source PR: #16 · docs/rfcs/0013-favourites-api.md · @filvecchiato

Description

A Favourites trait exposes the host's bookmarked-product catalogue: subscribe streams the list, add upserts an entry, forget removes one.

Motivation

Hosts already keep this catalogue, but products cannot read it, so Browse can neither show what is already bookmarked nor add to it.

Requirements

  • FavouriteProduct { product_id, source, created_at, updated_at }, where source is Remote or Local.
  • subscribe sends the full list on every change; no pagination.
  • forget reports NotFound; denial and unsupported-host go through CallError.
  • Local to the host instance — no cross-host sync.

Tasks

  • RFC document body
  • Implementation — rust-core
  • Implementation — hosts
    • dotli
    • Desktop
    • iOS
    • Android
    • host-cli

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions