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

Issue 29321198: Issue 2376 - Implement custom filters in new options page (Closed)

Created:
June 29, 2015, 11:21 a.m. by saroyanm
Modified:
July 15, 2015, 4:51 p.m.
CC:
Felix Dahlke
Visibility:
Public.

Description

Related ticket: https://issues.adblockplus.org/ticket/2376

Patch Set 1 #

Total comments: 96

Patch Set 2 : Addressed initial comments #

Total comments: 47

Patch Set 3 : Addressed comments, moved error message to background page for consistency #

Total comments: 2

Patch Set 4 : Rebase #

Patch Set 5 : Error handling #

Total comments: 2

Patch Set 6 : removed the console.log #

Total comments: 17

Patch Set 7 : Error handling improvements #

Total comments: 6

Patch Set 8 : Small fixes #

Total comments: 2

Patch Set 9 : #

Total comments: 12

Patch Set 10 : Sebastian requested fixes #

Patch Set 11 : updated mockup #

Total comments: 4

Patch Set 12 : Mockup simplification and validation update #

Total comments: 14

Patch Set 13 : Added param to readme and some fixes #

Total comments: 5

Patch Set 14 : Small fixes #

Total comments: 7

Patch Set 15 : Nit fixes #

Unified diffs Side-by-side diffs Delta from patch set Stats (+356 lines, -118 lines) Patch
M README.md View 1 2 3 4 5 6 7 8 9 10 11 12 13 1 chunk +2 lines, -0 lines 0 comments Download
M background.js View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 5 chunks +47 lines, -10 lines 0 comments Download
M locale/en-US/options.json View 1 3 chunks +18 lines, -6 lines 0 comments Download
M messageResponder.js View 1 2 3 4 5 6 7 8 9 10 11 12 5 chunks +66 lines, -16 lines 0 comments Download
M options.html View 1 2 2 chunks +28 lines, -24 lines 0 comments Download
M options.js View 1 2 3 4 5 6 7 8 9 10 11 13 chunks +91 lines, -32 lines 0 comments Download
M skin/options.css View 1 2 3 6 chunks +104 lines, -30 lines 0 comments Download

Messages

Total messages: 40
saroyanm
Thomas can you please have a look, when you have time.
June 29, 2015, 11:30 a.m. (2015-06-29 11:30:38 UTC) #1
saroyanm
https://codereview.adblockplus.org/29321198/diff/29321199/skin/options.css File skin/options.css (right): https://codereview.adblockplus.org/29321198/diff/29321199/skin/options.css#newcode709 skin/options.css:709: #custom-filters-add-btn::after I do think we need to show icon ...
June 29, 2015, 11:34 a.m. (2015-06-29 11:34:18 UTC) #2
Thomas Greiner
https://codereview.adblockplus.org/29321198/diff/29321199/background.js File background.js (right): https://codereview.adblockplus.org/29321198/diff/29321199/background.js#newcode263 background.js:263: global.WhitelistFilter = modules.filterClasses.WhitelistFilter; This does not need to be ...
June 30, 2015, 9:23 a.m. (2015-06-30 09:23:30 UTC) #3
saroyanm
Thomas can you please have a look, we are having an error msg in devenv. ...
July 8, 2015, 6:25 p.m. (2015-07-08 18:25:43 UTC) #4
Thomas Greiner
https://codereview.adblockplus.org/29321198/diff/29321199/locale/en-US/options.json File locale/en-US/options.json (right): https://codereview.adblockplus.org/29321198/diff/29321199/locale/en-US/options.json#newcode131 locale/en-US/options.json:131: "description": "Option name in Advanced tab", On 2015/07/08 18:25:39, ...
July 9, 2015, 11:07 a.m. (2015-07-09 11:07:56 UTC) #5
Sebastian Noack
https://codereview.adblockplus.org/29321198/diff/29321453/messageResponder.js File messageResponder.js (right): https://codereview.adblockplus.org/29321198/diff/29321453/messageResponder.js#newcode233 messageResponder.js:233: if (filter instanceof WhitelistFilter && Nit: Isn't |filter instanceof ...
July 9, 2015, 12:12 p.m. (2015-07-09 12:12:15 UTC) #6
saroyanm
Please note guys, as discussed we will need to also implement error listener. I didn't ...
July 9, 2015, 4:31 p.m. (2015-07-09 16:31:43 UTC) #7
Sebastian Noack
https://codereview.adblockplus.org/29321198/diff/29321453/messageResponder.js File messageResponder.js (right): https://codereview.adblockplus.org/29321198/diff/29321453/messageResponder.js#newcode211 messageResponder.js:211: alert(errors.join("\n")); On 2015/07/09 11:07:55, Thomas Greiner wrote: > This ...
July 10, 2015, 7:31 a.m. (2015-07-10 07:31:01 UTC) #8
Thomas Greiner
https://codereview.adblockplus.org/29321198/diff/29321453/messageResponder.js File messageResponder.js (right): https://codereview.adblockplus.org/29321198/diff/29321453/messageResponder.js#newcode211 messageResponder.js:211: alert(errors.join("\n")); On 2015/07/10 07:31:00, Sebastian Noack wrote: > On ...
July 10, 2015, 12:38 p.m. (2015-07-10 12:38:54 UTC) #9
saroyanm
Guys sorry for late response, can you please have a look, Hope with Error handling ...
July 13, 2015, 2:05 p.m. (2015-07-13 14:05:35 UTC) #10
saroyanm
https://codereview.adblockplus.org/29321198/diff/29322158/messageResponder.js File messageResponder.js (right): https://codereview.adblockplus.org/29321198/diff/29322158/messageResponder.js#newcode115 messageResponder.js:115: var action = "error"; @Thomas for Error handling, is ...
July 13, 2015, 2:09 p.m. (2015-07-13 14:09:53 UTC) #11
Thomas Greiner
https://codereview.adblockplus.org/29321198/diff/29322158/messageResponder.js File messageResponder.js (right): https://codereview.adblockplus.org/29321198/diff/29322158/messageResponder.js#newcode115 messageResponder.js:115: var action = "error"; On 2015/07/13 14:09:52, saroyanm wrote: ...
July 13, 2015, 3:54 p.m. (2015-07-13 15:54:24 UTC) #12
saroyanm
https://codereview.adblockplus.org/29321198/diff/29322165/background.js File background.js (right): https://codereview.adblockplus.org/29321198/diff/29322165/background.js#newcode173 background.js:173: } On 2015/07/13 15:54:21, Thomas Greiner wrote: > You're ...
July 14, 2015, 10:21 a.m. (2015-07-14 10:21:00 UTC) #13
Thomas Greiner
https://codereview.adblockplus.org/29321198/diff/29322165/options.js File options.js (right): https://codereview.adblockplus.org/29321198/diff/29322165/options.js#newcode727 options.js:727: filter: ["addSubscription"] On 2015/07/14 10:20:59, saroyanm wrote: > On ...
July 14, 2015, 10:58 a.m. (2015-07-14 10:58:55 UTC) #14
saroyanm
https://codereview.adblockplus.org/29321198/diff/29322165/options.js File options.js (right): https://codereview.adblockplus.org/29321198/diff/29322165/options.js#newcode727 options.js:727: filter: ["addSubscription"] On 2015/07/14 10:58:52, Thomas Greiner wrote: > ...
July 14, 2015, 11:19 a.m. (2015-07-14 11:19:28 UTC) #15
Thomas Greiner
https://codereview.adblockplus.org/29321198/diff/29322193/messageResponder.js File messageResponder.js (right): https://codereview.adblockplus.org/29321198/diff/29322193/messageResponder.js#newcode215 messageResponder.js:215: sendMessage("app", "error", [errors.join("\n")], sender.page); On 2015/07/14 11:19:26, saroyanm wrote: ...
July 14, 2015, 11:40 a.m. (2015-07-14 11:40:09 UTC) #16
Sebastian Noack
https://codereview.adblockplus.org/29321198/diff/29321453/messageResponder.js File messageResponder.js (right): https://codereview.adblockplus.org/29321198/diff/29321453/messageResponder.js#newcode242 messageResponder.js:242: FilterStorage.removeFilter(remove[i]); On 2015/07/10 12:38:53, Thomas Greiner wrote: > On ...
July 14, 2015, 11:57 a.m. (2015-07-14 11:57:25 UTC) #17
Thomas Greiner
https://codereview.adblockplus.org/29321198/diff/29321453/messageResponder.js File messageResponder.js (right): https://codereview.adblockplus.org/29321198/diff/29321453/messageResponder.js#newcode242 messageResponder.js:242: FilterStorage.removeFilter(remove[i]); On 2015/07/14 11:57:24, Sebastian Noack wrote: > > ...
July 14, 2015, 12:47 p.m. (2015-07-14 12:47:17 UTC) #18
saroyanm
https://codereview.adblockplus.org/29321198/diff/29321453/messageResponder.js File messageResponder.js (right): https://codereview.adblockplus.org/29321198/diff/29321453/messageResponder.js#newcode242 messageResponder.js:242: FilterStorage.removeFilter(remove[i]); On 2015/07/14 12:47:16, Thomas Greiner wrote: > On ...
July 14, 2015, 1:15 p.m. (2015-07-14 13:15:48 UTC) #19
saroyanm
Forgot msg: Patch uploaded (Patch Set 9) https://codereview.adblockplus.org/29321198/diff/29322207/messageResponder.js File messageResponder.js (right): https://codereview.adblockplus.org/29321198/diff/29322207/messageResponder.js#newcode249 messageResponder.js:249: case "filters.parse": ...
July 14, 2015, 1:23 p.m. (2015-07-14 13:23:00 UTC) #20
Sebastian Noack
https://codereview.adblockplus.org/29321198/diff/29322235/background.js File background.js (right): https://codereview.adblockplus.org/29321198/diff/29322235/background.js#newcode156 background.js:156: modules.filterValidation = I wonder whezther this implementation might go ...
July 14, 2015, 1:36 p.m. (2015-07-14 13:36:32 UTC) #21
saroyanm
https://codereview.adblockplus.org/29321198/diff/29322235/background.js File background.js (right): https://codereview.adblockplus.org/29321198/diff/29322235/background.js#newcode156 background.js:156: modules.filterValidation = On 2015/07/14 13:36:31, Sebastian Noack wrote: > ...
July 14, 2015, 1:53 p.m. (2015-07-14 13:53:30 UTC) #22
Sebastian Noack
https://codereview.adblockplus.org/29321198/diff/29322235/background.js File background.js (right): https://codereview.adblockplus.org/29321198/diff/29322235/background.js#newcode156 background.js:156: modules.filterValidation = On 2015/07/14 13:53:28, saroyanm wrote: > On ...
July 14, 2015, 2:10 p.m. (2015-07-14 14:10:10 UTC) #23
Thomas Greiner
https://codereview.adblockplus.org/29321198/diff/29322235/background.js File background.js (right): https://codereview.adblockplus.org/29321198/diff/29322235/background.js#newcode156 background.js:156: modules.filterValidation = On 2015/07/14 14:10:09, Sebastian Noack wrote: > ...
July 14, 2015, 2:20 p.m. (2015-07-14 14:20:29 UTC) #24
Sebastian Noack
https://codereview.adblockplus.org/29321198/diff/29322235/background.js File background.js (right): https://codereview.adblockplus.org/29321198/diff/29322235/background.js#newcode156 background.js:156: modules.filterValidation = On 2015/07/14 14:20:29, Thomas Greiner wrote: > ...
July 14, 2015, 2:25 p.m. (2015-07-14 14:25:28 UTC) #25
saroyanm
https://codereview.adblockplus.org/29321198/diff/29322235/background.js File background.js (right): https://codereview.adblockplus.org/29321198/diff/29322235/background.js#newcode156 background.js:156: modules.filterValidation = On 2015/07/14 14:25:27, Sebastian Noack wrote: > ...
July 14, 2015, 3:08 p.m. (2015-07-14 15:08:27 UTC) #26
Sebastian Noack
https://codereview.adblockplus.org/29321198/diff/29322235/background.js File background.js (right): https://codereview.adblockplus.org/29321198/diff/29322235/background.js#newcode156 background.js:156: modules.filterValidation = On 2015/07/14 15:08:26, saroyanm wrote: > On ...
July 14, 2015, 4:48 p.m. (2015-07-14 16:48:41 UTC) #27
saroyanm
Sebastian can you please have a look, hope I've got your point right. https://codereview.adblockplus.org/29321198/diff/29322235/background.js File ...
July 14, 2015, 6:28 p.m. (2015-07-14 18:28:31 UTC) #28
Thomas Greiner
https://codereview.adblockplus.org/29321198/diff/29322325/background.js File background.js (right): https://codereview.adblockplus.org/29321198/diff/29322325/background.js#newcode161 background.js:161: updateFromURL(filterError); Add this parameter to the README. https://codereview.adblockplus.org/29321198/diff/29322325/background.js#newcode163 background.js:163: ...
July 15, 2015, 8:32 a.m. (2015-07-15 08:32:39 UTC) #29
Sebastian Noack
https://codereview.adblockplus.org/29321198/diff/29322325/background.js File background.js (right): https://codereview.adblockplus.org/29321198/diff/29322325/background.js#newcode162 background.js:162: if (filterError) This will always be true. It should ...
July 15, 2015, 9 a.m. (2015-07-15 09:00:46 UTC) #30
saroyanm
Sorry for the confusion with separate review. New patch uploaded, feels like we are near. ...
July 15, 2015, 10:47 a.m. (2015-07-15 10:47:12 UTC) #31
Sebastian Noack
https://codereview.adblockplus.org/29321198/diff/29322325/messageResponder.js File messageResponder.js (right): https://codereview.adblockplus.org/29321198/diff/29322325/messageResponder.js#newcode187 messageResponder.js:187: if (result.error && result.error.type != "empty-filter") On 2015/07/15 10:47:11, ...
July 15, 2015, 11:20 a.m. (2015-07-15 11:20:01 UTC) #32
Thomas Greiner
https://codereview.adblockplus.org/29321198/diff/29322358/background.js File background.js (right): https://codereview.adblockplus.org/29321198/diff/29322358/background.js#newcode156 background.js:156: var validation = {filterError: false}; On 2015/07/15 11:20:00, Sebastian ...
July 15, 2015, 11:31 a.m. (2015-07-15 11:31:41 UTC) #33
saroyanm
https://codereview.adblockplus.org/29321198/diff/29322358/README.md File README.md (right): https://codereview.adblockplus.org/29321198/diff/29322358/README.md#newcode75 README.md:75: * `filterError=true`: this parameter should trigger filter parsing error ...
July 15, 2015, 12:06 p.m. (2015-07-15 12:06:54 UTC) #34
Thomas Greiner
https://codereview.adblockplus.org/29321198/diff/29322403/background.js File background.js (right): https://codereview.adblockplus.org/29321198/diff/29322403/background.js#newcode225 background.js:225: modules.info = { On 2015/07/15 12:06:53, saroyanm wrote: > ...
July 15, 2015, 12:29 p.m. (2015-07-15 12:29:36 UTC) #35
saroyanm
https://codereview.adblockplus.org/29321198/diff/29322403/background.js File background.js (right): https://codereview.adblockplus.org/29321198/diff/29322403/background.js#newcode225 background.js:225: modules.info = { On 2015/07/15 12:29:35, Thomas Greiner wrote: ...
July 15, 2015, 12:34 p.m. (2015-07-15 12:34:59 UTC) #36
Sebastian Noack
https://codereview.adblockplus.org/29321198/diff/29322403/background.js File background.js (right): https://codereview.adblockplus.org/29321198/diff/29322403/background.js#newcode41 background.js:41: updateFromURL(params); Nit: There should be an empty line below. ...
July 15, 2015, 2:30 p.m. (2015-07-15 14:30:09 UTC) #37
saroyanm
https://codereview.adblockplus.org/29321198/diff/29322403/background.js File background.js (right): https://codereview.adblockplus.org/29321198/diff/29322403/background.js#newcode41 background.js:41: updateFromURL(params); On 2015/07/15 14:30:08, Sebastian Noack wrote: > Nit: ...
July 15, 2015, 2:36 p.m. (2015-07-15 14:36:06 UTC) #38
Sebastian Noack
LGTM
July 15, 2015, 2:51 p.m. (2015-07-15 14:51:04 UTC) #39
Thomas Greiner
July 15, 2015, 4:47 p.m. (2015-07-15 16:47:38 UTC) #40
LGTM

Powered by Google App Engine
This is Rietveld