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(react): add svg logo for <DevMode/> #535

Merged
merged 9 commits into from
Jan 4, 2024

Conversation

manudeli
Copy link
Member

@manudeli manudeli commented Jan 1, 2024

fix #503

Overview

I add svg logo for <DevMode/>

chrome-capture-2024-0-2

PR Checklist

  • I did below actions if need
  1. I read the Contributing Guide
  2. I added documents and tests.

@manudeli manudeli self-assigned this Jan 1, 2024
Copy link

changeset-bot bot commented Jan 1, 2024

🦋 Changeset detected

Latest commit: dfb52ad

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

This PR includes changesets to release 3 packages
Name Type
@suspensive/react Minor
@suspensive/react-query Minor
@suspensive/visualization Patch

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

Copy link

vercel bot commented Jan 1, 2024

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

Name Status Preview Comments Updated (UTC)
docs-v1 ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jan 4, 2024 10:11am
docs-v2 ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jan 4, 2024 10:11am
visualization ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jan 4, 2024 10:11am

@vercel vercel bot temporarily deployed to Preview – visualization January 1, 2024 16:50 Inactive
@vercel vercel bot temporarily deployed to Preview – docs-v2 January 1, 2024 16:52 Inactive
Copy link

codesandbox-ci bot commented Jan 1, 2024

This pull request is automatically built and testable in CodeSandbox.

To see build info of the built libraries, click here or the icon next to each commit SHA.

@vercel vercel bot temporarily deployed to Preview – docs-v1 January 1, 2024 16:54 Inactive
@vercel vercel bot temporarily deployed to Preview – visualization January 1, 2024 17:10 Inactive
@manudeli manudeli marked this pull request as ready for review January 1, 2024 17:10
@vercel vercel bot temporarily deployed to Preview – docs-v2 January 1, 2024 17:11 Inactive
Copy link

codecov bot commented Jan 1, 2024

Codecov Report

Merging #535 (dfb52ad) into main (59bd5f0) will decrease coverage by 0.04%.
The diff coverage is 100.00%.

Additional details and impacted files

Impacted file tree graph

@@            Coverage Diff             @@
##             main     #535      +/-   ##
==========================================
- Coverage   84.36%   84.33%   -0.04%     
==========================================
  Files          29       29              
  Lines         467      466       -1     
  Branches      109      108       -1     
==========================================
- Hits          394      393       -1     
  Misses         63       63              
  Partials       10       10              
Components Coverage Δ
@suspensive/react 100.00% <100.00%> (ø)
@suspensive/react-query 0.00% <ø> (ø)
@suspensive/react-await 100.00% <ø> (ø)
@suspensive/react-image 24.00% <ø> (ø)

@vercel vercel bot temporarily deployed to Preview – docs-v1 January 1, 2024 17:12 Inactive
Copy link
Member

@minsoo-web minsoo-web left a comment

Choose a reason for hiding this comment

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

I'm so happy to see our logo in there!!! However, our logo is a white base.... I feel like we need a background color. I've attached a video of me testing it on a white screen.

2024-01-03.12.07.45.mov

Comment on lines +300 to +301
<stop stopColor="#FF0000" />
<stop offset="1" stopColor="#FF0000" stopOpacity="0" />
Copy link
Member

Choose a reason for hiding this comment

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

Can anyone tell me why these red colors are being used in the SVG?
This line wasn't the only one that I saw #FF0000 in, so I was a little puzzled.

Copy link
Member Author

Choose a reason for hiding this comment

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

It is for gradient layer-blur. You can see it in our figma
image

I just use that red color to differ other color definitely

Copy link
Member

Choose a reason for hiding this comment

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

Thanks for the confirmation!!!

Comment on lines +34 to +35
onMouseEnter={() => setIsHover(true)}
onMouseLeave={() => setIsHover(false)}
Copy link
Member

Choose a reason for hiding this comment

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

I'm wondering if we need to call useState to control hover state.

Since we can't control the hover state from inline CSS, I guess it's true that we can only give the hover effect by controlling the state via useState at this point.

But in essence, I don't see how adding a hover state to this UI can provide any value to the user.

Personally, I think a hover effect is meant to encourage clicks, but since DevMode is something that the user will do on their own when they need to

Personally, I think the hover effect is used to encourage clicking, but 'DevMode' assumes that the user will press it when they need to.

To summarize, do we need to use useState to control the hover state? is my opinion.

Copy link
Member Author

@manudeli manudeli Jan 2, 2024

Choose a reason for hiding this comment

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

because of process.env.NODE_ENV !== 'production', I found there is no svg or no useState code in built bundle. you can check it in websites/visualization with DevMode.

image

Then isn't it better to support better UX in development mode?

Copy link
Member

Choose a reason for hiding this comment

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

Got it! Thanks for the confirmation!

@vercel vercel bot temporarily deployed to Preview – docs-v2 January 2, 2024 16:22 Inactive
@vercel vercel bot temporarily deployed to Preview – docs-v1 January 2, 2024 16:23 Inactive
@vercel vercel bot temporarily deployed to Preview – visualization January 2, 2024 16:25 Inactive
@manudeli manudeli requested a review from minsoo-web January 2, 2024 17:08
@vercel vercel bot temporarily deployed to Preview – visualization January 3, 2024 09:31 Inactive
@vercel vercel bot temporarily deployed to Preview – docs-v1 January 3, 2024 09:32 Inactive
@vercel vercel bot temporarily deployed to Preview – docs-v2 January 3, 2024 09:33 Inactive
@vercel vercel bot temporarily deployed to Preview – visualization January 4, 2024 03:06 Inactive
@vercel vercel bot temporarily deployed to Preview – docs-v1 January 4, 2024 03:07 Inactive
@vercel vercel bot temporarily deployed to Preview – docs-v2 January 4, 2024 03:08 Inactive
Copy link
Member

@minsoo-web minsoo-web left a comment

Choose a reason for hiding this comment

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

How can we improve SVGs not showing up on a screen with a white background?
How about a black background color?

@vercel vercel bot temporarily deployed to Preview – docs-v2 January 4, 2024 03:54 Inactive
@manudeli
Copy link
Member Author

manudeli commented Jan 4, 2024

How can we improve SVGs not showing up on a screen with a white background? How about a black background color?

I added backgroundColor: black for <DevMode/> in 5f03a08
Thanks for your eagle eyes 👀🦅

@vercel vercel bot temporarily deployed to Preview – visualization January 4, 2024 03:55 Inactive
@manudeli manudeli requested a review from minsoo-web January 4, 2024 03:56
@vercel vercel bot temporarily deployed to Preview – docs-v1 January 4, 2024 03:56 Inactive
@vercel vercel bot temporarily deployed to Preview – docs-v1 January 4, 2024 04:01 Inactive
@vercel vercel bot temporarily deployed to Preview – visualization January 4, 2024 04:02 Inactive
@vercel vercel bot temporarily deployed to Preview – docs-v2 January 4, 2024 04:03 Inactive
@vercel vercel bot temporarily deployed to Preview – docs-v1 January 4, 2024 10:08 Inactive
@vercel vercel bot temporarily deployed to Preview – visualization January 4, 2024 10:10 Inactive
@vercel vercel bot temporarily deployed to Preview – docs-v2 January 4, 2024 10:11 Inactive
Copy link
Member

@minsoo-web minsoo-web left a comment

Choose a reason for hiding this comment

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

LGTM!! Lets Go !!

@minsoo-web minsoo-web merged commit e776d52 into main Jan 4, 2024
18 checks passed
@minsoo-web minsoo-web deleted the feat/react/DevMode-svg-logo branch January 4, 2024 12:11
manudeli added a commit that referenced this pull request Aug 3, 2024
fix #503 

# Overview

I add svg logo for `<DevMode/>`

<!--
    A clear and concise description of what this pr is about.
 -->


![chrome-capture-2024-0-2](https://github.com/suspensive/react/assets/61593290/a31b50b4-7430-43f7-9ec3-c98371c2b8b2)

## PR Checklist

- [x] I did below actions if need

1. I read the [Contributing
Guide](https://github.com/suspensive/react/blob/main/CONTRIBUTING.md)
2. I added documents and tests.

---------

Co-authored-by: Minsoo Kim <[email protected]>
manudeli added a commit that referenced this pull request Aug 3, 2024
fix #503 

# Overview

I add svg logo for `<DevMode/>`

<!--
    A clear and concise description of what this pr is about.
 -->


![chrome-capture-2024-0-2](https://github.com/suspensive/react/assets/61593290/a31b50b4-7430-43f7-9ec3-c98371c2b8b2)

## PR Checklist

- [x] I did below actions if need

1. I read the [Contributing
Guide](https://github.com/suspensive/react/blob/main/CONTRIBUTING.md)
2. I added documents and tests.

---------
manudeli added a commit that referenced this pull request Aug 3, 2024
fix #503 

# Overview

I add svg logo for `<DevMode/>`

<!--
    A clear and concise description of what this pr is about.
 -->


![chrome-capture-2024-0-2](https://github.com/suspensive/react/assets/61593290/a31b50b4-7430-43f7-9ec3-c98371c2b8b2)

## PR Checklist

- [x] I did below actions if need

1. I read the [Contributing
Guide](https://github.com/suspensive/react/blob/main/CONTRIBUTING.md)
2. I added documents and tests.

---------

Co-authored-by: Minsoo Kim <[email protected]>
manudeli added a commit that referenced this pull request Aug 3, 2024
fix #503 

# Overview

I add svg logo for `<DevMode/>`

<!--
    A clear and concise description of what this pr is about.
 -->


![chrome-capture-2024-0-2](https://github.com/suspensive/react/assets/61593290/a31b50b4-7430-43f7-9ec3-c98371c2b8b2)

## PR Checklist

- [x] I did below actions if need

1. I read the [Contributing
Guide](https://github.com/suspensive/react/blob/main/CONTRIBUTING.md)
2. I added documents and tests.

---------

Co-authored-by: Minsoo Kim <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Feature] svg logo for DevMode need
2 participants