-
Notifications
You must be signed in to change notification settings - Fork 0
Extract components from Uchi #59
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
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull request overview
This pull request extracts three component families from the Uchi project: Toast notifications, Breadcrumb navigation, and DateTime input fields. The PR includes comprehensive implementations with tests, preview components for documentation, and updates the version from 0.1.3 to 0.1.4.
Key Changes:
- Added Toast component with multiple style variants (default, success, danger, warning) and dismissible functionality
- Added Breadcrumb navigation components with specialized item types (First, Current, and standard items)
- Added DateTime input field components following the existing Input::Field pattern
Reviewed changes
Copilot reviewed 19 out of 20 changed files in this pull request and generated 1 comment.
Show a summary per file
| File | Description |
|---|---|
| app/components/flowbite/toast.rb | Main Toast component with customizable styles and dismissible option |
| app/components/flowbite/toast/icon.rb | Toast icon component supporting multiple style variants |
| app/components/flowbite/toast/toast.html.erb | Toast template with icon, message, and optional close button |
| app/components/flowbite/toast/icon.html.erb | Icon template rendering SVG with dynamic styling |
| app/components/flowbite/breadcrumb.rb | Container component for breadcrumb navigation |
| app/components/flowbite/breadcrumb_item.rb | Base class for breadcrumb items with link rendering |
| app/components/flowbite/breadcrumb_item/first.rb | First breadcrumb item with home icon |
| app/components/flowbite/breadcrumb_item/current.rb | Current page breadcrumb rendered as non-interactive span |
| app/components/flowbite/breadcrumb_home.rb | Home icon component for first breadcrumb item |
| app/components/flowbite/breadcrumb_separator.rb | Chevron separator icon between breadcrumb items |
| app/components/flowbite/input/date_time.rb | DateTime input component extending Field base class |
| app/components/flowbite/input_field/date_time.rb | DateTime input field wrapper with label and validation support |
| test/components/flowbite/toast_test.rb | Comprehensive tests for Toast component and Icon subcomponent |
| test/components/flowbite/breadcrumb_test.rb | Tests for all Breadcrumb components and variants |
| test/components/flowbite/input/date_time_test.rb | Tests for DateTime input component |
| test/components/flowbite/input_field_test.rb | Added DateTime tests to existing InputField test suite |
| demo/test/components/previews/toast_preview.rb | Preview examples demonstrating Toast component usage |
| demo/test/components/previews/breadcrumb_preview.rb | Preview example for Breadcrumb navigation |
| demo/Gemfile.lock | Version bump to 0.1.4 |
| CHANGELOG.md | Documentation of new components added |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
Extracted from Uchis component library (www.uchiadmin.com).
Extracted from Uchi's component library (www.uchiadmin.com).
Extracted from Uchi's component library (www.uchiadmin.com).
04de955 to
18a51b2
Compare
No description provided.