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

feat: add filepicker properties panel #1244

Merged
merged 2 commits into from
Aug 23, 2024

Conversation

vsgoulart
Copy link
Contributor

Related to #1239

  • This PR adds a new form-js element or visually changes an existing component.

@vsgoulart vsgoulart requested a review from Skaiir August 21, 2024 17:16
@bpmn-io-tasks bpmn-io-tasks bot added the needs review Review pending label Aug 21, 2024
@vsgoulart vsgoulart force-pushed the 1239-properties-panel branch from 19b25a2 to 697c19d Compare August 21, 2024 17:41
singleLine: true,
setValue,
variables,
description,
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

A regex validation would be good to have here. Especially if you plan to inject it into the HTML. I'm sure you're going to sanitize it somewhere down the line, but it may become confusing for a user if say they use a ; or something and it doesn't work without a properties panel error.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I can add a validation here to check if it's comma separated but I believe there's not big danger since you can't execute JS in the accept property of the input

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The validation here is less about the risk and more about the UX in my view. If there is any risk to be honest it needs to be handled later anyways because of the feel variables.

return editField(field, path, value);
};

return ToggleSwitchEntry({
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Wouldn't it make sense to feel enable this? It might help creating more generic forms.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'll do it

@Skaiir Skaiir self-requested a review August 22, 2024 17:26
@vsgoulart vsgoulart merged commit 8985b26 into 1239-file-input-element Aug 23, 2024
11 of 12 checks passed
@vsgoulart vsgoulart deleted the 1239-properties-panel branch August 23, 2024 01:15
@bpmn-io-tasks bpmn-io-tasks bot removed the needs review Review pending label Aug 23, 2024
vsgoulart added a commit that referenced this pull request Aug 23, 2024
* feat: add filepicker properties panel

* refactor: rework filepicker properties panel
vsgoulart added a commit that referenced this pull request Sep 2, 2024
* feat: add filepicker properties panel

* refactor: rework filepicker properties panel
vsgoulart added a commit that referenced this pull request Sep 9, 2024
* feat: add filepicker properties panel

* refactor: rework filepicker properties panel
vsgoulart added a commit that referenced this pull request Sep 13, 2024
* feat: add filepicker properties panel

* refactor: rework filepicker properties panel
vsgoulart added a commit that referenced this pull request Sep 23, 2024
* feat: add filepicker properties panel

* refactor: rework filepicker properties panel
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants