Skip to content
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

docs(list.stories.tsx): add list with icon storybook #1311

Closed
wants to merge 4 commits into from

Conversation

paghar
Copy link
Contributor

@paghar paghar commented Mar 21, 2024

add list with icon storybook

There are no breaking API changes.

Summary by CodeRabbit

  • New Features
    • Added a new story showcasing a list with icons in the List component documentation.

Copy link

stackblitz bot commented Mar 21, 2024

Review PR in StackBlitz Codeflow Run & review this pull request in StackBlitz Codeflow.

Copy link
Contributor

coderabbitai bot commented Mar 21, 2024

Important

Auto Review Skipped

More than 25% of the files skipped due to max files limit. Skipping review to prevent low quality review.

172 files out of 296 files are above the max files limit of 100.

Walkthrough

This update introduces a new story titled WithIconList for the List component, demonstrating its capability to incorporate icons from the react-icons/hi library. This enhancement enriches the visual appeal and functionality of the List component, offering a more engaging user experience.

Changes

Files Change Summary
src/components/List/...stories.tsx Added WithIconList story showcasing lists with icons

🐇✨
In the realm of code, where stories unfold,
A tale of lists, with icons bold.
🌟 A rabbit hopped, through lines so sleek,
To bring a change, unique and chic.
📜 With every hop, a story's born,
In the glow of code, our hearts are worn.
🚀 To the stars, our dreams we send,
With icons and lists, our spirits ascend.
✨🐇

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?

Share

Tips

Chat

There are 3 ways to chat with CodeRabbit:

  • Review comments: Directly reply to a review comment made by CodeRabbit. Example:
    • I pushed a fix in commit <commit_id>.
    • Generate unit-tests for this file.
    • Open a follow-up GitHub issue for this discussion.
  • Files and specific lines of code (under the "Files changed" tab): Tag @coderabbitai in a new review comment at the desired location with your query. Examples:
    • @coderabbitai generate unit tests for this file.
    • @coderabbitai modularize this function.
  • PR comments: Tag @coderabbitai in a new PR comment to ask questions about the PR branch. For the best results, please provide a very specific query, as very limited context is provided in this mode. Examples:
    • @coderabbitai generate interesting stats about this repository and render them as a table.
    • @coderabbitai show all the console.log statements in this repository.
    • @coderabbitai read src/utils.ts and generate unit tests.
    • @coderabbitai read the files in the src/scheduler package and generate a class diagram using mermaid and a README in the markdown format.

Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments.

CodeRabbit Commands (invoked as PR comments)

  • @coderabbitai pause to pause the reviews on a PR.
  • @coderabbitai resume to resume the paused reviews.
  • @coderabbitai review to trigger a review. This is useful when automatic reviews are disabled for the repository.
  • @coderabbitai resolve resolve all the CodeRabbit review comments.
  • @coderabbitai help to get help.

Additionally, you can add @coderabbitai ignore anywhere in the PR description to prevent this PR from being reviewed.

CodeRabbit Configration File (.coderabbit.yaml)

  • You can programmatically configure CodeRabbit by adding a .coderabbit.yaml file to the root of your repository.
  • The JSON schema for the configuration file is available here.
  • If your editor has YAML language server enabled, you can add the path at the top of this file to enable auto-completion and validation: # yaml-language-server: $schema=https://coderabbit.ai/integrations/coderabbit-overrides.v2.json

CodeRabbit Discord Community

Join our Discord Community to get help, request features, and share feedback.

@paghar
Copy link
Contributor Author

paghar commented Mar 21, 2024

@SutuSebastian Hi Seba, pls check this one...

Copy link

vercel bot commented Mar 21, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
flowbite-react ✅ Ready (Inspect) Visit Preview 💬 Add feedback Mar 25, 2024 9:17am

Copy link

codecov bot commented Mar 21, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 95.53%. Comparing base (7461173) to head (03a050b).
Report is 211 commits behind head on main.

❗ Current head 03a050b differs from pull request most recent head cc2b70a. Consider uploading reports for the commit cc2b70a to get more accurate results

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #1311      +/-   ##
==========================================
- Coverage   99.54%   95.53%   -4.01%     
==========================================
  Files         163      217      +54     
  Lines        6621     9685    +3064     
  Branches      401      560     +159     
==========================================
+ Hits         6591     9253    +2662     
- Misses         30      432     +402     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

Copy link
Contributor

@coderabbitai coderabbitai bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Review Status

Actionable comments generated: 0

Configuration used: CodeRabbit UI

Commits Files that changed from the base of the PR and between c32728b and 03a050b.
Files selected for processing (1)
  • src/components/List/List.stories.tsx (2 hunks)
Additional comments: 2
src/components/List/List.stories.tsx (2)
  • 4-4: The import statement for HiCheckCircle is correctly implemented and follows best practices for importing icons from react-icons/hi.
  • 101-111: The WithIconList story is correctly implemented, demonstrating the use of icons in list items effectively. The story follows established patterns and conventions in the file.

SutuSebastian and others added 3 commits March 24, 2024 09:48
* monorepo init:
- bun [runtime, package manager, task runner, test runner]
- biome [format, lint]
- removed `cypress` (to be replaced with `playwright`)
- removed codecov
- split into multiple packages and apps [web(docs), ui(library), storybook, cli]

UNSTABLE

* (web): remove unused packages

* remove eslint disable rules comments

* fix some linting errors

* (web): link library to monorepo `ui` package

* fix(web): build
fix(ui): exports
fix(root): sort `package.json`

* package upgrade

* fix(storybook):
- replace `@vitejs/plugin-react-sw` -> `@vitejs/plugin-react`
- fix build
- add `.gitignore`
- update stories path

* move git related files in `.git`

* cleanup:
- remove `biome` and drop `bun:test` until stable
- add `prettier`
- imporve `.vscode` files and add extentions suggestions

* - restore prettier config + add tailwind formatting support
- remove more biome leftover
- add package json sorter

* upgrade all packages

* refactor:
- prettier config: add import sorting
- format files

* packages: up

* packages: up storybook

* fix: prettier plugin order

* chore(ui): add `vitest`; add missing `Accordion.spec` import

* chore(root): add turbo test commands and format `package.json`

* fix: intellisense and tailwind support; add `eslint`

* fix(lib): lint errors

* feat(ui): add `createTheme` tailwindcss intellisense function

* refactor(ui): use new tailwindcss shorthands

* fix(storybook/banner): remove invalid tailwind classes

* chore: add `.editorconfig`

* refactor(ui): wrap all components `theme` with `createTheme` to gain class sorting, linting and apply fixes

* fix: prettier config for root and for apps and packages; format code

* refactor: move common eslint packages to root `package.json`;
- add `eslint` to `web`
- optimise onboarding flow
- fix tailwind lint errors here and there

* chore: up packages

* refactor: (web) lint rules + fix examples

* refactor: CI/CD improvements:
- refactor github actions
- setup github actions using `bun`
- remove storybook github action (redo later)

* fix: CI/CD setup action, add missing required property

* fix(web): typecheck

* fix(lib): type module for failing tests

* fix(lib): `package.json` meta and npm tags; update peerDeps

* fix(lib: tsconfig exclude

* fix(lib): rename eslint config to cjs since `"type": "module"`

* fix(web): eslint nextjs rule; supposably fixed flicker on reload

* fix(lib): merge-deep test

* chore(lib): eslint config updates

* fix(lib): bypass `datepicker` test (unfinished)

* refactor(lib): remove `toggleSwitchTheme` empty space

* chore: up packages

* fix(lib): failing tests due to concurrency

* fix(lib): test coverage + format files

* refactor(global): switch from `singleQuote` to double

* refactor(lib): more tailwind shorthands

* chore: up packages

* chore: up packages

* packages(cli): add first version
general: update packages

* packages(cli): fix typecheck

* packages(cli): refactor
- add [dir] argument
- add [options] argument
  - `--template <name>`
  - `-h, --help`

* packages(cli): add `-v, --version` in [options]

* packages(cli): add `README.md`

* fix: package.json repository.url

* packages(cli): add `--git` option

* packages(cli): up package version

* packages(cli): update `README.md`

* packages(cli): bump package version patch

* config: sort and tidy up .vscode settings.json

* fix(docs): navbar package version

* fix(docs): mdx heading color

* feat(docs): code demo:
- add screen size controls (desktop/tablet/mobile)
- add RTL control

* feat(docs): code demo:
- add tooltip to copy-to-clipboard
- fix icon sizes

* feat(docs): create `CLI` page

* feat(docs): integratoin guides - add `CLI` and `Templates` sections

* fix(web): homepage - components section hover styles; sidebar - more spacing (synced with @robert)

* packages(cli): update `README.md`
apps(web): update CLI page

* packages(cli): bump package version patch

* apps(web): update `README.md`, `CONTRIBUTING` files; change integration guides order based on popularity/category; remove redundant `typescript` page

packages(cli): change integration guides order based on popularity/category; bump version (patch)

* apps(web): fix, rewrite and simplify `introduction` and `quickstart` pages

* apps(web): fix narrow context

* apps(web): small style fixes

* chore: up packages + format

* apps(web): add `Editor Setup` page

* apps(web): remix guide: add dark mode section

* apps(web): refactor `Dark mode` page

* fix: color flicker on reload + move background and text color to root layout

* packages(ui): fix alert them blue color

* apps(web): code demo: isolate dark/light mode

* apps(web): inline code: add background

* feat: add `changeset`

* chore: move `CHANGELOG` to packages/ui

* chore: add self to `FUNDING`

* chore: add `@changesets/changelog-github`

* chore: up packages

* core improvements:
- add `rimraf` for windows support
- add `clean-package` for cleaner `package.json` file (used for `flowbite-react` and `create-flowbite-react` packages)

* packages(cli): change intro color from `blue` to `cyan` + bump version (patch)

* packages(cli): update package.json - add [homepage, bugs] links

* chore: move root `README.md` to `packages/ui` + create symlink from it to root

* core(ci): test build sync times

* core(ci): test build async times

* chore: format

* fix: turbo.json configs and isolate using turbo workspaces

* chore: CLI commands to use @latest for `pnpm` and `bun`

* chore: version `packages/cli`

* chore: remove random code example

* chore: spacing

* chore: up `packageManager` version

* fix: storybook next dependency examples

* chore: up packages, see if it fixes storybook build failure

* fix: storybook types

* fix: storybook warning

* packages(ui): fix version

* chore: up `packageManager` version

* chore: up packages, see if it fixes storybook build failure

* chore: rebuild lock file, check if storybook fails

* chore: CI cache clear before install

* chore: undo CI cache clear before install

* chore: downgrade `packageManager` from `bun@1.0.33` to stable `bun@1.0.31` due to storybook failing; update some packages

* chore: bump storybook packages

* fix(ui): polymorphic component return type -> type casting

* chore: simplify types

* chore: bump package from merge conflict

---------

Co-authored-by: SutuSebastian <sebastian.sutu@stainless-code.com>
@SutuSebastian
Copy link
Collaborator

I think the best here would be to re-create the PR, since the main branch changed drastically and it has too many file changes, when actually it should have 1-2.

@SutuSebastian
Copy link
Collaborator

Closed by #1316.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants