Extension:Teahouse/Development

This page serves as a public notebook for any kind of information (concepts, ideas, discussions,...) related to the further development.

Persistence Layer aka "The Board"
OOJS Class "Board":
 * API Call to create subpage of, e.g. "Wikipedia:Teahouse/Board"
 * API Call to append/prepend config.basePage with
 * API Call to add subpage to watchlist (if registered user) or add title and publish timestamp to cookie (anon user)
 * returns jQuery Promise --> Dialog can loadmask itself, user can be notified on success/error
 * (Bad function name! Find better!) - This is for the planned notification interface
 * Read-in cookie with list of questions / or find contributions of logged in user
 * API Call for each question (or as bulk) to determine current state (pending|answered)
 * returns array of questions (title, href) and their respective state
 * - This is for the planned "similar questions" feature
 * API Call to search (fulltext)
 * Filtering by -prefix
 * returns array of hits
 * returns array of hits

Dialog

 * Subclass of
 * Injection of  object in
 * Info: Is user anon? --> display "IP will be saved"-Hint
 * "The Board": callback for save process OR  capabilities of  ?