Page MenuHomePhabricator

DefaultView: Create ZCode component
Closed, ResolvedPublic

Description

Description

Create ZCode custom component following the same patterns as other default/* components created for the DefaultView

Desired behavior/Acceptance criteria

  • Objects of type Z16/Code should be rendered by default with this component in both edit and view mode
  • Must be able to view code using ace.js
  • Must be able to edit code using ace.js
  • Editing the language selector should effectively change the value of the Z16K1 key
  • Editing the code editor should effectively change the value of the Z16K2 key
  • Styles according to the attached designs* - couldn't find the designs for this
NOTE: There are no explicit designs for ZCode in the DefaultView figma file, but we should be able to easily reinterpret the functionality of the old ZCode component for the DefaultView

Devices and Design (URLs or screenshots)

Figma: https://www.figma.com/file/uNBSv1e4ceA8tGNr29R9vp/Default-component?node-id=3043%3A62307&t=HYKgOdmMUb1GV57x-0


Completion checklist

Event Timeline

Change 881012 had a related patch set uploaded (by Jkieserman; author: Jkieserman):

[mediawiki/extensions/WikiLambda@master] Create ZCode component that can be displayed inline in DefaultView

https://gerrit.wikimedia.org/r/881012

Change 881012 merged by jenkins-bot:

[mediawiki/extensions/WikiLambda@master] Create ZCode component that can be displayed inline in DefaultView

https://gerrit.wikimedia.org/r/881012

DVrandecic updated the task description. (Show Details)