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

Bulk Export/Import of Workflow Definitions #83

Merged
merged 4 commits into from
Nov 22, 2023

Conversation

sfmskywalker
Copy link
Member

@sfmskywalker sfmskywalker commented Nov 22, 2023

This PR updates the Workflow Definitions List view to add bulk export/import functionality.

=== auto-pr-body ===

Summary: This Pull Request introduces new functionality such as the ability to delete workflows, added new event handlers, adding parameters, and import new libraries.

List of Changes:

  • Changed event handler type for MudSwitch component from CheckedChanged to @OnAutoSaveChanged.
  • Changed event handler type for MudFileUpload from FilesChanged to @OnFileSelected.
  • Changed event handler type for MudIconButton inside MudButtonGroup from OnClick to @OnPublishClicked.
  • Changed event handler type for MudIconButton inside MudButtonGroup from OnClick to @OnRetractClicked.
  • Changed event handler type for MudMenuItem inside MudButtonGroup from OnClick to @OnDownloadClicked.
  • Changed event handler type for MudMenuItem inside MudButtonGroup from OnClick to @OnUploadClicked.
  • Changed event handler type for MudIconButton from OnClick to @OnRunWorkflowClicked.
  • Changed event handler type for ActivityPropertiesPanel component from OnActivityUpdated to @OnSelectedActivityUpdated.
  • Added <MudFileUpload T="IReadOnlyList<IBrowserFile>" FilesChanged="@OnFilesSelected"/> component.
  • Added new MudMenuItem to enable users to delete workflows
  • Added OnBulkExportClicked event handler
  • Added OnImportClicked event handler
  • Added OnFilesSelected event handler
  • Added new MudButtonGroup containing both a Create Workflow button and an Import button
  • Updated WorkflowDefinitionRow to include a new Id parameter
  • Imported new libraries, including System.Text.Json, System.Text.Json.Serialization, and Refit

Refactoring Target:

  • Replace usage of OnClick with @onClick for all components in the pull request diff for consistency.
  • Move the <MudFileUpload T="IReadOnlyList<IBrowserFile>" FilesChanged="@OnFilesSelected"/> component outside Pages/WorkflowDefinitions/List/Index.razor and add it to a separate shared partial or component.
  • Consider wrapping redundant code into objects and parameters in order to reduce code duplication.

@sfmskywalker sfmskywalker merged commit 4683363 into main Nov 22, 2023
2 checks passed
@sfmskywalker sfmskywalker deleted the feature/bulk-export-import branch November 22, 2023 19:50
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.

1 participant