Class ContributionSurveyRow

Represents a contribution survey row. This is an abstraction of the row that can be seen on contribution survey pages, which acts as an intermediate between raw wikitext and actual HTML content.

Constructors

Properties

casePage: DeputyCasePage

The case page of this row.

comment?: string

Editor comments for this row (including signature)

extras: string

Extra page information. e.g. "(1 edit, 1 major, +173)"

The original status of this row (if it had a prior status).

The status of this row.

statusIsolated?: false | "start" | "end"

Determines if the status indicator (as tested by the regular expressions at ContributionSurveyRow.commentMatchRegex) is isolated (at the start or end of the comment). This will enable removal of the status indicator from the comment in the comment text input box.

title: Title

The title of the page that this row is attached to.

type: "detailed" | "pageonly"
  • detailed refers to a row with both page and revision information.
  • pageonly refers to a row with only a page and no revision information.
wikitext: string

The original wikitext of the row.

commentMatchRegex: Record<
    | WithViolations
    | WithoutViolations
    | Missing
    | PresumptiveRemoval, RegExp> = ...

A set of regular expressions that will match a specific contribution survey row comment. Used to determine the status of the comment.

Parser: typeof ContributionSurveyRowParser = ContributionSurveyRowParser

Accessors

  • get completed(): boolean
  • This variable returns true when (a) the row has a non-unfinished status, and (b) there are no outstanding diffs in this row

    Returns boolean

    See description.

Methods