Open jsartisan opened 20 hours ago
The pull request introduces several modifications to the sidebar components in the design system. Key changes include the removal of the isMobile
state from the _Sidebar
component, enhancing the component's logic. The _SidebarContent
component's title rendering is improved with additional styling props. The SidebarInset
component is entirely removed, and adjustments are made to the _SidebarProvider
regarding sidebar width styling. The CSS for the sidebar is updated for better responsiveness, and various story exports for the sidebar are simplified by removing the SidebarInset
and variant
properties.
File | Change Summary |
---|---|
app/client/packages/design-system/widgets/src/components/Sidebar/src/Sidebar.tsx |
Removed isMobile state and related conditional rendering for mobile view. Focused on rendering with CSSTransition . |
app/client/packages/design-system/widgets/src/components/Sidebar/src/SidebarContent.tsx |
Enhanced title rendering with additional props for styling. Removed padding from the containing Flex component. |
app/client/packages/design-system/widgets/src/components/Sidebar/src/SidebarInset.tsx |
Deleted the SidebarInset component entirely. |
app/client/packages/design-system/widgets/src/components/Sidebar/src/SidebarProvider.tsx |
Added side prop to _SidebarProvider , updated context value and removed sidebar width inline style. |
app/client/packages/design-system/widgets/src/components/Sidebar/src/index.ts |
Removed export of SidebarInset . |
app/client/packages/design-system/widgets/src/components/Sidebar/src/styles.module.css |
Updated CSS for .mainSidebar and .sidebar classes. Introduced new .sidebarTitle class and refined styles overall. |
app/client/packages/design-system/widgets/src/components/Sidebar/stories/Sidebar.stories.tsx |
Removed SidebarInset from imports and stories. Simplified Default and SideRight story exports, introducing SideLeft . |
app/client/packages/design-system/widgets/src/components/Sidebar/src/SidebarTrigger.tsx |
Updated icon rendering logic based on sidebar state and position. |
app/client/packages/design-system/widgets/src/components/Sidebar/src/types.ts |
Added new types SidebarState and SidebarSide , updated related interfaces to enhance type safety. |
_Sidebar
component by adding new props for handling transition events, which aligns with the modifications made in the main PR regarding the _Sidebar
component's animation handling.Sheet
component, which is a modal-like overlay, could be relevant as it may interact with the sidebar's functionality or layout.Task
, Enhancement
, IDE Product
, IDE Pod
, ok-to-test
π In the sidebar's realm, changes unfold,
With titles more vibrant, and stories retold.
The inset departs, while transitions take flight,
A cleaner design, oh what a delight!
CSS dances, responsive and bright,
In the land of components, everything feels right! π
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?
@ichik updated the icons based on side.
https://github.com/user-attachments/assets/94c51ceb-d0cd-47b8-9766-a160f43b6f6f
/ok-to-test tags="@tag.Anvil"
Summary by CodeRabbit
Release Notes
New Features
Bug Fixes
Style
Chores
SidebarInset
component to simplify the sidebar structure.side
property to the sidebar provider for better contextual control.