Repository navigation
fix(geo-layers): preserve signed DGGS identifiers and exercise column tests - #11073
Conversation
Codex Review Summary: ✅ CompletedThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
[High impact] The PR appears safe to merge; no new actionable issues were found. SummaryThe PR preserves signed 64-bit cell identifiers, avoids geometry rebuilds on style-only updates, and documents column inputs.
Reviews (7) · Last reviewed commit: "fix(geo-layers): compare Arrow source ta..." · Reviewed by Greptile |
This comment has been minimized.
This comment has been minimized.
There was a problem hiding this comment.
Cursor Bugbot has reviewed your changes using default effort and found 1 potential issue.
❌ Bugbot Autofix is OFF. To automatically fix reported issues with cloud agents, have a team admin enable autofix in the Cursor dashboard.
Reviewed by Cursor Bugbot for commit cc9efdd. Configure here.
chrisgervang
left a comment
There was a problem hiding this comment.
Reviewed 0807829 after merge; follow-ups below. No P1s. The signed-id and test-harness fixes hold on master. Two #11055 P2s are still open, asked once more below.
Non-blocking: h3-hexagon-layer.ts:234-235 still repeats the renderLayers TSDoc line. Could one copy go?
Labels: P1 settle before this is merged, P2 can follow, Non-blocking optional.
| `highlightedObjectIndex` selects an expanded cell row in column mode. Picking reports | ||
| the source feature index. |
There was a problem hiding this comment.
P2: From #11055: this documents the behavior, but an info.index from onClick still highlights the wrong cell when rows hold lists. With [['9q8yy', '9q8yz'], ['9q8yx']], index 1 highlights 9q8yz from feature 0. The sentence is on all six pages.
Could expanded rows highlight by their feature index, so highlightedObjectIndex matches picking?
| // Compare semantic rows: fresh expansion alone must not invalidate geometry. | ||
| dataComparator: (next, previous) => | ||
| next.length === previous.length && | ||
| next.every((row, index) => { | ||
| const oldRow = previous[index]; | ||
| return ( | ||
| deepEqual(row.cell, oldRow.cell, -1) && | ||
| row.sourceIdentity === oldRow.sourceIdentity && | ||
| row.__source?.index === oldRow.__source?.index | ||
| ); | ||
| }), |
There was a problem hiding this comment.
P2: From #11055: style changes no longer rebuild geometry, and the opacity test covers it. Every prop change still runs renderCellColumns, which reads all data rows, rebuilds the row array and compares it row by row with deepEqual.
Could the rows be built in updateState when cells or data change, as H3ClusterLayer builds polygons?
| RGBA fill colors as a CPU-readable Arrow column in source feature order. Requires `cells` | ||
| and the same row count. Each value applies to all cells in that feature. Null values are unsupported. |
There was a problem hiding this comment.
Non-blocking: Colors pass to getFillColor as is, so they are 0–255. A Float32 column in 0–1, as Using with Arrow describes, would draw near-black and almost transparent. Could the color entries on all six pages give the range?
| RGBA fill colors as a CPU-readable Arrow column in source feature order. Requires `cells` | |
| and the same row count. Each value applies to all cells in that feature. Null values are unsupported. | |
| RGBA fill colors in 0–255 as a CPU-readable Arrow column in source feature order. Requires `cells` | |
| and the same row count. Each value applies to all cells in that feature. Null values are unsupported. |

Follow up on the reviews of landed #11055 and support signed Int64 DGGS identifiers.
highlightedObjectIndexsemantics.Validation: 21 Node tests, 10 browser tests, scoped typechecking and lint pass. GitHub CI passes on the latest commit, including package builds, coverage, WebGPU, website, Python and projection example.
Note
Low Risk
Targeted fixes and performance optimizations for DGGS column-mode layers with thorough test coverage.
Overview
Supports signed 64-bit integer (
Int64) cell identifiers in DGGS column inputs by reinterpreting them as unsigned 64-bit integers (BigInt.asUintN(64, cell)) for S2, H3, and A5 layers.Implements a semantic
dataComparatorand propagates update triggers inrenderCellColumnsso column style updates no longer invalidate geometry or trigger re-tessellation. Also forwardsdataComparatorto sublayers inPolygonLayer,H3HexagonLayer, andGeoCellLayer.Updates reference documentation across all DGGS layers to detail
cells, styling column props, picking semantics, and Arrow column requirements.Reviewed by Cursor Bugbot for commit 0807829. Bugbot is set up for automated code reviews on this repo. Configure here.