Load a prompt to display when visiting the record special page. This should be a random prompt for the users language.
We may want a different behaviour in the end, but this is a good start for retrieving prompts.
Sebastian_Berlin-WMSE | |
Nov 20 2020, 11:38 AM |
Load a prompt to display when visiting the record special page. This should be a random prompt for the users language.
We may want a different behaviour in the end, but this is a good start for retrieving prompts.
Subject | Repo | Branch | Lines +/- | |
---|---|---|---|---|
Show prompt [WIP] | mediawiki/extensions/WikispeechSpeechDataCollector | master | +190 -14 |
Status | Subtype | Assigned | Task | ||
---|---|---|---|---|---|
Open | None | T266658 ☂Create frontend for recording functionality | |||
Open | None | T272960 Send recording to storage | |||
Open | None | T273036 Skip prompt | |||
Open | None | T268325 Load prompt in record page |
I may change the prompt to be a label since having it as an input field is false advertising; it will never be editable. It should still be fixed size, at least vertically, (easily) selectable and prominent. This should be doable with CSS without too much hassle.
In the future, it is possible that you would want to have the prompt editable, to allow the user to go off script, but that not something we need for the initial use cases.
Changed the prompt to a normal paragraph element since there was some weird things going on with setLabel(). Label widgets may not be intended for these sort of elements anyway.
Change 662701 had a related patch set uploaded (by Sebastian Berlin (WMSE); owner: Sebastian Berlin (WMSE)):
[mediawiki/extensions/WikispeechSpeechDataCollector@master] Show pompt [WIP]