Skip to content

Commit fd1c2ef

Browse files
committed
fix(ui): stream polar plot updates as sweep progresses
Call upsertPolar after each successful point instead of only after the full sweep completes, so the polar chart populates live. Made-with: Cursor
1 parent 6620bb9 commit fd1c2ef

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

flexfoil-ui/src/components/panels/SolvePanel.tsx

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -612,13 +612,15 @@ export function SolvePanel() {
612612
if (res && fromCache) {
613613
points.push({ alpha: roundedAlpha, cl: res.cl ?? 0, cd: res.cd ?? 0, cm: res.cm ?? 0 });
614614
hits++;
615+
upsertPolar({ key: polarKey, label: polarLabel, points: [...points] });
615616
continue;
616617
}
617618

618619
if (res) {
619620
misses++;
620621
if (res.success) {
621622
points.push({ alpha: roundedAlpha, cl: res.cl, cd: res.cd, cm: res.cm });
623+
upsertPolar({ key: polarKey, label: polarLabel, points: [...points] });
622624
} else {
623625
failures++;
624626
appendEvent(caseId, {

0 commit comments

Comments
 (0)