bluzky / salad_ui

Phoenix Liveview component library inspired by shadcn UI
https://salad-storybook.fly.dev/welcome
MIT License
417 stars 24 forks source link

Dropdown menu tests #15

Closed kamaroly closed 3 months ago

kamaroly commented 3 months ago

Changelist:

  1. Added icon so that I can test components with icons
  2. Added dropdown menu

Summary by Sourcery

This pull request introduces a new dropdown menu component and an icon component for rendering Heroicons. It also includes tests to ensure the correct rendering of the dropdown menu and its contents.

sourcery-ai[bot] commented 3 months ago

Reviewer's Guide by Sourcery

This pull request introduces tests for the dropdown menu component and adds a new icon component to support these tests. The SaladUI.DropdownMenuTest module includes tests for rendering the dropdown menu trigger, content, and the entire dropdown menu. The SaladUI.Icon module provides a component for rendering Heroicons, with documentation and usage examples.

File-Level Changes

Files Changes
test/salad_ui/dropdown_menu_test.exs
lib/salad_ui/icon.ex
Introduced new tests for the dropdown menu and added an icon component to support these tests.

Tips - Trigger a new Sourcery review by commenting `@sourcery-ai review` on the pull request. - You can change your review settings at any time by accessing your [dashboard](https://sourcery.ai/dashboard): - Enable or disable the Sourcery-generated pull request summary or reviewer's guide; - Change the review language; - You can always [contact us](mailto:support@sourcery.ai) if you have any questions or feedback.