-
Notifications
You must be signed in to change notification settings - Fork 925
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 Talk code cleanup (renaming) and putting behind flag for Griffin #9605
Conversation
a6e7c98
to
ee5db1c
Compare
- JavaScript/TypeScript files together => braveTalk - Rename extension API - Rename components/brave_together => components/brave_talk - Rename file `togetherIcon` => `braveTalkIcon` - Rename file `brave-together-icon.tsx` => `brave-talk-svg.tsx`
We can instead put this behind a brave://flags entry
ee5db1c
to
b2f2633
Compare
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.
++ nice cleanup!
Found brave/brave-browser#17301 when testing - this is also happening on Nightly (ex: wasn't introduced by this PR) |
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.
Renames all look great! Can we rebase most of the commits which are either renaming or addressing review feedback?
braveTalkPromptDismissed: boolean | ||
braveTalkSupported: boolean |
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 will bring the prompt back for users on Nightly channel who dismissed it, but that's totally ok by me!
Rebase and squashing would be perfect! Maybe once @goodov gives this a re-review, I'll be able to squash it up 😄 |
Originally done as separate commits (one at a time) and compiled/tested after each. Fixes brave/brave-browser#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`
Will allow us to roll the feature out on other channels using Griffin Fixes brave/brave-browser#17210
Remove unused code (Brave Talk widget region restriction)
d87ac4c
to
d6df0ea
Compare
Brave Talk code cleanup (renaming) and putting behind flag for Griffin
Verified
Steps:
|
Also verified on
|
Fixes brave/brave-browser#17138
Fixes brave/brave-browser#17210
This pull request has two goals:
Brave Together
orTogether
in the code asBrave Talk
We could then roll this feature out using Griffin on a per-channel basis
Extra care was taken with renaming. I had originally done as a large series of commits and then squashed similar types together (renaming files, updating strings, updating extension API, updating the JavaScript references). Between each commit, I compiled and tested to make sure things work
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: