Skip to content

Conversation

@Keshav-writes-code
Copy link
Owner

This pull request overhauls the downloads page to provide a more dynamic, informative, and user-friendly experience. The main improvements include refactoring how platform binaries are managed, displaying file sizes, improving download count accuracy, and updating UI elements for better clarity and usability.

Downloads page improvements:

  • Refactored platform and binaries data: Moved platform and binary metadata (including architecture, extension, and size) to a new download_links.ts module, replacing the previous hardcoded structure in downloads.astro. This allows for dynamic retrieval of file sizes and easier maintenance. [1] [2]
  • Displayed file sizes for downloads: Integrated the pretty-bytes library to show human-readable file sizes next to each binary, enhancing transparency for users. [1] [2] [3]
  • Improved download count logic: Refactored download count calculation into a reusable function, improved error handling, and incremented the count optimistically on button click for instant feedback. [1] [2] [3] [4]
  • Updated UI/UX: Enhanced the downloads page layout with clearer version display, platform tabs, and download buttons. Added icons, improved accessibility, and polished transitions for a more modern look. [1] [2] [3]

Other changes:

  • Removed target="_blank" from download links to avoid opening downloads in new tabs, improving user experience. [1] [2]
  • Added @tauri-apps/api dependency in the root package.json for future Tauri integration.

@Keshav-writes-code Keshav-writes-code changed the title Upgrades to site's Download page Upgrades site's Download page Feb 9, 2026
@Keshav-writes-code Keshav-writes-code marked this pull request as ready for review February 9, 2026 18:37
@Keshav-writes-code Keshav-writes-code marked this pull request as draft February 9, 2026 18:39
@Keshav-writes-code Keshav-writes-code marked this pull request as ready for review February 9, 2026 18:41
@Keshav-writes-code Keshav-writes-code merged commit fa9f092 into staging Feb 9, 2026
1 check passed
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