feat: auto-detect OS in download banner#91
Conversation
Closes koala73#90 Co-Authored-By: Claude Opus 4.6 <[email protected]>
|
@SebastienMelki is attempting to deploy a commit to the eliehabib projects Team on Vercel. A member of the Team first needs to authorize it. |
|
Closing to reopen from the main repo (branch moved from fork to origin). |
|
can you fix the conflict here too @SebastienMelki |
|
Incorrect macOS architecture fallback in DownloadBanner.ts (PR head lines 31-49). |
|
Mobile gating regression in DownloadBanner.ts (PR head lines 7-10). |
|
Thank you
…On Tue, 17 Feb 2026 at 16:28, Sebastien Melki ***@***.***> wrote:
*SebastienMelki* left a comment (koala73/worldmonitor#91)
<#91 (comment)>
@koala73 <https://github.com/koala73> yes fixed, it was because of the
fact that I moved from my fork to the main repo after being added as a
collaborator, fixed the conflict in the other one, and re-opening this one
properly -> here #93 <#93>
—
Reply to this email directly, view it on GitHub
<#91 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAHTJ5FICHKXUALTQOQRVVT4MMCM7AVCNFSM6AAAAACVMUYZA6VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZTSMJUGQ2DAMBRHA>
.
You are receiving this because you were mentioned.Message ID:
***@***.***>
|
## Summary - Detects user's OS via `navigator.userAgent` and shows only the relevant download button (Windows, macOS Apple Silicon, or macOS Intel) - Uses WebGL renderer info to distinguish Apple Silicon from Intel Macs where possible - Adds a "Show all platforms" toggle so users can still access other platform downloads - Falls back to showing all 3 buttons if OS can't be detected ## Test plan - [x] Open the web app on a Mac — should see only the macOS (Apple Silicon) button - [x] Open on Windows — should see only the Windows button - [x] Click "Show all platforms" — all 3 buttons should appear - [x] Click "Show less" — should collapse back to the detected platform - [x] Spoof an unrecognized user agent — all 3 buttons should show (no toggle) Replaces #91 Closes #90 🤖 Generated with [Claude Code](https://claude.com/claude-code)
## Summary - Detects user's OS via `navigator.userAgent` and shows only the relevant download button (Windows, macOS Apple Silicon, or macOS Intel) - Uses WebGL renderer info to distinguish Apple Silicon from Intel Macs where possible - Adds a "Show all platforms" toggle so users can still access other platform downloads - Falls back to showing all 3 buttons if OS can't be detected ## Test plan - [x] Open the web app on a Mac — should see only the macOS (Apple Silicon) button - [x] Open on Windows — should see only the Windows button - [x] Click "Show all platforms" — all 3 buttons should appear - [x] Click "Show less" — should collapse back to the detected platform - [x] Spoof an unrecognized user agent — all 3 buttons should show (no toggle) Replaces koala73#91 Closes koala73#90 🤖 Generated with [Claude Code](https://claude.com/claude-code)
Summary
navigator.userAgentand shows only the relevant download button (Windows, macOS Apple Silicon, or macOS Intel)Test plan
Closes #90
🤖 Generated with Claude Code