Skip to content
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

Remove extra spacing in clear browsing data dialog for PT/Tor windows #14161

Conversation

AlexNguyen1612
Copy link
Contributor

@AlexNguyen1612 AlexNguyen1612 commented Jul 13, 2022

This removed the extra space at the top of the clear browsing data dialog (for Private/Tor windows) that the (removed) header art left so that the UI looks more symmetrical for users

Fix brave/brave-browser#21771

Here are some screenshots

Final version

Resolves

Submitter Checklist:

  • I confirm that no security/privacy review is needed, or that I have requested one
  • There is a ticket for my issue
  • Used Github auto-closing keywords in the PR description above
  • Wrote a good PR/commit description
  • Squashed any review feedback or "fixup" commits before merge, so that history is a record of what happened in the repo, not your PR
  • Added appropriate labels (QA/Yes or QA/No; release-notes/include or release-notes/exclude; OS/...) to the associated issue
  • Checked the PR locally: npm run test -- brave_browser_tests, npm run test -- brave_unit_tests, npm run lint, npm run gn_check, npm run tslint
  • Ran git rebase master (if needed)

Reviewer Checklist:

  • A security review is not needed, or a link to one is included in the PR description
  • New files have MPL-2.0 license header
  • Adequate test coverage exists to prevent regressions
  • Major classes, functions and non-trivial code blocks are well-commented
  • Changes in component dependencies are properly reflected in gn
  • Code follows the style guide
  • Test plan is specified in PR before merging

After-merge Checklist:

Test Plan:

See steps in brave/brave-browser#21771

@AlexNguyen1612 AlexNguyen1612 requested a review from a team as a code owner July 13, 2022 13:48
@AlexNguyen1612 AlexNguyen1612 force-pushed the 21771-remove-extra-spacing-in-clear-browsing-data-window branch from 195c47b to fb4f4de Compare July 31, 2022 13:04
@bsclifton
Copy link
Member

@AlexNguyen1612 please let us know when this is ready for review 😄

@AlexNguyen1612 AlexNguyen1612 force-pushed the 21771-remove-extra-spacing-in-clear-browsing-data-window branch from 79c0202 to f7218c7 Compare August 3, 2022 11:27
@AlexNguyen1612 AlexNguyen1612 force-pushed the 21771-remove-extra-spacing-in-clear-browsing-data-window branch from f7218c7 to d3f7ded Compare August 3, 2022 11:56
@AlexNguyen1612
Copy link
Contributor Author

AlexNguyen1612 commented Aug 3, 2022

Omg, feel like I'm so bad at Git, apologies if you received notifications constantly @bsclifton (and potentially other people who followed this PR...)
This is the first time I work with fork and these kind of open-source stuff so I'm trying to get used to it 😢

@AlexNguyen1612 AlexNguyen1612 reopened this Aug 3, 2022
@AlexNguyen1612 AlexNguyen1612 force-pushed the 21771-remove-extra-spacing-in-clear-browsing-data-window branch from a710eba to 06c601e Compare August 6, 2022 03:03
@AlexNguyen1612
Copy link
Contributor Author

Thanks to @sangwoo108 help, the fix is way easier than I originally thought, I just need to remove the "X" by adding SetShowCloseButton to the new BraveIncognitoDialog ctor
However, IMO, I think the top of the dialog looks a bit chopped off, maybe it needs bit of additional margin there? 🤔
Let me know if this looks okay to you guys @bsclifton @fallaciousreasoning

Copy link
Contributor

@fallaciousreasoning fallaciousreasoning left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for putting this together @AlexNguyen1612! I've checked it out locally and it works well. Personally I think it looks much better the way it is now than before.

One thing, would you mind running npm run format and committing any formatting changes it makes? After that I'll kick of a build, and if it passes, request a chromium_src reviewer to have a look 😄

@AlexNguyen1612 AlexNguyen1612 force-pushed the 21771-remove-extra-spacing-in-clear-browsing-data-window branch from 52bbc17 to 9401da2 Compare August 8, 2022 01:20
@AlexNguyen1612
Copy link
Contributor Author

@fallaciousreasoning no worries, I have just committed the format changes, please have a look 😄

Copy link
Contributor

@sangwoo108 sangwoo108 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you for the PR!

@fallaciousreasoning
Copy link
Contributor

@brave/chromium-src-reviewers, could you PTAL?

@darkdh darkdh removed the request for review from a team August 10, 2022 17:15
@AlexNguyen1612 AlexNguyen1612 force-pushed the 21771-remove-extra-spacing-in-clear-browsing-data-window branch from 9401da2 to d19c783 Compare August 13, 2022 05:35
@sangwoo108
Copy link
Contributor

CI passed : #14614

@AlexNguyen1612
Copy link
Contributor Author

AlexNguyen1612 commented Aug 15, 2022

Not really sure what the process is but is there anything else you guys need on my end? 🤔 Just checkin
@sangwoo108 @fallaciousreasoning

@sangwoo108
Copy link
Contributor

sangwoo108 commented Aug 15, 2022

When we touch chromium_src/ files, we need approval from chromiu_src reviewers. Let me ping them.

sangwoo108 and others added 6 commits August 16, 2022 08:33
This removed the 'x' button at the top of the dialog to eliminate redundant spacings
Run 'npm run format' to make sure code are nicely formatted

Fix brave/brave-browser#21771
Although the original solution worked, it added some complexity only to use SetShowCloseButton(false). This is a much effecient way to do it

Fix brave/brave-browser#21771
Address code review comments

Fix brave/brave-browser#21771"
Simplify defining SetShowCloseButton and add undef

Fix brave/brave-browser#21771
@AlexNguyen1612 AlexNguyen1612 force-pushed the 21771-remove-extra-spacing-in-clear-browsing-data-window branch from cd38b92 to ad43a1e Compare August 15, 2022 23:14
@goodov goodov merged commit a18a9d9 into brave:master Aug 16, 2022
@AlexNguyen1612
Copy link
Contributor Author

Yayy, my very first contribution to an open source project on github!
Thanks all, especially @sangwoo108 for guiding and explaining things in details for me 🙏

Any suggestions on where to go from here? I would love to get involved and contribute more to Brave 😄
Also, how can I join the community here (on Slack)? 🤔

image

@sangwoo108
Copy link
Contributor

sangwoo108 commented Aug 16, 2022

Huge congratulations @AlexNguyen1612 🥳! Welcome to the world of open source!

As you did, you can pick up one of good first bug issues. If you're more ambitious than that, I think you can try scanning tasks with p4 or p5. They're worth doing, but we couldn't put effort into them due to limited resource. As for 'community', let me check that again.

@bsclifton
Copy link
Member

bsclifton commented Aug 16, 2022

Congrats @AlexNguyen1612! Great job working with the team on this one and minimizing the changes needed 😄

Added missing milestone 👍

@bsclifton bsclifton added this to the 1.44.x - Nightly milestone Aug 16, 2022
@fallaciousreasoning
Copy link
Contributor

Nice one @AlexNguyen1612! Thanks for the contribution 😄

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Remove extra spacing from clear browsing data bubble for PT/Tor windows
6 participants