Commit Graph
51 Commits
Author SHA1 Message Date
t8y2 e03ce491af feat(ai): add guarded SQL auto execution 2026-05-11 02:27:56 +08:00
t8y2 043bd5dd8d fix: make GitHub link clickable in settings about page 2026-05-11 01:41:17 +08:00
t8y2 14680238b8 feat: editor enhancements, DataGrid refactor, and sidebar improvements
- Add bracket auto-close and matching to SQL editor (closeBrackets, bracketMatching)
- Show truncation warning banner when query results exceed 10,000 rows
- Extract shared export format functions (CSV/JSON/SQL INSERT) to lib/exportFormats.ts
- Add progressive rendering to sidebar tree (50-node cap with "show more")
- Fix connection node expanding before connect succeeds
- Split DataGrid.vue (3177→2535 lines) into 4 composables:
  useDataGridExport, useDataGridColumnResize, useDataGridSelection, useDataGridEditor
2026-05-11 01:08:07 +08:00
t8y2 f5b36a0f60 feat(history): track database activity 2026-05-10 14:18:20 +08:00
t8y2 10bfede1c7 feat(jdbc): add optional JDBC plugin support 2026-05-10 12:57:38 +08:00
t8y2 5a15d7a424 fix(ui): refine layout polish 2026-05-10 10:17:18 +08:00
t8y2 ebc905a478 feat(ui): add layout preference 2026-05-10 10:11:55 +08:00
t8y2 28f8c88ea9 feat(ui): refine panel and tab chrome 2026-05-10 09:54:21 +08:00
t8y2 9b81fa5f38 fix(editor): improve SQL Server editing support 2026-05-09 18:17:56 +08:00
t8y2 9663a9b9cb fix(settings): remove footer background layer 2026-05-09 18:11:37 +08:00
t8y2 ae254bf470 fix(ai): make conversation history toggleable 2026-05-09 18:08:12 +08:00
t8y2 4b0681f5af feat(settings): add about tab 2026-05-09 18:07:52 +08:00
t8y2 b8b4ef2e5a feat(editor): support tab indentation 2026-05-09 15:58:28 +08:00
t8y2 aefb6bf0ef fix: prevent SELECT with REPLACE/TRUNCATE functions from triggering danger warning
The DANGER_RE regex matched keywords anywhere in the SQL text, causing
SELECT queries using REPLACE() or TRUNCATE() functions to incorrectly
trigger the destructive-SQL warning dialog. Check only the first keyword
of each semicolon-separated statement instead.

Also fix dialog content overflow by adding min-w-0 to the <pre> element,
and move macOS frameworks config from tauri.conf.json to CI-only
TAURI_CONFIG so local `tauri dev` no longer requires libltdl/libodbc
to be globally installed.

Closes #135
2026-05-07 19:07:41 +08:00
Bacon2994 f9d6edb136 feat(connection): 支持设置默认数据库
统一新建查询的默认数据库选择逻辑,减少重复手动选择。
2026-05-07 16:49:56 +08:00
t8y2 14292dd2f8 fix(completion): prevent PostgreSQL completion failure from breaking all subsequent completions (#131) 2026-05-07 11:25:50 +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 4b11506bee feat(ai): add markdown rendering for AI assistant responses
Use `marked` library to parse LLM output so bold, headings, lists and
other markdown syntax render properly instead of showing raw symbols.
Also fix missing oxfmt darwin-arm64 native binding.
2026-05-06 22:33:30 +08:00
t8y2 0aa562f6ee fix: replace crypto.randomUUID with polyfill for HTTP contexts
crypto.randomUUID() is only available in secure contexts (HTTPS/localhost).
Add uuid() utility with fallback for HTTP deployments.
2026-05-05 23:51:07 +08:00
t8y2 0f40488bf1 feat(web): add password setup page, change password, and settings tabs
- First-time visitors see a password setup page instead of open access
- Password persisted to SQLite (env var DBX_PASSWORD takes priority)
- Add change password in settings dialog (Security tab, web only)
- Split settings dialog into Editor and Security tabs
- Argon2 hashing for all password storage
2026-05-05 22:22:04 +08:00
Wu Clan cc70e4b59c feat: optimize connection error alerts 2026-05-05 17:07:58 +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 e76b836eb4 feat: refactor database loading logic and update database options handling 2026-05-05 05:13:55 +08:00
t8y2 41bceffc0e feat: add web deployment with axum server, Docker support, and browser UI
Introduce src-web (axum HTTP server) exposing all 43 database operations
as REST APIs with SSE streaming for AI, transfers, and SQL file execution.
Frontend adapts automatically between Tauri and HTTP backends via api.ts.
Includes password authentication, Docker packaging, and login page.
2026-05-05 03:16:50 +08:00
t8y2 50f55bd6dc feat: enhance connection selection UI with database icons 2026-05-04 23:51:33 +08:00
t8y2 790791f946 feat: add execute mode settings and cursor position handling in SQL editor 2026-05-04 21:19:07 +08:00
t8y2 33cb298a8d feat: disable autocorrect and spellcheck for input fields across components 2026-05-04 02:55:19 +08:00
SuLea-IT 4d6cd5351c fix: address lineage review feedback 2026-05-03 06:02:39 +08:00
skyler fb2982500e Merge pull request #62 from rarnu/fix/ai-chat-api
fix: 大模型配置中的API选项边框
2026-05-02 21:56:12 +08:00
rarnu 1dbe49cafb fix: AI大模型配置,选择的API不明显,添加蓝色的边框来更明确的指出 2026-05-02 21:26:46 +08:00
t8y2 eab5556b6f feat: enhance AI streaming with reasoning support and UI updates 2026-05-02 20:43:49 +08:00
rarnu 4d2c34ecb1 add: 将loadTheme抽象到外部模块,使用DEFAULT_EDITOR_SETTINGS默认值,增加老的配置项迁移 2026-05-02 17:19:34 +08:00
rarnu 7722a17642 add: 增加对CodeMirror的设置页 2026-05-02 17:19:29 +08:00
rarnu 733baef65a fix: 删掉不存在的属性 2026-05-02 16:39:58 +08:00
rarnu 1209a5dad6 add: 增加设置的预览框 2026-05-02 15:34:36 +08:00
rarnu 4af43e35e1 add: 增加对CodeMirror的设置页 2026-05-02 14:58:55 +08:00
t8y2 3f71cd6dfa feat: enhance AI functionality with conversation management and cancellation 2026-05-02 03:05:02 +08:00
t8y2 4b12d34354 feat: extend SQL dialect support with additional keywords for enhanced autocompletion 2026-05-01 23:03:56 +08:00
t8y2 65cd285567 feat: add AiApiStyle support and integrate into AI completion and streaming functions 2026-05-01 12:10:32 +08:00
t8y2 e6ecb216d5 feat: add panel resizing functionality and styles for AI and sidebar panels 2026-05-01 00:35:59 +08:00
t8y2 1e15249da9 feat(ai): 添加流式数据处理和执行 SQL 功能 2026-04-30 21:46:57 +08:00
t8y2 9e7ed096b7 feat: add AI streaming functionality and enhance AI assistant features 2026-04-30 21:25:01 +08:00
t8y2 626c9c6049 refactor(ai): remove action type selector, let AI auto-detect intent 2026-04-30 20:18:10 +08:00
t8y2 21e3c9f436 feat(ai): redesign AI assistant as right-side chat panel
- Chat-style conversation UI with message bubbles
- Multi-turn dialog with context history
- SQL code blocks with "Apply" and "Copy" buttons
- Toggle via Sparkles button in toolbar
- Settings dialog preserved
2026-04-30 20:12:33 +08:00
Bacon2994 a248615819 feat: add sql editor completion (#33) 2026-04-30 17:49:19 +08:00
Bacon2994andzihan.wu 6b97f280ec fix: stabilize sql execution shortcuts (#29)
Co-authored-by: zihan.wu <zihan.wu@erry.com>
2026-04-30 17:12:54 +08:00
SuLea-ITandSuLe 5ee4f9300f feat: format sql (#19)
Co-authored-by: SuLe <sule@SuLedeMacBook-Air.local>
2026-04-30 15:56:16 +08:00
SuLea-ITandSuLe e3b8f57326 feat: execute selected sql (#13)
Co-authored-by: SuLe <sule@SuLedeMacBook-Air.local>
2026-04-30 14:38:26 +08:00
vrustx 68430d16c1 feat(safety): 增加危险删除操作二次确认 (#11)
将现有 SQL 危险确认弹窗扩展为可复用确认组件。

覆盖 SQL UPDATE/MERGE/REPLACE 等危险语句识别,并在识别前去除注释。

为表格行删除、Redis key/hash/list/set 删除、MongoDB 文档和字段删除接入确认弹窗。

补充中英文危险确认文案,保持本次提交只聚焦确认流程。
2026-04-30 14:00:57 +08:00
t8y2 ccb3667a0c feat: Enhance AI Assistant with new actions and context handling 2026-04-29 21:32:35 +08:00