Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code

Issue 29333819: Issue 2375 - Implement "Blocking lists" section in new options page (Closed)

Created:
Jan. 18, 2016, 9:50 a.m. by saroyanm
Modified:
Feb. 5, 2016, 11:34 a.m.
Reviewers:
Thomas Greiner
CC:
Felix Dahlke
Visibility:
Public.

Description

Issue 2375 - Implement "Blocking lists" section in new options page

Patch Set 1 #

Total comments: 112

Patch Set 2 : Addressed Thomas comments #

Total comments: 56

Patch Set 3 : #

Total comments: 24

Patch Set 4 : Rebase to d12b18c2a168 #

Total comments: 1

Patch Set 5 : #

Patch Set 6 : #

Total comments: 30

Patch Set 7 : Small fixes and fix for Object.defineProperty #

Total comments: 6

Patch Set 8 : Small fixes and improved download messages for filter lists #

Total comments: 10

Patch Set 9 : Fixed the progress indicator and small fixes #

Total comments: 2
Unified diffs Side-by-side diffs Delta from patch set Stats (+713 lines, -209 lines) Patch
M README.md View 1 2 3 4 5 6 7 1 chunk +2 lines, -0 lines 0 comments Download
M background.js View 1 2 3 4 5 6 7 8 6 chunks +39 lines, -3 lines 2 comments Download
M i18n.js View 1 2 3 4 5 6 2 chunks +35 lines, -11 lines 0 comments Download
M locale/en-US/options.json View 1 2 3 4 5 6 6 chunks +66 lines, -26 lines 0 comments Download
M messageResponder.js View 1 2 3 4 5 6 7 8 3 chunks +25 lines, -3 lines 0 comments Download
M options.html View 1 2 3 4 5 6 7 8 6 chunks +58 lines, -23 lines 0 comments Download
M options.js View 1 2 3 4 5 6 7 8 23 chunks +219 lines, -70 lines 0 comments Download
M skin/options.css View 1 2 3 4 5 6 7 8 12 chunks +269 lines, -73 lines 0 comments Download
M skin/options-sprite.png View 1 2 3 4 5 Binary file 0 comments Download

Messages

Total messages: 18
saroyanm
Finally, @Thomas can you please have a look.
Jan. 18, 2016, 9:54 a.m. (2016-01-18 09:54:28 UTC) #1
Thomas Greiner
https://codereview.adblockplus.org/29333819/diff/29333820/background.js File background.js (right): https://codereview.adblockplus.org/29333819/diff/29333820/background.js#newcode195 background.js:195: modules.filterNotifier.FilterNotifier.triggerListeners("subscription.updated", subscription); Since you added error messages as part ...
Jan. 19, 2016, 11:27 a.m. (2016-01-19 11:27:31 UTC) #2
saroyanm
https://codereview.adblockplus.org/29333819/diff/29333820/background.js File background.js (right): https://codereview.adblockplus.org/29333819/diff/29333820/background.js#newcode195 background.js:195: modules.filterNotifier.FilterNotifier.triggerListeners("subscription.updated", subscription); On 2016/01/19 11:27:26, Thomas Greiner wrote: > ...
Jan. 22, 2016, 9:55 a.m. (2016-01-22 09:55:13 UTC) #3
Thomas Greiner
https://codereview.adblockplus.org/29333819/diff/29333820/messageResponder.js File messageResponder.js (right): https://codereview.adblockplus.org/29333819/diff/29333820/messageResponder.js#newcode50 messageResponder.js:50: "downloadStatus", "lastDownload", "homepage", "lastSuccess", "title", "url"]); On 2016/01/22 09:55:06, ...
Jan. 25, 2016, 3:40 p.m. (2016-01-25 15:40:39 UTC) #4
saroyanm
New patch uploaded https://codereview.adblockplus.org/29333819/diff/29333820/messageResponder.js File messageResponder.js (right): https://codereview.adblockplus.org/29333819/diff/29333820/messageResponder.js#newcode50 messageResponder.js:50: "downloadStatus", "lastDownload", "homepage", "lastSuccess", "title", "url"]); ...
Jan. 26, 2016, 6:36 p.m. (2016-01-26 18:36:21 UTC) #5
Thomas Greiner
https://codereview.adblockplus.org/29333819/diff/29333820/options.html File options.html (right): https://codereview.adblockplus.org/29333819/diff/29333820/options.html#newcode248 options.html:248: <a href="#" data-action="open-context-menu" class="arrow"></a> On 2016/01/22 09:55:07, saroyanm wrote: ...
Jan. 27, 2016, 5:17 p.m. (2016-01-27 17:17:02 UTC) #6
saroyanm
Rebased, will address the comments soon as well.
Jan. 28, 2016, 1:46 p.m. (2016-01-28 13:46:17 UTC) #7
Thomas Greiner
Just a minor comment about the rebasing. https://codereview.adblockplus.org/29333819/diff/29334799/options.js File options.js (right): https://codereview.adblockplus.org/29333819/diff/29334799/options.js#newcode83 options.js:83: updateBlockingList(listItem, item); ...
Jan. 28, 2016, 2:09 p.m. (2016-01-28 14:09:59 UTC) #8
saroyanm
New patch uploaded, Note: I've generated the sprite again from xcf again, so you can ...
Jan. 28, 2016, 5 p.m. (2016-01-28 17:00:16 UTC) #9
Thomas Greiner
https://codereview.adblockplus.org/29333819/diff/29333820/options.html File options.html (right): https://codereview.adblockplus.org/29333819/diff/29333820/options.html#newcode248 options.html:248: <a href="#" data-action="open-context-menu" class="arrow"></a> On 2016/01/28 17:00:10, saroyanm wrote: ...
Jan. 29, 2016, 5:48 p.m. (2016-01-29 17:48:10 UTC) #10
saroyanm
New patch uploaded. https://codereview.adblockplus.org/29333819/diff/29333820/options.html File options.html (right): https://codereview.adblockplus.org/29333819/diff/29333820/options.html#newcode248 options.html:248: <a href="#" data-action="open-context-menu" class="arrow"></a> On 2016/01/29 ...
Jan. 29, 2016, 6:56 p.m. (2016-01-29 18:56:18 UTC) #11
Thomas Greiner
Only some minor comments. https://codereview.adblockplus.org/29333819/diff/29335133/i18n.js File i18n.js (right): https://codereview.adblockplus.org/29333819/diff/29335133/i18n.js#newcode107 i18n.js:107: // Formats date string to ...
Feb. 1, 2016, 6:52 p.m. (2016-02-01 18:52:39 UTC) #12
saroyanm
Sorry that took a while. https://codereview.adblockplus.org/29333819/diff/29335133/i18n.js File i18n.js (right): https://codereview.adblockplus.org/29333819/diff/29335133/i18n.js#newcode107 i18n.js:107: // Formats date string ...
Feb. 3, 2016, 2:04 p.m. (2016-02-03 14:04:31 UTC) #13
Thomas Greiner
https://codereview.adblockplus.org/29333819/diff/29335133/skin/options.css File skin/options.css (right): https://codereview.adblockplus.org/29333819/diff/29335133/skin/options.css#newcode620 skin/options.css:620: body[data-tab="advanced-allFilterLists"] #content-advanced [data-tab="advanced-allFilterLists"], On 2016/02/03 14:04:29, saroyanm wrote: > ...
Feb. 3, 2016, 2:50 p.m. (2016-02-03 14:50:15 UTC) #14
saroyanm
https://codereview.adblockplus.org/29333819/diff/29335133/skin/options.css File skin/options.css (right): https://codereview.adblockplus.org/29333819/diff/29335133/skin/options.css#newcode620 skin/options.css:620: body[data-tab="advanced-allFilterLists"] #content-advanced [data-tab="advanced-allFilterLists"], On 2016/02/03 14:50:13, Thomas Greiner wrote: ...
Feb. 3, 2016, 5:43 p.m. (2016-02-03 17:43:18 UTC) #15
Thomas Greiner
https://codereview.adblockplus.org/29333819/diff/29335515/background.js File background.js (right): https://codereview.adblockplus.org/29333819/diff/29335515/background.js#newcode316 background.js:316: knownSubscriptions[subscriptionUrl].lastDownload = 1234; This will trigger the "subscriptions.lastDownload" message ...
Feb. 4, 2016, 3:28 p.m. (2016-02-04 15:28:18 UTC) #16
saroyanm
https://codereview.adblockplus.org/29333819/diff/29335515/background.js File background.js (right): https://codereview.adblockplus.org/29333819/diff/29335515/background.js#newcode316 background.js:316: knownSubscriptions[subscriptionUrl].lastDownload = 1234; On 2016/02/04 15:28:16, Thomas Greiner wrote: ...
Feb. 4, 2016, 5:50 p.m. (2016-02-04 17:50:13 UTC) #17
Thomas Greiner
Feb. 4, 2016, 8:23 p.m. (2016-02-04 20:23:47 UTC) #18
Sorry about this lengthy review, LGTM

Just some remarks after skimming through the overall diff.

https://codereview.adblockplus.org/29333819/diff/29335515/options.js
File options.js (right):

https://codereview.adblockplus.org/29333819/diff/29335515/options.js#newcode194
options.js:194: var text =
getMessage("options_filterList_lastDownload_inProgress");
On 2016/02/04 17:50:06, saroyanm wrote:
> On 2016/02/04 15:28:17, Thomas Greiner wrote:
> > Interesting that you would set the text only when "lastDownload" is `0`
since
> > that is only the case for subscriptions that haven't been downloaded before.
> > Please check how it is implemented in the current options page because this
> > approach seems to require us to work around it by setting "lastDownload" to
> `0`
> > explicitly which never occurs in the extension.
> 
> You are right, I've updated the implementation, 
> Also tested on production env. looks fine, the only problem is that the
> background mock implementation doesn't look too nice, but I assume it's fine
> while it's just a mock ?

Agreed, let's leave it for now if it's merely a minor cosmetic flaw.

https://codereview.adblockplus.org/29333819/diff/29335640/background.js
File background.js (right):

https://codereview.adblockplus.org/29333819/diff/29335640/background.js#newco...
background.js:207: downloading: false,
Detail: Since this is a "private" property I'd suggest renaming it to
"_downloading".

https://codereview.adblockplus.org/29333819/diff/29335640/background.js#newco...
background.js:322: 
Detail: This empty line has been added without touching any other part of the
code in this area so better revert it.

Powered by Google App Engine
This is Rietveld