-
Notifications
You must be signed in to change notification settings - Fork 971
Converts bookmarksToolbar and bookmarkToolbarButton into redux #9030
Conversation
@luixxiul this is not ready for a review |
a3d9ee0
to
8479c8c
Compare
8479c8c
to
9b0c1a9
Compare
blocked on #9176 |
9b0c1a9
to
3af4af3
Compare
3af4af3
to
341aa7c
Compare
e21ade1
to
eaa5d50
Compare
Resolves brave#9030 Auditors: @bsclifton @bridiver @ayumi Test Plan:
eaa5d50
to
92b3067
Compare
92b3067
to
0532b52
Compare
@darkdh can you please check out why we still need this line https://github.com/brave/browser-laptop/pull/9030/files#diff-5da1a3da6effd6fc765f3f68b7162215R34 even though that this shouldn't be needed, because of this PR #8075. Note that we are getting state now directly. Is it possible, that there is an delay (state is updated, but not sorted immediately) and because of that mergeProps get the old sort and because bookmarks are the same (after state sort is done) we don't trigger re-render? |
sure, will look at it soon |
app/common/state/bookmarksState.js
Outdated
return { | ||
visibleBookmarks: noParentItems.take(i), | ||
// Show at most 100 items in the overflow menu | ||
hiddneBookmarks: noParentItems.skip(i).take(100) |
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.
hiddne
-> hidden
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.
fixed
app/common/state/bookmarksState.js
Outdated
const {iconSize} = require('../../../js/constants/config') | ||
|
||
const bookmarksState = { | ||
getDNDBookmarkData: (state, bookmark) => { |
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.
I think these probably make more sense in bookmarkUtil. Bookmarks don't have their own state right now because they are part of sites
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.
moved
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.
bookmarkState methods to bookmarkUtil and then ++
e3eeff8
to
7c1d22f
Compare
Resolves brave#9421 Auditors: @bsclifton @bridiver Test Plan:
7c1d22f
to
5f6f453
Compare
Submitter Checklist:
git rebase -i
to squash commits (if needed).Resolves #9421
Auditors: @bsclifton @bridiver
Note: Follow up for this PR is #9517 (PR #9611)
Test plan:
Reviewer Checklist:
Tests