Closed albinAppsmith closed 4 hours ago
The pull request introduces several changes across multiple files, primarily adding a new dependency for Tailwind CSS merging and enhancing component functionality. The Box
and Flex
components are refactored to use forwardRef
, allowing them to accept and forward refs. A new utility function cn
is introduced for merging class names, accompanied by tests to validate its functionality. Additionally, the Toolbar
component is enhanced with state management to apply a shadow effect on scroll.
File | Change Summary |
---|---|
app/client/package.json |
Added dependency: "tailwind-merge": "^2.5.4" |
app/client/packages/design-system/ads/src/Box/Box.tsx |
Refactored Box component to use forwardRef , updated method signature. |
app/client/packages/design-system/ads/src/Flex/Flex.tsx |
Refactored Flex component to use forwardRef , updated method signature. |
app/client/packages/utils/src/cn/cn.ts |
Added utility function cn for merging class names. |
app/client/packages/utils/src/cn/cn.test.ts |
Introduced test suite for cn function with multiple test cases. |
app/client/packages/utils/src/cn/index.ts |
Added export for cn function from ./cn module. |
app/client/packages/utils/src/index.ts |
Added export statement: export * from "./cn"; |
app/client/src/IDE/Structure/Toolbar.tsx |
Added state management for shadow effect on scroll, updated component structure. |
Objective | Addressed | Explanation |
---|---|---|
Remove bottom border of toolbar (#37578) | ❌ | The changes do not include any modifications to remove the bottom border. |
Add shadow on scroll (#37578) | ✅ | The implementation of state management for shadow effect on scroll addresses this requirement. |
Bug
, IDE Product
, IDE Pod
, skip-changelog
🎉 In the code we weave, a new style to achieve,
With Tailwind's grace, our components embrace.
Refactors in play, for Flex and Box today,
Shadows on scroll, making UI whole!
Tests to ensure, thecn
function's pure,
Enhancements abound, in this PR we've found! 🌟
Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media?
/build-deploy-preview skip-test=true
Deploying Your Preview: https://github.com/appsmithorg/appsmith/actions/runs/11927588365.
Workflow: On demand build Docker image and deploy preview
.
skip-tests: . env:
.
PR: 37579.
recreate: .
Deploy-Preview-URL: https://ce-37579.dp.appsmith.com
Closing this PR for now because of feasibility issues
Description
This PR have following changes to IDE toolbar
Fixes #37578
Automation
/ok-to-test tags="@tag.Sanity"
:mag: Cypress test results
Communication
Should the DevRel and Marketing teams inform users about this change?
Summary by CodeRabbit
Release Notes
New Features
cn
for merging class names, including support for Tailwind CSS classes.Toolbar
component with scroll-based shadow effects for improved visual feedback.Improvements
Box
andFlex
components to support ref forwarding, increasing their flexibility in usage.Testing
cn
function to ensure reliable class name merging behavior.Dependencies
tailwind-merge
library to enhance styling capabilities.