-
Notifications
You must be signed in to change notification settings - Fork 10.1k
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(n8n Form Trigger Node): Form Improvements #12590
base: master
Are you sure you want to change the base?
Conversation
ff40c69
to
4c6ac47
Compare
Codecov ReportAll modified and coverable lines are covered by tests ✅ 📢 Thoughts on this report? Let us know! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, some suggestions:
- update parameter description to mention that field accepts HTML
- add 'target' and 'rel' to
allowedAttributes
- extend
allowedTags
by 'u', 'sub', 'sup', 'code', 'pre', 'span', 'br'
is there a way to tell if not allowed attributes/tags used? if so worth adding post execution hint
I think we would be able to do this by doing something like Do you have an idea of the best way to add the post execution hint? From my understanding, |
never mind, I just tested - |
4c6ac47
to
e7c95d5
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM 🎉
✅ All Cypress E2E specs passed |
e7c95d5
to
61f9c14
Compare
61f9c14
to
5285dd1
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
should we have separate parameter in options for form description metatada with fallback to description?
I thought about doing that especially during this Slack conversation. I get the feeling that we would want to do this as part of an initiative to allow users to set metadata themselves since that would require a bit more specing (I think it was suggested to maybe use a |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
|
We cannot use relative paths for the image [1] so we are using the logo in GitHub [1]: https://stackoverflow.com/questions/9858577/open-graph-can-resolve-relative-url
dd08e15
to
80be105
Compare
80be105
to
29d7f70
Compare
Summary
For this PR, we are only allowing a select number of HTML elements. We can easily add more by adding more to the
sanitize
options.Node for testing:
Related Linear tickets, Github issues, and Community forum posts
https://linear.app/n8n/issue/NODE-2227/sanitize-rendered-html-for-form-descriptions
https://linear.app/n8n/issue/NODE-2228/render-html-for-form-descriptions
https://linear.app/n8n/issue/NODE-2226/description-parameter-html-formatting
https://linear.app/n8n/issue/NODE-2237/form-title-and-form-description-metadata
Review / Merge checklist
release/backport
(if the PR is an urgent fix that needs to be backported)