Repository navigation
web/elements: replace CodeMirror with Monaco in the code editor - #27407
GirlBossRush wants to merge 1 commit into
Conversation
✅ Deploy Preview for authentik-storybook ready!
To edit notification comments on pull requests, go to your Netlify project configuration. |
✅ Deploy Preview for authentik-docs ready!
To edit notification comments on pull requests, go to your Netlify project configuration. |
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #27407 +/- ##
==========================================
+ Coverage 92.53% 92.99% +0.46%
==========================================
Files 1227 1227
Lines 85319 85319
Branches 4894 4894
==========================================
+ Hits 78948 79341 +393
+ Misses 6284 5891 -393
Partials 87 87
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Harness. |
Playwright e2eDownload this run's HTML report and traces, then open the report: gh run download 41881006972 -D playwright-artifacts
npx playwright show-report playwright-artifacts/playwright-reportInstallation instructionsInstructions for docker-composeAdd the following block to your AUTHENTIK_IMAGE=ghcr.io/goauthentik/dev-server
AUTHENTIK_TAG=gh-e1669e36856e186b94f32bbb5fab08fda6d966f5
# Distroless image: AUTHENTIK_TAG=gh-e1669e36856e186b94f32bbb5fab08fda6d966f5-distroless
AUTHENTIK_OUTPOSTS__CONTAINER_IMAGE_BASE=ghcr.io/goauthentik/dev-%(type)s:gh-%(build_hash)sAfterwards, run the upgrade commands from the latest release notes. Instructions for KubernetesAdd the following block to your authentik:
outposts:
container_image_base: ghcr.io/goauthentik/dev-%(type)s:gh-%(build_hash)s
global:
image:
repository: ghcr.io/goauthentik/dev-server
tag: gh-e1669e36856e186b94f32bbb5fab08fda6d966f5
# Distroless image: tag: gh-e1669e36856e186b94f32bbb5fab08fda6d966f5-distrolessAfterwards, run the upgrade commands from the latest release notes. |
78ca212 to
65e7894
Compare
65e7894 to
182252a
Compare
Dependency ReviewThe following issues were found:
Vulnerabilitiesweb/pnpm-lock.yamlOnly included vulnerabilities with severity high or higher. OpenSSF Scorecard
Scanned Files
|
- Replace CodeMirror with Monaco, imported once the editor is shown - Pick Monaco's editing features instead of loading all of them - Add the One Dark theme, vendored from azemoh/vscode-onedark (MIT) - Hold the field's height until the editor loads - Follow changes to `mode`, `readonly` and `disabled` - Honor `readonly`, which the CodeMirror element ignored Co-authored-by: Dominic R <[email protected]>
182252a to
e1669e3
Compare
Details
This PR replaces CodeMirror with Monaco, allowing for some advanced editor features such as language servers, IntelliSense, and inline JSON and YAML schema validation. Like the original CodeMirror engine, modules are not loaded until the
<ak-code-editor>element is connected to the DOM.readonlywas not applied to CodeMirror.See #27408 for CSS support.