Feature/pr26 remaining length - #4
Merged
Merged
Conversation
changed table names in ui and added remaining length in meters. also changed spool selector's spool names.
added tooltip in sidebar to see remaining length in mm
edited tooltip
%20-%100 blue %0-%20 red remaining filament bar
Ajimaru
added a commit
that referenced
this pull request
Jul 18, 2026
The fetch()-based callApi helper introduced in the previous commit follows the approach of mdziekon/OctoPrint-SpoolManager PR #2 (GH-1) and PR #7 (GH-4). Adds the attribution comment next to the helper, matching the convention used for the other adopted PRs, and records that the callback-style contracts were kept on purpose rather than porting his Result/safeAsync pattern. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This pull request is based on More information in spool tab and spool selector, progress bar indicator for sidebar#26 whitch enhances the display and user experience for showing spool remaining information in the SpoolManager plugin. The changes provide clearer, more detailed information about remaining filament (both weight and length), introduce a visual progress bar, and improve tooltips and labels for clarity.
UI/UX Improvements for Remaining Spool Display:
SpoolManager.cssand sidebar template updates. [1] [2]Functionality Enhancements:
calculateRemainingPercentagemethod inSpoolManager.jsto compute the percentage of filament remaining for the progress bar and determine if the amount is low.buildTooltipForSpoolItemto handle multiple attributes and units, allowing for richer tooltip content.Label and Table Improvements:
Related Issues:
These updates collectively make it easier for users to understand how much filament is left on a spool, both visually and via detailed information in tooltips and tables.
Co-authored-by: @MrBullet MrBullet@users.noreply.github.com