Skip to content

Development#136

Merged
CodeMeAPixel merged 4 commits into
productionfrom
development
Jul 12, 2026
Merged

Development#136
CodeMeAPixel merged 4 commits into
productionfrom
development

Conversation

@CodeMeAPixel

@CodeMeAPixel CodeMeAPixel commented Jul 12, 2026

Copy link
Copy Markdown
Contributor

Summary by CodeRabbit

  • New Features
    • Added a Partners page with sponsor and partner listings, application links, and supporting metadata.
    • Added Partners links to the site navigation and footer.
    • Added the Partners page to the sitemap.
  • Bug Fixes
    • Improved category matching and handling for hubs without subcategories.
    • Improved extraction of CPU, memory, storage, and hardware details from product descriptions.
  • Style
    • Improved plan card layouts so actions align consistently across cards.
    • Simplified the Services navigation presentation.

@coderabbitai

coderabbitai Bot commented Jul 12, 2026

Copy link
Copy Markdown

Review Change Stack

Warning

Review limit reached

@CodeMeAPixel, you've reached your PR review limit, so we couldn't start this review.

Next review available in: 51 minutes

Enable usage-based reviews in Billing to review now. Otherwise, wait until the next included review is available.
You're only billed for reviews past your plan's rate limits ($0.25/file).

How can I continue?

After more reviews become available, a review can be triggered using the @coderabbitai review command as a PR comment. Alternatively, push new commits to this PR.

To avoid repeated limits, reduce automatic review volume by pausing incremental auto-reviews earlier, using label-based review opt-in, excluding WIP or generated PR titles, or requesting reviews manually when the PR is ready. If your team needs uninterrupted high-volume reviews, an organization admin can enable usage-based reviews.

How do review limits work?

CodeRabbit enforces per-developer PR review limits for each organization. Most developers receive the normal plan review availability.

For paid Pro and Pro+ PR reviews, CodeRabbit uses adaptive limits for sustained high-volume activity. When a developer's recent PR review activity reaches the 95th percentile or higher among CodeRabbit users, additional reviews become available more gradually as earlier reviews age out of the rolling window.

Please refer docs for additional details.

Review details
⚙️ Run configuration

Configuration used: defaults

Review profile: CHILL

Plan: Pro Plus

Run ID: 1ddd18f3-5c34-4e25-9544-9676528e463a

📥 Commits

Reviewing files that changed from the base of the PR and between 53ef8f4 and 0e2e8c0.

📒 Files selected for processing (1)
  • packages/core/constants/partners.ts
📝 Walkthrough

Walkthrough

Adds a /partners landing page and navigation links, removes server-rendered gamesNav wiring, refines category and hardware specification parsing, and aligns Dedicated/VPS plan card layouts.

Changes

Partners route

Layer / File(s) Summary
Partner content and page rendering
packages/core/constants/partners.ts, packages/ui/components/Layouts/Partners/*
Defines partner data and renders sponsor and partner tiers with cards, empty states, translated content, and calls to action.
Partners route and discovery
app/partners/page.tsx, app/sitemap.ts, packages/ui/components/Static/navigation.tsx, packages/ui/components/Static/footer.tsx
Adds the /partners route, metadata, sitemap entry, navigation item, and footer link.

Navigation data flow

Layer / File(s) Summary
Static navigation and layout integration
app/layout.tsx, packages/ui/components/layout-chrome.tsx, packages/ui/components/Static/navigation.tsx
Removes gamesNav retrieval and props, and changes desktop and mobile service menus to flat static lists.

Catalog and specification parsing

Layer / File(s) Summary
Category hub normalization and matching
packages/core/lib/bytepay.ts
Adds synthetic hub children and fuzzy alias matching with warnings.
Bullet-based specification extraction
packages/core/lib/spec-parser.ts
Refines HTML bullet extraction and CPU, RAM, storage, unit conversion, and Ryzen detection rules.

Plan card layouts

Layer / File(s) Summary
Dedicated and VPS card alignment
packages/ui/components/Layouts/Dedicated/dedicated-hub.tsx, packages/ui/components/Layouts/VPS/vps-hub.tsx
Uses full-height flex card layouts and bottom-aligns primary actions.

Estimated code review effort: 4 (Complex) | ~45 minutes

Sequence Diagram(s)

sequenceDiagram
  participant Visitor
  participant PartnersRoute
  participant PartnersPage
  participant PARTNERS
  Visitor->>PartnersRoute: request /partners
  PartnersRoute->>PartnersPage: render page
  PartnersPage->>PARTNERS: load partner entries
  PARTNERS-->>PartnersPage: sponsor and partner data
  PartnersPage-->>Visitor: render tiered partner content
Loading

Possibly related PRs

🚥 Pre-merge checks | ✅ 3 | ❌ 2

❌ Failed checks (1 warning, 1 inconclusive)

Check name Status Explanation Resolution
Docstring Coverage ⚠️ Warning Docstring coverage is 38.46% which is insufficient. The required threshold is 80.00%. Write docstrings for the functions missing them to satisfy the coverage threshold.
Title check ❓ Inconclusive The title is too generic to describe the change set and gives no meaningful hint about the main update. Replace it with a concise, specific title that names the primary change, such as adding the partners page or updating layout navigation.
✅ Passed checks (3 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
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.
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch development

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.

const ryzenMatch = text.match(/AMD\s+Ryzen[™™]?\s+\d+(?:\s+(?:PRO\s+)?\d+\w*)?/i)
// "AMD Ryzen™ 9 5900X", "Ryzen 3700X" (single model token, no series digit,
// "AMD" prefix not always stated — "Ryzen" alone is unambiguously AMD)
const ryzenMatch = text.match(/(?:AMD\s+)?Ryzen[™™]?\s+(?:\d+\s+)?(?:PRO\s+)?\d+\w*/i)
Replaced placeholder partner information with real partner details for Emberly.

@coderabbitai coderabbitai Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Actionable comments posted: 2

🧹 Nitpick comments (2)
app/partners/page.tsx (1)

4-7: 📐 Maintainability & Code Quality | 🔵 Trivial | ⚡ Quick win

Metadata is not localized while page content is fully translated.

The page content uses useTranslations for all strings, but the exported metadata is hardcoded in English. For a multilingual site, consider using generateMetadata with getTranslations from next-intl to localize the title and description per locale.

♻️ Proposed change using generateMetadata
-import type { Metadata } from "next"
+import { getTranslations } from "next-intl"
 
-export const metadata: Metadata = {
-  title: "Partners & Sponsors",
-  description: "Meet the communities, creators, and projects we partner with, and learn how to join the NodeByte Partnership Program.",
-}
+export async function generateMetadata() {
+  const t = await getTranslations("partnersPage")
+  return {
+    title: t("metadata.title"),
+    description: t("metadata.description"),
+  }
+}
🤖 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 `@app/partners/page.tsx` around lines 4 - 7, Replace the static metadata export
with a locale-aware generateMetadata implementation, using next-intl
getTranslations to resolve the Partners page title and description for the
current locale. Preserve the existing metadata keys while sourcing both values
from the appropriate translation namespace.
packages/ui/components/Layouts/Partners/partners-page.tsx (1)

1-1: 🚀 Performance & Scalability | 🔵 Trivial | ⚡ Quick win

Consider removing "use client" — this component has no client interactivity.

PartnersPage uses only useTranslations (supported in server components by next-intl v4+) and renders static content with no state, effects, or event handlers. Making it a server component avoids shipping unnecessary JS to the client. The Button and Link children will still work as client component boundaries.

♻️ Proposed change
-"use client"
-
 import { Card } from "`@/packages/ui/components/ui/card`"
🤖 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 `@packages/ui/components/Layouts/Partners/partners-page.tsx` at line 1, Remove
the "use client" directive from the PartnersPage module so it is treated as a
server component. Keep the existing useTranslations usage and Button/Link
children unchanged.
🤖 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 `@packages/core/lib/spec-parser.ts`:
- Around line 58-64: Update firstSizeGB to capture decimal capacity values, not
just digits, so inputs such as “1.92 TB” parse as 1.92 before unit conversion.
Preserve the existing GB/TB matching, case-insensitive handling, and undefined
result when no capacity is present.
- Around line 144-150: Update the storageDescription extraction in the spec
parser to retain the raw storage configuration after the “Storage:” label, such
as “2 × 1 TB NVMe SSD (RAID 1)”, rather than returning the text before the
colon. Preserve the existing trimming and length validation for the extracted
configuration.

---

Nitpick comments:
In `@app/partners/page.tsx`:
- Around line 4-7: Replace the static metadata export with a locale-aware
generateMetadata implementation, using next-intl getTranslations to resolve the
Partners page title and description for the current locale. Preserve the
existing metadata keys while sourcing both values from the appropriate
translation namespace.

In `@packages/ui/components/Layouts/Partners/partners-page.tsx`:
- Line 1: Remove the "use client" directive from the PartnersPage module so it
is treated as a server component. Keep the existing useTranslations usage and
Button/Link children unchanged.
🪄 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: defaults

Review profile: CHILL

Plan: Pro Plus

Run ID: 16a3ca4d-b84e-49b8-ab3f-e29e1eb8592c

📥 Commits

Reviewing files that changed from the base of the PR and between a0dde70 and 53ef8f4.

⛔ Files ignored due to path filters (1)
  • public/partners/placeholder.svg is excluded by !**/*.svg
📒 Files selected for processing (13)
  • app/layout.tsx
  • app/partners/page.tsx
  • app/sitemap.ts
  • packages/core/constants/partners.ts
  • packages/core/lib/bytepay.ts
  • packages/core/lib/spec-parser.ts
  • packages/ui/components/Layouts/Dedicated/dedicated-hub.tsx
  • packages/ui/components/Layouts/Partners/index.ts
  • packages/ui/components/Layouts/Partners/partners-page.tsx
  • packages/ui/components/Layouts/VPS/vps-hub.tsx
  • packages/ui/components/Static/footer.tsx
  • packages/ui/components/Static/navigation.tsx
  • packages/ui/components/layout-chrome.tsx

Comment on lines +58 to +64
/** First "<number> GB|TB" in a line, converted to GB (TB × 1024). Returns undefined if the line has none. */
function firstSizeGB(line: string): number | undefined {
const m = line.match(/(\d+)\s*(GB|TB)\b/i)
if (!m) return undefined
const amount = parseInt(m[1])
return /tb/i.test(m[2]) ? amount * 1024 : amount
}

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

🎯 Functional Correctness | 🟠 Major | ⚡ Quick win

Parse decimal capacities instead of trailing digits.

Line 60 parses 1.92 TB as 92 TB, returning 94,208 GB instead of about 1,966 GB. This corrupts specs for valid decimal-capacity descriptions.

Proposed fix
 function firstSizeGB(line: string): number | undefined {
-  const m = line.match(/(\d+)\s*(GB|TB)\b/i)
+  const m = line.match(/(\d+(?:\.\d+)?)\s*(GB|TB)\b/i)
   if (!m) return undefined
-  const amount = parseInt(m[1])
+  const amount = Number.parseFloat(m[1])
   return /tb/i.test(m[2]) ? amount * 1024 : amount
 }
📝 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
/** First "<number> GB|TB" in a line, converted to GB (TB × 1024). Returns undefined if the line has none. */
function firstSizeGB(line: string): number | undefined {
const m = line.match(/(\d+)\s*(GB|TB)\b/i)
if (!m) return undefined
const amount = parseInt(m[1])
return /tb/i.test(m[2]) ? amount * 1024 : amount
}
/** First "<number> GB|TB" in a line, converted to GB (TB × 1024). Returns undefined if the line has none. */
function firstSizeGB(line: string): number | undefined {
const m = line.match(/(\d+(?:\.\d+)?)\s*(GB|TB)\b/i)
if (!m) return undefined
const amount = Number.parseFloat(m[1])
return /tb/i.test(m[2]) ? amount * 1024 : amount
}
🤖 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 `@packages/core/lib/spec-parser.ts` around lines 58 - 64, Update firstSizeGB to
capture decimal capacity values, not just digits, so inputs such as “1.92 TB”
parse as 1.92 before unit conversion. Preserve the existing GB/TB matching,
case-insensitive handling, and undefined result when no capacity is present.

Comment on lines 144 to +150
// Raw storage label for multi-drive dedicated configs
let storageDescription: string | undefined
for (const line of lines) {
if (/\b(?:NVMe|SSD|HDD)\b/i.test(line)) {
const beforeColon = line.split(':')[0].trim()
if (beforeColon.length > 4 && beforeColon.length < 80) storageDescription = beforeColon
break
}
}
const storageDescription = storageLine
? (() => {
const beforeColon = storageLine.split(':')[0].trim()
return beforeColon.length > 4 && beforeColon.length < 80 ? beforeColon : undefined
})()
: undefined

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

🎯 Functional Correctness | 🟡 Minor | ⚡ Quick win

Extract the storage configuration, not its label.

For Storage: 2 × 1 TB NVMe SSD (RAID 1), Line 147 returns Storage, discarding the raw configuration promised by storageDescription.

Proposed fix
   const storageDescription = storageLine
     ? (() => {
-        const beforeColon = storageLine.split(':')[0].trim()
-        return beforeColon.length > 4 && beforeColon.length < 80 ? beforeColon : undefined
+        const colonIndex = storageLine.indexOf(':')
+        const rawLabel = (
+          colonIndex === -1 ? storageLine : storageLine.slice(colonIndex + 1)
+        ).trim()
+        return rawLabel.length > 4 && rawLabel.length < 80 ? rawLabel : undefined
       })()
     : undefined
📝 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
// Raw storage label for multi-drive dedicated configs
let storageDescription: string | undefined
for (const line of lines) {
if (/\b(?:NVMe|SSD|HDD)\b/i.test(line)) {
const beforeColon = line.split(':')[0].trim()
if (beforeColon.length > 4 && beforeColon.length < 80) storageDescription = beforeColon
break
}
}
const storageDescription = storageLine
? (() => {
const beforeColon = storageLine.split(':')[0].trim()
return beforeColon.length > 4 && beforeColon.length < 80 ? beforeColon : undefined
})()
: undefined
// Raw storage label for multi-drive dedicated configs
const storageDescription = storageLine
? (() => {
const colonIndex = storageLine.indexOf(':')
const rawLabel = (
colonIndex === -1 ? storageLine : storageLine.slice(colonIndex + 1)
).trim()
return rawLabel.length > 4 && rawLabel.length < 80 ? rawLabel : undefined
})()
: undefined
🤖 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 `@packages/core/lib/spec-parser.ts` around lines 144 - 150, Update the
storageDescription extraction in the spec parser to retain the raw storage
configuration after the “Storage:” label, such as “2 × 1 TB NVMe SSD (RAID 1)”,
rather than returning the text before the colon. Preserve the existing trimming
and length validation for the extracted configuration.

Removed placeholder sponsors and added octoflow as a partner.
@CodeMeAPixel CodeMeAPixel merged commit 8fcec41 into production Jul 12, 2026
9 checks passed
This was referenced Jul 13, 2026
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