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

Refactor: Migrate ProductCard to Chakra #8685

Merged

Conversation

TylerAPfledderer
Copy link
Contributor

Description

Migrate the ProductCard component to Chakra.

Related Issue

#8632

@@ -156,7 +102,7 @@ export interface IProps {

const ProductCard: React.FC<IProps> = ({
Copy link
Contributor Author

Choose a reason for hiding this comment

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

There is a TODO regarding adding loading state. What is the desired loading visual?

Copy link
Member

Choose a reason for hiding this comment

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

Hmm not sure 😆 wouldn't worry too much since that comment is 20 months old and probably we are going to refactor this with the DS.

@gatsby-cloud
Copy link

gatsby-cloud bot commented Nov 21, 2022

✅ ethereum-org-website-dev deploy preview ready

Copy link
Member

@pettinarip pettinarip left a comment

Choose a reason for hiding this comment

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

Nice @TylerAPfledderer

One small thing to look at. The pills/badges are not aligned:
image

Img,
Text,
TextProps,
} from "@chakra-ui/react"
Copy link
Member

Choose a reason for hiding this comment

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

import order

Copy link
Contributor Author

Choose a reason for hiding this comment

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

@pettinarip curious to know if ESLint has ever been considered with a config that includes import/order to enforce a specific order of the different import types?

Copy link
Member

Choose a reason for hiding this comment

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

That would be a useful addition, yes. Hasn't been discussed/considered before AFAIK.

}
}
return (
<Box
Copy link
Member

Choose a reason for hiding this comment

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

These should be Badges in the upcoming refactor, right?

Copy link
Contributor Author

@TylerAPfledderer TylerAPfledderer Nov 28, 2022

Choose a reason for hiding this comment

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

@pettinarip Yes! I have made a note in #8601

@@ -156,7 +102,7 @@ export interface IProps {

const ProductCard: React.FC<IProps> = ({
Copy link
Member

Choose a reason for hiding this comment

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

Hmm not sure 😆 wouldn't worry too much since that comment is 20 months old and probably we are going to refactor this with the DS.

@TylerAPfledderer
Copy link
Contributor Author

Nice @TylerAPfledderer

One small thing to look at. The pills/badges are not aligned: image

Whoops, didn't see that! On it.

Copy link
Member

@pettinarip pettinarip left a comment

Choose a reason for hiding this comment

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

Found a bug on some pages using this component.

{subjects &&
subjects.map((subject, idx) => (
<SubjectPill key={idx} subject={subject}>
{subject}
</SubjectPill>
))}
{hasRepoData &&
data.repository.languages.nodes.map(
data.repository.language.nodes.map(
Copy link
Member

Choose a reason for hiding this comment

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

Wondering why this has changed 🤔

Currently I see an error breaking some pages. These two pages are loading but breaking after a second:

Copy link
Member

@pettinarip pettinarip left a comment

Choose a reason for hiding this comment

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

Nicely done @TylerAPfledderer 🚀

@pettinarip pettinarip merged commit bddb811 into ethereum:dev Dec 5, 2022
@TylerAPfledderer TylerAPfledderer deleted the refactor/products-card-chakra branch December 5, 2022 22:00
@corwintines corwintines mentioned this pull request Dec 8, 2022
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.

3 participants