Skip to content

Feature/pr26 remaining length - #4

Merged
Ajimaru merged 5 commits into
testingfrom
feature/pr26-remaining-length
Jul 13, 2026
Merged

Feature/pr26 remaining length#4
Ajimaru merged 5 commits into
testingfrom
feature/pr26-remaining-length

Conversation

@Ajimaru

@Ajimaru Ajimaru commented Jul 13, 2026

Copy link
Copy Markdown
Owner

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:

  • Added a visual progress bar to indicate the remaining filament amount, with color change (blue to red) when low, and corresponding CSS styles in SpoolManager.css and sidebar template updates. [1] [2]
  • Updated sidebar, dialog, and spool selection templates to show both remaining weight and length, with improved tooltips that include both units. [1] [2] [3]

Functionality Enhancements:

  • Added calculateRemainingPercentage method in SpoolManager.js to compute the percentage of filament remaining for the progress bar and determine if the amount is low.
  • Improved buildTooltipForSpoolItem to handle multiple attributes and units, allowing for richer tooltip content.

Label and Table Improvements:

  • Changed table column and checkbox labels from "Weight" to "Remaining" for clarity, and updated the table to display both remaining and used weight/length values with appropriate formatting and tooltips. [1] [2] [3] [4]

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

MrBullet and others added 5 commits December 20, 2024 18:08
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
%20-%100 blue
%0-%20 red remaining filament bar
@Ajimaru Ajimaru self-assigned this Jul 13, 2026
@Ajimaru Ajimaru added the enhancement New feature or request label Jul 13, 2026
@Ajimaru
Ajimaru merged commit 21428b8 into testing Jul 13, 2026
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>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants