Skip to content

(feat) hero OS auto-detection, remove unused InstallBlock#8

Merged
alexey-pelykh merged 1 commit intomainfrom
feat/hero-os-autodetect-remove-installblock
Mar 9, 2026
Merged

(feat) hero OS auto-detection, remove unused InstallBlock#8
alexey-pelykh merged 1 commit intomainfrom
feat/hero-os-autodetect-remove-installblock

Conversation

@alexey-pelykh
Copy link
Contributor

Summary

  • Hero install tabs now auto-detect Windows via navigator.userAgent and pre-select the Windows tab on load
  • Extracted tab-switching into a shared selectTab() helper (eliminates duplication between auto-detect and click handlers)
  • Deleted unused InstallBlock.astro — was already not imported after hero gained install tabs

Test plan

  • Verify macOS/Linux tab is default on non-Windows browsers
  • Verify Windows tab is pre-selected when visiting from Windows
  • Verify manual tab switching still works
  • Verify next/stable toggle works with auto-detected tab
  • Verify copy-to-clipboard works for all tab/toggle combinations

🤖 Generated with Claude Code

…allBlock

The hero section now detects Windows via navigator.userAgent and
pre-selects the Windows tab on load. Tab-switching logic extracted into
a shared selectTab() helper. The redundant InstallBlock component
(already not imported) is deleted.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@alexey-pelykh alexey-pelykh merged commit 8eff9a4 into main Mar 9, 2026
2 checks passed
@alexey-pelykh alexey-pelykh deleted the feat/hero-os-autodetect-remove-installblock branch March 9, 2026 08:11
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