Page MenuHomePhabricator

Function editor: Set language field to inactive only after entering content
Open, LowPublic

Description

During a research study on generic types in the function editor we observed how multi-lingual participants wanted/tried to change the default language selected in the function editor.

The language defaults to the UI language but it's not possible to change it because the field is inactive by default.

CleanShot 2023-11-07 at 12.58.03@2x.png (968×2 px, 149 KB)

What we could alternatively do is opt for a similar pattern as the about widget dialog where we set the language field to inactive only after function creators start entering some content.

  • On launch the language filed is editable
    CleanShot 2023-11-07 at 13.02.46@2x.png (996×2 px, 151 KB)
  • Function creators can pick another "default" language
    CleanShot 2023-11-07 at 13.06.39@2x.png (968×2 px, 145 KB)
  • As soon as they start entering content the language field becomes inactive
    CleanShot 2023-11-07 at 13.04.20@2x.png (956×2 px, 149 KB)

Event Timeline

one scenario to consider is what happens if you want to change the language when there's any content set. we could allow changing the language only when there's no content.