Skip to content

Add disk space display to footer#65

Closed
Copilot wants to merge 7 commits intomasterfrom
copilot/add-disk-space-display
Closed

Add disk space display to footer#65
Copilot wants to merge 7 commits intomasterfrom
copilot/add-disk-space-display

Conversation

Copy link
Contributor

Copilot AI commented Feb 5, 2026

Displays total, free, and used disk space in the footer when scanning drives or folders.

Implementation

  • Disk space retrieval (app/js/radar.js)

    • New getDiskSpaceInfo() using existing systeminformation.fsSize()
    • Longest-prefix matching for nested mount points (e.g., /home vs /)
    • Path normalization for Windows backslash handling
    • Error callback with fallback to "Disk info unavailable"
  • UI integration (app/index.html, app/css/style.css)

    • Added disk_space_info span to footer toolbar
    • Positioned before breadcrumb trail, non-intrusive

Display format

Total: 144.26 GB | Free: 91.24 GB | Used: 53.01 GB (36.75%)

Technical notes

  • Uses existing systeminformation dependency (v5.30.7) - cross-platform compatible
  • Mount point matching handles nested filesystems correctly by selecting longest match
  • Null-safe handling for missing usePercent property

Warning

Firewall rules blocked me from connecting to one or more addresses (expand for details)

I tried to connect to the following addresses, but was blocked by firewall rules:

  • esm.ubuntu.com
    • Triggering command: /usr/lib/apt/methods/https /usr/lib/apt/methods/https (dns block)

If you need me to access, download, or install something from one of these locations, you can either:

Original prompt

This section details on the original issue you should resolve

<issue_title>display total disk space and free space</issue_title>
<issue_description>the title says it all :)
</issue_description>

<agent_instructions>maybe systeminformation already provides info on free s pace</agent_instructions>

Comments on the Issue (you are @copilot in this section)

@zz85 also on my TODO ;) there are cross platforms issues with this but certainly something for me to add.. @zz85 I'm still slightly holding off on this one... Ideally I would love to use https://github.com/jduncanator/node-diskusage, but this might have to wait till I slightly understand how the native bindings work in electron. Otherwise [this](https://github.com/jduncanator/node-diskusage) might be simplier to use but has no support for windows...

💬 We'd love your input! Share your thoughts on Copilot coding agent in our 2 minute survey.

Copilot AI and others added 6 commits February 5, 2026 12:48
Co-authored-by: zz85 <314997+zz85@users.noreply.github.com>
Co-authored-by: zz85 <314997+zz85@users.noreply.github.com>
Co-authored-by: zz85 <314997+zz85@users.noreply.github.com>
…rm path matching

Co-authored-by: zz85 <314997+zz85@users.noreply.github.com>
Co-authored-by: zz85 <314997+zz85@users.noreply.github.com>
Co-authored-by: zz85 <314997+zz85@users.noreply.github.com>
@zz85 zz85 marked this pull request as ready for review February 5, 2026 13:00
Copilot AI changed the title [WIP] Add display for total and free disk space Add disk space display to footer Feb 5, 2026
Copilot AI requested a review from zz85 February 5, 2026 13:02
@zz85
Copy link
Owner

zz85 commented Feb 5, 2026

this change in incorporated in #63

@zz85 zz85 closed this Feb 5, 2026
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.

display total disk space and free space

2 participants