Page MenuHomePhabricator

Dynamically build a default NumberTypeConfig based on values in mw.config
Open, Needs TriagePublic

Description

In fc745f5dfb483766e12cf4123ef08cc1427d37a4, support was added that allowed PagelistWidget to retrieve all of ProofreadPage's builtin labels using mw.config.get( 'prpPagelistBuiltinLabels' ).

We should use this to build the default configuration returned by PageNumberInputWidget.getNumberTypeConfig() when no configuration file is found.

Documentation

Criteria

  • The default config should contain all the builtin types offered by ProofreadPage dynamically generated using mw.config.get( 'prpPagelistBuiltinLabels' )