Skip to content

Conversation

@ameer2468
Copy link
Contributor

@ameer2468 ameer2468 commented Sep 16, 2025

Summary by CodeRabbit

  • New Features

    • Navbar logo now adapts on scroll, compacting and optionally hiding the name for a cleaner header.
    • Contextual platform icon appears in the secondary call-to-action when your platform is detected.
  • Style

    • Updated buttons to the dark variant for improved contrast and consistency across pages.
    • Refined logo sizing, viewBox handling and transitions for smoother visual behavior.

@coderabbitai
Copy link
Contributor

coderabbitai bot commented Sep 16, 2025

Caution

Review failed

The pull request is closed.

Walkthrough

Adds scroll-driven logo resizing to the site Navbar via local state and a scroll listener, updates the shared Logo component to accept viewBox and style props, and changes several button variants to "dark" while adding platform-detection and an icon to ReadyToGetStarted.

Changes

Cohort / File(s) Summary
Navbar & Logo API
apps/web/app/(site)/Navbar.tsx, packages/ui/src/components/icons/Logo.tsx
Navbar: adds hideLogoName local state, attaches window scroll listener to toggle it, passes hideLogoName and viewBoxDimensions to Logo, and updates size/transition logic. Logo: prop types changed — className optional, new viewBoxDimensions?: \${string} ${string} ${string} ${string}`andstyle?: React.CSSProperties; SVG uses viewBox={viewBoxDimensions
ReadyToGetStarted (platform icon + styling)
apps/web/components/ReadyToGetStarted.tsx
Adds useDetectPlatform usage and loading state, renders platform icon via getPlatformIcon when available, switches Button variant from "gray" to "dark".
RecordingModes (button styling)
apps/web/components/pages/HomePage/RecordingModes.tsx
Changes Button variant from "gray" to "dark" and adjusts className ordering (cosmetic/layout change).

Sequence Diagram(s)

sequenceDiagram
  autonumber
  actor User
  participant Window as Window (scroll)
  participant Navbar as Site Navbar
  participant Logo as Logo (UI)

  User->>Window: scroll
  Window-->>Navbar: scroll event (window.scrollY)
  Note over Navbar: set hideLogoName = (scrollY > 10)
  Navbar->>Logo: render(props: { hideLogoName, viewBoxDimensions })
  Note over Logo: uses provided viewBoxDimensions or default
  Logo-->>Navbar: SVG markup (size/viewBox adjusted)
  Navbar-->>User: updated navbar render
Loading

Estimated code review effort

🎯 3 (Moderate) | ⏱️ ~25 minutes

Possibly related PRs

Suggested labels

codex

Suggested reviewers

  • Brendonovich

Poem

I hop where pixels softly fold,
A tiny name becomes more bold.
Buttons don the evening hue,
Platform icons peek on cue.
With whiskers twitching, code takes flight—🐇✨

Pre-merge checks and finishing touches

❌ Failed checks (1 warning)
Check name Status Explanation Resolution
Docstring Coverage ⚠️ Warning Docstring coverage is 0.00% which is insufficient. The required threshold is 80.00%. You can run @coderabbitai generate docstrings to improve docstring coverage.
✅ Passed checks (2 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title Check ✅ Passed The title is concise and accurately describes the main changes: it highlights the navbar logo animation on scroll (Navbar and Logo updates) and the download button adjustment (button variant/style changes), so a reviewer scanning the history will immediately understand the primary intent.

📜 Recent review details

Configuration used: CodeRabbit UI

Review profile: CHILL

Plan: Pro

📥 Commits

Reviewing files that changed from the base of the PR and between c17199a and bfe1e37.

📒 Files selected for processing (2)
  • apps/web/app/(site)/Navbar.tsx (2 hunks)
  • packages/ui/src/components/icons/Logo.tsx (1 hunks)

Tip

👮 Agentic pre-merge checks are now available in preview!

Pro plan users can now enable pre-merge checks in their settings to enforce checklists before merging PRs.

  • Built-in checks – Quickly apply ready-made checks to enforce title conventions, require pull request descriptions that follow templates, validate linked issues for compliance, and more.
  • Custom agentic checks – Define your own rules using CodeRabbit’s advanced agentic capabilities to enforce organization-specific policies and workflows. For example, you can instruct CodeRabbit’s agent to verify that API documentation is updated whenever API schema files are modified in a PR. Note: Upto 5 custom checks are currently allowed during the preview period. Pricing for this feature will be announced in a few weeks.

Please see the documentation for more information.

Example:

reviews:
  pre_merge_checks:
    custom_checks:
      - name: "Undocumented Breaking Changes"
        mode: "warning"
        instructions: |
          Pass/fail criteria: All breaking changes to public APIs, CLI flags, environment variables, configuration keys, database schemas, or HTTP/GraphQL endpoints must be documented in the "Breaking Change" section of the PR description and in CHANGELOG.md. Exclude purely internal or private changes (e.g., code not exported from package entry points or explicitly marked as internal).

Please share your feedback with us on this Discord post.


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
Contributor

@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: 3

🧹 Nitpick comments (5)
apps/web/components/pages/HomePage/RecordingModes.tsx (1)

153-161: Unify Windows download URL handling (avoid divergence from util).

You special‑case Windows to "/download" while other platforms use getDownloadUrl(). If the intent isn’t deliberate, prefer a single source of truth to prevent drift.

Apply this diff if unification is desired:

-              href={
-                platform === "windows"
-                  ? "/download"
-                  : getDownloadUrl(platform, isIntel)
-              }
+              href={getDownloadUrl(platform, isIntel)}
apps/web/components/ReadyToGetStarted.tsx (1)

31-38: Pricing CTA shows platform icon — confirm UX intent and add a11y.

An OS icon beside “Pricing” may confuse users (icon implies a download). If intentional, OK; otherwise consider showing it on a download CTA instead. Also, mark decorative icons aria-hidden.

Two options:

  • Keep icon here but hide from AT:
-            {!loading && getPlatformIcon(platform)}
+            {!loading && <span aria-hidden="true">{getPlatformIcon(platform)}</span>}
  • Or move the icon to a download button where applicable.
packages/ui/src/components/icons/Logo.tsx (1)

21-26: Prefer Tailwind sizing over inline styles where possible.

Guideline says Tailwind‑only styling in shared UI. Consider exposing size variants (e.g., compact/default) or allow width via className, reserving style only for edge cases.

Would you like a follow‑up PR to add size props and Tailwind classes to replace most style use?

apps/web/app/(site)/Navbar.tsx (2)

121-129: Avoid sub‑pixel SVG width and prefer Tailwind sizing.

45.5 can render blurry on some displays. Round to 45. Also, consider toggling Tailwind width classes instead of inline style if you make style optional on Logo.

   <Logo
     hideLogoName={hideLogoName}
     className="transition-all duration-[0.2s] ease-out"
     viewBoxDimensions={hideLogoName ? "0 0 60 40" : "0 0 120 40"}
     style={{
-      width: hideLogoName ? 45.5 : 90,
+      width: hideLogoName ? 45 : 90,
       height: 40,
     }}
   />

121-121: Remove unnecessary passHref.

With Next.js Link, passHref is unnecessary unless using legacyBehavior.

- <Link passHref href="/home">
+ <Link href="/home">
📜 Review details

Configuration used: CodeRabbit UI

Review profile: CHILL

Plan: Pro

📥 Commits

Reviewing files that changed from the base of the PR and between c89646a and c17199a.

📒 Files selected for processing (4)
  • apps/web/app/(site)/Navbar.tsx (2 hunks)
  • apps/web/components/ReadyToGetStarted.tsx (2 hunks)
  • apps/web/components/pages/HomePage/RecordingModes.tsx (1 hunks)
  • packages/ui/src/components/icons/Logo.tsx (1 hunks)
🧰 Additional context used
📓 Path-based instructions (4)
apps/web/**/*.{ts,tsx}

📄 CodeRabbit inference engine (CLAUDE.md)

apps/web/**/*.{ts,tsx}: Use TanStack Query v5 for client-side server state and data fetching in the web app
Mutations should call Server Actions and perform precise cache updates with setQueryData/setQueriesData, avoiding broad invalidations
Prefer Server Components for initial data and pass initialData to client components for React Query hydration

Files:

  • apps/web/components/ReadyToGetStarted.tsx
  • apps/web/components/pages/HomePage/RecordingModes.tsx
  • apps/web/app/(site)/Navbar.tsx
{apps/web,packages/ui}/**/*.{ts,tsx}

📄 CodeRabbit inference engine (CLAUDE.md)

{apps/web,packages/ui}/**/*.{ts,tsx}: Use Tailwind CSS exclusively for styling in the web app and shared React UI components
Component naming: React components in PascalCase; hooks in camelCase starting with 'use'

Files:

  • apps/web/components/ReadyToGetStarted.tsx
  • apps/web/components/pages/HomePage/RecordingModes.tsx
  • apps/web/app/(site)/Navbar.tsx
  • packages/ui/src/components/icons/Logo.tsx
**/*.{ts,tsx}

📄 CodeRabbit inference engine (CLAUDE.md)

Use strict TypeScript and avoid any; prefer shared types from packages

**/*.{ts,tsx}: Use Biome to format/lint TypeScript with a 2-space indent
TypeScript file names should be kebab-case (e.g., user-menu.tsx)

Files:

  • apps/web/components/ReadyToGetStarted.tsx
  • apps/web/components/pages/HomePage/RecordingModes.tsx
  • apps/web/app/(site)/Navbar.tsx
  • packages/ui/src/components/icons/Logo.tsx
**/*.{tsx,jsx}

📄 CodeRabbit inference engine (AGENTS.md)

React/Solid components should be named using PascalCase

Files:

  • apps/web/components/ReadyToGetStarted.tsx
  • apps/web/components/pages/HomePage/RecordingModes.tsx
  • apps/web/app/(site)/Navbar.tsx
  • packages/ui/src/components/icons/Logo.tsx
🧬 Code graph analysis (3)
apps/web/components/ReadyToGetStarted.tsx (2)
apps/web/hooks/useDetectPlatform.ts (1)
  • useDetectPlatform (8-111)
apps/web/utils/platform.tsx (1)
  • getPlatformIcon (33-49)
apps/web/components/pages/HomePage/RecordingModes.tsx (1)
apps/web/utils/platform.tsx (1)
  • getDownloadUrl (3-15)
apps/web/app/(site)/Navbar.tsx (1)
packages/ui/src/components/icons/Logo.tsx (1)
  • Logo (1-86)
⏰ Context from checks skipped due to timeout of 90000ms. You can increase the timeout in your CodeRabbit configuration to a maximum of 15 minutes (900000ms). (3)
  • GitHub Check: Build Desktop (x86_64-pc-windows-msvc, windows-latest)
  • GitHub Check: Build Desktop (aarch64-apple-darwin, macos-latest)
  • GitHub Check: Analyze (rust)
🔇 Additional comments (2)
apps/web/components/pages/HomePage/RecordingModes.tsx (1)

153-154: LGTM on variant and class adjustments.

The switch to variant="dark" and class reordering looks consistent with the rest of the PR.

Also applies to: 160-161

apps/web/components/ReadyToGetStarted.tsx (1)

11-13: Platform detection/load state wiring looks good.

Please confirm SSR is not involved here; this component is client‑only and safe to call useDetectPlatform().

@ameer2468 ameer2468 merged commit 1a7df37 into main Sep 16, 2025
13 of 15 checks passed
@ameer2468 ameer2468 deleted the navbar-scroll-anim-button-colors branch September 16, 2025 15:55
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.

2 participants