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: add Visual Editor/Code Editor Switch component #691

Merged
merged 28 commits into from
Jul 11, 2023

Conversation

KhudaDad414
Copy link
Member

@KhudaDad414 KhudaDad414 commented Jun 23, 2023

Description

  • Add switch component.
  • Add eslint script and config.
  • Add clean script to remove all of the build and node_modules folders

Related Issues
Resolves #673
Resolves #692

@netlify
Copy link

netlify bot commented Jun 23, 2023

Deploy Preview for asyncapi-studio-design-system ready!

Name Link
🔨 Latest commit 9d4c315
🔍 Latest deploy log https://app.netlify.com/sites/asyncapi-studio-design-system/deploys/64ad4382a0ef6d00082c23f4
😎 Deploy Preview https://deploy-preview-691--asyncapi-studio-design-system.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.

@netlify
Copy link

netlify bot commented Jun 23, 2023

Deploy Preview for modest-rosalind-098b67 ready!

Name Link
🔨 Latest commit 9d4c315
🔍 Latest deploy log https://app.netlify.com/sites/modest-rosalind-098b67/deploys/64ad43826402110007b4f043
😎 Deploy Preview https://deploy-preview-691--modest-rosalind-098b67.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.

Copy link
Member

@fmvilas fmvilas left a comment

Choose a reason for hiding this comment

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

Left a suggestion. Other than that, looks good 👍

packages/ui/components/EditorSwitch.tsx Outdated Show resolved Hide resolved
@KhudaDad414 KhudaDad414 requested a review from fmvilas July 5, 2023 15:45
.eslintignore Show resolved Hide resolved
package.json Outdated
@@ -5,9 +5,11 @@
"url": "git://github.com/asyncapi/studio.git"
},
"scripts": {
"lint": "eslint",
Copy link
Member

Choose a reason for hiding this comment

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

Why do you need eslint here?

Copy link
Member Author

@KhudaDad414 KhudaDad414 Jul 7, 2023

Choose a reason for hiding this comment

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

so that testing workflow can run the linter.

@changeset-bot
Copy link

changeset-bot bot commented Jul 7, 2023

🦋 Changeset detected

Latest commit: 9d4c315

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package
Name Type
@asyncapi/studio-ui Minor

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@KhudaDad414 KhudaDad414 requested a review from fmvilas July 7, 2023 11:27
fmvilas
fmvilas previously approved these changes Jul 11, 2023
@@ -0,0 +1,34 @@
import React from 'react'
import * as Switch from '@radix-ui/react-switch'
Copy link
Collaborator

Choose a reason for hiding this comment

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

@KhudaDad414 @fmvilas Radix-ui need an ADR ? or this was already decided in the past ?

Copy link
Member Author

Choose a reason for hiding this comment

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

I saw a few radix-ui components being used so I don't know 😆

Copy link
Member

Choose a reason for hiding this comment

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

I introduced it a few weeks ago so yeah, an ADR would be cool.

Copy link
Collaborator

Choose a reason for hiding this comment

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

Created an issue for this: #734

packages/ui/components/EditorSwitch.tsx Outdated Show resolved Hide resolved
@KhudaDad414
Copy link
Member Author

/rtm

@asyncapi-bot
Copy link
Contributor

Hello, @KhudaDad414! 👋🏼
This PR is not up to date with the base branch and can't be merged.
Please update your branch manually with the latest version of the base branch.
PRO-TIP: Add a comment to your PR with the text: /au or /autoupdate and our bot will take care of updating the branch in the future. The only requirement for this to work is to enable Allow edits from maintainers option in your PR.
Thanks 😄

@sonarcloud
Copy link

sonarcloud bot commented Jul 11, 2023

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 1 Code Smell

No Coverage information No Coverage information
0.0% 0.0% Duplication

@KhudaDad414 KhudaDad414 merged commit 90435db into asyncapi:master Jul 11, 2023
18 checks passed
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.

Integrate eslint for style consistency Visual Editor / Code Editor Switch component
4 participants