Skip to content

fix(geo-layers): preserve signed DGGS identifiers and exercise column tests - #11073

Merged
ibgreen merged 6 commits into
masterfrom
codex/review-dggs-followup
Nov 9, 2026
Merged

ibgreen merged 6 commits into
masterfrom
codex/review-dggs-followup

Conversation

@ibgreen

@ibgreen ibgreen commented Nov 9, 2026 •

Copy link
Copy Markdown
Collaborator

Follow up on the reviews of landed #11055 and support signed Int64 DGGS identifiers.

  • Reinterpret signed S2, H3, and A5 identifiers as unsigned 64-bit bit patterns before conversion.
  • Fix the browser test harness so per-case lifecycle and rendering assertions actually run.
  • Compare expanded cell rows semantically so style-only updates do not invalidate geometry; propagate style-column update triggers without caching expanded rows.
  • Document the column props in the standard API reference, including source-feature picking and expanded-cell highlightedObjectIndex semantics.

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 dataComparator and propagates update triggers in renderCellColumns so column style updates no longer invalidate geometry or trigger re-tessellation. Also forwards dataComparator to sublayers in PolygonLayer, H3HexagonLayer, and GeoCellLayer.

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.

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 9, 2026 •

Copy link
Copy Markdown
Codex Review Summary: ✅ Completed

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-11-09T11:50:21.046571Z be25be6 PR opened
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@greptile-apps

greptile-apps Bot commented Nov 9, 2026 •

Copy link
Copy Markdown

RetriggerView in GreptileConfidence Score: 5/5

[High impact] The PR appears safe to merge; no new actionable issues were found.

Summary

The PR preserves signed 64-bit cell identifiers, avoids geometry rebuilds on style-only updates, and documents column inputs.

  • Signed Arrow cell IDs keep their full 64-bit value.
  • Style changes leave unchanged cell geometry alone.
  • DGGS API pages explain column inputs and picking.

Reviews (7) · Last reviewed commit: "fix(geo-layers): compare Arrow source ta..." · Reviewed by Greptile

@coveralls

coveralls commented Nov 9, 2026 •

Copy link
Copy Markdown

Coverage Status

No base build to compare — codex/review-dggs-followup into master

@greptile-apps

This comment has been minimized.

@cursor cursor Bot left a comment •

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Stale Bugbot comment from a previous run.

@cursor cursor Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Cursor Bugbot has reviewed your changes using default effort and found 1 potential issue.

Fix All in Cursor

❌ 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.

@ibgreen
ibgreen merged commit 444baf7 into master Nov 9, 2026
9 checks passed
@ibgreen
ibgreen deleted the codex/review-dggs-followup branch November 9, 2026 15:20

@chrisgervang chrisgervang left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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.

Comment on lines +190 to +191
`highlightedObjectIndex` selects an expanded cell row in column mode. Picking reports
the source feature index.

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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?

Comment on lines +127 to +137
// 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
);
}),

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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?

Comment on lines +198 to +199
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.

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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?

Suggested change
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.

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.

3 participants