Skip to content

Conversation

@Keshav-writes-code
Copy link
Owner

This pull request introduces a major refactor to the downloads page, streamlining platform and binary metadata management, improving download statistics handling, and enhancing UI/UX. It moves platform and binary configuration to a dedicated module, adds file size display for downloads, and updates font configuration for improved styling. The download count logic is now more robust and interactive, and the UI is updated for clarity and accessibility.

Downloads page refactor and enhancements:

  • Moved platform and binary metadata to a new module (apps/site/src/lib/download_links.ts), including file sizes and download links, and replaced inline configuration in downloads.astro with imports. [1] [2]
  • Integrated the pretty-bytes library to display download file sizes in a human-readable format, showing this info next to each download button. [1] [2]
  • Improved download count handling: added a robust client-side script to fetch counts, fallback to server value, and increment the count interactively when users click download buttons. [1] [2] [3]

UI/UX improvements:

  • Updated download button styling and layout for clarity, including per-platform tabs, better radio button styling, and file size visibility. [1] [2]
  • Added new font families (mono and mono2) to the UnoCSS config for improved mono font styling, and updated font serving logic for dev/prod environments.
  • Minor improvements to font weight and boldness in home page sections and navbar for better readability. [1] [2] [3]

Dependency updates:

  • Added pretty-bytes and @tauri-apps/api to project dependencies for file size formatting and future Tauri integration. [1] [2]

These changes collectively modernize the downloads page, improve user experience, and make the codebase cleaner and easier to maintain.

@Keshav-writes-code Keshav-writes-code merged commit 369208e into main Feb 9, 2026
2 checks 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