From 620ed4d9ca9450cbc3355e8ffaa7e097705ef62d Mon Sep 17 00:00:00 2001 From: firestar5683 <168790843+firestar5683@users.noreply.github.com> Date: Sun, 15 Nov 2026 16:53:50 -0600 Subject: [PATCH] Separate auto-learned settings from provisional FLM suggestions --- .../galaxy/tests/test_flm_ux_browser.mjs | 20 +++++++++++++++++++ openpilot/starpilot/galaxy/web/css/flm.css | 5 +++-- openpilot/starpilot/galaxy/web/js/flm.js | 8 +++++--- prebuilt.json | 2 +- 4 files changed, 29 insertions(+), 6 deletions(-) diff --git a/openpilot/starpilot/galaxy/tests/test_flm_ux_browser.mjs b/openpilot/starpilot/galaxy/tests/test_flm_ux_browser.mjs index 49168ece60..40b108b841 100644 --- a/openpilot/starpilot/galaxy/tests/test_flm_ux_browser.mjs +++ b/openpilot/starpilot/galaxy/tests/test_flm_ux_browser.mjs @@ -247,6 +247,11 @@ try { assert.equal(await execute('return document.querySelectorAll(".gx-tuner__groups>button").length'), 7) assert.equal(await execute('return document.querySelectorAll(".gx-tuner__idea-grid .gx-tuner__idea").length'), 1) assert.equal(await execute('return document.querySelectorAll(".gx-tuner__curve-summary [data-coordinate]").length'), 4) + assert(await execute(`const saved=document.querySelector('[aria-labelledby="tuner-saved-title"]'),suggestions=document.querySelector('[aria-labelledby="tuner-suggestions-title"]'),heading=document.querySelector('#tuner-suggestions-title'); + return saved.nextElementSibling===suggestions&&saved.textContent.includes('No saved adjustments reported.')&&saved.querySelector('h3').textContent==='Auto-learned settings'&& + heading.textContent==='Suggestions · needs more evidence'&&saved.getBoundingClientRect().bottomBoolean(heading.compareDocumentPosition(e)&Node.DOCUMENT_POSITION_FOLLOWING))`), 'One suggestions heading separates every steering and speed finding from the auto-learned settings') + checks.push(`${width}/${theme}/saved-and-suggestion-section-boundary`) await layout(`${width}/${theme}/ideas`) if (width === 1280) assert(await execute('const a=document.querySelector(".gx-tuner__idea-grid").getBoundingClientRect(),b=document.querySelector(".gx-tuner__curve-summary").getBoundingClientRect();return Math.abs(a.top-b.top)<1&&a.right :not(.gx-btn) { grid-column: 1 / -1; } -.gx-tuner__saved-list { display: grid;gap: 12px;border-radius: 14px;padding: 20px;background: color-mix(in srgb, var(--tuner-saved) 7%, var(--tuner-panel));border: 1px solid color-mix(in srgb, var(--tuner-saved) 35%, var(--tuner-border)); } -.gx-tuner__saved-list h4 { color: var(--tuner-saved);font-size: 16px; } +.gx-tuner .gx-tuner__saved-list { display: grid;gap: 12px;border-radius: 14px;padding: 20px;background: color-mix(in srgb, var(--tuner-saved) 7%, var(--tuner-panel));border: 1px solid color-mix(in srgb, var(--tuner-saved) 35%, var(--tuner-border)); } +.gx-tuner__tune-report { display: grid;gap: 24px; } +.gx-tuner__saved-list h3 { color: var(--tuner-saved);font-size: 21px;line-height: 1.3; } .gx-tuner__saved-list > div { display: flex;justify-content: space-between;gap: 16px;font-size: 14px; } .gx-tuner__saved-list p { font-size: 13px;color: var(--on-surface-variant);line-height: 1.6; } .gx-tuner .gx-tuner__tune-layout { grid-template-columns: minmax(0, 1fr);gap: 24px; } diff --git a/openpilot/starpilot/galaxy/web/js/flm.js b/openpilot/starpilot/galaxy/web/js/flm.js index 5be52ed16c..bcd255edcd 100644 --- a/openpilot/starpilot/galaxy/web/js/flm.js +++ b/openpilot/starpilot/galaxy/web/js/flm.js @@ -340,13 +340,15 @@ export const FlmPage = {

Make sense of your tune

Review what Auto Learn found, or adjust a setting yourself.

-

SUGGESTIONS FROM RECENT DRIVING

{{ review.title }}

{{ review.description }}

{{ review.tone === 'saved' ? 'Saved tune' : review.count ? 'Review only' : 'No new change' }}
-

{{ review.historical ? 'Earlier saved Auto Learn values' : offroad.configurationState === 'ready_for_next_drive' ? 'Saved for the next drive' : 'Saved Auto Learn values' }}

{{ parameterLabel(row.parameter) }}{{ dialPercent(row.value) }}

Saved does not mean applied now. The controller confirms use while driving.

+
+

Auto-learned settings

{{ savedSummary === 'Saved state not confirmed' ? 'Saved state not confirmed.' : 'No saved adjustments reported.' }}

+

SUGGESTIONS FROM RECENT DRIVING

{{ review.count ? 'Suggestions · needs more evidence' : 'No new suggestions' }}

These suggestions are not saved. Auto Learn needs more evidence before saving them automatically.

No additional suggestions were reported for this drive.

{{ review.count ? 'Review only' : 'No new change' }}

{{ review.manual.length }} steering {{ review.manual.length === 1 ? 'finding' : 'findings' }} · {{ review.curve.length }} speed-range {{ review.curve.length === 1 ? 'finding' : 'findings' }}. Viewing an idea does not change your tune.

-
{{ review.curve.length }} speed-range findings · suggested changes

Small steering corrections at different speeds

Auto Learn needs more evidence before changing these speed settings. These suggestions are not saved. Auto Learn manages this curve; your manual sliders are separate.

See all {{ review.curve.length }} findings
{{ curvePointLabel(idea.parameter) }}{{ ideaStatus(idea) }}
+
{{ review.curve.length }} speed-range findings · suggested changes

Small steering corrections at different speeds

Auto Learn manages this curve; your manual sliders are separate.

See all {{ review.curve.length }} findings
{{ curvePointLabel(idea.parameter) }}{{ ideaStatus(idea) }}
{{ review.other.length }} earlier grouped findings

This older report does not identify a single dial or absolute target for these findings. They are not changes to apply.

{{ readable(idea.parameter) }} · {{ recommendationText(idea) }} · {{ amount(idea.windows) }} recorded windows.

+

Explore your settings

Choose an area below. Amber labels show findings from your drive.

{{ group === 'friction' ? 'MANAGED BY AUTO LEARN' : 'YOUR MANUAL CONTROLS' }}

{{ selectedGroup.label }}

{{ selectedGroup.description }}

Moving a slider saves a manual override for your next drive and pauses Auto Learn. Zero removes the override. Reviewing a finding does neither.

diff --git a/prebuilt.json b/prebuilt.json index 54ecba8a02..4382b5c22d 100644 --- a/prebuilt.json +++ b/prebuilt.json @@ -1 +1 @@ -{"protected_inventory_sha256": "babded498136ff08ce705f8ec7ac8946b1e86eb1cd4e32a777b32b5ac0643fe5", "schema_version": 1} +{"protected_inventory_sha256": "dafd358ca29637270aa7178308ff1b22033135ebbe29f743b7536c29d9217555", "schema_version": 1}