262 Commits

Author SHA1 Message Date
theopolisme
59d238d394 Remove sandbox templates 2014-03-29 21:46:42 -05:00
theopolisme
549ff7e81a Offer a "rationale" field when postponing G13 deletion (becomes a comment on the submission) 2014-03-29 09:12:19 -05:00
theopolisme
e585f4f475 Another copyvio url? No problem! 2014-03-28 20:11:11 -05:00
theopolisme
fce3ad7fa6 Ignore placeholder text 2014-03-28 18:16:30 -05:00
theopolisme
aab2a6b0d5 Don't add multiple CSD templates for copyvios 2014-03-28 07:55:37 -05:00
theopolisme
602ff748f4 This is not an HTML comment...whoops! 2014-03-28 05:57:12 -05:00
theopolisme
5956806e3f v0.6
Because turtles dancing are cool. Plus, I kinda revamped a whole ton of
stuff over the past few days…y’know how that goes.
2014-03-27 18:20:01 -05:00
theopolisme
ab6e2ac382 Reset font size and line height for #afch div
Prevent the new “typography refresh” from screwing up our styling.
2014-03-27 18:16:15 -05:00
theopolisme
fbb9f9808a Reinstate feedback link in the initial header
Additionally, allow custom link text in AFCH.initFeedback(), as well as
tidy up the header css a bit and remove an unneeded class.
2014-03-27 18:15:40 -05:00
theopolisme
ddb7eef6fc Automagically refresh the page in place after all ajax requests are complete
Also, move the #afch div before #mw-content-text to support this (so we
can outright replace #mw-content-text when loading new content).
2014-03-26 18:29:38 -05:00
theopolisme
6c3b4b2e3b Check titleblacklist 2014-03-26 12:16:04 -05:00
theopolisme
bb3906d0eb Add whitelist checking
The script now checks if the user if listed on the AFCH whitelist. If
they are not listed, the AFCH instance is destroyed. Also fix
nonexistent page handling a bit.
2014-03-26 11:07:13 -05:00
theopolisme
d8811256fb Completely reload the main options panel when back button pressed
Thanks, Anne! This ensures that if modifications are made to the page
via the review panel, we can respond to these with the dynamic buttons,
refreshed warnings, etc. TODO: consider refreshing the page html
($().load()) when the page is edited, rather than showing the reload
link…?
2014-03-26 11:01:23 -05:00
theopolisme
ff1d6307f9 tidy 2014-03-26 10:59:26 -05:00
theopolisme
563a17565b Add AFCH.destroy()
When called, destroys the AFCH instance. Completely. Subscripts use
AFCH.addDestroyFunction() to dismantle themselves as well, which has
been done in submissions.js.
2014-03-26 10:59:16 -05:00
theopolisme
930828f73c Semicolon :P 2014-03-23 12:00:30 -05:00
theopolisme
42085204e1 Reveal extra options on *click* rather than hover
Apparently hover was causing too much confusion, at least among beta
testers.
2014-03-23 11:57:06 -05:00
theopolisme
bd932ce75b Include decline rationale in edit summary; misc decline copyedits 2014-03-23 11:56:22 -05:00
theopolisme
5284ad9097 Add support for postpone g13 2014-03-23 11:55:32 -05:00
theopolisme
98356df5be Attempt to make back link clearer
Temporarily removed the “Give feedback!” link to accomplish this.
2014-03-23 11:53:39 -05:00
theopolisme
bf458d9a7c Use a more personal "You" if the user is the reviewer 2014-03-23 11:45:46 -05:00
theopolisme
ad9027956e Hide CSD checkbox rather than disable it as the disabled state can be misleading 2014-03-22 20:20:42 -05:00
theopolisme
94c9bebd43 Remove AfC "request review" header 2014-03-22 20:18:55 -05:00
theopolisme
a9fbeb1bbe Update ns of template when updating 2014-03-22 18:32:34 -05:00
theopolisme
19815cfd91 Design: make back arrow larger, show underline on feedback link hover 2014-03-22 18:32:15 -05:00
theopolisme
5a9e9638e0 Don't show deletion notices for "sandbox" 2014-03-22 17:39:05 -05:00
theopolisme
db4b317923 Bump to v0.5 2014-03-21 21:59:06 -05:00
theopolisme
61a7d5b36d Trim values and names before using 2014-03-21 21:48:45 -05:00
theopolisme
1d32713b66 Improve malformed ref handling
More stable regex with fewer false positives; wrap content of <pre>
tags.
2014-03-21 21:45:28 -05:00
theopolisme
c4f2c9b792 Add G13 functionality :D
If a submission is eligible, we show a “Request G13 deletion” button in
the main panel. When clicked, the script will add {{db-g13}} to the
submission and notify the page creator as well as all users who have
submitted the page for review in the past. After notifying, we log the
G13’ing for good measure to the user’s CSD log.

- AFCH.dateToMwTimestamp() function added to core
2014-03-21 21:07:53 -05:00
theopolisme
88c8ab3663 Style: avoid label wrap on accept 2014-03-21 20:55:26 -05:00
theopolisme
08393f3b7b Remove postpone G13 templates on accept 2014-03-21 20:55:04 -05:00
theopolisme
b72dbbafe8 Show all past submitters in "Submit" dropdown suggestions
To do this, we store all submitters in a new afchSubmission.submitters
array generated at parse.
2014-03-21 20:54:23 -05:00
theopolisme
5bb679e418 Generalize summary
Now it correctly applies to templates and other types of pages as well.
2014-03-21 19:10:22 -05:00
theopolisme
62c27fce86 Offer a "Click to manually add {{PROJECT}}" option if no WikiProjects matched 2014-03-20 18:19:22 -05:00
theopolisme
c537b89d49 Show "No matching categories found" message if, big surprise, no matching categories found 2014-03-20 18:17:03 -05:00
theopolisme
17bc66e41e Only add categories if they actually contain text 2014-03-20 18:09:44 -05:00
theopolisme
fe2e04d6b4 Improve template regex a wee bit
Pipe is now no longer *required*.
2014-03-18 06:12:13 -05:00
theopolisme
df6a2899ae Only run script if pageName *begins* with string, not just has string 2014-03-16 14:30:44 -05:00
theopolisme
9847b61806 Bump to v0.4
Why not? Pretty big changes under the hood seem worthy of a memory.
2014-03-14 20:17:17 -05:00
theopolisme
eeb7b20dc4 AFCH.Page: move getTemplates() and getCategories() into AFCH.Page; use rvgeneratexml instead of Parsoid for faster parsing; remove unused function
Thanks to [[User:Kephir]] for pointing out rvgeneratexml! Now we just
have to make ONE api request before opneing the script, which is great.
[Few other misc fixes as well.]
2014-03-14 20:15:53 -05:00
theopolisme
272b8efd07 There has to actually BE a displayTitle for us to use 2014-03-14 15:50:39 -05:00
theopolisme
d6f468cf93 logCSD: create status element, add closing brackets 2014-03-14 12:12:17 -05:00
theopolisme
cb086ff4e8 Output: ensure space between comments (and db template); add header with decline notification
Also update core to properly handle multiple occurances of substitution
key in AFCH.msg.get()
2014-03-14 12:04:49 -05:00
theopolisme
edd4ee7d45 Better error handling when localStorage caching fails 2014-03-14 11:49:00 -05:00
theopolisme
2c8a9fbdf7 Legibility issues 2014-03-14 11:46:11 -05:00
theopolisme
d4f7735952 Don't show review link on userjs/css pages
Thanks, @Technical-13 :)
2014-03-13 23:48:43 -05:00
theopolisme
c5c9bdc320 this was getting on my nerves... 2014-03-13 23:48:24 -05:00
theopolisme
fa3f4f2ac3 Add "Do not remove this line!" warning next to AFC templates; reshuffle removals, handle optional data better 2014-03-13 18:45:54 -05:00
theopolisme
31e9c4ab08 Last time I change this, I promise! 2014-03-13 18:20:27 -05:00