Skip to content

Add Gauge template page for the gauge Component - #943

Open
promptless-for-oss wants to merge 3 commits into
mautic:7.3from
Promptless:promptless/pr-18231-gauge-component-7.3
Open

promptless-for-oss wants to merge 3 commits into
mautic:7.3from
Promptless:promptless/pr-18231-gauge-component-7.3

Conversation

@promptless-for-oss

@promptless-for-oss promptless-for-oss commented Nov 16, 2026 •

Copy link
Copy Markdown
Contributor

Open in Promptless

Description

Documents the new gauge Component from mautic/mautic#18231 so Plugin developers can show a share, score, or amount out of a total the same way the Segment Campaign share tab does.

  • Adds a Gauge template page under Design templates that explains how to include @MauticCore/Components/gauge.html.twig, show a percentage or an amount out of a total, and use the loading state.
  • Lists every template option (label, value, total, type, size, color, status, unit, showValue, delta, font, className, id) with types and defaults.
  • Notes that the ring fills with an animation, which browsers set to reduce motion skip.
  • Documents Mautic.updateGauge() for filling a gauge from AJAX responses, with the Campaign share tab as the example, including loading when that tab is already active.
  • Adds the page to the Design templates navigation.

Verification: checked every option and default against the template and JavaScript at the PR's merged head commit; Vale shows no errors.

Linked issue

Source PR: mautic/mautic#18231 (merged into 7.x).

Screenshots or screen recordings

None. This is a developer reference page.

Trigger Events

Comment thread docs/design_templates/gauge.rst Resolved
@promptless-for-oss
promptless-for-oss marked this pull request as ready for review November 26, 2026 18:09
@promptless-for-oss

promptless-for-oss commented Nov 26, 2026 •

Copy link
Copy Markdown
Contributor Author

The build check failed on commit 2d5b08e, but this PR didn't cause it, so Promptless made no changes.

  • Why it fails: The HTML build finishes, but make checklinks fails. https://community.mautic.org/processes/roadmap and https://community.mautic.org/assemblies/product-team both return HTTP 500. The existing sentence on line 48 of docs/index.rst links to them, and this PR doesn't change it. The only change this PR makes to index.rst is adding design_templates/gauge to the navigation. Other docs PRs fail today with the same errors.
  • What will clear it: This check should pass once the Community Portal pages work again. Then re-run the check or push a new commit. If the pages have moved for good, docs/links/mautic_portal_roadmap.py and docs/links/mautic_portal_product_team.py need new URLs in a separate fix.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants