Skip to content

Conversation

@LipeGheno
Copy link
Collaborator

👀 Live preview

🚧 To do

  • If relevant, include the Jira issue key at the end of the pull request title
  • Perform a self-review of the changes
  • Fix any issues reported by the CI/CD

@codacy-production
Copy link

codacy-production bot commented Dec 22, 2025

Codacy's Analysis Summary

48 new issues, 1 flagged as potential false positive (≤ 0 issue)
1 new security issue
0 complexity
2 duplications

Review Pull Request in Codacy →

AI Reviewer available: add the codacy-review label to get contextual insights without leaving GitHub.

codacy-production[bot]

This comment was marked as outdated.

Copy link

@codacy-production codacy-production bot left a comment

Choose a reason for hiding this comment

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

Pull Request Overview

The pull request introduces a new homepage layout with significant changes to index.module.css and index.tsx. The Codacy analysis indicates that the PR is not up to standards due to 48 new issues, primarily related to CSS styling inconsistencies and two instances of code duplication. These issues should be addressed to maintain code quality and ensure consistency.

Key areas for attention:

  • Code Style & Consistency (CSS): Numerous Stylelint issues point to inconsistencies in class naming, alpha-value notation, color function notation, hex color length, and spacing around comments/declarations. Adhering to a consistent style guide is crucial for maintainability.
  • Code Duplication (React/JSX): Duplicated JSX structure was detected in index.tsx, suggesting an opportunity to extract reusable components.

About this PR

  • The 'To do' list in the PR description indicates that the changes have not been self-reviewed and CI/CD issues have not been fixed. Please ensure all items in the 'To do' list are completed.
  • The PR description is currently using the template, but the sections Why are these changes required? What problem do them solve? are empty. Please provide a clear and concise description of the changes, their purpose, and any problems they address.

💡 Codacy uses AI. Check for mistakes.

Comment on lines +45 to +77
<article className={styles.featureCard}>
<div className={styles.featureCardHeader}>
<ion-icon className={styles.featureIcon} name="rocket-outline"></ion-icon>
<h2>Get started</h2>
</div>
<p>Codacy is an automated code quality and coverage platform that analyzes your source code and identifies issues as you go.</p>
<div className={styles.featureCardContent}>
{/* Placeholder for embedded content */}

<img
src={useBaseUrl('/img/card2.png')}
alt="Get started"
/>

</div>

</article>

<article className={styles.featureCard}>
<div className={styles.featureCardHeader}>
<ion-icon className={styles.featureIcon} name="briefcase-outline"></ion-icon>
<h2>Manage organizations</h2>
</div>
<p>Codacy let you automatically import your Git provider organizations, repositories and team members into Codacy with a few clicks.</p>
<div className={styles.featureCardContent}>
{/* Placeholder for embedded content */}
<img
src={useBaseUrl('/img/card1.png')}
alt="Get started"
/>
</div>
</article>
</section>

Choose a reason for hiding this comment

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

🟡 MEDIUM RISK

Suggestion: Codacy detected code duplication here. The featureCard components share a very similar structure and logic. Consider extracting this into a reusable FeatureCard component that accepts props for iconName, title, description, and imageSrc to improve maintainability and reduce redundancy.

Try running the following prompt in your IDE agent:

Refactor the featureCard articles into a single FeatureCard component in docusaurus/src/pages/index.tsx, accepting props for iconName, title, description, imageSrc, and altText.

See Clone in Codacy

*/
background-image:
radial-gradient(circle at center, #ffffff96 35%, #ffffffab 35%, transparent 30%),
radial-gradient(circle at 1px 1px, rgba(13, 23, 38, 0.3) 1px, transparent 1px);

Choose a reason for hiding this comment

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

⚪ LOW RISK

Codacy found issues with both alpha-value and color-function notation. To improve readability and adhere to modern CSS standards, consider using a comma-less syntax for rgba functions (e.g., rgb(13 23 38 / 0.3)) and consistent alpha-value notation (e.g., 30% instead of 0.3). Please apply this consistently throughout the file.

This might be a simple fix:

Suggested change
radial-gradient(circle at 1px 1px, rgba(13, 23, 38, 0.3) 1px, transparent 1px);
radial-gradient(circle at center, #ffffff96 35%, #ffffffab 35%, transparent 30%),
radial-gradient(circle at 1px 1px, rgb(13 23 38 / 30%) 1px, transparent 1px);

See Issue in Codacy
See Issue in Codacy

.title {
font-size: clamp(2.2rem, 2.8vw + 1.5rem, 3.6rem);
line-height: 1.05;
.heroTitle {

Choose a reason for hiding this comment

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

⚪ LOW RISK

Codacy found an issue with the class selector pattern. For consistency and maintainability, class selectors should adhere to kebab-case.

See Issue in Codacy

radial-gradient(circle at center, #ffffff96 35%, #ffffffab 35%, transparent 30%),
radial-gradient(circle at 1px 1px, rgba(13, 23, 38, 0.3) 1px, transparent 1px);

background-size: cover, 20px 20px;

Choose a reason for hiding this comment

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

⚪ LOW RISK

Nitpick: Codacy found an issue where an empty line is unexpected before a declaration. Please remove the empty line to maintain consistent formatting.

See Issue in Codacy

background: linear-gradient(140deg, #f6f7fb 0%, #f0f6f3 60%, #e9f2ef 100%);
padding: 4rem 0;
background-color: #FFFFFF;
/* 1st layer: A mask that allows the dots to show only in the center.

Choose a reason for hiding this comment

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

⚪ LOW RISK

Nitpick: Codacy found an issue where an empty line is expected before comments. Please add an empty line to maintain consistent formatting.

See Issue in Codacy

padding: 5rem 0 4rem;
background: linear-gradient(140deg, #f6f7fb 0%, #f0f6f3 60%, #e9f2ef 100%);
padding: 4rem 0;
background-color: #FFFFFF;

Choose a reason for hiding this comment

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

⚪ LOW RISK

Nitpick: Codacy found an issue with hex color notation. For conciseness, use the short hex notation when possible.

See Issue in Codacy

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