Creates a new DeputyContributionSurveyRow object.
The contribution survey row data
The section that this row belongs to
Additional comments that may have been left by other editors.
Button that checks all revisions of this row
FieldLayout for commentsTextInput
. If not set, this field is not rendered.
TextInputWidget for closing comments. Used by both renderFinished
and renderUnfinished
.
This row's content element. Gets swapped when loaded.
DeputyUnfinishedContributionSurveyRow, if rendered. Only rendered if this row was already finished.
Readonly
nextOptional
originalThe "LI" element that this row was rendered into by MediaWiki.
Original wikitext of this element.
The revisions associated with this element. Only populated by renderUnfinished
.
This row's main root element. Does not get swapped.
The contribution survey row data
The section that this row belongs to
Sort order of this row. Automatically guessed when loaded.
The state of this element.
A function (throttled with mw.util.throttle
) that saves the current row's status
and comments to DeputyStorage to recover unsaved data or data that could not be saved
(e.g. status when some revisions remain unassessed).
OOUI DropdownWidget for the current row status
Readonly
statusResponder for session requests.
Message box displayed when a user has set a status but not yet cleared all diffs.
Whether this row was originally finished upon loading.
Static
Readonly
menuThe hash used for autosave keys
true
if this element is broken.
The comments for this row (as added by a user)
true
if this row has all diffs marked as completed.
true
if:
(a) statusModified
is true OR
(b) diffs were marked as completed
This does not check if the revisions themselves were modified.
The current status of this row.
Set the current status of this row.
The new status to apply
true
if:
(a) this row's status changed OR
(b) this row's comment changed
This does not check if the revisions themselves were modified.
Generates a wikitext string representation of this row, preserving existing wikitext whenever possible.
Wikitext
Extracts HTML elements which may be additional comments left by others. The general qualification for this is that it has to be a list block element that comes after the main line (in this case, it's detected after the last . This appears in the following form in wikitext:
* [[Page]] (...) [[Special:Diff/...|...]]
*: Hello! <-- definition list block
** What!? <-- sub ul
*# Yes. <-- sub ol
* [[Page]] (...) [[Special:Diff/...|...]]<div>...</div> <-- inline div
Everything else (*<div>...
, *'''...
, *<span>
, etc.) is considered
not to be an additional comment.
If no elements were found, this returns an empty array.
An array of HTMLElements
Gets the database-saved status. Used for getting the autosaved values of the status and closing comments.
Renders the element. This must return an HTMLElement that can be appended directly to the DOM.
Renders the details of the row. Includes details such as largest diff size, diffs remaining, etc.
The row details as an element (or false
, if no details are to be shown).
Renders the "head" part of the row. Contains the status, page name, and details.
The head of the row as an element
Render the row with the "unfinished" state (has revision list, etc.)
HTML element
A UI element used for denoting the following aspects of a page in the contribution survey: (a) the current status of the page (violations found, no violations found, unchecked, etc.) (b) the name of the page (c) special page tags (d) the number of edits within that specific row (e) the byte size of the largest-change diff (f) a list of revisions related to this page (as DeputyContributionSurveyRowRevision classes) (g) closing comments