-
Notifications
You must be signed in to change notification settings - Fork 8
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 html block in action forms #1172
Conversation
return resultBuilder.success('ok', { | ||
html: `test<script type="text/javascript">alert("test")</script>`, | ||
}); |
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.
😬 ?
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.
to remove
@@ -27,6 +29,18 @@ export default (collection: CardCustomizer) => | |||
component: 'Separator', | |||
if: ctx => ctx.formValues.first_name?.[0] === 'test', | |||
}, | |||
{ |
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.
💪
}; | ||
|
||
export type DynamicLayoutElement<Context = unknown> = | ||
| DynamicLayoutElementBase<Context> |
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.
| DynamicLayoutElementBase<Context> |
@@ -271,7 +271,7 @@ export type ActionFieldWidget = | |||
| 'FilePicker' | |||
| 'JsonEditor'; | |||
|
|||
type LayoutElementComponentType = 'Input' | 'Separator'; | |||
type LayoutElementComponentType = 'Input' | 'Separator' | 'HtmlBlock'; |
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.
Same as in the frontend. You can improve types by infering LayoutElementComponentType -> ActionLayoutElement['component']
.
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 👍
Code Climate has analyzed commit 4e630f0 and detected 0 issues on this pull request. The test coverage on the diff in this pull request is 100.0% (98% is the threshold). This pull request will bring the total coverage in the repository to 97.5% (0.0% change). View more on Code Climate. |
## [1.8.47](https://github.com/ForestAdmin/agent-nodejs/compare/example@1.8.46...example@1.8.47) (2024-09-17) ### Features * add html block in action forms ([#1172](#1172)) ([4c67ccd](4c67ccd))
# [1.43.0](https://github.com/ForestAdmin/agent-nodejs/compare/@forestadmin/agent@1.42.0...@forestadmin/agent@1.43.0) (2024-09-17) ### Features * add html block in action forms ([#1172](#1172)) ([4c67ccd](4c67ccd))
🎉 This PR is included in version 1.3.16 🎉 The release is available on npm package (@latest dist-tag) Your semantic-release bot 📦🚀 |
# [1.49.0](https://github.com/ForestAdmin/agent-nodejs/compare/@forestadmin/datasource-customizer@1.48.0...@forestadmin/datasource-customizer@1.49.0) (2024-09-17) ### Features * add html block in action forms ([#1172](#1172)) ([4c67ccd](4c67ccd))
🎉 This PR is included in version 1.8.47 🎉 The release is available on Your semantic-release bot 📦🚀 |
## [1.1.27](https://github.com/ForestAdmin/agent-nodejs/compare/@forestadmin/datasource-dummy@1.1.26...@forestadmin/datasource-dummy@1.1.27) (2024-09-17) ### Features * add html block in action forms ([#1172](#1172)) ([4c67ccd](4c67ccd))
## [1.7.16](https://github.com/ForestAdmin/agent-nodejs/compare/@forestadmin/datasource-mongoose@1.7.15...@forestadmin/datasource-mongoose@1.7.16) (2024-09-17) ### Features * add html block in action forms ([#1172](#1172)) ([4c67ccd](4c67ccd))
## [1.3.33](https://github.com/ForestAdmin/agent-nodejs/compare/@forestadmin/datasource-replica@1.3.32...@forestadmin/datasource-replica@1.3.33) (2024-09-17) ### Features * add html block in action forms ([#1172](#1172)) ([4c67ccd](4c67ccd))
🎉 This PR is included in version 1.43.0 🎉 The release is available on npm package (@latest dist-tag) Your semantic-release bot 📦🚀 |
## [1.9.4](https://github.com/ForestAdmin/agent-nodejs/compare/@forestadmin/datasource-sequelize@1.9.3...@forestadmin/datasource-sequelize@1.9.4) (2024-09-17) ### Features * add html block in action forms ([#1172](#1172)) ([4c67ccd](4c67ccd))
## [1.14.20](https://github.com/ForestAdmin/agent-nodejs/compare/@forestadmin/datasource-sql@1.14.19...@forestadmin/datasource-sql@1.14.20) (2024-09-17) ### Features * add html block in action forms ([#1172](#1172)) ([4c67ccd](4c67ccd))
🎉 This PR is included in version 1.49.0 🎉 The release is available on npm package (@latest dist-tag) Your semantic-release bot 📦🚀 |
# [1.36.0](https://github.com/ForestAdmin/agent-nodejs/compare/@forestadmin/datasource-toolkit@1.35.0...@forestadmin/datasource-toolkit@1.36.0) (2024-09-17) ### Features * add html block in action forms ([#1172](#1172)) ([4c67ccd](4c67ccd))
## [1.11.11](https://github.com/ForestAdmin/agent-nodejs/compare/@forestadmin/forest-cloud@1.11.10...@forestadmin/forest-cloud@1.11.11) (2024-09-17) ### Features * add html block in action forms ([#1172](#1172)) ([4c67ccd](4c67ccd))
🎉 This PR is included in version 1.1.27 🎉 The release is available on npm package (@latest dist-tag) Your semantic-release bot 📦🚀 |
# [1.29.0](https://github.com/ForestAdmin/agent-nodejs/compare/@forestadmin/forestadmin-client@1.28.0...@forestadmin/forestadmin-client@1.29.0) (2024-09-17) ### Features * add html block in action forms ([#1172](#1172)) ([4c67ccd](4c67ccd))
## [1.3.87](https://github.com/ForestAdmin/agent-nodejs/compare/@forestadmin/plugin-aws-s3@1.3.86...@forestadmin/plugin-aws-s3@1.3.87) (2024-09-17) ### Features * add html block in action forms ([#1172](#1172)) ([4c67ccd](4c67ccd))
🎉 This PR is included in version 1.7.16 🎉 The release is available on npm package (@latest dist-tag) Your semantic-release bot 📦🚀 |
## [1.0.98](https://github.com/ForestAdmin/agent-nodejs/compare/@forestadmin/plugin-export-advanced@1.0.97...@forestadmin/plugin-export-advanced@1.0.98) (2024-09-17) ### Features * add html block in action forms ([#1172](#1172)) ([4c67ccd](4c67ccd))
🎉 This PR is included in version 1.3.33 🎉 The release is available on npm package (@latest dist-tag) Your semantic-release bot 📦🚀 |
## [1.2.13](https://github.com/ForestAdmin/agent-nodejs/compare/@forestadmin/plugin-flattener@1.2.12...@forestadmin/plugin-flattener@1.2.13) (2024-09-17) ### Features * add html block in action forms ([#1172](#1172)) ([4c67ccd](4c67ccd))
🎉 This PR is included in version 1.9.4 🎉 The release is available on npm package (@latest dist-tag) Your semantic-release bot 📦🚀 |
Definition of Done
CU-86c097bhw
General
Security