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(stepfunctions): Custom editor to view and edit ASL files - tracer bullet #5613

Merged
merged 1 commit into from
Sep 23, 2024

Conversation

witness-me
Copy link

Problem

ASL files, represented as *.asl.json and *.asl.yaml, are rendered using the default JSON editor

Solution

Use existing SFN visual custom editor in VSCode to render ASL files in a visual builder, similar to how it would be displayed in SFN console in create/edit modes.

Current pull request is a tracer bullet implementation without support for local file editing - this functionality will be added in the following changes


License: I confirm that my contribution is made under the terms of the Apache 2.0 license.

@witness-me witness-me requested a review from a team as a code owner September 17, 2024 19:03
Copy link

This pull request modifies files in src/ but no tests were added/updated. Confirm whether tests should be added or ensure the PR description explains why tests are not required.

Copy link

This pull request modifies a feature or fixes a bug, but it does not include a changelog entry. All pull requests that introduce new features or bug fixes must have a corresponding changelog item describing the changes.

@witness-me witness-me changed the title feat(StepFunctions): Custom editor to view and edit ASL files - tracer bullet feat(stepfunctions): Custom editor to view and edit ASL files - tracer bullet Sep 17, 2024
@witness-me witness-me changed the base branch from master to feature/stepfunctions-workflow September 17, 2024 19:14
Copy link

This pull request modifies code in src/ but no tests were added/updated. Confirm whether tests should be added or ensure the PR description explains why tests are not required.

Copy link

This pull request implements a feature or fix, so it must include a changelog entry. See CONTRIBUTING.md#changelog for instructions.

},
{
"name": "stepfunctions_cancelOpenWorkflowStudio",
"description": "Called after cancelling opening asl file in Step Functions Workflow Studio",
Copy link
Contributor

@justinmk3 justinmk3 Sep 20, 2024

Choose a reason for hiding this comment

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

It's never necessary to have a separate cancel event. All events can have result=success/fail/cancel.

Please review https://github.com/aws/aws-toolkit-vscode/blob/master/docs/telemetry.md

This is a blocking comment.

Comment on lines 144 to 145
void vscode.window.showInformationMessage(i18n('AWS.stepFunctions.workflowStudio.errors.rendering'))
this.logger.error(`WorkflowStudio: Unable to open file. ${err}`)
Copy link
Contributor

@justinmk3 justinmk3 Sep 20, 2024

Choose a reason for hiding this comment

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

If resolveCustomTextEditor is called as the result of a vscode command or a webview, then Toolkit already has a default handler that logs the error and shows a message. It's not necessary, and discouraged, to repeat that logic in this way, because it leads to an incosistent UX.

Please review the guidlines here: https://github.com/aws/aws-toolkit-vscode/blob/master/CONTRIBUTING.md#develop

@@ -480,6 +480,16 @@
"name": "stepfunctions_previewstatemachine",
"description": ""
},
{
"name": "stepfunctions_openWorkflowStudio",
Copy link
Contributor

Choose a reason for hiding this comment

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

Please plan to upstream this to https://github.com/aws/aws-toolkit-common as you near launch.

@justinmk3 justinmk3 merged commit 080bc07 into aws:feature/stepfunctions-workflow Sep 23, 2024
22 of 24 checks passed
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.

4 participants