-
Notifications
You must be signed in to change notification settings - Fork 869
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
Vertical tab - drag&drop feature for link and text. #19785
Conversation
@sangwoo108 Kindly review 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.
Thanks for the PR! Impressive work!
Updated issue description to link the issue that this PR fixes |
@sangwoo108 I've implemented the required changes. Could you please verify them? |
@simonhong Could you double check 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.
👍🏼
browser/ui/views/frame/vertical_tab_strip_root_view_browsertest.cc
Outdated
Show resolved
Hide resolved
@sangwoo108 I've used the Edge as a reference for dropping links or text onto pinned tabs. In Edge, |
I think hot_height is more proper for us. Did you find using hot_width is better? |
When the tab is expanded, and pinned tabs are displayed in a grid view, we need to show a downward indicator for pinned tabs. In this case, we must also take the x-axis into consideration. |
Well, when we drop a link in between pinned tabs, a new tab seems to be created as normal tab. So I feel like we don't have to consider {hot_width/height} of pinned tabs at all. But I agree that the arrow is downward as you said, horizontal axis would be better. |
@sangwoo108 Considering the 'hot_width' of the tab, I've calculated the drop index, which is then used to determine the drop bounds of the indicator. Are you suggesting that I should set this 'hot_width' to 0 so that the entire width of the pinned tab is taken into account for dropping? |
I think you can leave it as you implemeneted. We might want to create a pinned tabs when it's in the hot width. But it should be discussed with other folks. |
Thanks for your effort on this @thirumurugan-git |
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.
LGTM with a few nits 👍 Let me run our CI again.
@sangwoo108 I have made the changes. Could you please review them? |
I see some errors from |
0e9fb35
to
27dc3ca
Compare
Hi, @thirumurugan-git , Our CI reports that some tests fails. It might be a platform specific things but I'm hoping you could check out. This happens on a Windows bot.
|
@sangwoo108 I am unable to debug the issue on my machine as I do not have a Windows machine. Could you please share the stack trace so that I can fix it on my branch? |
Sure, here you are. If you think this failures are Windows specific thing due to some limitation of test env, you can disable the tests on Windows with following pattern stacks
|
Sorry, didn't realize you pushed fix. Let me rebase and run CI again. |
dae75d2
to
79cae2c
Compare
@thirumurugan-git , unfortunately, the fix didn't help us. I think we can dsiable the tests on Windows as I've seen that interactive tests for dnd on Windows flaky before. let me disable the tests and retry. |
This reverts commit c5d348b.
@simonhong Could you take another look at this before merging this? |
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.
++ 👍🏼
@thirumurugan-git I really appreciate your time and effort for this PR 👍 |
@sangwoo108 I appreciate your help in diagnosing the issue and fixing it. Unfortunately, I was unable to resolve the issue myself as I do not have a Windows machine. |
Adds drag & drop(link and text) feature to vertical tabs.
vtab-drag-n-drop.webm
Resolves brave/brave-browser#31492
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
wikinpm run lint
,npm run presubmit
wiki,npm run gn_check
,npm run tslint
git rebase master
(if needed)Reviewer Checklist:
gn
After-merge Checklist:
changes has landed on
Test Plan: