Uploaded image for project: 'OpenShift Console'
  1. OpenShift Console
  2. CONSOLE-4362

Add syntax highlighting to display of Plugin manifest on ConsolePlugins details page

XMLWordPrintable

    • Icon: Story Story
    • Resolution: Unresolved
    • Icon: Undefined Undefined
    • None
    • None
    • None
    • None

      We currently use a `CopyToClipboard` component to display a Plugin manifest on ConsolePlugins details page.  It would be nice to use Monaco instead so that we get the benefit of syntax highlighting.  I prototyped an implementation that utilizes the existing `ResourceYAMLEditor`, but spadgett@redhat.com and I both wondered if it's confusing to use the `ResourceYAMLEditor` on the `Plugin manifest` tab since the tab sits next to the `YAML` tab that utilizes the same `ResourceYAMLEditor` component.  Maybe we need a simplified Monaco-containing component that more clearly indicates the contents are read-only and are not the standard YAML editor?

       

      AC:

      • Replace CopyToClipboard component for YAMLEditor (technically CodeEditor once) for displaying Plugin manifest on the ConsolePlugin details page. The YAMLEditor should be used in the read-only mode.
      • Add integration tests which will check the Save button is not visible in the readonly mode and that CodeEditor and that the CodeEditor is disabled.

              Unassigned Unassigned
              rhn-engineering-rhamilto Robb Hamilton
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated: