Commit Graph
538 Commits
Author SHA1 Message Date
Pete Miller 4b12f083ef Revert "Brave News user-provided feed support (rss, atom, etc)" 2022-01-24 12:05:46 -08:00
Pete Miller 491cdaece4 Introduce RSS / Atom feed support for Brave News
This first version provides the user a feature to add custom feed urls
to their preferences via the NTP "customize" button. Once added, feed
content will be downloaded on the same schedule as the current "combined
sources" single remote feed. The "direct feed" items will be scored using
approximately the same algorithm as the existing items, and displayed
using the existing Brave News feed view.

This PR does not introduce the relevant UI for Android, only Desktop.
2022-01-21 10:09:58 -08:00
Szilard Szaloki 4c3c01be7d Handling Uphold's CDD (customer due diligence) process.
- introducing `upholdCustomerDueDiligenceRequiredModal` that tells the user to complete the CDD survey on Uphold
- parsing out `verifications.customerDueDiligence.status` from the response of `GET https://api.uphold.com/v0/me`
- sending the user to `NOT_CONNECTED`/`DISCONNECTED_VERIFIED` if CDD is required for them
- and showing `upholdCustomerDueDiligenceRequiredModal` (and `kWalletDisconnected` if already VERIFIED)
- adding test cases
2022-01-20 11:16:32 +01:00
Pete Miller 67a9388252 New Tab Page WebUI - remove widget visibility migration and set the initial pref value to false
This should have no effect since all (or most) existing users would be migrated with the last 2 major releases and now only new users would be affected
2022-01-14 16:45:27 -08:00
zenparsing f5ba2a9f26 Update Rewards payout status messaging 2021-12-22 10:44:04 -05:00
Terry Mancey 455d366f21 Refactor unblinded tokens 2021-12-03 16:40:40 -05:00
alexsafe dd08a04bf4 Merge pull request #11121 from brave/bravenews-android
Brave news android
2021-11-25 16:58:17 +01:00
Simon Hong 5b02b59110 Migrate crypto widgets visibility in NTP (#11266)
* Migrate crypto widgets visibility in NTP

fix https://github.com/brave/brave-browser/issues/19708

Migration is done once in the first NTP loading.

For new users, all crypto widgets are hidden by default.
For existing users, if current foremost widget is crypto widget,
only it is visible and others are hidden.
And, authed widgets are visible regardless of its position in widget stack
After migration, user can control crypto widget's visibility from gallery.

To make all crypto widgets hidden by default, each pref's default
value is not changed. Their default prefs is still "true".
As their visibility are managed by prefs and widget order is managed in local
storage, it's difficult to start migration from c++. If default is changed
to false, it's very difficult to determine whether foremost widget is crypto
or not in the NTP webui.
2021-11-25 13:43:57 +09:00
Pete Miller 9fab483445 NTP WebUI hides Brave News if feature flag is disabled
Feature flag is favored over buildflag now, so remove it from remaining
places.
2021-11-24 18:06:24 -05:00
Szilard Szaloki b5a2965d92 Merge pull request #10941 from brave/sszaloki-805-disambiguate-on-http-403
Disambiguating on the `HTTP 403 (Forbidden)` returned by our linking endpoints.
2021-11-11 22:13:55 +01:00
Szilard Szaloki 96af346155 Disambiguating on the HTTP 403 (Forbidden) returned by our linking endpoints. 2021-11-11 16:13:29 +01:00
Taher 8f2c3ba9a3 Manually fixed typescript issues 2021-11-11 06:34:23 -08:00
Pete Miller ce0c689973 Brave News: refactor to have API return card data and in intended display order, instead of a flat list of content
Previously, the front-end would decide on the order and type of card used for each feed item. Having the mojom API return that makes it easier to have the same decisions apply to desktop and android.
Also uses strong typings from mojom es module output. Works very well with Typescript.
Now that the mojom API is feature-complete, we can remove the extension API.
2021-11-08 15:49:23 -08:00
Pete Miller 565458bf1d Brave News: implement backend in mojom, removing extension backend and webui message handler.
This facilitates both a frontend implementation in Android as well and eventually removing the built-in extension.
2021-11-08 15:20:59 -08:00
Pete Miller 9b734cd923 Merge pull request #10827 from brave/typescript-444 2021-11-08 07:14:51 -08:00
Pete Miller a8e0d7f810 Remove 'deep-freeze-node' dep 2021-11-04 17:27:06 -07:00
Pete Miller a82e73b135 Upgrade typescript to 4.4 2021-11-04 16:44:21 -07:00
Simon Hong 1e8a13a35e Displays bg images from component in NTP
NewTab's state will have below two struct.
* NewTab.BackgroundWallpaper
* NewTab.BrandedWallpaper

NTP will display spencer-moore_lake.avif till NTP BI component
is ready like android does.
2021-10-28 14:55:02 +09:00
Kevin Smith df570727f2 Merge pull request #10302 from brave/ksmith-rewards-widget
Update new tab page rewards widget
2021-10-13 09:50:49 -04:00
Szilard Szaloki 3eaf763eea Converting ExternalWalletLinkingFailedNotification notifications into modals.
- `uphold_bat_not_allowed_for_user` `==>` `upholdBATNotAllowedModal`
- `uphold_blocked_user` `==>` `upholdBlockedUserModal`
- `uphold_pending_user` `==>` `upholdPendingUserModal`
- `uphold_restricted_user` `==>` `upholdRestrictedUserModal`
- `wallet_device_limit_reached` `==>` `deviceLimitReachedModal`
- `wallet_mismatched_provider_accounts` `==>` `mismatchedProviderAccountsModal`
- fixing the `upholdBATNotAllowedModal` modal
2021-10-12 17:49:20 +02:00
zenparsing 40256160fc Update new tab page rewards widget 2021-10-12 10:21:11 -04:00
Emerick Rogul 715a69a9ca Remove DDG search toggle from private tabs 2021-10-08 10:51:43 -04:00
Brian Clifton e1e5c68f53 Merge pull request #10326 from brave/bsc-update-default-search
Update default search for 5 regions
2021-10-05 16:22:58 -07:00
Brian Clifton 2058682484 Update Desktop onboarding to skip Search card for specific regions
Fixes https://github.com/brave/brave-browser/issues/18415
2021-09-29 23:14:23 -07:00
Aleksey Seren 5230bb0e8d Add ads/rewards enable popup UI.
fix https://github.com/brave/brave-browser/issues/16964
2021-09-30 01:33:54 +07:00
Brian R. Bondy f4bffae6cf Remove promptToEnableWallet and related code 2021-09-22 16:03:53 -04:00
Brian R. Bondy 2c3ae103b8 Remove dapp detection and Ask option for default dapp setting 2021-09-22 16:03:53 -04:00
Szilard Szaloki 58cd378ac6 Replacing 0.0 BAT in "Earnings from Ads" with a link to the user's custodian-specific transaction history page. 2021-09-20 22:48:57 +02:00
Mikhail f1d6a8c9cc Fix content_cosmetic.bundle.js multiple injections (#10039)
* Fix content_cosmetic.bundle.js multiple injections
* Fix review issues
* Fix comments
2021-09-14 19:54:35 +07:00
Anton Lazarev 5d5c4cd2f7 Merge pull request #9995 from brave/remove-cosmetic-filtering-extension-version
Remove cosmetic filtering extension version
2021-09-08 10:55:32 -07:00
Anton Lazarev ff223a5176 remove cosmetic filtering extension version 2021-09-07 15:06:30 -07:00
zenparsing 58de26b852 Integrate Rewards panel 2.0 2021-09-07 15:00:46 -04:00
zenparsing 0b13112ce1 Update front-end code for Adaptive captcha 2021-09-03 07:04:22 -04:00
Emerick Rogul 465b394cc9 Initial work on adaptive captcha 2021-09-03 07:04:21 -04:00
Brian Johnson db5da23611 Merge pull request #8124 from brave/adblock-custom-subscriptions
Support custom filter list subscriptions in brave://adblock
2021-09-01 08:59:07 -07:00
Szilard Szaloki d19e405803 Adding the "mismatched provider accounts" modal and applying it to bitFlyer. 2021-08-23 20:59:53 +02:00
Anton Lazarev 42bceed7cd use consistent "subscription" naming 2021-08-20 11:13:55 -07:00
Anton Lazarev af9ddad661 add custom subscription section to brave://adblock 2021-08-20 11:13:51 -07:00
Aleksey Seren 20c91cd45d Refactor ad diagnostics classes.
fix https://github.com/brave/brave-core/pull/9553
2021-08-12 14:26:40 +07:00
Aleksey Seren daa7d1e340 Fixes by code review. 2021-08-12 14:26:40 +07:00
Aleksey Seren 11ab9ed2d6 Add "Ad diagnostics" page interface. 2021-08-12 14:26:40 +07:00
Pete Miller 198bbcf74b New Tab Page: Brave Talk prompt only shown from 3 days after first run 2021-08-05 00:29:11 -07:00
Pete Miller ee269e64e7 New Tab Page: Brave Talk prompt auto dismissed after 4 seconds for subsequent tabs 2021-08-05 00:29:11 -07:00
Brian Clifton 8b42deb265 Rename instances of together
Originally done as separate commits (one at a time) and compiled/tested after each.

Fixes https://github.com/brave/brave-browser/issues/17138

- Update component namespace (from `brave_together` to `brave_talk`)
- Update extension API (from `braveTogether` to `braveTalk`)
- Update strings (from `together`/`TOGETHER` to `braveTalk`/`BRAVE_TALK`)
- Rename `showTogether` => `showBraveTalk`
- Rename `togetherSupported` => `braveTalkSupported`
- Rename constant `kNewTabPageShowTogether` => `kNewTabPageShowBraveTalk`
  (Does not affect actual profile setting)
- Rename Widget (from `TogetherWidget` to `BraveTalkWidget`)
- Rename `togetherPromptDismissed` => `braveTalkPromptDismissed`
- Rename `supportsTogether` => `supportsBraveTalk`
- Rename `saveShowTogether` => `saveShowBraveTalk`
- Rename `toggleShowTogether` => `toggleShowBraveTalk`
- Rename `TogetherTooltip` => `BraveTalkTooltip`
- Rename `TogetherIcon` => `BraveTalkIcon`
- Rename `renderTogetherWidget` => `renderBraveTalkWidget`
- Rename `dismissTogetherPrompt` => `dismissBraveTalkPrompt`
- Rename `onDismissTogetherPrompt` => `onDismissBraveTalkPrompt`
- Rename `togetherBanner` => `braveTalkBanner`
- Rename `TogetherItem` => `BraveTalkItem`
- Rename `BraveTogetherIcon` as `BraveTalkSvg`
- Rename "widget stack" name from `together` to `braveTalk`
2021-08-03 08:49:18 -07:00
Szilard Szaloki aaa3b13bf0 Adding Custodian and Custodian member ID to rewards-internals. 2021-07-23 20:56:08 +02:00
Anton Lazarev 6f2abbfd9c Merge pull request #9392 from brave/remove-legacy-cosmetic-filter-migration
Remove legacy cosmetic filter migration code
2021-07-22 07:31:22 -07:00
Sergey 510cf6f184 Merge pull request #9369 from brave/issue-16804
Reset connected peers when daemon is not launched
2021-07-14 20:28:59 +03:00
Pranjal Jumde 56555ad718 Fix #14629 - Add support for Gemini for rewards external wallets 2021-07-13 17:24:53 -05:00
zenparsing ae07233189 Remove usage of firstLoad state from Rewards page 2021-07-13 11:46:11 -04:00
Anton Lazarev 910899c960 remove legacy cosmetic filter migration code 2021-07-09 14:18:17 -07:00