Open Dejal opened 1 month ago
We don't have APIs for what's new and statistics, so let's start with the rivers. Check dashboard_rivers_view.js
for details on which feeds to pull and what to hide.
When the macOS/iOS app calls /reader/feeds
, there is no dashboard_rivers
data, due to using the flat=true
parameter. Changing that does include it, but breaks loading, so can you include it for when flat=true
?
Also, it'd be nice to be able to customize the dashboard in the app; is there an API to change, add, or remove a feed in the dashboard? Being able to send back the JSON for the dashboard_rivers
would be ideal, so I could implement moving feeds between sides, or reordering them.
By the way, I noticed some issues with the Dashboard on the web. Adding several feeds on the same row (in horizontal layout mode) can get unusably narrow; perhaps should limit that, though not unreasonable to let the user self-limit that. But changing the feed for a "widget" can result in the old feed appearing with the new title. I could add issues for those if they're not known issues.
Deployed dashboard_rivers
on /reader/feeds?flat=true
To save dashboard rivers, POST to /reader/save_dashboard_river/
with the following form data:
river_id
river_side
river_order
You'll receive back a new dashboard_rivers
that contains the entire set of rivers.
Note that river_id
is slightly different for folders. Use river:<folder title>
as the river_id for folders, otherwise it's feed:<feed_id>
, and social/search/starred already have their prefix in their feed_id.
@sictiru You'll need these URLs and params, too. ☝️
Thanks! I would have preferred a save endpoint that took the entire array of rivers, so I could implement moving feeds. With the single river save (and the web UI), you can only move a feed by changing an existing dashboard item's feed; if I had several feeds in the dashboard, and wanted to move one to the top, I'd have to do several changes. But a good start.
Work on this is underway, but I'm out of time for this month, so I'll finish it next week. I've committed the current progress on the dejal-alpha
branch, but don't bother playing with it yet; there isn't much to see currently.
@samuelclay wrote in a comment in #1247:
I like this idea. Just the three river feeds, or are the What's New and NewsBlur Stats etc panes available too, to fully replicate the experience? It'd be a nice feature either way.