Draft
Conversation
…ffix support Co-authored-by: AlexHedley <1573469+AlexHedley@users.noreply.github.com> Agent-Logs-Url: https://github.com/AlexHedley/blashing/sessions/c6b74499-60f1-4557-82f2-9849142fc97c
Copilot
AI
changed the title
[WIP] Add jQuery Knob widget for meter functionality
Implement SVG arc gauge for MeterWidget
Mar 20, 2026
Owner
|
@copilot provide a screenshot of the output |
Author
Here's the rendered output of the The Synergy tile shows the SVG arc gauge with:
|
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.

The
MeterWidgethad a non-functional<input>placeholder using Dashing/Smashing CoffeeScriptdata-bind-*attribute syntax — none of which was wired to Blazor parameters or rendered any visual gauge.Changes
MeterWidget.razor— SVG arc gaugeReplaces the dead
<input data-bind-*>with an<svg>rendering two arcs (background + value fill) and an optional center label:MeterWidget.razor.cs— new parameters & SVG helpersDisplayInput(bool, defaulttrue),Prefix(string?),Suffix(string?) — matching thedata-displayInput/ prefix/suffix semantics from SmashingAngleOffset=-125,AngleArc=250,Width=200,Height=200,Max=100(previously defaulted to0, breaking any usage without explicit args)GetArcPathconverts north-zero clockwise polar degrees to SVG arc path strings usingFormattableString.Invariantfor culture-safe decimal formattingMeterWidget.razor.cssReplaces
input.meterrules withsvg.meter,path.meter-background,path.meter-value, andtext.meter-text.MeterWidget.stories.razorAdds
Value,Min,Max,DisplayInput,Prefix,Suffixarg types; adds a Disable Display Input story (DisplayInput=false,Width/Height=100).MeterWidgetTest.cs— 9 new testsSVG presence, value arc visibility at boundary conditions (
Value == Min),DisplayInputtoggle, prefix/suffix content, default parameter assertions, and coverage for 0%/50%/100% fill.Original prompt
🔒 GitHub Advanced Security automatically protects Copilot coding agent pull requests. You can protect all pull requests by enabling Advanced Security for your repositories. Learn more about Advanced Security.