fix(connection): show UXDB in database picker

This commit is contained in:
t8y2 committed 2026-07-28 11:02:06 +08:00
1 parent 1ad9e663c7
commit 04b3262474
2 files changed
+4 -1

No files matched your search

@@ -2315,6 +2315,7 @@ const dbOptions: DbOption[] = [
{ value: "gbase", label: "GBase" }, { value: "gbase", label: "GBase" },
{ value: "kingbase", label: "KingBase" }, { value: "kingbase", label: "KingBase" },
{ value: "highgo", label: "瀚高 HighGo" }, { value: "highgo", label: "瀚高 HighGo" },
{ value: "uxdb", label: "优炫 UXDB" },
{ value: "yashandb", label: "崖山 YashanDB" }, { value: "yashandb", label: "崖山 YashanDB" },
{ value: "vastbase", label: "Vastbase" }, { value: "vastbase", label: "Vastbase" },
{ value: "redshift", label: "Redshift" }, { value: "redshift", label: "Redshift" },
@@ -2369,7 +2370,7 @@ const dbCategoryDefinitions: Array<{
{ {
key: "domestic", key: "domestic",
titleKey: "connection.databaseCategoryDomestic", titleKey: "connection.databaseCategoryDomestic",
optionValues: ["dm", "opengauss", "gaussdb", "kwdb", "tidb", "oceanbase", "goldendb", "tdsql", "polardb", "greatsql", "gbase", "kingbase", "highgo", "yashandb", "vastbase", "sundb", "oscar", "xugu"], optionValues: ["dm", "opengauss", "gaussdb", "kwdb", "tidb", "oceanbase", "goldendb", "tdsql", "polardb", "greatsql", "gbase", "kingbase", "highgo", "uxdb", "yashandb", "vastbase", "sundb", "oscar", "xugu"],
}, },
{ {
key: "lightweight", key: "lightweight",
+2
View File
@@ -34,4 +34,6 @@ test("ConnectionDialog database categories stay exhaustive", () => {
assert.doesNotThrow(() => assertCompleteDatabaseCategories(optionValues, categoryBlocks)); assert.doesNotThrow(() => assertCompleteDatabaseCategories(optionValues, categoryBlocks));
assert.ok(optionValues.includes("rabbitmq"), "rabbitmq must remain in dbOptions"); assert.ok(optionValues.includes("rabbitmq"), "rabbitmq must remain in dbOptions");
assert.ok(categoryBlocks.some((values) => values.includes("rabbitmq")), "rabbitmq must remain categorized"); assert.ok(categoryBlocks.some((values) => values.includes("rabbitmq")), "rabbitmq must remain categorized");
assert.ok(optionValues.includes("uxdb"), "uxdb must remain in dbOptions");
assert.ok(categoryBlocks.some((values) => values.includes("uxdb")), "uxdb must remain categorized");
}); });