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

Refactor & improve Workflow Builder; connect to redux store #36

Merged
merged 2 commits into from
Sep 25, 2023

Conversation

ohltyler
Copy link
Member

@ohltyler ohltyler commented Sep 22, 2023

Description

This PR accomplishes a few things:

  • Refactors Workflow Builder page as the Workflow Details page, based on the rough UX mocks from @opensearch-project/opensearch-ux
  • Improves the details page by fetching workflow data from redux store
  • Improves the workflow table by changing to EuiInMemoryTable and fetching from redux store
  • Improves the workflow table by hyperlinking the workflow name to open its details page
  • Creates a new Workspace component to maintain workspace-related state. Fetches state (currently some default components) from redux store

The switch to EuiInMemoryTable is primarily because of the simplicity and less chance of bugs. If it is determined later on we will need dynamic fetching of data triggered by table change, and if storing all workflows in memory is too expensive, we can update then.

Below is a demo showing the 2 hardcoded workflows rendered in the table. When clicking on them, it renders the details page with relevant info based on that workflow. Defaults to 2 hardcoded components in the workspace.

screen-capture.17.webm

Issues Resolved

Makes progress on #8, #10, #13

Check List

  • Commits are signed per the DCO using --signoff

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.
For more information on following Developer Certificate of Origin and signing off your commits, please check here.

Signed-off-by: Tyler Ohlsen <[email protected]>
@ohltyler ohltyler merged commit ea04bce into opensearch-project:main Sep 25, 2023
4 checks passed
@ohltyler ohltyler deleted the builder-improvements branch September 25, 2023 17:52
opensearch-trigger-bot bot pushed a commit that referenced this pull request Sep 25, 2023
ohltyler added a commit that referenced this pull request Sep 25, 2023
Signed-off-by: Tyler Ohlsen <[email protected]>
(cherry picked from commit ea04bce)

Co-authored-by: Tyler Ohlsen <[email protected]>
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.

2 participants