Skip to content

Conversation

Steve-Mcl
Copy link
Contributor

@Steve-Mcl Steve-Mcl commented Jul 14, 2025

Description

  • Permits easy text setting for segments via a typed input
    • Use Label (original behaviour)
    • Use Value (for showing the value like motor speeds)
    • Use String (for showing individual names like "Normal", "Fault", "low", "high", etc)
    • Use Env (for composite values formed from env vars - ideal for subflows / OEMs)
    • None (permit blank label)
  • Adds click handling so that users can interact (ideal for switching to "detail" pages)

Config

image

Demo

chrome_arT4Pg6sCo

e2e tests added:

Node-RED Dashboard 2.0 - Gauges - Tile
   - render the correct "type" - passed
   - inject 0 should display Segment 1 (default label) - passed
   - inject 5 should still display Segment 1 (default label) - passed
   - inject 35 should display Segment 2 (value label) - passed
   - inject 65 should display Segment 3 (fixed label) - passed
   - inject 85 should display Segment 4 (env label) - SKIPPED (issue getting env var value to populate in test env)
   - inject 100 should display Segment 5 (no label) - passed

Related Issue(s)

closes #1764

Checklist

  • I have read the contribution guidelines
  • Suitable unit/system level tests have been added and they pass
  • Documentation has been updated
    • Upgrade instructions
    • Configuration details
    • Concepts
  • Changes flowforge.yml?
    • Issue/PR raised on FlowFuse/helm to update ConfigMap Template
    • Issue/PR raised on FlowFuse/CloudProject to update values for Staging/Production

Labels

  • Includes a DB migration? -> add the area:migration label

@Steve-Mcl Steve-Mcl changed the base branch from main to 1762-html-linting July 14, 2025 08:15
Base automatically changed from 1762-html-linting to main July 14, 2025 08:49
@Steve-Mcl Steve-Mcl marked this pull request as ready for review July 15, 2025 07:53
@Steve-Mcl Steve-Mcl requested a review from joepavitt July 15, 2025 07:53
@joepavitt
Copy link
Collaborator

joepavitt commented Jul 16, 2025

It's a little confusing as, when the gauge isn't in Tile mode, then new options are irrelevant? Is it feasible to only show the new options when a gauge is in the tile mode?

@joepavitt
Copy link
Collaborator

I'm also working on a quick iteration to always show the label in a tile too, as I've found it less valuable because of a missing label that can provide context

@joepavitt
Copy link
Collaborator

Screenshot 2025-07-16 at 11 16 09

It's functional, just adding docs in now

@joepavitt joepavitt merged commit 624c8ca into main Jul 21, 2025
1 of 2 checks passed
@joepavitt joepavitt deleted the 1764-tile-improvements branch July 21, 2025 10:47
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.

Tile style gauge improvements
2 participants