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

8726 workflow add a test button in workflow code step #9016

Merged
merged 31 commits into from
Dec 13, 2024

Conversation

martmull
Copy link
Contributor

@martmull martmull commented Dec 11, 2024

  • add test button to workflow code step
  • add test tab to workflow code step
Enregistrement.de.l.ecran.2024-12-11.a.15.09.10.mov

image
image

@martmull martmull linked an issue Dec 11, 2024 that may be closed by this pull request
@martmull martmull force-pushed the 8726-workflow-add-a-test-button-in-workflow-code-step branch from 57f83a7 to f12418a Compare December 11, 2024 13:39
@martmull martmull marked this pull request as ready for review December 11, 2024 14:07
Copy link
Contributor

@greptile-apps greptile-apps bot left a comment

Choose a reason for hiding this comment

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

PR Summary

This PR adds test functionality to workflow code steps, including a test button and test tab interface for executing and viewing serverless function results.

  • Added new ServerlessFunctionExecutionResult component in /packages/twenty-front/src/modules/serverless-functions/components/ to display test execution status, duration, and output
  • Implemented useTestServerlessFunction hook in /packages/twenty-front/src/modules/serverless-functions/hooks/ for managing test execution state and handling responses
  • Removed CodeIntrospectionService and related files in favor of simpler schema handling with BASE_TYPESCRIPT_PROJECT_INPUT_SCHEMA
  • Added comprehensive test coverage for serverless function utilities in /packages/twenty-front/src/modules/serverless-functions/utils/__tests__/
  • Refactored tab state management across components to use useTabList hook directly instead of Recoil state

77 file(s) reviewed, 59 comment(s)
Edit PR Review Bot Settings | Greptile

@martmull martmull force-pushed the 8726-workflow-add-a-test-button-in-workflow-code-step branch from 0ca4ed8 to 4136651 Compare December 11, 2024 16:22
@martmull martmull force-pushed the 8726-workflow-add-a-test-button-in-workflow-code-step branch from 9ac1ed5 to 3d0c160 Compare December 11, 2024 16:58
Copy link
Contributor

@Devessier Devessier left a comment

Choose a reason for hiding this comment

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

Great job! I only gave a look to the first half of the Pull Request. I wrote a few comments.

@Devessier Devessier self-requested a review December 12, 2024 09:52
Copy link
Contributor

@Devessier Devessier left a comment

Choose a reason for hiding this comment

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

Great work! Thank you!
As discussed, removing the "Test" button from the "Code" would be great. I think it doesn't provide the best UX as the code and the test parts are separate, making it hard to know the arguments used when launching a test from the "Code" tab.

@martmull martmull force-pushed the 8726-workflow-add-a-test-button-in-workflow-code-step branch from 8794909 to 96103f0 Compare December 12, 2024 16:31
@martmull martmull force-pushed the 8726-workflow-add-a-test-button-in-workflow-code-step branch from 96103f0 to 1c19366 Compare December 12, 2024 16:35
@martmull martmull force-pushed the 8726-workflow-add-a-test-button-in-workflow-code-step branch from 3ab11cb to 2a938f1 Compare December 12, 2024 17:24
@Devessier Devessier self-requested a review December 13, 2024 09:19
Copy link
Contributor

@Devessier Devessier left a comment

Choose a reason for hiding this comment

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

Amazing! Approving.

nx.json Show resolved Hide resolved
@martmull martmull enabled auto-merge (squash) December 13, 2024 10:11
@martmull martmull merged commit b10d831 into main Dec 13, 2024
19 checks passed
@martmull martmull deleted the 8726-workflow-add-a-test-button-in-workflow-code-step branch December 13, 2024 10:16
charlesBochet pushed a commit that referenced this pull request Dec 18, 2024
- Fixed icon shrinking on tabs. The introduction of EllipsisDisplay
takes 100% of the width, thus shrinking the icons.
- Removed scroll wrapper tablist. This was removed in #9016 but
reintroduced in #9089. This reintroduction made the dark border below
the active tab disappear.
- Used Avatar for icon and logo rendering following the changes made in
#9093
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.

[Workflow] Add a Test button in workflow code step
3 participants