mirror of
https://github.com/Termix-SSH/Termix.git
synced 2026-10-30 15:15:24 +00:00
feat: drop the 2.8 columns, moves and aliases kept for a downgrade
This commit is contained in:
1 parent
d3d8269cb7
commit
61f46d2517
196 files changed
+29909
-10511
No files matched your search
@@ -47,6 +47,6 @@ describe("ConnectionScreen", () => {
|
||||
</ConnectionLogProvider>,
|
||||
);
|
||||
|
||||
expect(screen.getByText(/terminal\.connectionLogTitle/)).toBeTruthy();
|
||||
expect(screen.getByText(/sshAuth\.connectionLogTitle/)).toBeTruthy();
|
||||
});
|
||||
});
|
||||
@@ -48,7 +48,7 @@ function makeUser(overrides: Partial<AdminUser> = {}): AdminUser {
|
||||
id: "u2",
|
||||
username: "bob",
|
||||
isAdmin: false,
|
||||
isOidc: false,
|
||||
isExternal: false,
|
||||
passwordHash: "hash",
|
||||
dataUnlocked: true,
|
||||
...overrides,
|
||||
|
||||
@@ -175,7 +175,7 @@ describe("PRESETS.balanced", () => {
|
||||
});
|
||||
|
||||
describe("plugin areas", () => {
|
||||
it("moves version 1 docker and host metrics overrides to their plugins", () => {
|
||||
it("drops 2.8 area names, even from an old version", () => {
|
||||
const upgraded = sanitizeUiPreferences({
|
||||
version: 1,
|
||||
preset: "balanced",
|
||||
@@ -184,10 +184,7 @@ describe("plugin areas", () => {
|
||||
hostMetrics: { columns: 2 },
|
||||
},
|
||||
});
|
||||
expect(upgraded.overrides).toEqual({
|
||||
"plugin:docker": { containerLayout: "table" },
|
||||
"plugin:host-metrics": { columns: 2 },
|
||||
});
|
||||
expect(upgraded.overrides).toEqual({});
|
||||
});
|
||||
|
||||
it("resolves a plugin area from its presets and the user's overrides", () => {
|
||||
@@ -220,24 +217,12 @@ describe("plugin areas", () => {
|
||||
});
|
||||
|
||||
describe("areas that moved into plugins", () => {
|
||||
it("maps version 2 terminal and file manager overrides to their plugins", () => {
|
||||
it("drops the old names", () => {
|
||||
expect(
|
||||
sanitizeUiOverrides(
|
||||
{
|
||||
terminal: { toolbarDensity: "expanded" },
|
||||
fileManager: { viewMode: "list" },
|
||||
},
|
||||
2,
|
||||
),
|
||||
).toEqual({
|
||||
"plugin:ssh-terminal": { toolbarDensity: "expanded" },
|
||||
"plugin:file-manager": { viewMode: "list" },
|
||||
});
|
||||
});
|
||||
|
||||
it("drops the old names from a current payload", () => {
|
||||
expect(
|
||||
sanitizeUiOverrides({ terminal: { toolbarDensity: "icon" } }),
|
||||
sanitizeUiOverrides({
|
||||
terminal: { toolbarDensity: "icon" },
|
||||
fileManager: { viewMode: "list" },
|
||||
}),
|
||||
).toEqual({});
|
||||
});
|
||||
});
|
||||
Reference in new issue
Block a user