Skip to content

fix(event-display): restore cell color when disabling selection - #1045

Open
dhairyajangir wants to merge 1 commit into
HSF:mainfrom
dhairyajangir:fix/restore-cell-color-on-selection-disable
Open

dhairyajangir wants to merge 1 commit into
HSF:mainfrom
dhairyajangir:fix/restore-cell-color-on-selection-disable

Conversation

@dhairyajangir

@dhairyajangir dhairyajangir commented Oct 18, 2026 •

Copy link
Copy Markdown
Contributor

Disabling object selection while an instanced calorimeter cell is hovered leaves the cell white. Call the existing clearInstanceHighlight() helper during shutdown to restore its saved color and clear the cached highlight.

Add regressions for instance indices 0 and 1 using a real two-cell InstancedMesh. They check original-color restoration, preservation of the neighboring cell, and the color attribute's rendering-update signal.

Upstream Node 20 CI passed on the submitted head, including lint, tests, documentation coverage and the production web build (run). Smoke tests and commit/title validation also passed. Local Node 22 full-suite validation remains unsuccessful and is disclosed below. The reviewed two-file patch is unchanged after rebasing onto main 8e8761a5. On Node 22.22.1:

  • Core TypeScript build, repository lint, all nine focused selection tests, documentation coverage (100%) and production web build passed. The web build emitted CommonJS/optimization warnings.
  • Full test:ci: 659 passed, two failed, seven skipped. Core: 416 passed/two failed; UI: 243 passed/seven skipped.
  • Session-codec's compression-bomb case exceeded its unchanged 5000 ms deadline. ColorOptions' random-color uniqueness assertion observed three distinct colors instead of four.

The relevant tests, implementations, Jest configuration, manifests and lockfile match upstream. The inspected failure paths do not call the changed selection cleanup; this establishes scope, not the failures' causes. The complete codec module separately passed all 11 tests on both upstream and candidate with the original timeout. An earlier interrupted attempt also recorded the codec timeout; no completed full-suite result is inferred from it. No test timeout, assertion, dependency or CI gate was relaxed.

The successful upstream results and the unsuccessful local full-suite results are separate observations; their difference does not establish the causes of the local failures. The renderer is mocked in the selection regressions; browser/GPU appearance and the complete pointer/toggle interaction remain unverified.

AI assistance was used for investigation, implementation, tests, review and validation.

Restore the original color of a hovered instanced calorimeter cell when
selection is disabled. Reuse the existing cleanup helper so the color
attribute is marked for an update and cached instance state is cleared.

Add regression cases for instance indices zero and one, checking color
restoration, neighboring-cell preservation and the update notification.
@github-actions

Copy link
Copy Markdown

🚀 Preview deployed: http://phoenix-pr-1045.surge.sh

Built from 3747a65.

@dhairyajangir
dhairyajangir marked this pull request as ready for review October 18, 2026 21:46

This branch was successfully deployed

1 active deployment
pull-request — 3747a657 Deployed Oct 18, 2026 by github-actions[bot]
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.

1 participant