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

[PR #573] [MERGED] Add energy cost to archive card #1078

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

📋 Pull Request Information

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

Base: 0.2.2b1Head: feature/energy_cost


📝 Commits (3)

  • 78b22fe Add energy cost to archive card
  • c7d91aa Merge branch '0.2.2b1' into feature/energy_cost
  • abc27ca Replace Disc3 icon with Coins in ArchivesPage

📊 Changes

1 file changed (+16 additions, -5 deletions)

View changed files

📝 frontend/src/pages/ArchivesPage.tsx (+16 -5)

📄 Description

Description

Add a UI indicator of energy used for a given print in Archive.

Fixes #539

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

  • Added a UI icon besides Filament Cost that displays Energy Cost based on PrintArchive energy_cost.
  • Added on-hover tooltip with energy usage expressed in kWH
  • Used existing localization, no new strings added

Screenshots

Screenshot 2026-03-02 152338

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

A "Total" field could be added, but given the usually huge difference between filament and energy cist, it might be redundant.


🔄 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/573 **Author:** [@Keybored02](https://github.com/Keybored02) **Created:** 3/2/2026 **Status:** ✅ Merged **Merged:** 3/3/2026 **Merged by:** [@maziggy](https://github.com/maziggy) **Base:** `0.2.2b1` ← **Head:** `feature/energy_cost` --- ### 📝 Commits (3) - [`78b22fe`](https://github.com/maziggy/bambuddy/commit/78b22fe5f37680e2bae08bd52aa225def1f1288d) Add energy cost to archive card - [`c7d91aa`](https://github.com/maziggy/bambuddy/commit/c7d91aa3d93f17f2460a4815512e6cd8559b4dd2) Merge branch '0.2.2b1' into feature/energy_cost - [`abc27ca`](https://github.com/maziggy/bambuddy/commit/abc27ca87a8980c4ae635fe6e20490637a97f234) Replace Disc3 icon with Coins in ArchivesPage ### 📊 Changes **1 file changed** (+16 additions, -5 deletions) <details> <summary>View changed files</summary> 📝 `frontend/src/pages/ArchivesPage.tsx` (+16 -5) </details> ### 📄 Description ## Description Add a UI indicator of energy used for a given print in Archive. ## Related Issue <!-- Link to the issue this PR addresses (if applicable) --> Fixes #539 ## 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 <!-- List the specific changes made in this PR --> - Added a UI icon besides Filament Cost that displays Energy Cost based on `PrintArchive` `energy_cost`. - Added on-hover tooltip with energy usage expressed in kWH - Used existing localization, no new strings added ## Screenshots <img width="381" height="294" alt="Screenshot 2026-03-02 152338" src="https://github.com/user-attachments/assets/5ab6d997-e9f5-4a7c-8250-df1865aef679" /> ## 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 - [ ] 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 A "Total" field could be added, but given the usually huge difference between filament and energy cist, it might be redundant. --- <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:52 +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#1078
No description provided.