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 and simplify reactflow component data/state #158

Merged
merged 2 commits into from
May 17, 2024

Conversation

ohltyler
Copy link
Member

@ohltyler ohltyler commented May 16, 2024

Description

This PR cleans up existing ReactFlow component data/state, and removes form-related state that's now persisted in the WorkflowInputs form component. Additionally, this adds back the default workspace for semantic search.

More details

  • removes form/input-related state and other unnecessary config from BaseComponent (located in component_types/ and its child classes (e.g., categories, base classes, fields, create fields)
  • removes ComponentDetails component entirely as the form inputs and logic has migrated over to within the new WorkflowInputs component
  • removes unneeded NewOrExistingTabs component entirely
  • removes unneeded form/schema util fns
  • simplifies WorkspaceComponent component which is the base component rendered in the ReactFlow workspace

Screenshot showing the workspace added back for preset semantic search:

Screenshot

Issues Resolved

Makes progress on #23

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.

@ohltyler ohltyler merged commit 5fe2d10 into opensearch-project:main May 17, 2024
11 checks passed
@ohltyler ohltyler deleted the dynamic-workspace branch May 17, 2024 15:21
opensearch-trigger-bot bot pushed a commit that referenced this pull request May 17, 2024
Signed-off-by: Tyler Ohlsen <[email protected]>
(cherry picked from commit 5fe2d10)
ohltyler added a commit that referenced this pull request May 17, 2024
Signed-off-by: Tyler Ohlsen <[email protected]>
(cherry picked from commit 5fe2d10)

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
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants