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

[PR #416] [MERGED] Adding the energy cost from 2 to 3 decimal precision #1042

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

📋 Pull Request Information

Original PR: https://github.com/maziggy/bambuddy/pull/416
Author: @wreuel
Created: 2/17/2026
Status: Merged
Merged: 2/20/2026
Merged by: @maziggy

Base: 0.2.1b2Head: feature/changeEnergyCostTo3Decimals


📝 Commits (10+)

  • 0c80d36 Adding the energy cost from 2 to 3 decimal precision
  • c9b6aec Merge branch '0.2.1b' into feature/changeEnergyCostTo3Decimals
  • 40a86fa Merge branch '0.2.1b' into feature/changeEnergyCostTo3Decimals
  • 794471c Merge branch '0.2.1b' into feature/changeEnergyCostTo3Decimals
  • 56a622e Merge branch '0.2.1' into feature/changeEnergyCostTo3Decimals
  • 1abb613 Merge branch '0.2.1' into feature/changeEnergyCostTo3Decimals
  • 478164c Complying with pr
  • 1973a8a Merge branch '0.2.1b2' into feature/changeEnergyCostTo3Decimals
  • 933698f Merge branch 'feature/changeEnergyCostTo3Decimals' of github.com:wreuel/bambuddy into feature/changeEnergyCostTo3Decimals
  • 058a782 Complying with PR

📊 Changes

7 files changed (+10 additions, -10 deletions)

View changed files

📝 backend/app/api/routes/archives.py (+2 -2)
📝 backend/app/api/routes/projects.py (+1 -1)
📝 backend/app/main.py (+1 -1)
📝 frontend/src/components/SmartPlugCard.tsx (+1 -1)
📝 frontend/src/pages/ProjectDetailPage.tsx (+1 -1)
📝 frontend/src/pages/SettingsPage.tsx (+3 -3)
📝 frontend/src/pages/StatsPage.tsx (+1 -1)

📄 Description

Description

In Portugal most energy companies use 3 decimals points whe charging energy cosumption, so to be more realistic I added that to the proejct.

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

  • Added toFixed(3) where it was necessary and changed the input from 0.01 to 0.001

Screenshots

Testing

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

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

I have looked on the summary and other pages where the value is used.


🔄 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/416 **Author:** [@wreuel](https://github.com/wreuel) **Created:** 2/17/2026 **Status:** ✅ Merged **Merged:** 2/20/2026 **Merged by:** [@maziggy](https://github.com/maziggy) **Base:** `0.2.1b2` ← **Head:** `feature/changeEnergyCostTo3Decimals` --- ### 📝 Commits (10+) - [`0c80d36`](https://github.com/maziggy/bambuddy/commit/0c80d36fe7cc07ba10b586fc48158cca63cf601b) Adding the energy cost from 2 to 3 decimal precision - [`c9b6aec`](https://github.com/maziggy/bambuddy/commit/c9b6aec08ae2e08789dfb5cb6d051798a5308ecc) Merge branch '0.2.1b' into feature/changeEnergyCostTo3Decimals - [`40a86fa`](https://github.com/maziggy/bambuddy/commit/40a86fa76499d80945a4755570ee6b669a7755ad) Merge branch '0.2.1b' into feature/changeEnergyCostTo3Decimals - [`794471c`](https://github.com/maziggy/bambuddy/commit/794471c749e0d891c9912086a3f04ac02563bbec) Merge branch '0.2.1b' into feature/changeEnergyCostTo3Decimals - [`56a622e`](https://github.com/maziggy/bambuddy/commit/56a622ead37364f9b1304a2bf8179720b10292a7) Merge branch '0.2.1' into feature/changeEnergyCostTo3Decimals - [`1abb613`](https://github.com/maziggy/bambuddy/commit/1abb6135f433d4ba7bffbfd0051b40727ba7e945) Merge branch '0.2.1' into feature/changeEnergyCostTo3Decimals - [`478164c`](https://github.com/maziggy/bambuddy/commit/478164cc3f8b5c48af3dd705d0f25152cacfb41d) Complying with pr - [`1973a8a`](https://github.com/maziggy/bambuddy/commit/1973a8afb302febfda92bd6ebbb10c0a6bed9a6e) Merge branch '0.2.1b2' into feature/changeEnergyCostTo3Decimals - [`933698f`](https://github.com/maziggy/bambuddy/commit/933698ff547b554932ab415e487ecf27220c7a1a) Merge branch 'feature/changeEnergyCostTo3Decimals' of github.com:wreuel/bambuddy into feature/changeEnergyCostTo3Decimals - [`058a782`](https://github.com/maziggy/bambuddy/commit/058a7822f3079667d327bd340af436ba1ae3d395) Complying with PR ### 📊 Changes **7 files changed** (+10 additions, -10 deletions) <details> <summary>View changed files</summary> 📝 `backend/app/api/routes/archives.py` (+2 -2) 📝 `backend/app/api/routes/projects.py` (+1 -1) 📝 `backend/app/main.py` (+1 -1) 📝 `frontend/src/components/SmartPlugCard.tsx` (+1 -1) 📝 `frontend/src/pages/ProjectDetailPage.tsx` (+1 -1) 📝 `frontend/src/pages/SettingsPage.tsx` (+3 -3) 📝 `frontend/src/pages/StatsPage.tsx` (+1 -1) </details> ### 📄 Description ## Description In Portugal most energy companies use 3 decimals points whe charging energy cosumption, so to be more realistic I added that to the proejct. ## 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 <!-- List the specific changes made in this PR --> - Added toFixed(3) where it was necessary and changed the input from 0.01 to 0.001 - - ## Screenshots <!-- If applicable, add screenshots to demonstrate your changes --> ## Testing <!-- Describe how you tested your changes --> - [X] I have tested this on my local machine - [ ] I have tested with my printer model: <!-- e.g., X1C, P1S, A1 --> ## Checklist - [ ] 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 I have looked on the summary and other pages where the value is used. --- <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:39 +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#1042
No description provided.