Skip to content

feat: auto-detect OS in download banner#93

Merged
koala73 merged 3 commits into
mainfrom
feature/auto-detect-os-download
Feb 17, 2026
Merged

feat: auto-detect OS in download banner#93
koala73 merged 3 commits into
mainfrom
feature/auto-detect-os-download

Conversation

@SebastienMelki

Copy link
Copy Markdown
Collaborator

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

  • Open the web app on a Mac — should see only the macOS (Apple Silicon) button
  • Open on Windows — should see only the Windows button
  • Click "Show all platforms" — all 3 buttons should appear
  • Click "Show less" — should collapse back to the detected platform
  • Spoof an unrecognized user agent — all 3 buttons should show (no toggle)

Replaces #91
Closes #90

🤖 Generated with Claude Code

@SebastienMelki SebastienMelki added enhancement New feature or request platform: web Web/browser-specific UX/UI User interface and experience labels Feb 17, 2026
@vercel

vercel Bot commented Feb 17, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
worldmonitor Ready Ready Preview, Comment Feb 17, 2026 3:05pm
worldmonitor-finance Ready Ready Preview, Comment Feb 17, 2026 3:05pm
worldmonitor-startup Ready Ready Preview, Comment Feb 17, 2026 3:05pm

Request Review

WebGL renderer check now also detects Intel GPUs to return macos-x64.
When architecture can't be determined, return unknown so users see
both Apple Silicon and Intel download buttons instead of defaulting
to the wrong binary.
Add 'macos' platform type for Macs where WebGL can't determine
Apple Silicon vs Intel. Shows both Mac download buttons without
the irrelevant Windows option.
@koala73
koala73 merged commit de82d04 into main Feb 17, 2026
4 checks passed
@SebastienMelki SebastienMelki added the claude Generated with Claude Code label Feb 19, 2026
@koala73
koala73 deleted the feature/auto-detect-os-download branch February 19, 2026 20:57
facusturla pushed a commit to facusturla/worldmonitor that referenced this pull request Feb 27, 2026
## 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)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

claude Generated with Claude Code enhancement New feature or request platform: web Web/browser-specific UX/UI User interface and experience

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Auto-detect OS on download page instead of showing all platforms

2 participants