feat(FN-2518): add remote TUI settings controls and routing

- Wire remote dashboard route contracts into CLI/TUI state and controller flows
- Add remote settings interaction UX in dashboard and dashboard-tui command paths
- Expand regression coverage for remote TUI behavior in dashboard and app test suites
- Document remote TUI controls and QR behavior in the CLI reference
- Add a changeset for @runfusion/fusion patch release
This commit is contained in:
Fusion
2026-04-26 01:20:32 -07:00
committed by gsxdsm
parent caf538d7d6
commit 984f7965f6
10 changed files with 717 additions and 75 deletions

View File

@@ -61,6 +61,7 @@ export class DashboardTUI {
private lastAutoKillAt = 0;
interactiveData: InteractiveData | null = null;
interactiveView: InteractiveView = "board";
interactiveInputLocked = false;
// Subscribers registered by the Ink App component.
private subscribers: Set<() => void> = new Set();
@@ -119,6 +120,7 @@ export class DashboardTUI {
mode: this.mode,
interactiveData: this.interactiveData,
interactiveView: this.interactiveView,
interactiveInputLocked: this.interactiveInputLocked,
autoKillVitestOnPressure: this.autoKillVitestOnPressure,
vitestKillThreshold: this.vitestKillThreshold,
};
@@ -324,6 +326,12 @@ export class DashboardTUI {
this.notify();
}
setInteractiveInputLocked(locked: boolean): void {
if (this.interactiveInputLocked === locked) return;
this.interactiveInputLocked = locked;
this.notify();
}
addLog(entry: Omit<LogEntry, "timestamp">): void {
// If the cursor was sitting on the most recent entry (or there were no
// entries yet), keep it pinned to the new tail so live logs follow the