Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Expand the form preview by default #33

Open
pinussilvestrus opened this issue Dec 1, 2022 · 3 comments
Open

Expand the form preview by default #33

pinussilvestrus opened this issue Dec 1, 2022 · 3 comments
Labels
backlog Queued in backlog

Comments

@pinussilvestrus
Copy link
Contributor

What should we do?

Expand the form preview by default (on first visit). When users change the toggle state, the state should still be persisted.

image

Why should we do it?

Make the preview easier to discover.

Hypothesis: without expanded preview, users don't recognize what the preview panel is, and how to toggle it (even using the new toolbar toggle). Since users do not see the value they can get using the preview, they churn immediately opening the editor (see data—30% churn).

@pinussilvestrus
Copy link
Contributor Author

Copied over from bpmn-io/form-js#442 (initiated by @christian-konrad)

@pinussilvestrus
Copy link
Contributor Author

pinussilvestrus commented Dec 1, 2022

Technically we are able to define a default state: https://github.com/camunda/form-playground/blob/main/src/components/PlaygroundComponent.js#L29

Alternative: do not specify this at the core, but rather implement this default behavior on first visit in the Web Modeler. The layout can be specified via config.

const formPlayground = await createFormPlayground({
  container: document.querySelector('#form-playground'),
  data,
  schema,
  layout: {
    "form-preview": {
        "open": true
    },
    "form-input": {
        "open": true
    },
    "form-output": {
        "open": true
    }
  }    
});

@christian-konrad
Copy link

I like it to be done this way in Web+Desktop Modeler. I will open an issue for both.

@pinussilvestrus pinussilvestrus added the backlog Queued in backlog label Dec 1, 2022 — with bpmn-io-tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backlog Queued in backlog
Projects
None yet
Development

No branches or pull requests

2 participants