-
Notifications
You must be signed in to change notification settings - Fork 619
[Dashboard] Refactor: Migrate CodeSegment to shadcn/tailwind + Improved UI #5407
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
[Dashboard] Refactor: Migrate CodeSegment to shadcn/tailwind + Improved UI #5407
Conversation
|
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
|
Your org has enabled the Graphite merge queue for merging into mainAdd the label “merge-queue” to the PR and Graphite will automatically add it to the merge queue when it’s ready to merge. Or use the label “hotfix” to add to the merge queue as a hot fix. You must have a Graphite account and log in to Graphite in order to use the merge queue. Sign up using this link. |
This stack of pull requests is managed by Graphite. Learn more about stacking. Join @MananTank and the rest of your teammates on |
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #5407 +/- ##
=======================================
Coverage 45.52% 45.52%
=======================================
Files 1070 1070
Lines 55665 55665
Branches 4030 4030
=======================================
Hits 25341 25341
Misses 29637 29637
Partials 687 687
*This pull request uses carry forward flags. Click here to find out more. |
size-limit report 📦
|
a97160f to
96bdc5a
Compare
96bdc5a to
3706d1f
Compare
Merge activity
|
…ed UI (#5407) ## Problem solved Short description of the bug fixed or feature added <!-- start pr-codex --> --- ## PR-Codex overview This PR focuses on refactoring the code related to `CodeSegment` and `CodeEnvironment`, moving them to a new location and updating their usage across various components. It also introduces a new `CodeSegment` component with improved functionality. ### Detailed summary - Deleted `types.ts` and `CodeSegment.tsx` from `contract-tabs`. - Introduced `CodeSegment` and `CodeEnvironment` in `code-segment.client.tsx`. - Updated imports in multiple files to use the new `CodeSegment` and `CodeEnvironment`. - Enhanced `CodeSegment` to manage code snippets for different environments. - Added stories for `CodeSegment` in `code-segment.stories.tsx`. > ✨ Ask PR-Codex anything about this PR by commenting with `/codex {your question}` <!-- end pr-codex -->
3706d1f to
9ea155e
Compare

Problem solved
Short description of the bug fixed or feature added
PR-Codex overview
This PR focuses on refactoring and consolidating the
CodeSegmentcomponent and its related types, moving them fromcontract-tabstoblocks. It also introduces a new structure for handling code environments and snippets.Detailed summary
types.tsandCodeSegment.tsxfromcontract-tabs.CodeSegmentandCodeEnvironmenttypes inblocks/code-segment.client.tsx.CodeSegmentandCodeEnvironment.CodeSegmentcomponent to manage code snippets for different environments.CodeSegmentto include various UI modes and examples.