Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -310,14 +310,15 @@ jobs:
exit 1
fi
done
for page in README.md site/src/content/docs/start.md site/src/content/docs/guides/columns.md; do
for page in README.md site/src/content/docs/start.md site/src/content/docs/index.mdx \
site/src/content/docs/guides/columns.md; do
if ! grep -qE "^gpui-kit-grid = (\"$requirement\"|\{ version = \"$requirement\")" "$page"; then
echo "::error file=$page::the install snippet does not ask for gpui-kit-grid $requirement"
exit 1
fi
done
kit="$(sed -n 's/^gpui-kit = "\([^"]*\)"$/\1/p' Cargo.toml)"
for page in README.md site/src/content/docs/start.md; do
for page in README.md site/src/content/docs/start.md site/src/content/docs/index.mdx; do
if ! grep -q "^gpui-kit = \"$kit\"$" "$page"; then
echo "::error file=$page::the install snippet does not ask for gpui-kit $kit, as Cargo.toml does"
exit 1
Expand Down
21 changes: 12 additions & 9 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -212,8 +212,10 @@ them.
the workspace's requirement on `gpui-kit-grid-macros` to `=X.Y.Z`, and
ask for the new version in the install snippets (`"2"` for 2.x) and the
compatibility table (`README.md`, `site/src/content/docs/start.md`,
`guides/columns.md`).
2. Merge it, then tag that commit of `main` and push the tag:
`index.mdx`, `guides/columns.md`), and add it to the releases in
`ROADMAP.md`.
2. Merge it, then tag that commit of `main` and push the tag; the Release
job publishes the crates on crates.io and opens the GitHub release:

```bash
git tag -a v2.0.0 -m "gpui-kit-grid 2.0.0" origin/main
Expand All @@ -239,17 +241,18 @@ and the workflow `ci.yml`, with no environment, so no token is stored. It
skips a version crates.io has, and from the second release on it checks
the grid's API against its last version first (`cargo semver-checks`).

crates.io takes a Trusted Publisher only for a crate it has, so the first
version of each crate goes up by hand, from the commit the tag will name and
before the tag, with a token of the `publish-new` scope (deleted after):
crates.io takes a Trusted Publisher only for a crate it has, so 2.0.0, the
first version of both crates, went up by hand (2026-11-19, from the commit
`v2.0.0` names, before the tag). A crate that joins the published ones
starts the same way: its first version by hand, from the commit the tag will
name, with a token of the `publish-new` scope (deleted after), then its
Trusted Publisher, then the tag:

```bash
cargo publish -p gpui-kit-grid-macros -p gpui-kit-grid
cargo publish -p <crate>
```

Then set the Trusted Publisher on both crates and push the tag; the Release
job finds both versions on crates.io and opens the GitHub release. A
published version cannot be deleted, only yanked (`cargo yank`).
A published version cannot be deleted, only yanked (`cargo yank`).

### The site

Expand Down
6 changes: 4 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
# gpui-kit-grid

[![crates.io](https://img.shields.io/crates/v/gpui-kit-grid)](https://crates.io/crates/gpui-kit-grid) [![docs.rs](https://docs.rs/gpui-kit-grid/badge.svg)](https://docs.rs/gpui-kit-grid)

A live GPUI data grid, for applications built with [gpui-kit](https://gpui-kit.com): a real-time table of hundreds of thousands of rows that takes thousands of updates per second from any thread, with change highlight and with sorting, filtering, grouping and trees in the background.

[![The quotes example: simulated stock quotes grouped by sector, each changed cell flashing green or red with an arrow, and live totals on the sector rows](https://raw.githubusercontent.com/GigLaboCom/gpui-kit-grid/main/.github/assets/quotes.gif)](https://gkg.giglabo.com/demo/quotes/)
Expand All @@ -8,9 +10,9 @@ The quotes example: every change highlighted as it arrives, live totals per sect

It is a separate crate on top of gpui-kit. Rows are addressed by key and written from any thread; a background ingest collapses updates by key and publishes snapshots; the order on screen is rebuilt in the background; one custom element paints the visible cells. The ideas come from the LiveGrid grid (WinForms), rethought for GPUI.

**Documentation: https://gkg.giglabo.com/** · [Getting started](https://gkg.giglabo.com/start/) · [Examples](https://gkg.giglabo.com/examples/) · [Live demos](https://gkg.giglabo.com/demo/) · [API](https://gkg.giglabo.com/api/)
**Documentation: https://gkg.giglabo.com/** · [Getting started](https://gkg.giglabo.com/start/) · [Examples](https://gkg.giglabo.com/examples/) · [Live demos](https://gkg.giglabo.com/demo/) · [API](https://docs.rs/gpui-kit-grid) · [crates.io](https://crates.io/crates/gpui-kit-grid)

> **Status:** stages 1–3 are done: the live core, grouping, aggregates and trees, then editing, elements in cells, export and drag and drop. The API will still change. What may come next is in [ROADMAP.md](https://gkg.giglabo.com/roadmap/).
> **Status:** version 2 is on [crates.io](https://crates.io/crates/gpui-kit-grid). Stages 1–3 are done: the live core, grouping, aggregates and trees, then editing, elements in cells, export and drag and drop. The API will still change, in major versions: one for each gpui-kit minor release the grid moves to. What may come next is in [ROADMAP.md](https://gkg.giglabo.com/roadmap/).

## Why a new grid when gpui-kit has DataTable

Expand Down
9 changes: 9 additions & 0 deletions ROADMAP.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,15 @@ Where gpui-kit-grid stands and what may come next.
| 3. Input and output | Time, icon, image and custom cell values, elements in cells, editing under live updates, export to files, row drag and drop, column chooser, `LiveGridHandle`, `#[derive(GridColumns)]` | Done |
| 4. Polish | See below | Not scheduled |

## Releases

| Version | Date | Where | gpui-kit | Rust |
|---|---|---|---|---|
| 2.0.0 | 2026-11-19 | [crates.io](https://crates.io/crates/gpui-kit-grid/2.0.0) | 0.10 | 1.98 |
| 1.0.0 | 2026-11-13 | GitHub, tag `v1.0.0` | git revision `146ab45` | 1.95 |

Each release's changes are in its [GitHub release](https://github.com/GigLaboCom/gpui-kit-grid/releases).

## Stage 3: input and output

Done. The final benchmark run is on the documentation site's Performance page. There was no separate manual pass in real windows: VoiceOver, input methods, CSV files in spreadsheet applications and the two editing defaults below are covered by the headless tests and the Linux end-to-end suite only, so problems found in use are fixed as they are reported.
Expand Down
2 changes: 2 additions & 0 deletions site/astro.config.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,8 @@ export default defineConfig({
'embedding',
// rustdoc, which the site's CI build writes into `api/`.
{ label: 'API', link: '/api/' },
// The released crates, and their API as docs.rs builds it.
{ label: 'crates.io', link: 'https://crates.io/crates/gpui-kit-grid' },
'roadmap',
'sponsor',
],
Expand Down
10 changes: 9 additions & 1 deletion site/src/content/docs/index.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,15 @@ import ProductGrid from '../../components/ProductGrid.astro';

## Try it

The quick start example, from a checkout of the repository: a window with 1000 trades that a producer thread keeps updating, sorted by price.
Add the grid to a gpui-kit application from crates.io, with the gpui-kit release it is built against ([Getting started](/start/)):

```toml frame="none"
[dependencies]
gpui-kit = "0.10"
gpui-kit-grid = "2"
```

Or run the quick start example from a checkout of the repository: a window with 1000 trades that a producer thread keeps updating, sorted by price.

```sh frame="none" wrap
cargo run --release -p gpui-kit-grid --example quickstart
Expand Down
Loading