Nicer code editing in Asgard

cover image for Nicer code editing in Asgard

Asgard is the new administrative interface being built for Midgard. The main objective is to get rid of the legacies of Aegir and SpiderAdmin by replacing them with a smart system that auto-generates admin UIs for all installed MgdSchema types. But small improvements also count, and so we decided to deploy CodePress for code editing:

Asgard-Codepress-Style-Editing

Syntax highlighting definitely makes life easier when editing site style with a browser. While we were at it, we also decided to guard against PHP parse errors, making it validation rule about it. Now the editing tool refuses to save until errors are fixed (needs localization message, though):

Asgard-Codepress-Parse-Error

Arttu also went and implemented CodePress for style attachments like CSS, Javascript and XML files:

Asgard-Styleeditor-Edit-Css

The Asgard user experience starts to be already quite nice, although the visual outlook could use love and some bugs still remain. I’m quite confident we can ship it as the default admin UI soon.


Read more Midgard posts.