diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 59f6a9f..12d7527 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -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 diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index f16e026..99015be 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -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 @@ -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 ``` -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 diff --git a/README.md b/README.md index 59d0231..e77088e 100644 --- a/README.md +++ b/README.md @@ -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/) @@ -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 diff --git a/ROADMAP.md b/ROADMAP.md index e69a123..4ff962d 100644 --- a/ROADMAP.md +++ b/ROADMAP.md @@ -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. diff --git a/site/astro.config.mjs b/site/astro.config.mjs index 1910831..b1e304e 100644 --- a/site/astro.config.mjs +++ b/site/astro.config.mjs @@ -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', ], diff --git a/site/src/content/docs/index.mdx b/site/src/content/docs/index.mdx index 60e2fc4..677a65d 100644 --- a/site/src/content/docs/index.mdx +++ b/site/src/content/docs/index.mdx @@ -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