dbx/packages/app-tests
Abeautifulsnow 310cc22b37
Fix/disable table comment for unsupported db (#518)
* fix(structure-editor): disable table comment input for databases that don't support comments (e.g. SQLite)

## 背景说明
SQLite 不支持表注释(COMMENT),但表注释输入框始终可编辑。用户修改注释后,SQL 预览显示暂无变更且应用变更按钮不可用,造成困惑的 UX。

## 修改内容
- 新增 isTableCommentDisabled 计算属性,基于 structureCapabilities.comment 控制禁用状态
- 表注释 Input 添加 :disabled 绑定,禁用时输入框变灰不可编辑
- 禁用时在输入框右侧显示 Info 图标,hover 显示 Tooltip 说明
- 三语言(zh-CN / en / es)新增 tableCommentUnsupported 翻译

## 影响范围
- SQLite、DuckDB 及未知数据库类型:输入框被禁用 + Tooltip 提示
- MySQL、PostgreSQL、ClickHouse 等支持注释的数据库:完全不受影响
- 后端 generate_comment_ddl 已有对等过滤(仅 Postgres/Oracle/ClickHouse 生成 COMMENT SQL)

## 测试
- 建议补充:dbType 为 sqlite 时 isTableCommentDisabled 为 true 的单元测试

* test(structure-editor): add tests for table comment disabled state and unsupported DB capabilities
2026-05-29 12:29:50 +08:00
..
actionActivation.test.ts chore(repo): move desktop app under apps 2026-05-18 02:35:39 +08:00
agentDriverInstallHint.test.ts fix(connection): respect oracle driver profile hints 2026-05-23 08:35:45 +08:00
agentDriverUpdateBadge.test.ts feat(jdbc): show plugin update notice 2026-05-18 21:48:46 +08:00
aiAgentPlan.test.ts chore(repo): move desktop app under apps 2026-05-18 02:35:39 +08:00
aiAgentStepPresentation.test.ts chore(repo): move desktop app under apps 2026-05-18 02:35:39 +08:00
aiAssistantModeMenu.test.ts fix(editor): update AI mode icons 2026-05-22 21:18:32 +08:00
aiMessageRender.test.ts feat(ai): highlight chat code with Shiki 2026-05-22 01:09:40 +08:00
aiPrompt.test.ts chore(repo): move desktop app under apps 2026-05-18 02:35:39 +08:00
aiPromptEval.test.ts chore(repo): move desktop app under apps 2026-05-18 02:35:39 +08:00
aiPromptKeyboard.test.ts fix(ai): ignore IME composition enter 2026-05-19 15:56:34 +08:00
aiSkills.test.ts chore(repo): move desktop app under apps 2026-05-18 02:35:39 +08:00
aiSqlExecutionPolicy.test.ts chore(repo): move desktop app under apps 2026-05-18 02:35:39 +08:00
aiTableMentions.test.ts chore(repo): move desktop app under apps 2026-05-18 02:35:39 +08:00
apiBackendContract.test.ts chore(repo): move desktop app under apps 2026-05-18 02:35:39 +08:00
appTabBarDataTabsMenu.test.ts fix(desktop): improve tab bar spacing and divider contrast 2026-05-21 17:47:48 +08:00
appTheme.test.ts fix(app): default app theme to light 2026-05-22 10:42:28 +08:00
appToolbarDropdownTooltip.test.ts feat(editor): follow app theme 2026-05-22 00:41:49 +08:00
appUpdateBadge.test.ts fix: use system proxy for app updates 2026-05-26 20:12:41 +08:00
cellDetailPresentation.test.ts fix(grid): sync value editor with selected cell 2026-05-28 18:31:57 +08:00
cellImageUrl.test.ts feat(grid): preview image URLs in cell details 2026-05-18 12:27:44 +08:00
cellValue.test.ts chore(repo): move desktop app under apps 2026-05-18 02:35:39 +08:00
clipboard.test.ts fix(app): add clipboard fallback for web copy 2026-05-19 13:51:38 +08:00
columnFormatter.test.ts fix(duckdb): normalize temporal display 2026-05-19 14:12:14 +08:00
configCrypto.test.ts chore(repo): move desktop app under apps 2026-05-18 02:35:39 +08:00
connectionDeepLink.test.ts Support DBX connection deep links (#359) 2026-05-20 16:10:14 +08:00
connectionDialogBigQuery.test.ts fix(connection): expose BigQuery auth params 2026-05-21 18:57:50 +08:00
connectionDialogEditOpen.test.ts feat(duckdb): create database file from connection form 2026-05-19 16:34:08 +08:00
connectionDialogOracleMode.test.ts test: update Oracle connection default to service_name in mode test 2026-05-23 16:04:33 +08:00
connectionDialogRedisSentinel.test.ts Add Redis cluster support and improve key loading 2026-05-28 00:08:59 +08:00
connectionDialogSapHana.test.ts fix(connection): support SAP HANA tenant routing 2026-05-21 00:32:19 +08:00
connectionDialogTls.test.ts feat(db): support TLS client certificates 2026-05-27 13:54:32 +08:00
connectionDialogUrlAutofill.test.ts fix(connection): resolve host from entered URL 2026-05-21 22:49:32 +08:00
connectionHealth.test.ts chore(repo): move desktop app under apps 2026-05-18 02:35:39 +08:00
connectionPresentation.test.ts chore(repo): move desktop app under apps 2026-05-18 02:35:39 +08:00
connectionSessionModel.test.ts fix: scope query connections by client session 2026-05-25 17:23:36 +08:00
connectionStorePinnedCleanup.test.ts fix(app-settings): persist and prune pinned tree nodes 2026-05-22 14:28:40 +08:00
connectionTreeToolbar.test.ts fix(sidebar): show group action without connections 2026-05-18 19:23:55 +08:00
connectionUrl.test.ts fix: add TLS connection settings 2026-05-26 17:32:05 +08:00
connectionUrlPlaceholder.test.ts fix(connection): expose BigQuery auth params 2026-05-21 18:57:50 +08:00
createDatabaseSql.test.ts refactor(sql): move builders to Rust 2026-05-23 01:28:52 +08:00
csvBackendExport.test.ts feat(export): move csv and xlsx generation to Rust backend 2026-05-22 14:56:40 +08:00
dataCompareBackend.test.ts feat: upgrade data compare sync planning 2026-05-28 01:05:15 +08:00
dataGridColumnFilter.test.ts refactor(sql): move builders to Rust 2026-05-23 01:28:52 +08:00
dataGridColumnNavigation.test.ts feat(grid): add table info column navigation 2026-05-21 22:26:10 +08:00
dataGridColumnVisibility.test.ts Improve data grid cell detail, navigation, and transpose UX (#342) 2026-05-20 09:43:40 +08:00
dataGridColumnWidth.test.ts chore(repo): move desktop app under apps 2026-05-18 02:35:39 +08:00
dataGridEditor.test.ts refactor(sql): move builders to Rust 2026-05-23 01:28:52 +08:00
dataGridFilterBuilder.test.ts feat(grid): add compact filter builder 2026-05-25 11:57:36 +08:00
dataGridRefreshSort.test.ts feat(grid): add compact filter builder 2026-05-25 11:57:36 +08:00
dataGridRowShortcutSource.test.ts feat(grid): add configurable keyboard shortcuts for copy and delete current row 2026-05-23 12:44:49 +08:00
dataGridSaveBackend.test.ts refactor(sql): move builders to Rust 2026-05-23 01:28:52 +08:00
dataGridSaveUi.test.ts fix(grid): keep save actions visible 2026-05-18 17:46:42 +08:00
dataGridScrollGutter.test.ts chore(repo): move desktop app under apps 2026-05-18 02:35:39 +08:00
dataGridSearchSplit.test.ts feat(grid): resize table filter panes 2026-05-20 17:01:37 +08:00
dataGridSelectionShortcuts.test.ts fix(grid): improve column selection and transpose highlights 2026-05-28 20:09:35 +08:00
dataGridSql.test.ts refactor(sql): move builders to Rust 2026-05-23 01:28:52 +08:00
dataGridTemporalEditor.test.ts feat(grid): use temporal inputs for date cells 2026-05-19 16:39:19 +08:00
dataGridToolbarLayout.test.ts fix(layout): prevent editor overflow over side panels 2026-05-22 17:16:36 +08:00
dataGridTranspose.test.ts fix(grid): enable editing in transpose view 2026-05-22 12:04:11 +08:00
dataGridTransposeSource.test.ts feat: improve data grid selection and copy 2026-05-26 18:26:31 +08:00
dataGridVuePerformance.test.ts fix(grid): remove virtual row memoization 2026-05-23 08:58:18 +08:00
databaseCapabilities.test.ts fix(db2): use schema tree mode for sidebar object loading 2026-05-22 14:52:12 +08:00
databaseExport.test.ts refactor(sql): move builders to Rust 2026-05-23 01:28:52 +08:00
databaseExportSelection.test.ts chore(repo): move desktop app under apps 2026-05-18 02:35:39 +08:00
databaseIconAssets.test.ts feat(database): add agent database profiles 2026-05-18 22:38:04 +08:00
databaseOptionSearch.test.ts chore(repo): move desktop app under apps 2026-05-18 02:35:39 +08:00
databaseSearch.test.ts refactor(sql): move builders to Rust 2026-05-23 01:28:52 +08:00
databaseSearchBackend.test.ts refactor(sql): move builders to Rust 2026-05-23 01:28:52 +08:00
databaseTree.test.ts fix: flatten duckdb primary schemas in sidebar 2026-05-27 02:33:21 +08:00
dbAdminSqlBackend.test.ts refactor(sql): move builders to Rust 2026-05-23 01:28:52 +08:00
defaultDatabase.test.ts chore(repo): move desktop app under apps 2026-05-18 02:35:39 +08:00
desktopTraySettingsMigration.test.ts fix(desktop): persist tray icon preference 2026-05-28 19:21:43 +08:00
desktopTraySettingsStartup.test.ts fix(desktop): persist tray icon preference 2026-05-28 19:21:43 +08:00
desktopUiScaleCapability.test.ts feat(desktop): add global UI zoom settings and shortcuts 2026-05-28 17:43:06 +08:00
diagramSvgExport.test.ts chore(repo): move desktop app under apps 2026-05-18 02:35:39 +08:00
diagramZoom.test.ts chore(repo): move desktop app under apps 2026-05-18 02:35:39 +08:00
dialogOpenWatcher.test.ts fix: update tests for table structure editor tab conversion and type/length split 2026-05-24 22:52:58 +08:00
dialogOverlayPerformance.test.ts fix(dialog): reduce overlay close jank 2026-05-18 16:52:09 +08:00
docsReleaseIntegration.test.ts fix(ci): redeploy docs after package publishing 2026-05-18 10:43:47 +08:00
domDensitySource.test.ts test(grid): update cell detail action tests to use displayIndex for consistency 2026-05-23 12:58:23 +08:00
driverInstallProgressUi.test.ts feat(drivers): queue agent installs 2026-05-18 17:46:59 +08:00
driverStoreAppearance.test.ts style(desktop): restore driver store appearance 2026-05-18 23:49:45 +08:00
editorCompletionTheme.test.ts fix: fix cargo fmt and update tests for completion/snippet changes 2026-05-27 18:26:22 +08:00
editorSystemFonts.test.ts feat(settings): support editor system fonts 2026-05-21 12:40:10 +08:00
editorThemeResolution.test.ts feat(editor): follow app theme 2026-05-22 00:41:49 +08:00
editorZoom.test.ts fix(editor): smooth sql zoom interactions 2026-05-21 00:08:47 +08:00
engineeringDiagram.test.ts chore(repo): move desktop app under apps 2026-05-18 02:35:39 +08:00
erDiagram.test.ts chore(repo): move desktop app under apps 2026-05-18 02:35:39 +08:00
explainPlan.test.ts refactor(sql): move builders to Rust 2026-05-23 01:28:52 +08:00
fieldLineage.test.ts chore(repo): move desktop app under apps 2026-05-18 02:35:39 +08:00
fileDropSql.test.ts refactor(sql): move builders to Rust 2026-05-23 01:28:52 +08:00
gridRowStatus.test.ts chore(repo): move desktop app under apps 2026-05-18 02:35:39 +08:00
gridSelection.test.ts fix(grid): improve column selection and transpose highlights 2026-05-28 20:09:35 +08:00
historyActions.test.ts chore(repo): move desktop app under apps 2026-05-18 02:35:39 +08:00
historyActivityKind.test.ts chore(repo): move desktop app under apps 2026-05-18 02:35:39 +08:00
historyAiAnalysis.test.ts chore(repo): move desktop app under apps 2026-05-18 02:35:39 +08:00
historyVirtualList.test.ts chore(repo): move desktop app under apps 2026-05-18 02:35:39 +08:00
imagePreviewViewer.test.ts fix(grid): simplify image preview controls 2026-05-18 12:49:24 +08:00
jdbcPluginRelease.test.ts feat(jdbc): show plugin update notice 2026-05-18 21:48:46 +08:00
keyboardShortcuts.test.ts feat(desktop): add global UI zoom settings and shortcuts 2026-05-28 17:43:06 +08:00
macosEntitlements.test.ts fix: support DuckDB extensions in macOS builds 2026-05-27 10:43:20 +08:00
mongoConnectionOptions.test.ts fix(mongodb): expose authentication database 2026-05-19 11:51:39 +08:00
mongoShellCommand.test.ts fix(mongodb): guard aggregate execution paths 2026-05-28 21:29:08 +08:00
newQueryContext.test.ts fix: update tests for table structure editor tab conversion and type/length split 2026-05-24 22:52:58 +08:00
objectBrowserRows.test.ts feat(objects): show object timestamps 2026-05-22 11:37:23 +08:00
objectRenameSql.test.ts refactor(sql): move builders to Rust 2026-05-23 01:28:52 +08:00
objectSourceEditor.test.ts refactor(sql): move builders to Rust 2026-05-23 01:28:52 +08:00
objectSourceEditorBackend.test.ts refactor(sql): move builders to Rust 2026-05-23 01:28:52 +08:00
openTabsPersistence.test.ts chore(repo): move desktop app under apps 2026-05-18 02:35:39 +08:00
oracleAgentFallback.test.ts fix(connection): preserve Oracle SID fallback 2026-05-21 18:42:39 +08:00
paginationPageSize.test.ts fix(connection): move query timeout into per-connection settings 2026-05-28 18:18:45 +08:00
pinnedItems.test.ts chore(repo): move desktop app under apps 2026-05-18 02:35:39 +08:00
pinnedTreeNodeIds.test.ts fix(app-settings): persist and prune pinned tree nodes 2026-05-22 14:28:40 +08:00
postgresSchemaSqlSource.test.ts fix(postgres): remove trailing comma in SQL query for table comments 2026-05-23 09:25:53 +08:00
queryEditorSearchReplace.test.ts fix(ci): make Emitter import unconditional and update defineExpose test regex 2026-05-28 22:09:54 +08:00
queryEditorSnippetRefresh.test.ts feat(sidebar): add compact object display mode 2026-05-29 01:17:46 +08:00
queryEditorZoomMeasure.test.ts fix: avoid derived table wrapping for SQL Server TOP pagination 2026-05-25 11:28:02 +08:00
queryExecutionState.test.ts chore(repo): move desktop app under apps 2026-05-18 02:35:39 +08:00
queryResultPaneCollapse.test.ts feat(editor): collapse query results pane 2026-05-22 16:29:22 +08:00
queryResultSqlBackend.test.ts fix: keep existing SQL Server TOP clauses 2026-05-25 16:51:18 +08:00
queryStore.test.ts fix(query): reload connection config before execute 2026-05-28 18:54:51 +08:00
redisCommandSafety.test.ts chore(repo): move desktop app under apps 2026-05-18 02:35:39 +08:00
redisCommandSession.test.ts feat(redis): improve key browser workflows 2026-05-20 18:54:18 +08:00
redisJsonViewerSource.test.ts perf: reduce high-density DOM memory (#404) 2026-05-22 14:02:13 +08:00
redisKeyBrowserCreateKey.test.ts fix: honor editor font in redis views 2026-05-26 18:44:00 +08:00
redisKeyTree.test.ts chore(repo): move desktop app under apps 2026-05-18 02:35:39 +08:00
redisSidebarFlushDb.test.ts fix(ci): align desktop tests with zoom changes 2026-05-28 17:51:36 +08:00
redisValuePresentation.test.ts feat(redis): add JSON value viewer 2026-05-22 10:58:30 +08:00
redisValueSearch.test.ts Add Redis cluster support and improve key loading 2026-05-28 00:08:59 +08:00
redisValueViewerLayout.test.ts feat(redis): improve key browser workflows 2026-05-20 18:54:18 +08:00
releasePresentation.test.ts chore(repo): move desktop app under apps 2026-05-18 02:35:39 +08:00
releaseWorkflow.test.ts fix(ci): install xdg-utils for Linux releases 2026-05-21 12:02:29 +08:00
schemaDiffBackend.test.ts feat(diff): move schema and data diff to Rust 2026-05-22 16:20:11 +08:00
schemaOptions.test.ts chore(repo): move desktop app under apps 2026-05-18 02:35:39 +08:00
schemaTreeCache.test.ts fix(app): dedupe tree object counts 2026-05-18 23:58:38 +08:00
selectContentPointerEvents.test.ts fix(select): enable outside pointer events lock by default 2026-05-22 21:04:19 +08:00
settingsDialogLayout.test.ts feat(settings): keep dialog open after apply 2026-05-28 20:36:56 +08:00
settingsStore.test.ts feat(desktop): add global UI zoom settings and shortcuts 2026-05-28 17:43:06 +08:00
sidebarActiveTabTarget.test.ts fix(sidebar): avoid scroll jumps on expansion 2026-05-23 01:35:53 +08:00
sidebarLayout.test.ts chore(repo): move desktop app under apps 2026-05-18 02:35:39 +08:00
sidebarObjectRefresh.test.ts fix(sidebar): preserve expansion after object rename 2026-05-18 22:17:45 +08:00
sidebarRenameFocus.test.ts fix(sidebar): keep group rename input focused 2026-05-18 19:18:20 +08:00
sidebarRenameInputStyle.test.ts fix(sidebar): keep group rename input focused 2026-05-18 19:18:20 +08:00
sidebarSearch.test.ts fix: align sidebar search matching 2026-05-26 11:57:12 +08:00
sidebarSearchScopeFilter.test.ts feat(sidebar): select active tab node 2026-05-21 23:32:07 +08:00
sidebarSearchTree.test.ts feat(sidebar): add node-type search scopes for tree filtering 2026-05-21 22:38:18 +08:00
sidebarTableNameDisplay.test.ts feat(sidebar): hide configured table prefixes 2026-05-21 22:56:42 +08:00
sidebarTableNameDisplaySource.test.ts feat(sidebar): hide configured table prefixes 2026-05-21 22:56:42 +08:00
sidebarTreeItemLayout.test.ts chore(repo): move desktop app under apps 2026-05-18 02:35:39 +08:00
sqlAnalysis.test.ts fix: support DuckDB extensions in macOS builds 2026-05-27 10:43:20 +08:00
sqlCompletion.test.ts fix: fix cargo fmt and update tests for completion/snippet changes 2026-05-27 18:26:22 +08:00
sqlDiagnostics.test.ts chore(repo): move desktop app under apps 2026-05-18 02:35:39 +08:00
sqlEditabilityBackend.test.ts feat(query): move SQL editability analysis to Rust 2026-05-22 15:09:31 +08:00
sqlExecutionTarget.test.ts chore(repo): move desktop app under apps 2026-05-18 02:35:39 +08:00
sqlFileOpen.test.ts chore(repo): move desktop app under apps 2026-05-18 02:35:39 +08:00
sqlFormatter.test.ts chore(repo): move desktop app under apps 2026-05-18 02:35:39 +08:00
sqlMetadataRefresh.test.ts chore(repo): move desktop app under apps 2026-05-18 02:35:39 +08:00
sqlSemanticDiagnostics.test.ts feat(editor): add SQL semantic diagnostics 2026-05-22 14:22:58 +08:00
sqlServerTree.test.ts chore(repo): move desktop app under apps 2026-05-18 02:35:39 +08:00
sqlStatementBackend.test.ts fix(sql): add databaseType parameter to findStatementAtCursor function 2026-05-24 10:30:58 +08:00
sqlserverSemanticDiagnostics.test.ts fix(sqlserver): avoid false unknown column diagnostics 2026-05-27 23:07:47 +08:00
startupChunkBoundaries.test.ts feat(sidebar): add compact object display mode 2026-05-29 01:17:46 +08:00
syncChangelog.test.ts feat(ci): cache changelog translations 2026-05-18 10:43:40 +08:00
tabCloseActions.test.ts chore(repo): move desktop app under apps 2026-05-18 02:35:39 +08:00
tableDataExport.test.ts refactor(sql): move builders to Rust 2026-05-23 01:28:52 +08:00
tableEditing.test.ts fix(grid): default keyless edits for SQL tables 2026-05-21 01:34:45 +08:00
tableImport.test.ts chore(repo): move desktop app under apps 2026-05-18 02:35:39 +08:00
tableSelectSqlBackend.test.ts refactor(sql): move builders to Rust 2026-05-23 01:28:52 +08:00
tableStructureCapabilities.test.ts Fix/disable table comment for unsupported db (#518) 2026-05-29 12:29:50 +08:00
tableStructureEditorPresentation.test.ts Fix/disable table comment for unsupported db (#518) 2026-05-29 12:29:50 +08:00
tableStructureEditorState.test.ts feat(editor): add extended column properties support for MySQL, PostgreSQL, and SQL Server 2026-05-29 00:41:51 +08:00
tableStructureSqlBackend.test.ts fix: update tests for table structure editor tab conversion and type/length split 2026-05-24 22:52:58 +08:00
tableTree.test.ts fix(app): separate view source tabs and trim view metadata 2026-05-23 13:08:19 +08:00
tauriRuntime.test.ts chore(repo): move desktop app under apps 2026-05-18 02:35:39 +08:00
textBackendExport.test.ts feat(export): move text exports to Rust 2026-05-22 15:41:33 +08:00
transferProgressState.test.ts fix: continue transfer after table failure 2026-05-28 16:11:29 +08:00
treeNodeClick.test.ts fix(sidebar): copy selected name in single-click mode 2026-05-22 18:04:49 +08:00
treeNodeContext.test.ts fix(sidebar): support catalogless schema trees 2026-05-19 15:07:25 +08:00
treeRefreshTarget.test.ts chore(repo): move desktop app under apps 2026-05-18 02:35:39 +08:00
useFlatTree.test.ts fix(sidebar): keep connection expansion stable 2026-05-23 01:32:51 +08:00
useSqlExecution.test.ts chore(repo): move desktop app under apps 2026-05-18 02:35:39 +08:00
viewDdl.test.ts refactor(sql): move builders to Rust 2026-05-23 01:28:52 +08:00
visibleDatabases.test.ts fix: let users opt into system databases 2026-05-26 12:06:48 +08:00
webDriverManagement.test.ts fix(web): support offline driver zip import 2026-05-21 11:40:05 +08:00
webRuntimeCompatibility.test.ts fix(connection): respect oracle driver profile hints 2026-05-23 08:35:45 +08:00
windowControlsFullscreenInset.test.ts fix(app): remove mac fullscreen toolbar gap 2026-05-21 10:42:03 +08:00
windowsInstallerConfig.test.ts fix: preserve Windows data during upgrades 2026-05-25 16:52:43 +08:00
xlsxBackendExport.test.ts feat(export): move csv and xlsx generation to Rust backend 2026-05-22 14:56:40 +08:00
xlsxExport.test.ts chore(repo): move desktop app under apps 2026-05-18 02:35:39 +08:00