Skip to content

CC-1: Implement Astro Site#335

Merged
ianpaschal merged 5 commits into
mainfrom
ian/cc-1-implement-astro-site
Jun 5, 2026
Merged

CC-1: Implement Astro Site#335
ianpaschal merged 5 commits into
mainfrom
ian/cc-1-implement-astro-site

Conversation

@ianpaschal
Copy link
Copy Markdown
Owner

@ianpaschal ianpaschal commented Jun 5, 2026

Summary by CodeRabbit

  • New Features

    • Added Discord community link and expanded support resources (Docs, Buy Me a Coffee, Discord) in navigation.
    • Landing page now intelligently routes users—authenticated users proceed to the dashboard, while new visitors browse available tournaments.
  • Chores

    • Updated core dependencies for improved performance and compatibility.
  • Style

    • Cleaned up and restructured styling organization.

@vercel
Copy link
Copy Markdown

vercel Bot commented Jun 5, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
combat-command-app Ready Ready Preview, Comment Jun 5, 2026 2:13pm

@coderabbitai
Copy link
Copy Markdown

coderabbitai Bot commented Jun 5, 2026

Review Change Stack

Important

Review skipped

Auto incremental reviews are disabled on this repository.

Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

⚙️ Run configuration

Configuration used: Organization UI

Review profile: ASSERTIVE

Plan: Pro

Run ID: 067ccc13-49b2-4c46-bff6-166037adefc7

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • 🔍 Trigger review

Walkthrough

This PR refactors the landing page into a redirect-only component while introducing external navigation support. It extends the settings configuration with external URLs for documentation, Discord, and Buy Me a Coffee, creates a new reusable Discord icon component, and wires these into the App navigation to display a "Support" section with external links. The landing page now conditionally redirects authenticated users to the dashboard and unauthenticated users to published tournaments. Supporting changes include CSS variable reorganization and targeted dependency version bumps.

🚥 Pre-merge checks | ✅ 4 | ❌ 1

❌ Failed checks (1 warning)

Check name Status Explanation Resolution
Title check ⚠️ Warning The title 'CC-1: Implement Astro Site' does not accurately reflect the changeset, which focuses on refactoring navigation, adding a Discord icon component, and restructuring the landing page routing—not implementing an Astro site. Use a title that reflects the actual changes, such as 'Refactor navigation and landing page routing with enhanced external links' or 'Add Discord social icon and restructure landing page as redirect'.
✅ Passed checks (4 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.

✏️ Tip: You can configure your own custom pre-merge checks in the settings.

✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch ian/cc-1-implement-astro-site

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

Copy link
Copy Markdown

@coderabbitai coderabbitai Bot left a comment

Choose a reason for hiding this comment

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

Actionable comments posted: 1

🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

Inline comments:
In `@src/components/SocialIconDiscord/SocialIconDiscord.tsx`:
- Around line 7-27: The SocialIconDiscord component currently accepts a
strokeWidth prop and spreads SVG stroke attributes on the <svg> but the inner
<path> uses fill="currentColor", so strokeWidth has no effect; fix by making the
component consistent: either remove the stroke-related props and attributes
(remove stroke, strokeWidth, strokeLinecap, strokeLinejoin, and the strokeWidth
prop from SocialIconDiscord's props) to treat it as a purely filled icon, or
convert the path to a stroked path (replace fill with stroke="currentColor" and
adjust path data as needed) so strokeWidth actually controls appearance; update
the SocialIconDiscord declaration and its prop types (and any usages)
accordingly.
🪄 Autofix (Beta)

Fix all unresolved CodeRabbit comments on this PR:

  • Push a commit to this branch (recommended)
  • Create a new PR with the fixes

ℹ️ Review info
⚙️ Run configuration

Configuration used: Organization UI

Review profile: ASSERTIVE

Plan: Pro

Run ID: 8d9fc410-f67b-4fa6-b28d-a832ea24cdfc

📥 Commits

Reviewing files that changed from the base of the PR and between 7f4b1ad and 1688ad4.

⛔ Files ignored due to path filters (1)
  • package-lock.json is excluded by !**/package-lock.json
📒 Files selected for processing (9)
  • package.json
  • src/components/App/App.tsx
  • src/components/SocialIconDiscord/SocialIconDiscord.tsx
  • src/components/SocialIconDiscord/index.ts
  • src/pages/LandingPage/LandingPage.module.scss
  • src/pages/LandingPage/LandingPage.tsx
  • src/pages/LandingPage/index.ts
  • src/settings.ts
  • src/style/_variables.scss
💤 Files with no reviewable changes (2)
  • src/pages/LandingPage/LandingPage.module.scss
  • src/style/_variables.scss

Comment on lines +7 to +27
export const SocialIconDiscord = forwardRef<SVGSVGElement, SocialIconDiscordProps>(({
size = 24,
strokeWidth = 2,
...props
}, ref) => (
<svg
ref={ref}
xmlns="http://www.w3.org/2000/svg"
viewBox="0 0 24 24"
width={size}
height={size}
fill="none"
stroke="currentColor"
strokeWidth={strokeWidth}
strokeLinecap="round"
strokeLinejoin="round"
{...props}
>
<path fill="currentColor" d="M19.303 5.337A17.3 17.3 0 0 0 14.963 4c-.191.329-.403.775-.552 1.125a16.6 16.6 0 0 0-4.808 0C9.454 4.775 9.23 4.329 9.05 4a17 17 0 0 0-4.342 1.337C1.961 9.391 1.218 13.35 1.59 17.255a17.7 17.7 0 0 0 5.318 2.664a13 13 0 0 0 1.136-1.836c-.627-.234-1.22-.52-1.794-.86c.149-.106.297-.223.435-.34c3.46 1.582 7.207 1.582 10.624 0c.149.117.287.234.435.34c-.573.34-1.167.626-1.793.86a13 13 0 0 0 1.135 1.836a17.6 17.6 0 0 0 5.318-2.664c.457-4.52-.722-8.448-3.1-11.918M8.52 14.846c-1.04 0-1.889-.945-1.889-2.101s.828-2.102 1.89-2.102c1.05 0 1.91.945 1.888 2.102c0 1.156-.838 2.1-1.889 2.1m6.974 0c-1.04 0-1.89-.945-1.89-2.101s.828-2.102 1.89-2.102c1.05 0 1.91.945 1.889 2.102c0 1.156-.828 2.1-1.89 2.1" />
</svg>
));
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

🧹 Nitpick | 🔵 Trivial | ⚡ Quick win

The strokeWidth prop has no effect on the rendered icon.

The SVG wrapper applies stroke styling (lines 19-22), but the path inside uses fill="currentColor" (line 25) rather than stroke. This makes the strokeWidth prop misleading—it's accepted but doesn't control the icon's appearance.

Consider either:

  • Removing the strokeWidth prop and stroke-related SVG attributes if this icon is fill-based
  • Or converting the path to use stroke instead of fill so strokeWidth actually controls the icon thickness
♻️ Option 1: Remove unused stroke props (recommended if icon should stay fill-based)
 interface SocialIconDiscordProps extends SVGProps<SVGSVGElement> {
   size?: string | number;
-  strokeWidth?: string | number;
 }

 export const SocialIconDiscord = forwardRef<SVGSVGElement, SocialIconDiscordProps>(({
   size = 24,
-  strokeWidth = 2,
   ...props
 }, ref) => (
   <svg
     ref={ref}
     xmlns="http://www.w3.org/2000/svg"
     viewBox="0 0 24 24"
     width={size}
     height={size}
-    fill="none"
-    stroke="currentColor"
-    strokeWidth={strokeWidth}
-    strokeLinecap="round"
-    strokeLinejoin="round"
     {...props}
   >
     <path fill="currentColor" d="M19.303 5.337A17.3 17.3 0 0 0 14.963 4c-.191.329-.403.775-.552 1.125a16.6 16.6 0 0 0-4.808 0C9.454 4.775 9.23 4.329 9.05 4a17 17 0 0 0-4.342 1.337C1.961 9.391 1.218 13.35 1.59 17.255a17.7 17.7 0 0 0 5.318 2.664a13 13 0 0 0 1.136-1.836c-.627-.234-1.22-.52-1.794-.86c.149-.106.297-.223.435-.34c3.46 1.582 7.207 1.582 10.624 0c.149.117.287.234.435.34c-.573.34-1.167.626-1.793.86a13 13 0 0 0 1.135 1.836a17.6 17.6 0 0 0 5.318-2.664c.457-4.52-.722-8.448-3.1-11.918M8.52 14.846c-1.04 0-1.889-.945-1.889-2.101s.828-2.102 1.89-2.102c1.05 0 1.91.945 1.888 2.102c0 1.156-.838 2.1-1.889 2.1m6.974 0c-1.04 0-1.89-.945-1.89-2.101s.828-2.102 1.89-2.102c1.05 0 1.91.945 1.889 2.102c0 1.156-.828 2.1-1.89 2.1" />
   </svg>
 ));
📝 Committable suggestion

‼️ IMPORTANT
Carefully review the code before committing. Ensure that it accurately replaces the highlighted code, contains no missing lines, and has no issues with indentation. Thoroughly test & benchmark the code to ensure it meets the requirements.

Suggested change
export const SocialIconDiscord = forwardRef<SVGSVGElement, SocialIconDiscordProps>(({
size = 24,
strokeWidth = 2,
...props
}, ref) => (
<svg
ref={ref}
xmlns="http://www.w3.org/2000/svg"
viewBox="0 0 24 24"
width={size}
height={size}
fill="none"
stroke="currentColor"
strokeWidth={strokeWidth}
strokeLinecap="round"
strokeLinejoin="round"
{...props}
>
<path fill="currentColor" d="M19.303 5.337A17.3 17.3 0 0 0 14.963 4c-.191.329-.403.775-.552 1.125a16.6 16.6 0 0 0-4.808 0C9.454 4.775 9.23 4.329 9.05 4a17 17 0 0 0-4.342 1.337C1.961 9.391 1.218 13.35 1.59 17.255a17.7 17.7 0 0 0 5.318 2.664a13 13 0 0 0 1.136-1.836c-.627-.234-1.22-.52-1.794-.86c.149-.106.297-.223.435-.34c3.46 1.582 7.207 1.582 10.624 0c.149.117.287.234.435.34c-.573.34-1.167.626-1.793.86a13 13 0 0 0 1.135 1.836a17.6 17.6 0 0 0 5.318-2.664c.457-4.52-.722-8.448-3.1-11.918M8.52 14.846c-1.04 0-1.889-.945-1.889-2.101s.828-2.102 1.89-2.102c1.05 0 1.91.945 1.888 2.102c0 1.156-.838 2.1-1.889 2.1m6.974 0c-1.04 0-1.89-.945-1.89-2.101s.828-2.102 1.89-2.102c1.05 0 1.91.945 1.889 2.102c0 1.156-.828 2.1-1.89 2.1" />
</svg>
));
export const SocialIconDiscord = forwardRef<SVGSVGElement, SocialIconDiscordProps>(({
size = 24,
...props
}, ref) => (
<svg
ref={ref}
xmlns="http://www.w3.org/2000/svg"
viewBox="0 0 24 24"
width={size}
height={size}
{...props}
>
<path fill="currentColor" d="M19.303 5.337A17.3 17.3 0 0 0 14.963 4c-.191.329-.403.775-.552 1.125a16.6 16.6 0 0 0-4.808 0C9.454 4.775 9.23 4.329 9.05 4a17 17 0 0 0-4.342 1.337C1.961 9.391 1.218 13.35 1.59 17.255a17.7 17.7 0 0 0 5.318 2.664a13 13 0 0 0 1.136-1.836c-.627-.234-1.22-.52-1.794-.86c.149-.106.297-.223.435-.34c3.46 1.582 7.207 1.582 10.624 0c.149.117.287.234.435.34c-.573.34-1.167.626-1.793.86a13 13 0 0 0 1.135 1.836a17.6 17.6 0 0 0 5.318-2.664c.457-4.52-.722-8.448-3.1-11.918M8.52 14.846c-1.04 0-1.889-.945-1.889-2.101s.828-2.102 1.89-2.102c1.05 0 1.91.945 1.888 2.102c0 1.156-.838 2.1-1.889 2.1m6.974 0c-1.04 0-1.89-.945-1.89-2.101s.828-2.102 1.89-2.102c1.05 0 1.91.945 1.889 2.102c0 1.156-.828 2.1-1.89 2.1" />
</svg>
));
🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

In `@src/components/SocialIconDiscord/SocialIconDiscord.tsx` around lines 7 - 27,
The SocialIconDiscord component currently accepts a strokeWidth prop and spreads
SVG stroke attributes on the <svg> but the inner <path> uses
fill="currentColor", so strokeWidth has no effect; fix by making the component
consistent: either remove the stroke-related props and attributes (remove
stroke, strokeWidth, strokeLinecap, strokeLinejoin, and the strokeWidth prop
from SocialIconDiscord's props) to treat it as a purely filled icon, or convert
the path to a stroked path (replace fill with stroke="currentColor" and adjust
path data as needed) so strokeWidth actually controls appearance; update the
SocialIconDiscord declaration and its prop types (and any usages) accordingly.

@ianpaschal ianpaschal merged commit bc60a76 into main Jun 5, 2026
4 checks passed
@ianpaschal ianpaschal deleted the ian/cc-1-implement-astro-site branch June 5, 2026 16:19
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.

1 participant