refactor(desktop): harden workspace shell foundation

Co-Authored-By: Paperclip <noreply@paperclip.ing>
This commit is contained in:
Senior Frontend Engineer
2026-03-31 04:03:38 +00:00
parent 7c1abf2fd1
commit 291f744e0f
10 changed files with 805 additions and 82 deletions

View File

@@ -0,0 +1,53 @@
export const localSmokeFixtureProfileId = "redis-local-fixture";
export const localSmokeFixtureSearchText = "smoke:*";
export const localSmokeFixtureExpectedKeys = [
"smoke:string",
"smoke:string:ttl",
"smoke:hash",
"smoke:list",
"smoke:set",
"smoke:zset",
"smoke:stream",
] as const;
export const localSmokeFixtureCommandPresets = [
{
id: "ping",
label: "PING",
command: "PING",
summary: "Validate the desktop command bridge against the seeded fixture.",
},
{
id: "get-string",
label: "GET smoke:string",
command: "GET smoke:string",
summary: "Verify the string read path against the seeded smoke key.",
},
{
id: "ttl-string",
label: "TTL smoke:string:ttl",
command: "TTL smoke:string:ttl",
summary: "Verify the TTL path before using the inspector controls.",
},
] as const;
type LocalSmokeFixtureTarget = {
id: string;
target: {
host: string;
port: number;
database: number;
};
};
export function isLocalSmokeFixtureConnection(
connection: LocalSmokeFixtureTarget,
) {
return (
connection.id === localSmokeFixtureProfileId ||
(connection.target.host === "127.0.0.1" &&
connection.target.port === 6380 &&
connection.target.database === 0)
);
}