Skip to content

fix(Thermals): sensor sort order anomalies#1868

Merged
pedrolamas merged 2 commits into
fluidd-core:developfrom
pedrolamas:pedrolamas/fix-thermals-order
Jun 4, 2026
Merged

fix(Thermals): sensor sort order anomalies#1868
pedrolamas merged 2 commits into
fluidd-core:developfrom
pedrolamas:pedrolamas/fix-thermals-order

Conversation

@pedrolamas

Copy link
Copy Markdown
Member

Fixes incorrect sensor ordering in the Thermals panel that manifested with larger numbers of temperature sensors (e.g. "Carto PCB" appearing before "Carto MCU").

Sensors are now grouped by type and sorted alphabetically by name within each group.

Also replaces the RegExp-based key matching in getChartableSensors with predicate functions, which are cleaner and avoid per-key regex compilation.

Mitigates the sensor sort order issues reported in #1866.

Signed-off-by: Pedro Lamas <pedrolamas@gmail.com>
@pedrolamas pedrolamas added this to the 1.37.2 milestone Jun 4, 2026
@pedrolamas pedrolamas requested a review from Copilot June 4, 2026 20:50
@pedrolamas pedrolamas added the GH - Bug Something isn't working label Jun 4, 2026

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Adjusts how temperature-related sensors are collected and ordered in the printer store to address Thermals panel ordering anomalies (reported in #1866), and simplifies getChartableSensors key matching by replacing type-name RegExp matching with predicate functions.

Changes:

  • Reworks printer/getSensors to build sensors in type-based groups and sort by name within each group.
  • Reworks printer/getChartableSensors to use startsWith-based predicates instead of per-group RegExp matching.
  • Updates chartable sensor key filtering/sorting to align with the new grouping approach.

Comment thread src/store/printer/getters.ts
Comment thread src/store/printer/getters.ts Outdated

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 1 out of 1 changed files in this pull request and generated 1 comment.

Comment thread src/store/printer/getters.ts

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 1 out of 1 changed files in this pull request and generated 1 comment.

Comment thread src/store/printer/getters.ts Outdated
Signed-off-by: Pedro Lamas <pedrolamas@gmail.com>

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 1 out of 1 changed files in this pull request and generated no new comments.

@pedrolamas pedrolamas enabled auto-merge (squash) June 4, 2026 21:50
@pedrolamas pedrolamas disabled auto-merge June 4, 2026 21:51
@pedrolamas pedrolamas merged commit 95f26a3 into fluidd-core:develop Jun 4, 2026
4 checks passed
@pedrolamas pedrolamas deleted the pedrolamas/fix-thermals-order branch June 4, 2026 21:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

GH - Bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants