Skip to content

[8.0] Add Gauge template page for the gauge Component - #994

Open
promptless-for-oss wants to merge 1 commit into
mautic:8.0from
Promptless:promptless/pr-18231-gauge-component-8.0
Open

promptless-for-oss wants to merge 1 commit into
mautic:8.0from
Promptless:promptless/pr-18231-gauge-component-8.0

Conversation

@promptless-for-oss

Copy link
Copy Markdown
Contributor

Open in Promptless

Description

Documents, for the 8.0 docs, the gauge Component that mautic/mautic#18231 adds, 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 (docs/design_templates/gauge.rst) and lists it in the Design templates navigation. The page matches the 7.3 version in #943 and covers:

  • Including @MauticCore/Components/gauge.html.twig, showing a percentage or an amount out of a total, and the loading state.
  • Every template option (label, value, total, type, size, color, status, unit, showValue, delta, font, className, id) with types and defaults, and the fill animation that browsers set to reduce motion skip.
  • Mautic.updateGauge() for filling a gauge from AJAX responses, with the Campaign share tab as the example.
Validation 2 passed
  • ✓ Vale (repository .vale.ini): no errors or warnings; 2 suggestion-level Google.Acronyms hits on ARIA, which the page spells out on first use.
  • ✓ Facts: every option, default, and behavior checked against the template, styles, and JavaScript at the merged head of Add gauge component mautic#18231.

Linked issue

Related to mautic/mautic#18231, merged into 7.x. Its change reaches 8.x with the next upmerge. The 7.3 version of this page is in #943.

Screenshots or screen recordings

Not applicable - text-only change.

Trigger Events

Comment thread docs/design_templates/gauge.rst Resolved
@promptless-for-oss

promptless-for-oss commented Nov 26, 2026 •

Copy link
Copy Markdown
Contributor Author

The build check failed on commit af990ea, 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