dsh-data-window 0.1.2 → 0.1.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -1,5 +1,44 @@
1
1
  # Changelog
2
2
 
3
+ ## [0.1.3] — 2026-11-26
4
+
5
+ ### Added
6
+
7
+ - The run log's height is dragged from the 5px divider above its title bar (drag up
8
+ to grow, double-click to reset to the default). The height is stored per browser
9
+ in `localStorage` and restored on the next open; it is clamped so the workbench
10
+ keeps a usable area in a small window.
11
+ - Saved SQL: the editor's context menu and a console tab's menu can collect a
12
+ statement under a unique name together with its schema and table. Entries live in
13
+ one machine-wide 0600 file (`storages/dsh-data-window/favorites/favorites.json`),
14
+ written atomically, and are shared by every workspace like the tree.
15
+ - The resource manager is split into two tabs like DataGrip's Database window: a
16
+ **Databases** tab with the configured tree and a ★ **Favorites** tab that groups
17
+ saved statements by schema and then table (with a count badge and its own reload
18
+ button). Saving a statement switches to the favorites tab, expands its
19
+ schema/table and selects the new entry. Double-click opens a statement in the
20
+ matching schema's workbench; the node's menu opens, copies, edits
21
+ (rename/schema/table) or deletes it.
22
+ - The workbench indexes saved statements behind `@`: typing `@` opens a picker
23
+ filtered by name, schema or table, and Enter/Tab (or a click) replaces the
24
+ `@keyword` token with the statement, leaving the caret after it.
25
+
26
+ ### Fixed
27
+
28
+ - Input-method composition no longer triggers commands: the Enter that confirms a
29
+ Chinese/Japanese candidate (and the Escape that cancels it) is left to the IME
30
+ instead of submitting the favorite dialog, blurring an edited result cell,
31
+ closing a dialog, picking an `@` suggestion or running a statement. A short
32
+ grace period after `compositionend` covers browsers that deliver the confirming
33
+ Enter as a plain key event.
34
+
35
+ ### Changed
36
+
37
+ - The workspace refresh button moved from the top toolbar into the resource
38
+ manager's header, beside the AI and add-connection actions: the toolbar keeps the
39
+ workspace's identity and shell controls, and the explorer owns the actions that
40
+ act on its tree.
41
+
3
42
  ## [0.1.2] — 2026-11-26
4
43
 
5
44
  ### Added
package/README.md CHANGED
@@ -55,6 +55,14 @@ double-click on the divider restores its default width.
55
55
  - **Tab context menu** — right-click a console tab to close it, close the tabs on
56
56
  either side (or all of them), copy its reference (`schema.table` or `schema`), or
57
57
  put that reference into the chat composer when the chat input is open.
58
+ - **Saved SQL and a favorites tab** — right-click a statement in the editor (or a
59
+ console tab) and choose “Save SQL” to keep it under a unique name together with
60
+ its schema and table. The resource manager has two tabs like DataGrip's Database
61
+ window: the database tree and ★ Favorites, which groups the saved statements
62
+ schema → table → name; double-clicking one opens it in that schema's workbench.
63
+ Typing `@` in the editor indexes them by name, and the chosen statement is
64
+ inserted at the caret. Saving, renaming, copying and deleting never execute
65
+ anything.
58
66
  - **Paging for LIMIT queries** — a statement ending in `LIMIT` gets previous/next
59
67
  controls whose page size is that limit; the next page is built as
60
68
  `… LIMIT n OFFSET m` and run without touching the editor. An empty next page ends
@@ -63,7 +71,8 @@ double-click on the divider restores its default width.
63
71
  opens it in a dialog with a copy button (no extra work tab); on a database the same
64
72
  key (or the context menu) reads the create statement of every table in it.
65
73
  - **One workbench per database**, kept as tabs, with a result grid, copy-as-TSV,
66
- a row limit, a draggable editor/result split and a collapsible run log. Opening a
74
+ a row limit, a draggable editor/result split and a collapsible run log whose
75
+ height is dragged from its top edge (double-click resets it). Opening a
67
76
  table's rows never overwrites SQL you already typed: a second console is added
68
77
  instead.
69
78
  - **Export the page** — the result bar exports the current page (with any local cell