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

Remove card subcomponents #6604

Merged
merged 5 commits into from
Aug 14, 2023
Merged

Conversation

antgamdia
Copy link
Contributor

Description of the change

As pointed out #6560 (comment), we were using plenty of sub-components with no clear motivation. This is to simplify the InfoCard component in a single one, as it is just <div> and CSS classes.

Benefits

No unused or with extra complexity code.

Possible drawbacks

N/A

Applicable issues

Additional information

Before/after pics, they look exactly the same, which is what is intended here.

image

Extra: I'm also squeezing two minor CSS changes: 1) I ran a tool for detecting unused code, and noticed there were some CSS files being inconsistently imported; 2) the secrets view was badly positioned, see below:

Secrets view

image

Signed-off-by: Antonio Gamez Diaz <agamez@vmware.com>
Signed-off-by: Antonio Gamez Diaz <agamez@vmware.com>
Signed-off-by: Antonio Gamez Diaz <agamez@vmware.com>
@netlify
Copy link

netlify bot commented Aug 10, 2023

Deploy Preview for kubeapps-dev canceled.

Built without sensitive environment variables

Name Link
🔨 Latest commit 2b1e305
🔍 Latest deploy log https://app.netlify.com/sites/kubeapps-dev/deploys/64d4c8484a46ed0008380550

Signed-off-by: Antonio Gamez Diaz <agamez@vmware.com>
Signed-off-by: Antonio Gamez Diaz <agamez@vmware.com>
Copy link
Contributor

@absoludity absoludity left a comment

Choose a reason for hiding this comment

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

Excellent, much neater. Thanks!

@antgamdia antgamdia merged commit de0968b into vmware-tanzu:main Aug 14, 2023
40 checks passed
@antgamdia antgamdia deleted the remove-card branch August 14, 2023 12:33
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