Skip to content
Source
Sign inSign up
pingdotgg/t3code

refactor: remove obsolete code #9917

Mergedt3dotgg(GitHub profile, opens in a new tab)merged 5 commits intomain fromrefs/pull/9917/headmerged by juliusmarminge View on GitHub

Showing 116 changed files with 27 additions and 9 deletions (loading 113).

x
0 of 116 viewed, 116 left
0 additions and 1 deletionapps/desktop/src/app/DesktopAppIdentity.test.tsModified
View file
@@ -57,7 +57,6 @@
}),
setAppUserModelId: () => Effect.void,
getAppMetrics: Effect.succeed([]),
- isDefaultProtocolClient: () => Effect.succeed(false),
setAsDefaultProtocolClient: () => Effect.succeed(true),
setDesktopName: () => Effect.void,
setDockIcon: (iconPath) =>
27 additions and 7 deletionsapps/desktop/src/app/DesktopConnectionCatalogStore.test.tsModified
View file
@@ -3,6 +3,7 @@
import { ConnectionCatalogDocument } from "@t3tools/client-runtime/platform";
import { EnvironmentId, type PersistedSavedEnvironmentRecord } from "@t3tools/contracts";
import * as Effect from "effect/Effect";
+import * as Encoding from "effect/Encoding";
import * as FileSystem from "effect/FileSystem";
import * as Path from "effect/Path";
import * as Layer from "effect/Layer";
@@ -22,6 +23,11 @@
const decodeConnectionCatalog = Schema.decodeEffect(
Schema.fromJsonString(ConnectionCatalogDocument),
);
+const encodeLegacySavedEnvironments = Schema.encodeEffect(
+ Schema.fromJsonString(
+ Schema.Struct({ version: Schema.Literal(1), records: Schema.Array(Schema.Unknown) }),
+ ),
+);