Keep the context id in the app's entity records instead of on picked objects

registerEntityContext stamped __gevContextId on the entities, primitives and
carriers it registered, and selection and pick resolution read it back. It
is now the contextId field of the entity's own record.
This commit is contained in:
Sameh Khamis committed 2026-11-03 09:40:15 -08:00
1 parent 393a145137
commit 2394703c14
5 files changed
+18 -16

No files matched your search

+2 -2
View File
@@ -96,7 +96,7 @@ test('a sibling tracking layer keeps its own subject slot', () => {
test('the per-poll refresh updates values without stealing the selection', () => {
withWindow(() => {
selectTrackedSubjectContext(flightSubject('aaa001'));
const other = registerEntityContext({ __gevContextId: 'dc-7' }, {
const other = registerEntityContext({}, {
id: 'dc-7', layerId: 'local-datacenters', label: 'Datacenter 7',
});
selectEntityContext(other.entity);
@@ -130,7 +130,7 @@ test('deselecting a contact releases the shared slot', () => {
test('clearing one tracking layer leaves another layer selection alone', () => {
withWindow(() => {
const other = registerEntityContext({ __gevContextId: 'dam-3' }, {
const other = registerEntityContext({}, {
id: 'dam-3', layerId: 'local-dams', label: 'Dam 3',
});
selectEntityContext(other.entity);