question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Integrate `@camunda/form-playground` into the Desktop Modeler

See original GitHub issue

What should we do?

Integrate the first version of @camunda/form-playground into the Form Editor.

This includes

Part 1

  • Replace the existing form editor
  • Add toggle to the status bar
  • Error Panel reduces Viewport Size instead of Overlapping
  • Persist toggle states across sessions (global layout)
  • Add keyboard shortcut to toggle between modes (CTRL/CMD + P, as we already have with BPMN/DMN Properties Panel and DMN Overview)

Part 2

To consider as follow up

Why should we do it?

Integrate the new Forms Playground 🎉 Child of https://github.com/bpmn-io/internal-docs/issues/527 Depends on https://github.com/bpmn-io/internal-docs/issues/617

Issue Analytics

  • State:closed
  • Created a year ago
  • Comments:13 (13 by maintainers)

github_iconTop GitHub Comments

2reactions
christian-konradcommented, Oct 4, 2022

@pinussilvestrus I assume resizability of the preview and editor does not add value; I try to ask myself when do I want to resize them so the one is larger than the other? Thinking about the future, when we also have horizontal layouts (very likely flexboxes) and those may also wrap on smaller screens, then it may be hard to correlate the left to the right view in case the left shows wrapped components, while the other doesn’t (depending on the wrap breakpoints). @YanaSegal would you see value in independently resizable editor+preview?

I assume vertical resizability is more helpful, to resize the mock input/output panels. To do so, we need to decide if resizing does result in absolute or relative sizes, which is important when you collapse the error/log panels: should then both editor and form input panel resize, or one is sticky and the other resizes? My proposal: let’s do it the VS Code way (don’t reinvent the wheel) and do relative sizes:

https://user-images.githubusercontent.com/56470362/193879573-af1682c1-a9e1-4a94-82ad-f37691bfa8f6.mov

2reactions
pinussilvestruscommented, Sep 29, 2022

Persist toggle states across sessions

Is this something we want to persist globally in the config.json. Context: we do the same for any other UI component (properties panel, error panel, DMN overview, log)

image

My proposal would be, therefore, to keep it consistent and also keep the playground toggle states globally.

{
  "layout": {
    "formEditor": {
      "form-preview": {
        "open": true
      },
      "form-input": {
        "open": true
      },
      "form-output": {
        "open": true
      }
    },
    "log": {
      "height": 130,
      "open": false
    },
    "panel": {
      "open": true,
      "tab": "linting"
    },
    "dmnOverview": {
      "open": true,
      "width": 350
    },
    "propertiesPanel": {
       "open": true,
       "width": 280
     }
  }
}

/cc @christian-konrad

Read more comments on GitHub >

github_iconTop Results From Across the Web

Camunda Self-Managed and Desktop Modeler access
We have set up a Camunda 8 installation self-managed on our Kubernetes-cluster using the Helm Charts. This has worked so far, we can...
Read more >
Source - GitHub
Unreleased ___Note:__ Yet to be released changes appear here. ... json](https://docs.camunda.io/docs/components/modeler/desktop-modeler/flags/) to re-enable ...
Read more >
How to sync Mendix Desktop Modeler with the Web Modeler
There are several steps required to move web modeler changes into the desktop modeler. Note that in this video I have edited out...
Read more >
Desktop Modeler Overview | Mendix Documentation
The Mendix Desktop Modeler is the tool for creating, viewing, and editing your Mendix applications. A Mendix app is called a project in...
Read more >
camunda/camunda-modeler release history - changelogs.md
FEAT : integrate forms playground (#3178); DEPS : bump form-js to v0.9.9 (#3178); DEPS : add @camunda/form-playground (#3178) ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found