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

feat: created toggle and checkbox components and added stories for them #3082

Merged

Conversation

devilkiller-ag
Copy link
Member

This PR creates the following components and adds stories for them:

  • toggle
  • checkbox

Copy link

netlify bot commented Jul 6, 2024

Deploy Preview for asyncapi-website ready!

Name Link
🔨 Latest commit bc9b542
🔍 Latest deploy log https://app.netlify.com/sites/asyncapi-website/deploys/66d15136bc5e40000813d3d9
😎 Deploy Preview https://deploy-preview-3082--asyncapi-website.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

@asyncapi-bot
Copy link
Contributor

asyncapi-bot commented Jul 6, 2024

⚡️ Lighthouse report for the changes in this PR:

Category Score
🔴 Performance 34
🟢 Accessibility 98
🟢 Best practices 92
🟢 SEO 100
🔴 PWA 33

Lighthouse ran on https://deploy-preview-3082--asyncapi-website.netlify.app/

@akshatnema akshatnema added the gsoc This label should be used for issues or discussions related to ideas for Google Summer of Code label Jul 7, 2024
package.json Outdated
@@ -53,6 +53,7 @@
"@next/mdx": "^14.1.0",
"@octokit/graphql": "^7.0.2",
"@slack/web-api": "^7.0.2",
"@storybook/preview-api": "^8.1.11",
Copy link
Member

Choose a reason for hiding this comment

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

why we need this library?

Copy link
Member Author

Choose a reason for hiding this comment

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

We need this to use useArgs hook that allows you to retrieve or update a story's args.

@@ -0,0 +1,66 @@
import { twMerge } from 'tailwind-merge';

export interface CheckboxProps {
Copy link
Member

Choose a reason for hiding this comment

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

Add this interface inside types folder and export it from there.

Copy link
Member Author

Choose a reason for hiding this comment

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

Done

@@ -0,0 +1,50 @@
import { twMerge } from 'tailwind-merge';

export interface ToggleProps {
Copy link
Member

Choose a reason for hiding this comment

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

export this interface from types folder.

Copy link
Member Author

Choose a reason for hiding this comment

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

Done

@devilkiller-ag
Copy link
Member Author

devilkiller-ag commented Aug 29, 2024

@akshatnema the lighthouse accessibility test is failing by 1 point when I merged master and resolved merge conflict. Do we need to resolve it?

Copy link
Member

Choose a reason for hiding this comment

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

Why there are changes in package-lock.json?

Copy link
Member Author

Choose a reason for hiding this comment

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

There was a merge conflict in the version of the storybook(3.2.2). I resolved it.

@akshatnema
Copy link
Member

/rtm

@asyncapi-bot asyncapi-bot merged commit 51b23cd into asyncapi:master Aug 30, 2024
15 checks passed
@devilkiller-ag devilkiller-ag deleted the add-storybook-toggle-and-checkbox branch August 30, 2024 05:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
gsoc This label should be used for issues or discussions related to ideas for Google Summer of Code ready-to-merge
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants