t8y2
2024171c8d
feat(grid): edit simple query results
2026-05-16 10:25:05 +08:00
t8y2
173b632853
feat: improve SQL editor completions
2026-05-16 00:25:06 +08:00
skyler
0099e1a262
feat(ai): add table mentions
...
Add table mentions to AI context, Ask/Agent mode selection, and related UI/i18n fixes.
2026-05-15 16:46:54 +08:00
t8y2
72dd4d728b
fix(editor): route save shortcut by context
2026-05-15 13:10:43 +08:00
t8y2
ea6b2bb36c
fix(hive): allow non-transactional grid edits
2026-05-13 20:04:42 +08:00
t8y2
e9158390c1
feat(shortcuts): add search focus shortcut
2026-05-13 17:51:20 +08:00
t8y2
c28820ef48
fix: make result tabs scrollable when many queries executed ( closes #245 )
2026-05-13 16:45:06 +08:00
t8y2
e1a07aae4a
fix(grid): sync WHERE filter input to tab store on every keystroke
...
The previous fix (8032c63 ) only persisted whereInput when the user
triggered reload/paginate/sort. Typing a condition and switching tabs
without executing still lost it because the local ref was destroyed
on component unmount.
Emit update:whereInput on every change so ContentArea writes the
value to activeTab.whereInput immediately.
Fixes #232
2026-05-12 23:05:29 +08:00
t8y2
9463ff07a7
fix(grid): preserve page size when reloading data after save
...
The reload event did not carry limit/offset, so buildTableSelectSql
always fell back to its default LIMIT 100, resetting 1000-row pages
back to 100 after every commit.
2026-05-12 13:55:15 +08:00
t8y2
8032c63727
fix(grid): persist WHERE filter input across tab switches ( closes #210 )
...
whereFilterInput was a component-local ref that got lost when switching
tabs because DataGrid is destroyed and recreated via :key binding.
Store whereInput in the QueryTab state and pass it as initialWhereInput
prop so it survives tab switches.
2026-05-11 12:24:08 +08:00
t8y2
cb70625bd8
fix(objects): save SQL Server object source definitions
2026-05-11 12:17:18 +08:00
t8y2
03bea705e7
feat(objects): edit database object source
2026-05-11 11:48:46 +08:00
t8y2
0e0195f734
feat(objects): add virtual object browser
2026-05-10 18:32:24 +08:00
t8y2
cac383e6bf
feat(sql): add saved SQL library
2026-05-10 00:33:25 +08:00
t8y2
9b81fa5f38
fix(editor): improve SQL Server editing support
2026-05-09 18:17:56 +08:00
rarnu
9261cb71a2
1. src/components/grid/DataGrid.vue
...
- 左侧搜索框:移除了 WHERE 支持(isWhereSearch 永远返回 false),现在是纯客户端文本过滤。保留了列名代码提示功能(Tab 补全、箭头导航)。
- WHERE 框:新增列名代码提示(独立的下拉建议面板),支持单双引号和小括号自动配对,Enter 直接应用过滤。
- ORDER BY 框:新增列名代码提示(同样的建议面板),Enter 直接应用排序。
- 刷新/回滚/提交:reload emit 现在传递 4 个参数 (sql, searchText, whereInput, orderBy),确保刷新后所有条件不丢失。
- 分页/排序:统一使用新的 currentWhereInput() 函数,替代已废弃的 activeWhereInput。
- 删除了 applyWhereSearch() 和 onSearchEnter()(左侧搜索不再需要执行 WHERE 查询)。
2. src/composables/useDataGridActions.ts
- onReloadData() 签名改为接受 4 个参数 (sql, searchText, whereInput, orderBy)。
- table-data 模式刷新时,用 buildTableSql(tab, { whereInput, orderBy }) 重建 SQL,保留 WHERE 和 ORDER BY 条件。
3. src/components/layout/ContentArea.vue
- reload emit 签名同步更新为 4 个参数。
- results 模式和 table-data 模式两个 DataGrid 的 @reload 处理器都转发全部 4 个参数。
4. src/App.vue
- ContentArea 的 @reload 处理器转发 4 个参数给 onReloadData()。
2026-05-09 15:04:06 +08:00
t8y2
70b55fe49a
feat: add independent WHERE and ORDER BY filter inputs to data grid ( #165 )
...
- Split WHERE and ORDER BY into separate inputs alongside search bar
- Three equal sections: Search | WHERE | ORDER BY with border separators
- Preserve tableMeta on error so filters remain visible after failed queries
- Show schema@database format in table data badge
2026-05-09 00:11:46 +08:00
Bacon2994
3b4b6c1ff7
fix(query): 修复查询结果表头提示与全量排序 ( #164 )
...
* fix(grid): 修复查询结果表头提示与排序
修复 MySQL 查询结果列元数据取错库名的问题,并补齐查询结果全量排序链路,避免表头提示与排序行为失效。
* fix(query): 修复结果排序重复列名报错
2026-05-08 18:31:09 +08:00
rarnu
47ad960bbb
Fix: DataGrid数据集和工具栏的修复及加强 ( #157 )
...
* fix: 修复结果集内的数据过滤功能
* add: 将原先误删的WHERE查询加回
* add: 合并事务栏和搜索栏,并且在结果集中不启用搜索功能
* add: 修复在表数据和结果集模式下,DataGrid刷新时未保留查询条件的问题,将表数据和结果集的处理逻辑进行拆分
* add: 与主分支合并,解决冲突
* add: 恢复i18n
* add: 恢复useDataGridActions.ts
* add: 恢复ContentArea.vue
* add: 恢复DataGrid.vue
* fix: 修复括号自动配对的bug
* add: 将DDL按钮移到表数据编辑的第一行尾,并且不在DataGrid中显示
2026-05-08 16:04:21 +08:00
t8y2
631db17a08
refactor: merge data table info bar and transaction toolbar into one row
...
Move refresh/commit/rollback buttons from DataGrid's internal toolbar
to ContentArea's table info header. Remove the redundant second row
and the column count display.
2026-05-07 23:48:51 +08:00
rarnu
53c5c28542
fix: 修复结果集内的数据过滤功能 ( #145 )
2026-05-07 22:05:27 +08:00
rarnu
814fda7433
add: 增加对于查询得到的结果集直接进行数据编辑的功能。当查询是单表且包含主键(有联合主键时包含全部主键)时,可以在结果集内双击单元格修改数据,修改结果以事务形式提交或回滚。
2026-05-07 15:09:59 +08:00
t8y2
ecbd94c7be
fix(grid): preserve sort order when paginating ( #128 )
2026-05-07 10:44:11 +08:00
rarnu
969f441753
add: 对SQL编辑器增加Ctrl(Mac下是Cmd)+左键点击的功能,点击表名可以查看建表DDL,点击列名可以查看列信息 ( #122 )
...
* add: 对SQL编辑器增加Ctrl(Mac下是Cmd)+左键点击的功能,点击表名可以查看建表DDL,点击列名可以查看列信息
* add: 修复联表情况下获取列信息的问题
* fix: 修复联表场景下的SQL语句提示
* remove: 移除不需要的调试打印
* add: 补充'列详情'多语言字段
* remove: 移除不必要的函数
* remove: 移除不必要的导入
* add: 目前会分析SQL语句内引用的表,并且只加载对应的表内的列信息,不再对全表做列信息拉取
2026-05-07 01:04:52 +08:00
t8y2
7a71c4866d
feat(ContentArea): enhance tab display with improved styling for table name and database info
2026-05-05 16:55:14 +08:00
t8y2
4cef22904b
feat(chart): add chart functionality with ECharts integration and update output view options
2026-05-05 16:53:26 +08:00
t8y2
3acd9280ac
chore: add oxfmt + husky + lint-staged for code formatting and CI format checks
2026-05-05 15:41:34 +08:00
t8y2
bdd8b3fa03
refactor: split App.vue into composables and layout components
...
Extract 11 composables and 5 layout components from App.vue, reducing it
from 1921 to 327 lines. Unify dialog overlay style across DialogContent
and DialogScrollContent for consistent backdrop appearance.
2026-05-05 04:14:00 +08:00