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

[GEN-2165] create "Segment" component, and replace "ToggleButtons" & "ToggleCode" #2140

Merged
merged 6 commits into from
Jan 6, 2025

Conversation

BenElferink
Copy link
Contributor

@BenElferink BenElferink commented Jan 6, 2025

This pull request includes significant changes to the frontend codebase, focusing on replacing the ToggleCodeComponent and ToggleButtons components with a new Segment component. The updates span across multiple files, simplifying the code and improving the user interface.

Component Replacement and Refactoring:

  • Removed ToggleCodeComponent and replaced it with the new Segment component in describe-drawer.tsx, source-drawer-container/index.tsx, and action-form-body/index.tsx to toggle between code and pretty modes. [1] [2] [3]
  • Removed ToggleButtons and replaced it with the Segment component in rule-form-body/index.tsx and action-form-body/index.tsx to toggle between active and inactive statuses. [1] [2]

File and Import Cleanup:

  • Removed the toggle-code-component export from index.ts files and deleted the toggle-code-component/index.tsx file. [1] [2]
  • Removed the toggle-buttons export from index.ts files and deleted the toggle-buttons/index.tsx file. [1] [2]
  • Added the segment export to reuseable-components/index.ts.

New Component Addition:

  • Added the new Segment component in reuseable-components/segment/index.tsx, which provides a flexible and reusable segmented control for toggling between different states.

@BenElferink BenElferink requested a review from alonkeyval January 6, 2025 10:01
Copy link

@BenElferink BenElferink enabled auto-merge (squash) January 6, 2025 15:34
@BenElferink BenElferink merged commit 409bb0b into odigos-io:main Jan 6, 2025
31 checks passed
@BenElferink BenElferink deleted the gen-2165 branch February 18, 2025 08:08
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