Skip to content

test(render): render CollisionFilterExtension cases under map, globe and orthographic views - #10663

Merged
chrisgervang merged 3 commits into
masterfrom
claude/test-collision-filter-views-GveWO
Nov 3, 2026
Merged

chrisgervang merged 3 commits into
masterfrom
claude/test-collision-filter-views-GveWO

Conversation

@chrisgervang

@chrisgervang chrisgervang commented Sep 7, 2026 •

Copy link
Copy Markdown
Collaborator

Follow up of #10657

CollisionFilterExtension resolves collisions in clip space with the active view's matrices, so it needs no GlobeView fix. That makes it the reference consumer of expandViewMatrix. Tests only.

GlobeView
collision-filter-effect-simple-globe: 10 px ScatterplotLayer points thinned by the extension, San Francisco at zoom 11.5
collision-filter-effect-disabled-globe: same scene with collisionEnabled: false

No before images: all 11 cases pass on master with this PR's spec, so the images show current behavior and the PR only adds the coverage.

Change List

  • collision-filter-extension.spec.ts: all 5 variants also render under GlobeView; simple additionally under OrthographicView, using the preset's coordinateSystem and toPosition to convert the lng/lat data. Map names and goldens unchanged
  • 5 new -globe goldens and 1 simple-orthographic golden with the same thinning and priority order as the map twins. A few globe circles show crescent bites where a faded neighbor in front writes depth; the same happens without the extension on the sphere
  • Type the variant list as Partial<ScatterplotLayerProps & CollisionFilterExtensionProps> so the spec type-checks under the root tsconfig

Ran the render spec headless on WebGL, tsc and lint.


Note

Low Risk
Test-only changes that expand render test coverage with no impact on production code.

Overview
Expands render test coverage for CollisionFilterExtension across multiple view presets using expandViewMatrix.

All five test variants are now tested under both MapView and GlobeView, with the simple case additionally covering OrthographicView via preset-derived coordinate systems and position transformations. Test cases are also explicitly typed against layer and extension props.

Reviewed by Cursor Bugbot for commit cbf6fc9. Bugbot is set up for automated code reviews on this repo. Configure here.

@coveralls

coveralls commented Sep 7, 2026 •

Copy link
Copy Markdown

Coverage Status

coverage: 84.457%. remained the same — claude/test-collision-filter-views-GveWO into master

Base automatically changed from claude/globe-flat-common-helpers-GveWO to master September 25, 2026 17:34
@chrisgervang
chrisgervang force-pushed the claude/test-collision-filter-views-GveWO branch from 9f488bb to b99cdf5 Compare September 25, 2026 17:37
@chrisgervang
chrisgervang force-pushed the claude/test-collision-filter-views-GveWO branch from b99cdf5 to 13595ce Compare October 3, 2026 22:10
@chrisgervang chrisgervang added this to the v9.4 patch releases milestone Oct 4, 2026
…and orthographic views

CollisionFilterExtension resolves collisions in clip space using the active
view's matrices, so it is view-agnostic and needs no fix for GlobeView. This
makes it the reference consumer of the view-matrix render helper
(test/render/view-presets.ts): every collision-filter case is now expanded
with expandViewMatrix(['map', 'globe']) and the `simple` variant additionally
renders under OrthographicView via a layers factory that converts the SF
lng/lat data into the map preset's pixel space (preset.coordinateSystem /
preset.toPosition).

- The 5 existing map goldens are reused unchanged (names and images).
- +5 `-globe` goldens: same point cloud, same collision thinning and priority
  ordering as the map twins; globe curvature is negligible at zoom 11.5, but
  faded-out (near-transparent) circles still write depth and, on the sphere,
  sit at different depths, so a few circles show crescent bites where a
  fainter neighbour in front occludes them. This is generic translucent
  depth-write behaviour on GlobeView, not a collision resolution difference.
- +1 `simple-orthographic` golden: pixel-for-pixel the same picture as the map
  golden (99.74% pixelmatch), proving the cartesian preset.
- The variant list is typed (Partial<ScatterplotLayerProps &
  CollisionFilterExtensionProps>) so the spec type-checks under the root
  tsconfig; the previous spread of an untyped props union did not.

No source or docs changes.

Co-Authored-By: Claude Fable 5.1 <[email protected]>
Claude-Session: https://claude.ai/code/session_01FyzWaF5TmQPmGjh3Zr3XL9
@chrisgervang
chrisgervang force-pushed the claude/test-collision-filter-views-GveWO branch from 13595ce to 96da2fd Compare October 23, 2026 00:37
@chrisgervang
chrisgervang requested a review from ibgreen November 3, 2026 17:13
@chrisgervang
chrisgervang marked this pull request as ready for review November 3, 2026 17:13
@greptile-apps

greptile-apps Bot commented Nov 3, 2026 •

Copy link
Copy Markdown

RetriggerView in GreptileConfidence Score: 5/5

[Low impact] The PR appears safe to merge; both previous findings are fixed and no new issues were found.

Summary

Adds render coverage for CollisionFilterExtension across map, globe, and orthographic views.

  • Collision-filter render tests now cover globe and orthographic views.

Reviews (3) · Last reviewed commit: "test(render): describe the collision fil..." · Reviewed by Greptile

@ibgreen ibgreen 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 the render-test expansion across map, globe and orthographic views, including collision priority, disabled filtering and expanded collision radius. No blocking findings. Current GitHub Actions test workflow passes. Review based on source and CI; tests were not run locally.

@chrisgervang
chrisgervang merged commit 5b9b91d into master Nov 3, 2026
9 checks passed
@chrisgervang
chrisgervang deleted the claude/test-collision-filter-views-GveWO branch November 3, 2026 18:40
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.

4 participants