Skip to content

style(footer): update layout and link styles for improved readability#2039

Merged
ComputelessComputer merged 1 commit intomainfrom
style/footer-link-readability
Dec 1, 2025
Merged

style(footer): update layout and link styles for improved readability#2039
ComputelessComputer merged 1 commit intomainfrom
style/footer-link-readability

Conversation

@ComputelessComputer
Copy link
Collaborator

No description provided.

@netlify
Copy link

netlify bot commented Dec 1, 2025

Deploy Preview for hyprnote-storybook ready!

Name Link
🔨 Latest commit 1234ccb
🔍 Latest deploy log https://app.netlify.com/projects/hyprnote-storybook/deploys/692d401308ae0a00087640e6
😎 Deploy Preview https://deploy-preview-2039--hyprnote-storybook.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

@netlify
Copy link

netlify bot commented Dec 1, 2025

Deploy Preview for hyprnote ready!

Name Link
🔨 Latest commit 1234ccb
🔍 Latest deploy log https://app.netlify.com/projects/hyprnote/deploys/692d401343096b000973f7f7
😎 Deploy Preview https://deploy-preview-2039--hyprnote.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

@coderabbitai
Copy link
Contributor

coderabbitai bot commented Dec 1, 2025

Warning

Rate limit exceeded

@ComputelessComputer has exceeded the limit for the number of commits or files that can be reviewed per hour. Please wait 2 minutes and 4 seconds before requesting another review.

⌛ How to resolve this issue?

After the wait time has elapsed, a review can be triggered using the @coderabbitai review command as a PR comment. Alternatively, push new commits to this PR.

We recommend that you space out your commits to avoid hitting the rate limit.

🚦 How do rate limits work?

CodeRabbit enforces hourly rate limits for each developer per organization.

Our paid plans have higher rate limits than the trial, open-source and free plans. In all cases, we re-allow further reviews after a brief timeout.

Please see our FAQ for further information.

📥 Commits

Reviewing files that changed from the base of the PR and between 3275320 and 1234ccb.

📒 Files selected for processing (1)
  • apps/web/src/components/footer.tsx (15 hunks)
📝 Walkthrough

Walkthrough

Footer component restructured from two-column grid layout to responsive flex layout with left column expansion and right-side grid modification. Link styling updated to use dotted decoration with solid on hover. New "Tools" section added containing "Audio Transcription" and "OSS Navigator".

Changes

Cohort / File(s) Summary
Footer layout and content restructuring
apps/web/src/components/footer.tsx
Converted top-level container from a two-column grid (md:grid-cols-2) to a responsive flex layout (flex flex-col lg:flex-row) and gave the left column lg:flex-1. Reworked the right-side container from grid-cols-2 sm:grid-cols-4 to grid-cols-2 sm:grid-cols-3 lg:grid-cols-5 with gap-8 and lg:flex-shrink-0. Updated many link classNames to include decoration-dotted and hover:decoration-solid. Added a new "Tools" section with "Audio Transcription" and "OSS Navigator" links; adjusted surrounding sections to accommodate the new column.

Estimated code review effort

🎯 2 (Simple) | ⏱️ ~12 minutes

  • Specific areas for attention:
    • Responsive breakpoint behavior (lg:flex-row, sm:grid-cols-3, lg:grid-cols-5)
    • Alignment and ordering of the new Tools section within the footer grid
    • Visual consistency and accessibility impact of decoration-dotted and hover:decoration-solid on links

Possibly related PRs

Pre-merge checks and finishing touches

❌ Failed checks (1 warning, 1 inconclusive)
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.
Description check ❓ Inconclusive No pull request description was provided by the author. Add a brief description explaining the motivation for the layout and link style updates to help reviewers understand the intended improvements.
✅ Passed checks (1 passed)
Check name Status Explanation
Title check ✅ Passed The title accurately reflects the main changes: updating footer layout and link styles; it is concise and specific.

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: 2

Caution

Some comments are outside the diff and can’t be posted inline due to platform limitations.

⚠️ Outside diff range comments (1)
apps/web/src/components/footer.tsx (1)

4-8: Dead code: both branches return the same value.

The getMaxWidthClass function returns "max-w-6xl" regardless of the condition, making the conditional logic unnecessary.

Apply this diff to simplify:

-function getMaxWidthClass(pathname: string): string {
-  const isBlogOrDocs =
-    pathname.startsWith("/blog") || pathname.startsWith("/docs");
-  return isBlogOrDocs ? "max-w-6xl" : "max-w-6xl";
-}
+function getMaxWidthClass(_pathname: string): string {
+  return "max-w-6xl";
+}

Or remove it entirely and inline the value if this was intended to be a placeholder for future customization.

📜 Review details

Configuration used: Path: .coderabbit.yaml

Review profile: CHILL

Plan: Pro

📥 Commits

Reviewing files that changed from the base of the PR and between dcbdd51 and e5e027c.

📒 Files selected for processing (1)
  • apps/web/src/components/footer.tsx (15 hunks)
🧰 Additional context used
📓 Path-based instructions (1)
**/*.{ts,tsx}

📄 CodeRabbit inference engine (AGENTS.md)

**/*.{ts,tsx}: Avoid creating a bunch of types/interfaces if they are not shared. Especially for function props, just inline them instead.
Never do manual state management for form/mutation. Use useForm (from tanstack-form) and useQuery/useMutation (from tanstack-query) instead for 99% of cases. Avoid patterns like setError.
If there are many classNames with conditional logic, use cn (import from @hypr/utils). It is similar to clsx. Always pass an array and split by logical grouping.
Use motion/react instead of framer-motion.

Files:

  • apps/web/src/components/footer.tsx
🪛 GitHub Actions: web_ci
apps/web/src/components/footer.tsx

[error] 229-229: Command 'pnpm -F @hypr/web build && tsc --project tsconfig.json --noEmit' failed with TypeScript error TS2741: Property 'search' is missing in type '{ children: string; to: "/file-transcription"; className: string; }' but required in type 'MakeRequiredSearchParams<RouterCore<Route<Register, any, "/", "/", string, "root", undefined, {}, RouterContext, AnyContext, AnyContext, {}, undefined, ...>>, string, "/file-transcription">'.

⏰ 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). (4)
  • GitHub Check: Redirect rules - hyprnote
  • GitHub Check: Header rules - hyprnote
  • GitHub Check: Pages changed - hyprnote
  • GitHub Check: fmt
🔇 Additional comments (4)
apps/web/src/components/footer.tsx (4)

20-21: Verify responsive layout behavior across breakpoints.

The layout change from a two-column grid to a flex layout with lg:flex-1 and lg:flex-row looks correct for creating a responsive footer. Ensure this renders as expected on mobile, tablet, and desktop viewports.


60-60: LGTM: Grid structure change aligns with new layout.

The grid change from grid-cols-2 sm:grid-cols-4 to grid-cols-2 sm:grid-cols-3 lg:grid-cols-5 correctly accommodates the new Tools section (5 columns total). The lg:flex-shrink-0 ensures the grid doesn't shrink in the flex container.


223-245: New Tools section expands footer functionality.

The addition of the Tools section with Audio Transcription and OSS Navigator links enhances the footer's utility. The structure and styling are consistent with other sections.


229-229: The Link to "/file-transcription" is correct and does not require a search parameter.

The route definition shows that the id search parameter is optional with a fallback to undefined: id: (search.id as string) || undefined. Since the parameter has a default value, the Link component can safely omit the search prop.

Likely an incorrect or invalid review comment.

@ComputelessComputer ComputelessComputer force-pushed the style/footer-link-readability branch 2 times, most recently from 3275320 to 7315702 Compare December 1, 2025 07:12
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