Skip to content

Writing DIY widgets outside Cockpit could be easier #1987

Description

@rafaellehmkuhl

Details

We try our best to make it easy to write a DIY widget on Cockpit, by putting a Monaco Editor, with auto-complete of data-lake variables and the window.cockpit API, but it will never be the same as writing in your own setup. When you're writing code, it's usually easier if you're doing that on your usual setup (your computer, with your IDE of choice, desired extensions, auto-completes, etc).

I don't know what exactly could we do to make it easier writing DIY widgets outside Cockpit, but maybe there're some things we can improve. Writing a .html to .json converter? Adding a syntax auto-complete extension to VSCode? MCP server? I'm not sure, but there's probably room for improvement there.

Additional Context

Raised while reviewing documentation.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Fields

    Priority

    None yet

    Start date

    None yet

    Target date

    None yet

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions