1
0
Fork 0
mirror of https://github.com/maziggy/bambuddy.git synced 2026-05-09 08:25:54 +02:00

[PR #383] [MERGED] Add storage usage metering and breakdown #1026

Closed
opened 2026-05-07 00:15:33 +02:00 by BreizhHardware · 0 comments

📋 Pull Request Information

Original PR: https://github.com/maziggy/bambuddy/pull/383
Author: @Keybored02
Created: 2/15/2026
Status: Merged
Merged: 2/15/2026
Merged by: @maziggy

Base: 0.2.0bHead: feature/storage_meter


📝 Commits (8)

  • 26557f6 Add storgae usage metering and breakdown
  • bcea965 Merge branch '0.2.0b' into feature/storage_meter
  • b4ab212 Merge branch '0.2.0b' into feature/storage_meter
  • 115f261 Fix TS error, add missing translation keys, fix fr locale, cleanup duplicated functions
  • 22114de Merge branch '0.2.0b' into feature/storage_meter
  • fc77e7a Merge branch '0.2.0b' into feature/storage_meter
  • 8f0abb9 Merge branch '0.2.0b' into feature/storage_meter
  • 5ad0e59 Removed BOM, fixed apostrophe

📊 Changes

8 files changed (+583 additions, -1 deletions)

View changed files

📝 backend/app/api/routes/system.py (+340 -0)
📝 frontend/src/api/client.ts (+41 -0)
📝 frontend/src/i18n/locales/de.ts (+8 -0)
📝 frontend/src/i18n/locales/en.ts (+8 -0)
📝 frontend/src/i18n/locales/fr.ts (+8 -0)
📝 frontend/src/i18n/locales/it.ts (+8 -0)
📝 frontend/src/i18n/locales/ja.ts (+8 -0)
📝 frontend/src/pages/SettingsPage.tsx (+162 -1)

📄 Description

Description

Add disk usage metering and breakdown based on folder (Logs, Archives, Library Files, Database, Thumbnails, etc.) with a bar graph under settings-General.

Fixes #

Type of Change

  • Bug fix (non-breaking change that fixes an issue)
  • New feature (non-breaking change that adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to change)
  • Documentation update
  • Code refactoring
  • Performance improvement
  • Test addition or update

Changes Made

  • New /system/storage-usage endpoint with directory scanning, categorization, and cached results (5‑minute default), plus helpers for classification and safe file walking in system.py.
  • Frontend API/types: getStorageUsage client call and new response/type models in client.ts.
  • New “Storage Usage” section in General settings with refresh, bar visualization, category list, totals, and “other” breakdown in SettingsPage.tsx.
  • Adds storageUsage and storageUsageDescription strings in en.ts, de.ts, fr.ts, it.ts, and ja.ts.

Screenshots

image

Testing

  • I have tested this on my local machine
  • I have tested with my printer model: H2C

Checklist

  • My code follows the project's coding style
  • I have commented my code where necessary
  • I have updated the documentation (if needed)
  • My changes generate no new warnings
  • I have tested my changes thoroughly

Additional Notes


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/maziggy/bambuddy/pull/383 **Author:** [@Keybored02](https://github.com/Keybored02) **Created:** 2/15/2026 **Status:** ✅ Merged **Merged:** 2/15/2026 **Merged by:** [@maziggy](https://github.com/maziggy) **Base:** `0.2.0b` ← **Head:** `feature/storage_meter` --- ### 📝 Commits (8) - [`26557f6`](https://github.com/maziggy/bambuddy/commit/26557f60387a560d51d607e741f0fd9601631f2c) Add storgae usage metering and breakdown - [`bcea965`](https://github.com/maziggy/bambuddy/commit/bcea9654feb77d7f810cf6d819ccbae9b556d274) Merge branch '0.2.0b' into feature/storage_meter - [`b4ab212`](https://github.com/maziggy/bambuddy/commit/b4ab212f451244eb4b400b4afc55d0337a5fb443) Merge branch '0.2.0b' into feature/storage_meter - [`115f261`](https://github.com/maziggy/bambuddy/commit/115f2617cf8e7a4c932ce8099cf30b8c0404f0e6) Fix TS error, add missing translation keys, fix fr locale, cleanup duplicated functions - [`22114de`](https://github.com/maziggy/bambuddy/commit/22114dee42210ae6c9123aa98ceaaffae668c5a2) Merge branch '0.2.0b' into feature/storage_meter - [`fc77e7a`](https://github.com/maziggy/bambuddy/commit/fc77e7aaa3f19bb66aa2078902111060f325fb82) Merge branch '0.2.0b' into feature/storage_meter - [`8f0abb9`](https://github.com/maziggy/bambuddy/commit/8f0abb9bde0dc09081059354f6f760e8d1e362c8) Merge branch '0.2.0b' into feature/storage_meter - [`5ad0e59`](https://github.com/maziggy/bambuddy/commit/5ad0e59209d1124b8f066f9f95f81249655cda0d) Removed BOM, fixed apostrophe ### 📊 Changes **8 files changed** (+583 additions, -1 deletions) <details> <summary>View changed files</summary> 📝 `backend/app/api/routes/system.py` (+340 -0) 📝 `frontend/src/api/client.ts` (+41 -0) 📝 `frontend/src/i18n/locales/de.ts` (+8 -0) 📝 `frontend/src/i18n/locales/en.ts` (+8 -0) 📝 `frontend/src/i18n/locales/fr.ts` (+8 -0) 📝 `frontend/src/i18n/locales/it.ts` (+8 -0) 📝 `frontend/src/i18n/locales/ja.ts` (+8 -0) 📝 `frontend/src/pages/SettingsPage.tsx` (+162 -1) </details> ### 📄 Description ## Description Add disk usage metering and breakdown based on folder (Logs, Archives, Library Files, Database, Thumbnails, etc.) with a bar graph under settings-General. ## Related Issue <!-- Link to the issue this PR addresses (if applicable) --> Fixes # ## Type of Change <!-- Mark the relevant option with an "x" --> - [ ] Bug fix (non-breaking change that fixes an issue) - [x] New feature (non-breaking change that adds functionality) - [ ] Breaking change (fix or feature that would cause existing functionality to change) - [ ] Documentation update - [ ] Code refactoring - [ ] Performance improvement - [ ] Test addition or update ## Changes Made - New /system/storage-usage endpoint with directory scanning, categorization, and cached results (5‑minute default), plus helpers for classification and safe file walking in system.py. - Frontend API/types: getStorageUsage client call and new response/type models in client.ts. - New “Storage Usage” section in General settings with refresh, bar visualization, category list, totals, and “other” breakdown in SettingsPage.tsx. - Adds storageUsage and storageUsageDescription strings in en.ts, de.ts, fr.ts, it.ts, and ja.ts. ## Screenshots <img width="405" height="725" alt="image" src="https://github.com/user-attachments/assets/f1f297ee-4ea5-4b10-aab5-e7699aea4b4e" /> ## Testing <!-- Describe how you tested your changes --> - [x] I have tested this on my local machine - [x] I have tested with my printer model: H2C ## Checklist - [x] My code follows the project's coding style - [x] I have commented my code where necessary - [ ] I have updated the documentation (if needed) - [x] My changes generate no new warnings - [x] I have tested my changes thoroughly ## Additional Notes <!-- Add any additional information that reviewers should know --> --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
BreizhHardware 2026-05-07 00:15:33 +02:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/bambuddy-maziggy-1#1026
No description provided.