Skip to content

Conversation

@ComputelessComputer
Copy link
Collaborator

@ComputelessComputer ComputelessComputer commented Dec 5, 2025

Summary

The homebrew section on the download page was incorrectly showing on iOS devices because the previous implementation used navigator.userAgent.toLowerCase().includes("mac"), which matches iOS Safari's user agent string (which contains "Mac" on newer iOS versions).

This PR switches to using the existing usePlatform hook, which properly distinguishes desktop macOS from mobile devices by checking for mobile UA patterns first.

Review & Testing Checklist for Human

  • Verify on iOS device: Test the download page on an actual iPhone/iPad to confirm the homebrew section is hidden
  • Verify on macOS: Test the download page on a Mac to confirm the homebrew section still appears
  • Review usePlatform hook logic: The hook at src/hooks/use-platform.ts checks for mobile patterns before checking for "mac" - verify this logic is correct for all iOS UA strings

Test Plan

  1. Open https://hyprnote.com/download on a Mac browser → homebrew section should be visible
  2. Open the same URL on an iPhone/iPad → homebrew section should NOT be visible
  3. Open on Android/Windows → homebrew section should NOT be visible

Notes

The user also reported a scroll snap issue on the download page's mobile view, but I couldn't find any scroll-snap CSS on the /download route (only on the home page carousels). I'll follow up to clarify whether this is referring to a different page or a browser-specific behavior.


Requested by: [email protected] (@ComputelessComputer)
Link to Devin run: https://app.devin.ai/sessions/3dd9e7eb56b64c6eb674942b2e9fe6c4

Use usePlatform hook instead of manual UA parsing to properly
distinguish desktop macOS from mobile devices (iOS). The previous
implementation using navigator.userAgent.includes('mac') would
incorrectly show the homebrew section on iOS devices.

Co-Authored-By: [email protected] <[email protected]>
@devin-ai-integration
Copy link
Contributor

🤖 Devin AI Engineer

I'll be helping with this pull request! Here's what you should know:

✅ I will automatically:

  • Address comments on this PR that start with 'DevinAI' or '@devin'.
  • Look at CI failures and help fix them

Note: I can only respond to comments from users who have write access to this repository.

⚙️ Control Options:

  • Disable automatic comment and CI monitoring

@netlify
Copy link

netlify bot commented Dec 5, 2025

Deploy Preview for hyprnote ready!

Name Link
🔨 Latest commit c521b75
🔍 Latest deploy log https://app.netlify.com/projects/hyprnote/deploys/69328e90fc6d55000872e24a
😎 Deploy Preview https://deploy-preview-2138--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 5, 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 13 minutes and 9 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 a85a87b and c521b75.

📒 Files selected for processing (1)
  • apps/web/src/routes/_view/download/index.tsx (2 hunks)
✨ Finishing touches
  • 📝 Generate docstrings
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Post copyable unit tests in a comment
  • Commit unit tests in branch devin/1764920955-fix-homebrew-visibility

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.

@netlify
Copy link

netlify bot commented Dec 5, 2025

Deploy Preview for hyprnote-storybook ready!

Name Link
🔨 Latest commit c521b75
🔍 Latest deploy log https://app.netlify.com/projects/hyprnote-storybook/deploys/69328e9065ea1a000868c3dd
😎 Deploy Preview https://deploy-preview-2138--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.

@ComputelessComputer ComputelessComputer merged commit 0c0a501 into main Dec 6, 2025
13 of 14 checks passed
@ComputelessComputer ComputelessComputer deleted the devin/1764920955-fix-homebrew-visibility branch December 6, 2025 05:05
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