Skip to content
This repository has been archived by the owner on May 10, 2024. It is now read-only.

Commit

Permalink
Fix #7168: Add Brave News Widget for topics clustering
Browse files Browse the repository at this point in the history
  • Loading branch information
kylehickinson committed Mar 29, 2023
1 parent f093bc4 commit aead36d
Show file tree
Hide file tree
Showing 14 changed files with 687 additions and 9 deletions.
16 changes: 13 additions & 3 deletions App/BraveWidgets/Base.lproj/BraveWidgets.intentdefinition
Original file line number Diff line number Diff line change
Expand Up @@ -168,6 +168,16 @@
<key>INEnumValueName</key>
<string>scanQRCode</string>
</dict>
<dict>
<key>INEnumValueDisplayName</key>
<string>Brave News</string>
<key>INEnumValueDisplayNameID</key>
<string>XCyA8c</string>
<key>INEnumValueIndex</key>
<integer>10</integer>
<key>INEnumValueName</key>
<string>braveNews</string>
</dict>
</array>
</dict>
</array>
Expand All @@ -176,11 +186,11 @@
<key>INIntentDefinitionNamespace</key>
<string>88xZPY</string>
<key>INIntentDefinitionSystemVersion</key>
<string>21G83</string>
<string>22D49</string>
<key>INIntentDefinitionToolsBuildVersion</key>
<string>14A5294g</string>
<string>14C18</string>
<key>INIntentDefinitionToolsVersion</key>
<string>14.0</string>
<string>14.2</string>
<key>INIntents</key>
<array>
<dict>
Expand Down
2 changes: 2 additions & 0 deletions App/BraveWidgets/BraveWidgets.swift
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,8 @@ struct BraveWidgets: WidgetBundle {
var body: some Widget {
ShortcutsWidget()
FavoritesWidget()
TopNewsWidget()
TopNewsListWidget()
SingleStatWidget()
StatsWidget()
LockScreenShortcutWidget()
Expand Down
1 change: 1 addition & 0 deletions App/BraveWidgets/Development Assets/topics_news.en_US.json
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
[{"topic_index":3,"title":"Russia-Ukraine war: 11 killed and 11 wounded in Russian missile attacks; Wagner group classified as criminal organisation by US \u2013 live","description":"Top general says 47 of 55 Russian missiles were shot down; US move allows for wider sanctions against mercenary groupRussia-Ukraine war at a glanceThe Ukrainian defence force has just posted this warning to Telegram: \u201cRockets in the direction of Vinnytsia and Kyiv region. Can change the trajectory. Stay in shelters. We believe in air defense.\u201d Continue reading...","url":"https:\/\/www.theguardian.com\/world\/live\/2023\/jan\/26\/russia-ukraine-war-live-key-thing-now-is-speed-and-volume-says-zelenskiy-as-allies-commit-to-tanks","img":null,"publisher_name":"The Guardian World News","publish_time":"2023-01-26 16:42:05","score":119.96483517,"category":"Top News","origin":"news"},{"topic_index":3,"title":"'Explosions and calls in the night': Zelenskyy recalls first moments of invasion and how close Russian forces got to him","description":"The Ukrainian president has told Sky News he is not interested in meeting Vladimir Putin for peace talks, describing him as a nobody who lives in an information bubble and does not really know what's happening on the battlefield.","url":"https:\/\/news.sky.com\/story\/ukraine-war-zelenskyy-not-interested-in-meeting-nobody-putin-for-peace-talks-12795319","img":null,"publisher_name":"Sky News","publish_time":"2023-01-25 17:40:00","score":90.97777313,"category":"World News","origin":"news"},{"topic_index":0,"title":"Tyre Nichols \u2013 live: Memphis police chief urges calm ahead of bodycam release of \u2018heinous, inhumane\u2019 beating","description":"Nichols, 29, died on 10 January, three days after traffic stop turned into confrontation with officers ","url":"https:\/\/www.independent.co.uk\/news\/world\/americas\/tyre-nichols-bodycam-video-memphis-b2268990.html","img":null,"publisher_name":"The Independent World News","publish_time":"2023-01-26 17:00:38","score":3.8386002,"category":"World News","origin":"news"},{"topic_index":0,"title":"Memphis Braces for Tyre Nichols Traffic Stop Video Release","description":"After Tyre Nichols\u2019s death, footage of what the police have called a \u201cconfrontation\u201d could clarify what happened, as the city braces for anguish and outrage.","url":"https:\/\/www.nytimes.com\/2023\/01\/26\/us\/memphis-tyre-nichols-video-traffic-stop.html","img":null,"publisher_name":"The New York Times","publish_time":"2023-01-26 16:42:49","score":32.8679835,"category":"Top News","origin":"news"},{"topic_index":0,"title":"Officials urge citizens to be nonviolent as anticipation builds around soon-to-be-released footage of an arrest that led to the death of Black motorist Tyre Nichols","description":"Memphis police officers' conduct in the confrontation that preceded this month's death of Black motorist Tyre Nichols is a failing of basic humanity, the Tennessee city's police chief said as officials prepare to release video of the incident.","url":"https:\/\/www.cnn.com\/2023\/01\/26\/us\/tyre-nichols-memphis-thursday\/index.html","img":null,"publisher_name":"CNN","publish_time":"2023-01-26 15:56:48","score":37.5480828,"category":"Top News","origin":"news"},{"topic_index":0,"title":"A timeline of the investigations into Tyre Nichols' death after a traffic stop and arrest by Memphis police","description":"Nearly three weeks after a traffic stop in Memphis resulted in a violent arrest and subsequent death of a driver, police are expected to release police body camera footage of the incident to the public.","url":"https:\/\/www.cnn.com\/2023\/01\/26\/us\/tyre-nichols-timeline-investigation\/index.html","img":null,"publisher_name":"CNN","publish_time":"2023-01-26 15:12:44","score":24.84211647,"category":"Top News","origin":"news"},{"topic_index":0,"title":"Tyre Nichols' family attorney says video shows police beating Nichols like a 'human pinata'","description":"Attorneys for the family of Tyre Nichols, a Black man who died after a traffic stop in Memphis, Tennessee, said video footage shows he suffered a nonstop beating at the hands of police.","url":"https:\/\/www.cnn.com\/2023\/01\/23\/us\/tyre-nichols-family-arrest-video\/index.html","img":null,"publisher_name":"CNN","publish_time":"2023-01-26 15:09:11","score":47.3927308,"category":"Top News","origin":"news"},{"topic_index":0,"title":"Nichols' family speaks out after seeing police footage","description":"After a traffic stop in Memphis resulted in a violent arrest and subsequent death of 29-year-old Tyre Nichols, police are expected to release police body camera footage of the incident to the public. The family of Nichols and attorneys have viewed the traffic stop's video recordings, which have been described as a vicious, prolonged beating that lasted for minutes after officers chased down a fleeing Nichols. CNN's Sara Sidner reports.","url":"https:\/\/www.cnn.com\/videos\/us\/2023\/01\/26\/tyre-nichols-family-speaks-out-memphis-police-sidner-pkg-cnntm-ldn-vpx.cnn","img":null,"publisher_name":"CNN","publish_time":"2023-01-26 15:05:50","score":8.9852941,"category":"Top News","origin":"news"},{"topic_index":2,"title":"Democrat Adam Schiff announces bid for Feinstein's US Senate seat in California","description":"Democratic Rep. Adam Schiff announced a 2024 Senate bid on Thursday, launching a campaign for Sen. Dianne Feinstein's seat in what is shaping up to be a competitive Democratic primary.","url":"https:\/\/www.cnn.com\/2023\/01\/26\/politics\/adam-schiff-california-senate-campaign\/index.html","img":null,"publisher_name":"CNN","publish_time":"2023-01-26 16:04:38","score":40.9005284,"category":"Top News","origin":"news"},{"topic_index":2,"title":"Adam Schiff Announces Senate Run in California","description":"Mr. Schiff, who led the first impeachment trial of President Donald J. Trump and later served on the House panel investigating the Capitol riot, will seek the seat held by Senator Dianne Feinstein.","url":"https:\/\/www.nytimes.com\/2023\/01\/26\/us\/politics\/adam-schiff-senate-california.html","img":null,"publisher_name":"The New York Times","publish_time":"2023-01-26 15:55:43","score":85.7778824,"category":"Top News","origin":"news"},{"topic_index":2,"title":"Adam Schiff running for Senate in California, joining crowded 2024 primary","description":"WASHINGTON \u2014 Rep. Adam Schiff, D-Calif., announced Thursday he's running for Senate in 2024, joining what's expected to be a crowded Democratic primary race for the seat held by Sen.","url":"https:\/\/www.nbcnews.com\/politics\/2024-election\/adam-schiff-senate-california-rcna67636","img":"","publisher_name":"NBC News","publish_time":"2023-01-26 15:19:49","score":0.0,"category":"US News","origin":"news"},{"topic_index":2,"title":"California Democratic Rep. Adam Schiff to run for US Senate seat held by Feinstein","description":"California Rep. Adam Schiff on Thursday announced his candidacy for U.S. Senate, setting up a possible challenge to incumbent Sen. Dianne Feinstein.","url":"https:\/\/www.foxnews.com\/politics\/california-democratic-rep-adam-schiff-run-us-senate-held-feinstein","img":null,"publisher_name":"FOX News","publish_time":"2023-01-26 15:21:06","score":208.27065758,"category":"Top News","origin":"supplement"},{"topic_index":2,"title":"Schiff announces he's running for Senate in California in 2024","description":"The California Democrat is entering the primary to replace Sen. Dianne Feinstein, who has not yet said whether she will run for reelection.","url":"https:\/\/www.cbsnews.com\/news\/adam-schiff-senate-california-campaign-2024\/","img":null,"publisher_name":"CBS News","publish_time":"2023-01-26 15:31:00","score":0.0,"category":"US News","origin":"supplement"},{"topic_index":1,"title":"Outrage greets Meta decision to lift Trump Facebook ban \u2013 US politics live","description":"Ex-president allowed back on platform after two years awaySign up to receive First Thing \u2013 our daily briefing by emailReturning to reaction to the decision by Meta to allow Donald Trump back on Facebook and Instagram, our own star columnist, Berkeley professor and former US labor secretary, Robert Reich, is not impressed by Mark Zuckerberg\u2019s social media behemoth.\u201cWhy the hell is Zuckerberg giving Donald Trump a free pass to lie and incite violence? The last time Trump\u2019s election lies went unche","url":"https:\/\/www.theguardian.com\/us-news\/live\/2023\/jan\/26\/trump-facebook-ban-meta-biden-economy-politics-live-updates","img":null,"publisher_name":"The Guardian World News","publish_time":"2023-01-26 16:28:32","score":77.66292836,"category":"Top News","origin":"news"},{"topic_index":1,"title":"Adam Schiff Announces Senate Run in California","description":"Mr. Schiff, who led the first impeachment trial of President Donald J. Trump and later served on the House panel investigating the Capitol riot, will seek the seat held by Senator Dianne Feinstein.","url":"https:\/\/www.nytimes.com\/2023\/01\/26\/us\/politics\/adam-schiff-senate-california.html","img":null,"publisher_name":"The New York Times","publish_time":"2023-01-26 15:55:43","score":85.7778824,"category":"Top News","origin":"news"},{"topic_index":1,"title":"Donald Trump\u2019s Truth Social posts bode ill for his return to Facebook","description":"As Trump was reinstated, Meta\u2019s Nick Clegg stressed \u2018guardrails\u2019 were in place. He could soon find them testedIf Donald Trump\u2019s activity on his Truth Social account is a reliable indicator of what his return to Facebook and Instagram will unleash, then Nick Clegg is going to be busy.The former US president has used his rightwing social media platform to push baseless claims of election fraud and amplified content related to the QAnon conspiracy multiverse. These were two issues that received a s","url":"https:\/\/www.theguardian.com\/us-news\/2023\/jan\/26\/donald-trump-truth-social-posts-bode-ill-return-facebook","img":null,"publisher_name":"The Guardian World News","publish_time":"2023-01-26 14:52:50","score":68.74744169,"category":"Top News","origin":"news"},{"topic_index":1,"title":"Donald Trump to be allowed back on to Facebook and Instagram","description":"The social media firm Meta said the former US president's suspension will end in the coming weeks.","url":"https:\/\/www.bbc.co.uk\/news\/business-64408306?at_medium=RSS&at_campaign=KARANGA","img":null,"publisher_name":"BBC World News","publish_time":"2023-01-26 10:44:40","score":88.3812717,"category":"World News","origin":"news"},{"topic_index":1,"title":"Democrat Adam Schiff announces bid for Feinstein's US Senate seat in California","description":"Democratic Rep. Adam Schiff announced a 2024 Senate bid on Thursday, launching a campaign for Sen. Dianne Feinstein's seat in what is shaping up to be a competitive Democratic primary.","url":"https:\/\/www.cnn.com\/2023\/01\/26\/politics\/adam-schiff-california-senate-campaign\/index.html","img":null,"publisher_name":"CNN","publish_time":"2023-01-26 16:04:38","score":40.9005284,"category":"Top News","origin":"supplement"},{"topic_index":1,"title":"Meta to allow Donald Trump back on Facebook, Instagram","description":"Meta Platforms Inc\u00a0META.O\u00a0said on Wednesday it will restore former US President Donald\u00a0Trump's\u00a0Facebook\u00a0and Instagram accounts in the coming weeks, following a two-year suspension after the deadly Capitol Hill riot on January 6, 2021.","url":"https:\/\/www.france24.com\/en\/americas\/20230125-meta-to-allow-donald-trump-back-on-facebook-instagram","img":null,"publisher_name":"France24","publish_time":"2023-01-25 23:57:43","score":0.0,"category":"World News","origin":"supplement"},{"topic_index":1,"title":"Adam Schiff running for Senate in California, joining crowded 2024 primary","description":"WASHINGTON \u2014 Rep. Adam Schiff, D-Calif., announced Thursday he's running for Senate in 2024, joining what's expected to be a crowded Democratic primary race for the seat held by Sen.","url":"https:\/\/www.nbcnews.com\/politics\/2024-election\/adam-schiff-senate-california-rcna67636","img":"","publisher_name":"NBC News","publish_time":"2023-01-26 15:19:49","score":0.0,"category":"US News","origin":"supplement"},{"topic_index":1,"title":"Meta announces it will reinstate Trump's Facebook and Instagram accounts","description":"Social media giant Meta says it will reinstate former President Donald Trump's Facebook and Instagram accounts. And Florida Republican Senator Rick Scott announces that he will seek reelection, forgoing a 2024 presidential bid. CBS News political director Fin Gomez joins Anne-Marie Green and Vlad Duthiers to discuss.","url":"https:\/\/www.cbsnews.com\/video\/meta-will-reinstate-trump-facebook-and-instagram-accounts\/","img":null,"publisher_name":"CBS News","publish_time":"2023-01-26 16:09:01","score":0.0,"category":"US News","origin":"supplement"},{"topic_index":1,"title":"Trump's Facebook, Instagram accounts reinstated after two-year ban","description":"Former President Trump's Facebook and Instagram accounts were reinstated after a two-year suspension for violating the platforms' rules.","url":"https:\/\/www.latimes.com\/business\/technology\/story\/2023-01-25\/trumps-facebook-instagram-accounts-reinstated-after-two-year-ban","img":null,"publisher_name":"LA Times","publish_time":"2023-01-25 22:31:31","score":0.0,"category":"US News","origin":"supplement"},{"topic_index":1,"title":"California Democratic Rep. Adam Schiff to run for US Senate seat held by Feinstein","description":"California Rep. Adam Schiff on Thursday announced his candidacy for U.S. Senate, setting up a possible challenge to incumbent Sen. Dianne Feinstein.","url":"https:\/\/www.foxnews.com\/politics\/california-democratic-rep-adam-schiff-run-us-senate-held-feinstein","img":null,"publisher_name":"FOX News","publish_time":"2023-01-26 15:21:06","score":208.27065758,"category":"Top News","origin":"supplement"},{"topic_index":1,"title":"Schiff announces he's running for Senate in California in 2024","description":"The California Democrat is entering the primary to replace Sen. Dianne Feinstein, who has not yet said whether she will run for reelection.","url":"https:\/\/www.cbsnews.com\/news\/adam-schiff-senate-california-campaign-2024\/","img":null,"publisher_name":"CBS News","publish_time":"2023-01-26 15:31:00","score":0.0,"category":"US News","origin":"supplement"}]
Loading

0 comments on commit aead36d

Please sign in to comment.