-
Notifications
You must be signed in to change notification settings - Fork 921
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Brave News 2.0 Settings UI #14268
Brave News 2.0 Settings UI #14268
Conversation
Potential list of what this feature needs before we can merge it (or at least release if behind a flag, but that may be more complicated than it's worth):
|
3f83dc7
to
11fe16b
Compare
bc29cb3
to
5036714
Compare
83afe28
to
43f794a
Compare
009a015
to
defdc12
Compare
A Storybook has been deployed to preview UI for the latest push |
602ec31
to
d4f4cee
Compare
A Storybook has been deployed to preview UI for the latest push |
54965b8
to
e51a105
Compare
A Storybook has been deployed to preview UI for the latest push |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is great, especially visually. I left some feedback, mostly organizational.
I had an issue when testing migration experience. Probably related to another PR and maybe we need to fix in a follow-up, but this is how I tested:
- Started a profile (pointing at brave news staging) with the "news 2.0" flag set to default
- Opted in to Brave News and could see content
- Enabled the "news 2.0" flag
- Restarted
After that, Brave News had no feed content. I wasn't subscribed to the "Top Sources" channel. One I added that subscription manually, Brave News had content again.
components/brave_new_tab_ui/components/default/braveToday/cards/CardImage.tsx
Show resolved
Hide resolved
components/brave_new_tab_ui/components/braveNews/ChannelCard.tsx
Outdated
Show resolved
Hide resolved
const CloseButton = styled(Button)` | ||
--inner-border-size: 0; | ||
--outer-border-size: 0; | ||
padding: 12px; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
See my note on button customizations vs dedicated close button.
components/brave_new_tab_ui/components/default/braveToday/content.tsx
Outdated
Show resolved
Hide resolved
components/brave_new_tab_ui/components/default/braveToday/content.tsx
Outdated
Show resolved
Hide resolved
Following | ||
</message> | ||
<message name="IDS_BRAVE_NEWS_SOURCE_COUNT" desc="Label saying how many sources you currently have"> | ||
<ph name="FEED_COUNT">$1<ex>10</ex></ph> sources |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If this starts to look strange (e.g. in English when there is only 1 source), there is a facility to do differing translation variants for 0, 1 or more counts.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done.
components/brave_new_tab_ui/components/default/braveToday/customize/Context.tsx
Outdated
Show resolved
Hide resolved
a10afb1
to
854f6f2
Compare
I pushed a rebase and squash, and fixed an issue with the storybook GN build target deps |
cc02e2b
to
cdf09fc
Compare
A Storybook has been deployed to preview UI for the latest push |
A Storybook has been deployed to preview UI for the latest push |
A Storybook has been deployed to preview UI for the latest push |
1 similar comment
A Storybook has been deployed to preview UI for the latest push |
…ions, search and a separate list of subscribed sources and channels This functionality is behind a flag Storybook build depends on chrome://resources/js/plural_string_proxy.js via comeponents/brave_new_tab_ui/components/default/braveToday/customize/SourcesList.tsx News customize - lazy-load the modal dialog
…licks a button Also - Include publishers with matching site and feed url - Match global publishers - Adjust section titles - Refactor to split Discover Home from Search Results
…rces urls and stub plural_string_proxy.js.ts so it does not error
I added the license header to all the files and pushed |
A Storybook has been deployed to preview UI for the latest push |
This adds as much of the new settings UI from here as possible without the required backend changes.
Here's a video showcasing the new UI
Screencast from 05-10-22 15:29:36.webm
Resolves brave/brave-browser#25801
Submitter Checklist:
QA/Yes
orQA/No
;release-notes/include
orrelease-notes/exclude
;OS/...
) to the associated issuenpm run test -- brave_browser_tests
,npm run test -- brave_unit_tests
,npm run lint
,npm run gn_check
,npm run tslint
git rebase master
(if needed)Reviewer Checklist:
gn
After-merge Checklist:
changes has landed on
Test Plan:
On brave/brave-browser#25801