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 html block in action forms #1172

Merged
merged 14 commits into from
Sep 17, 2024
Merged

Conversation

EnkiP
Copy link
Member

@EnkiP EnkiP commented Sep 13, 2024

Definition of Done

CU-86c097bhw

General

  • Write an explicit title for the Pull Request, following Conventional Commits specification
  • Test manually the implemented changes
  • Validate the code quality (indentation, syntax, style, simplicity, readability)

Security

  • Consider the security impact of the changes made

@forest-bot
Copy link
Member

@EnkiP EnkiP changed the title Feat/add html block in action forms feat: add html block in action forms Sep 13, 2024
@EnkiP EnkiP changed the base branch from main to feat/add-separator-in-action-forms September 13, 2024 07:56
Comment on lines 9 to 11
return resultBuilder.success('ok', {
html: `test<script type="text/javascript">alert("test")</script>`,
});
Copy link
Member

Choose a reason for hiding this comment

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

😬 ?

Copy link
Member Author

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',
},
{
Copy link
Member

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>
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
| DynamicLayoutElementBase<Context>

@@ -271,7 +271,7 @@ export type ActionFieldWidget =
| 'FilePicker'
| 'JsonEditor';

type LayoutElementComponentType = 'Input' | 'Separator';
type LayoutElementComponentType = 'Input' | 'Separator' | 'HtmlBlock';
Copy link
Member

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'].

Base automatically changed from feat/add-separator-in-action-forms to main September 17, 2024 13:18
Copy link

@jbarreau jbarreau left a comment

Choose a reason for hiding this comment

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

LGTM 👍

Copy link

codeclimate bot commented Sep 17, 2024

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.

@EnkiP EnkiP merged commit 4c67ccd into main Sep 17, 2024
22 checks passed
@EnkiP EnkiP deleted the feat/add-html-block-in-action-forms branch September 17, 2024 14:18
forest-bot added a commit that referenced this pull request Sep 17, 2024
@forest-bot
Copy link
Member

🎉 This PR is included in version 1.3.16 🎉

The release is available on npm package (@latest dist-tag)

Your semantic-release bot 📦🚀

@forest-bot
Copy link
Member

🎉 This PR is included in version 1.8.47 🎉

The release is available on example@1.8.47

Your semantic-release bot 📦🚀

@forest-bot
Copy link
Member

🎉 This PR is included in version 1.43.0 🎉

The release is available on npm package (@latest dist-tag)

Your semantic-release bot 📦🚀

@forest-bot
Copy link
Member

🎉 This PR is included in version 1.49.0 🎉

The release is available on npm package (@latest dist-tag)

Your semantic-release bot 📦🚀

@forest-bot
Copy link
Member

🎉 This PR is included in version 1.1.27 🎉

The release is available on npm package (@latest dist-tag)

Your semantic-release bot 📦🚀

@forest-bot
Copy link
Member

🎉 This PR is included in version 1.7.16 🎉

The release is available on npm package (@latest dist-tag)

Your semantic-release bot 📦🚀

@forest-bot
Copy link
Member

🎉 This PR is included in version 1.3.33 🎉

The release is available on npm package (@latest dist-tag)

Your semantic-release bot 📦🚀

@forest-bot
Copy link
Member

🎉 This PR is included in version 1.9.4 🎉

The release is available on npm package (@latest dist-tag)

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants