fix(FN-2400): harden dashboard TUI log viewport budgeting

- Rework logs viewport calculation to budget by rendered rows and keep content above footer hints
- Add zero-row safety handling for short terminals with a dedicated expansion hint instead of overlapping output
- Cap wrapped log rendering by remaining row budget so long messages cannot overflow into footer space
- Add regression tests for footer-safe list windowing and wrapped-line truncation, plus a patch changeset for @runfusion/fusion
This commit is contained in:
Fusion
2026-04-24 06:00:00 -07:00
committed by gsxdsm
parent f078a4e946
commit f4d2a4bb58
5 changed files with 160 additions and 32 deletions

View File

@@ -2333,7 +2333,8 @@ describe("SettingsModal", () => {
render(<SettingsModal onClose={onClose} addToast={addToast} />);
await waitFor(() => expect(fetchSettings).toHaveBeenCalled());
expect(screen.getAllByText("Notifications").length).toBeGreaterThanOrEqual(1);
const notificationsLabels = await screen.findAllByText("Notifications");
expect(notificationsLabels.length).toBeGreaterThanOrEqual(1);
});
it("shows ntfy enable checkbox in Notifications section", async () => {