Skip to content
Source
Sign inSign up
pingdotgg/t3code

fix(preview): failed tabs no longer sit as a blank floating panel #7236

Closedgb1095(GitHub profile, opens in a new tab)wants to merge 17 commits intomain fromrefs/pull/7236/headopened View on GitHub

Showing 11 changed files with 137 additions and 18 deletions (loading 9).

x
0 of 11 viewed, 11 left
96 additions and 0 deletionsapps/desktop/src/preview/Manager.test.tsModified
View file
@@ -484,6 +484,7 @@
url: null,
title: null,
loading: false,
+ attached: false,
});
​
yield* manager.createTab("tab_1");
@@ -495,12 +496,106 @@
url: null,
title: null,
loading: false,
+ attached: false,
});
expect(fromId).not.toHaveBeenCalled();
}),
​
+ effectIt.effect("reports a failed navigation as unavailable automation", () =>
+ withManager((manager) =>
+ Effect.gen(function* () {
+ const listeners = new Map<string, (...args: unknown[]) => void>();
+ let url = "http://localhost:5173/";
+ let loading = false;
+ fromId.mockReturnValue({
+ id: 42,
+ isDestroyed: () => false,
+ getType: () => "webview",