Closed ttizze closed 2 months ago
The changes introduce new UI components, including a Toggle Group and a customizable Toggle, both built with React and Radix UI. Enhancements are made to the Editor component, adding a bubble menu for text formatting options and improving editor configuration. Additionally, modifications to server-side rendering behaviors and updates to dependencies in package.json
have been implemented to ensure a stable and interactive user experience.
Files | Change Summary |
---|---|
web/app/components/ui/toggle-group.tsx |
Introduced a Toggle Group component using Radix UI, enabling shared styling and behavior across toggle items. Defined ToggleGroup and ToggleGroupItem with forward references. |
web/app/components/ui/toggle.tsx |
Introduced a customizable Toggle component with flexible styling options using class-variance-authority . Defined toggleVariants for managing variants and sizes. |
web/app/root.tsx |
Modified the Layout function to include suppressHydrationWarning={true} for improved server-side rendering behavior. |
web/app/routes/$userName+/page+/$slug+/edit/components/editor/Editor.tsx |
Enhanced the Editor component with a bubble menu for rich text formatting options, linked to commands that apply styling. Updated import statements for modular design. |
web/app/routes/$userName+/page+/$slug+/edit/components/editor/editorConfig.ts |
Improved configureEditor function, switching to named imports and expanding StarterKit configuration. Added hot module replacement for dynamic updates during development. |
web/package.json |
Added new dependencies for Radix UI toggle components. Downgraded react and react-dom versions for stability. |
In a meadow bright and new,
Toggles dance with joy and hue.
An editor's tools, all in a row,
Formatting styles begin to flow.
With each click and happy cheer,
Our UI shines, oh bunny dear! 🐇✨
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?
Summary by CodeRabbit
New Features
Bug Fixes
Chores