Brave News can suggest the current site to subscribe to
See original GitHub issueWhen the Brave News is opted-in and enabled, we can do the following:
For any given Tab, if we detect a corresponding Publisher to subscribe to, we can offer the user to add the subscription.
This could look like a Location Bar button with the brave news icon. When clicked it would show a list of the available feeds (which would usually only be 1).
Sources of Publisher items for a Tab:
- sources.json via
brave_news.mojom:GetPublishers()
(see note below re: site_url) - meta tags in the html with feed destinations
Implementation:
- Probably a TabHelper which performs the necessary Publisher look ups when the WebContents’ Url is committed.
- Maybe an addition to BraveNewsController for a performant lookup of an existing Publisher.
- Addition to publisher_parsing to include the
site_url
(and possiblyfeed_url
) fields in sources.json - Uses
RssLinkReader
to get the feed url from the html. - Uses
SetPublisherPref
to subscribe (or unsubscribe)
Design: TBD
Rough design:
----------------------------------------
Subscribe to this site via Brave News
--------------
[Name of feed] ( Subscribe )
--------------
[Name of alternate feed] ( Subscribe )
-----------------------------------------
(Don't show this again)
Location bar button (older design might not be the correct icon): although I don’t think it should be inside the brave actions area, i.e. it can just be a regular PageActionIcon
Maybe it shows expanded on first seeing it for each browser session (ignore the tooltip):
Outstanding questions
- Should the button (and bubble popup) show if the user is already to subscribed to at least 1 of the feeds for the current page? It would allow users to unsubscribe.
Issue Analytics
- State:
- Created a year ago
- Comments:6
Top Results From Across the Web
Brave News
Brave News creates a customizable, up-to-date news feed, curated from a list of sources you've selected. Hundreds of top publishers and RSS feeds,...
Read more >Typo in `brave://flags` for `Enable Brave New Subscribe Button`
Expected result: Should read Enable Brave News Subscribe Button ... Brave News can suggest the current site to subscribe to #23778.
Read more >Latest News on Brave Browser - Cointelegraph
The Brave browser could become an alternative for the current system of providing free content, which is based on collecting personal information in...
Read more >Brave Browser's Next Trick: Privacy-Preserving News ...
The privacy-focused Brave browser is seeking to walk the line when it comes to preserving users' privacy while also offering up news ......
Read more >Brave Browser Review 2022 [Better Than Chrome?]
Through Brave's decentralized and privacy-focused advertising platform, user data remains completely private, while websites and advertisers are ...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
I feel like it would be a bit weird if we let people subscribe from the dialog but not unsubscribe. Like, what if a user clicks subscribe to see what happens, but there’s no obvious way to undo it?
This is what my rough prototype looks like. It’s not uncommon for sites to have multiple feeds on a single page.
That said, I don’t have strong feelings about it, and I’m happy to defer to you on this 😄
Verification
PASSED
usingShared Steps:
1.44.73
brave://flags/
Enable Brave News Subscribe Button
toEnabled
Relaunch
Subscribe - PASSED
via Manage Subscriptions icon - PASSED
planet.mozilla.org
Manage Subscriptions
icon in the browser URL barSubscribe
Unsubscribe
Customize
on the bottom rightBrave News
Planet Mozilla
title and URL (as titletip)https://planet.mozilla.org/atom.xml
step 2
Loading...
step 4
step 6
step 7
step 8
via Customize -> Brave News dialog - PASSED
Customize
Brave News
https://planet.mozilla.org/atom.xml
intoFeed URL
and clickAdd source
planet.mozilla.org
Manage Subscriptions
iconPlanet Mozilla
, and the button readsUnsubscribe
Show Brave News
Hello from the new developer advocate
(or any feed) post inBrave News
feedstep 4
step 6 + 7
step 8
step 9
Unsubscribe - PASSED
via Manage Subscriptions icon - PASSED
(continuing on from
Subscribe
tests, above)planet.mozilla.org
Manage Subscriptions
iconUnsubscribe
Subscribe
Customize
Brave News
Planet Mozilla
entry is removedstep 3
step 4
step 7
via Customize -> Brave News dialog - PASSED
Customize
Brave News
...
ellipsis to the right ofPlanet Mozilla
Remove
X
to dismiss theCustomize Dashboard
panelplanet.mozilla.org
Manage Subscriptions
iconPlanet Mozilla
and then aSubscribe
buttonstep 5
step 6
step 9
Hide and don’t show this again - PASSED
(run either of the
Subscribe
tests, first)planet.mozilla.org
Manage Subscriptions
iconHide and don't show this again
Show Brave News button in the toolbar
isDisabled
/Off
planet.mozilla.org
Manage Subscriptions
icon in the URL barstep 3
step 4
step 5
step 8
UI - PASSED
Show Brave News button in the toolbar - PASSED
planet.mozilla.org
Manage Subscriptions
icon appears, but don’t click itCustomize
Brave News
Show Brave News button in the toolbar
isEnabled
/On
Disabled
/Off
planet.mozilla.org
tabManage Subscriptions
icon disappearsstep 2
step 6
step 7
step 9
Dark + Light modes - PASSED
Dark
unsubscribed
subscribed
Light
unsubscribed
subscribed
Tooltip
Manage Subscriptions