Skip to content

Upgrade GPUI Kit 0.7.0 - #6

Merged
JetSquirrel merged 4 commits into
mainfrom
gpui-kit-0.7.0
Sep 28, 2026
Merged

JetSquirrel merged 4 commits into
mainfrom
gpui-kit-0.7.0

Conversation

@JetSquirrel

Copy link
Copy Markdown
Owner

Upgrade the UI toolkit to GPUI Kit v0.7.0 and adopt what it makes possible.

Changes

  • Upgrade to gpui-kit v0.7.0 — pin the toolkit, shell and component catalog to the v0.7.0 tag; open windows through gpui_kit::open_window instead of hand-wrapping a Root. The hidden export window gets the same Root as the main window, fixing a panic when a .dash app raises a dialog during export.
  • Underline the failing span when a query errors — parse DuckDB's LINE n caret position into a UTF-8 byte range and mark it in the SQL editor with a wavy underline and faint fill (theme danger color) via v0.7.0's decoration collections. Marks follow edits, stay out of undo history, and clear on the next run.
  • Draw dashboard charts honestly — a pivoted bar spec draws one grouped chart instead of one small chart per series, scatter draws unconnected points, and a pivoted line draws lines without the borrowed area fill. Hand-built on gpui_kit::base::plot, which v0.7.0 publishes without the styled component layer. Chart tooltips show the formatted value (4.4M) instead of the raw f64, and x labels spread by a width-aware count so date labels no longer collide at the edges.
  • Table and toolbar polish — result and dashboard tables fit column widths to sampled content (CJK-aware, via unicode-width); the title bar and export row compose as Toolbar/ToolbarGroup, gaining arrow-key focus traversal.
  • Give EmptyHeader its named slots in relation_panel — the example passed children where the component only accepts media/title/description slots; the empty state failed to materialize and logged an error every frame.

Pin the toolkit, shell and component catalog to the v0.7.0 tag and open
windows through gpui_kit::open_window instead of hand-wrapping a Root.
The hidden export window gets the same Root as the main window, which
fixes a panic when a .dash app raises a dialog during export.
Parse DuckDB's LINE n caret position into a UTF-8 byte range and mark it
in the editor with a wavy underline and a faint fill, both in the theme's
danger color, through v0.7.0's decoration collections. The marks follow
edits, stay out of undo history, and clear on the next run. A failed run
is captured per tab, so a late answer lands in the tab that asked.
- A pivoted bar spec now draws one grouped chart instead of one small
  chart per series, scatter draws unconnected points, and a pivoted line
  draws lines without the borrowed area fill — all hand-built on
  gpui_kit::base::plot, which v0.7.0 publishes without the styled layer.
- Chart tooltips show the formatted value (4.4M) instead of the raw f64,
  and x labels spread by a width-aware count so date labels no longer
  collide at the edges.
- Result and dashboard tables fit column widths to sampled content,
  CJK-aware, migrated from docs-onboarding (adds unicode-width).
- The title bar and export row compose as Toolbar/ToolbarGroup, gaining
  arrow-key focus traversal.
EmptyHeader never accepted children: media, title and description are
slot methods. The empty state failed to materialize and logged an error
every frame the panel showed it.
@JetSquirrel
JetSquirrel merged commit f5b4f02 into main Sep 28, 2026
2 of 3 checks passed
@JetSquirrel
JetSquirrel deleted the gpui-kit-0.7.0 branch September 28, 2026 16:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant