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 |
|
t8y2
|
ce22d6a046
|
fix: focus new structure column input
|
2026-05-26 12:30:12 +08:00 |
|
t8y2
|
309c2d1555
|
fix: restore structure editor vertical scrolling
|
2026-05-26 12:26:21 +08:00 |
|
t8y2
|
dbd2b2bab5
|
fix: update tests for table structure editor tab conversion and type/length split
- Remove deleted Dialog.vue references from dialogOpenWatcher and structure tests
- Update presentation test assertions for tab layout and SearchableSelect
- Add schema to newQueryContext expected results (schema propagation)
- Make queryStore i18n resilient to missing Vue app context (tests)
- Fix regex patterns for oxfmt-formatted code
|
2026-05-24 22:52:58 +08:00 |
|
t8y2
|
a26a762b8c
|
fix(structure): compact editor layout
|
2026-05-22 18:53:50 +08:00 |
|
t8y2
|
b0a4061484
|
feat(structure): support column reordering
|
2026-05-22 16:43:14 +08:00 |
|
t8y2
|
69ee7f2d8b
|
fix(structure): initialize dialogs and edit clickhouse columns
|
2026-05-19 13:31:42 +08:00 |
|
t8y2
|
5b3b69f7fb
|
fix(structure): load editor on open
|
2026-05-19 12:58:10 +08:00 |
|
t8y2
|
cf46aec158
|
feat(structure): add DDL capability matrix
|
2026-05-19 12:15:49 +08:00 |
|
t8y2
|
06683c57b1
|
chore(repo): move desktop app under apps
|
2026-05-18 02:35:39 +08:00 |
|
t8y2
|
5dabdb3985
|
chore(repo): move app tests under packages
|
2026-05-18 02:23:58 +08:00 |
|