Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(120)

Issue 2614703003: [MD Bookmarks] Add search. (Closed)

Created:
3 years, 11 months ago by angelayang
Modified:
3 years, 11 months ago
Reviewers:
tsergeant, calamity, jiaxi
CC:
chromium-reviews, michaelpg+watch-md-ui_chromium.org, arv+watch_chromium.org
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

[MD Bookmarks] Add search. This CL implements search by sending a query to the existing backend search and then updating the ui to reflect the search result. The bookmarks list will now either display the contents of a folder or the search results. BUG=658980 CQ_INCLUDE_TRYBOTS=master.tryserver.chromium.linux:closure_compilation Review-Url: https://codereview.chromium.org/2614703003 Cr-Commit-Position: refs/heads/master@{#443499} Committed: https://chromium.googlesource.com/chromium/src/+/2c22f5c684f13a4b7b9eeb3ff7007e80e5b1e8b0

Patch Set 1 #

Total comments: 4

Patch Set 2 : Refactor search logic into store and add search tests. #

Total comments: 2

Patch Set 3 : Merge and fix closure. #

Total comments: 22

Patch Set 4 : Fix bug in remove non-empty folder from search list. #

Total comments: 12

Patch Set 5 : Add search result refresh for bookmark editing. #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+161 lines, -35 lines) Patch
M chrome/browser/resources/md_bookmarks/app.html View 1 1 chunk +5 lines, -4 lines 0 comments Download
M chrome/browser/resources/md_bookmarks/app.js View 1 2 3 1 chunk +5 lines, -3 lines 0 comments Download
M chrome/browser/resources/md_bookmarks/compiled_resources2.gyp View 1 2 1 chunk +1 line, -0 lines 0 comments Download
M chrome/browser/resources/md_bookmarks/list.html View 1 2 3 1 chunk +3 lines, -4 lines 0 comments Download
M chrome/browser/resources/md_bookmarks/list.js View 1 2 3 3 chunks +7 lines, -7 lines 0 comments Download
M chrome/browser/resources/md_bookmarks/store.js View 1 2 3 4 5 chunks +67 lines, -8 lines 0 comments Download
M chrome/browser/resources/md_bookmarks/toolbar.html View 1 chunk +2 lines, -1 line 0 comments Download
M chrome/browser/resources/md_bookmarks/toolbar.js View 1 2 chunks +29 lines, -1 line 0 comments Download
M chrome/test/data/webui/md_bookmarks/store_test.js View 1 2 3 2 chunks +42 lines, -7 lines 1 comment Download

Dependent Patchsets:

Messages

Total messages: 30 (18 generated)
angelayang
Take a look? thanks
3 years, 11 months ago (2017-01-05 05:36:37 UTC) #4
angelayang
https://codereview.chromium.org/2614703003/diff/1/chrome/browser/resources/md_bookmarks/store.js File chrome/browser/resources/md_bookmarks/store.js (right): https://codereview.chromium.org/2614703003/diff/1/chrome/browser/resources/md_bookmarks/store.js#newcode92 chrome/browser/resources/md_bookmarks/store.js:92: // Active the sidebar. // Set sidebar to active.
3 years, 11 months ago (2017-01-05 05:44:52 UTC) #7
tsergeant
I'm a little concerned about how this is going to integrate with the rest of ...
3 years, 11 months ago (2017-01-06 02:43:54 UTC) #13
angelayang
Hello, I have made major changes to the search. I've also added search tests and ...
3 years, 11 months ago (2017-01-12 05:04:32 UTC) #15
angelayang
I've merged. take a look :) https://codereview.chromium.org/2614703003/diff/80001/chrome/browser/resources/md_bookmarks/store.js File chrome/browser/resources/md_bookmarks/store.js (right): https://codereview.chromium.org/2614703003/diff/80001/chrome/browser/resources/md_bookmarks/store.js#newcode89 chrome/browser/resources/md_bookmarks/store.js:89: this.selectedId = ''; ...
3 years, 11 months ago (2017-01-12 06:08:06 UTC) #16
tsergeant
Yay! https://codereview.chromium.org/2614703003/diff/80001/chrome/browser/resources/md_bookmarks/app.js File chrome/browser/resources/md_bookmarks/app.js (right): https://codereview.chromium.org/2614703003/diff/80001/chrome/browser/resources/md_bookmarks/app.js#newcode16 chrome/browser/resources/md_bookmarks/app.js:16: displayedList: Array, Closure annotation here: /** @type{Array<BookmarkTreeNode>} */ ...
3 years, 11 months ago (2017-01-12 06:45:06 UTC) #17
angelayang
Hi I fixed the some of the issues from before. Take a look when you ...
3 years, 11 months ago (2017-01-12 07:51:24 UTC) #18
tsergeant
looking good! https://codereview.chromium.org/2614703003/diff/100001/chrome/browser/resources/md_bookmarks/list.html File chrome/browser/resources/md_bookmarks/list.html (left): https://codereview.chromium.org/2614703003/diff/100001/chrome/browser/resources/md_bookmarks/list.html#oldcode71 chrome/browser/resources/md_bookmarks/list.html:71: <hidden$="[[isListEmpty_(selectedNode.children.length)]]"> whoops https://codereview.chromium.org/2614703003/diff/100001/chrome/browser/resources/md_bookmarks/store.js File chrome/browser/resources/md_bookmarks/store.js (right): https://codereview.chromium.org/2614703003/diff/100001/chrome/browser/resources/md_bookmarks/store.js#newcode15 ...
3 years, 11 months ago (2017-01-12 23:44:21 UTC) #19
angelayang
Hello, I fixed some things. Thanks :) https://codereview.chromium.org/2614703003/diff/100001/chrome/browser/resources/md_bookmarks/list.html File chrome/browser/resources/md_bookmarks/list.html (left): https://codereview.chromium.org/2614703003/diff/100001/chrome/browser/resources/md_bookmarks/list.html#oldcode71 chrome/browser/resources/md_bookmarks/list.html:71: <hidden$="[[isListEmpty_(selectedNode.children.length)]]"> On ...
3 years, 11 months ago (2017-01-13 00:25:11 UTC) #20
tsergeant
lgtm https://codereview.chromium.org/2614703003/diff/120001/chrome/test/data/webui/md_bookmarks/store_test.js File chrome/test/data/webui/md_bookmarks/store_test.js (right): https://codereview.chromium.org/2614703003/diff/120001/chrome/test/data/webui/md_bookmarks/store_test.js#newcode180 chrome/test/data/webui/md_bookmarks/store_test.js:180: chrome.bookmarks.search = function(searchTerm, callback) { No need to ...
3 years, 11 months ago (2017-01-13 01:56:23 UTC) #21
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2614703003/120001
3 years, 11 months ago (2017-01-13 05:28:04 UTC) #27
commit-bot: I haz the power
3 years, 11 months ago (2017-01-13 05:38:28 UTC) #30
Message was sent while issue was closed.
Committed patchset #5 (id:120001) as
https://chromium.googlesource.com/chromium/src/+/2c22f5c684f13a4b7b9eeb3ff700...

Powered by Google App Engine
This is Rietveld 408576698