Skip to content

feat(ui): add zone order and measurement labels - #206

Open
godiak wants to merge 4 commits into
congatudo:masterfrom
godiak:ui-configurable-map-measurement-labels
Open

feat(ui): add zone order and measurement labels#206
godiak wants to merge 4 commits into
congatudo:masterfrom
godiak:ui-configurable-map-measurement-labels

Conversation

@godiak

@godiak godiak commented Jun 8, 2026

Copy link
Copy Markdown

Adds UI labels for zone order and configurable map measurements.

Changes:

  • Adds a "congatudo.zoneMeasurement" configuration section.
  • Adds "cmPerMapUnit" to scale manual zone dimension labels.
  • Adds "segmentAreaMultiplier" to optionally scale displayed room/segment area labels.
  • Adds a read-only config endpoint for the frontend.
  • Uses the configured values only for displayed labels.
  • Shows compact measurement labels only when a zone is selected.
  • Adds visible order numbers to selected zones.
  • Adds a Manual/Auto zone order mode in the zone cleaning UI.
  • Manual mode keeps the visible/manual zone order.
  • Auto mode computes an approximate economical order, shows that order on the selected zones, and sends the zones array already ordered.

Payload behavior:

  • The backend API is unchanged.
  • The UI still sends the existing "zones" array and "iterations" field.
  • This PR only changes the order of the "zones" array before sending it.
  • Measurement labels do not affect robot payloads.

This does not change map coordinates, firmware behavior, "cleanAreas", "cleanRooms", segment cleaning, zone cleaning backend behavior, or Cecotec room custom ordering support.

Example local configuration:

{
"congatudo": {
"zoneMeasurement": {
"cmPerMapUnit": 5.15,
"segmentAreaMultiplier": 250
}
}
}

Defaults keep existing behavior unless the user configures a custom scale.

@godiak godiak changed the title feat(ui): add configurable map measurement labels feat(ui): add zone order and measurement labels Jun 8, 2026
@sonarqubecloud

sonarqubecloud Bot commented Jun 8, 2026

Copy link
Copy Markdown

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.

1 participant