Skip to content

Extract the rendered entity ID codec out of renderedEntities - #2126

Closed
kmcginnes wants to merge 1 commit into
test-style-data-lockstepfrom
extract-rendered-entity-ids
Closed

Extract the rendered entity ID codec out of renderedEntities#2126
kmcginnes wants to merge 1 commit into
test-style-data-lockstepfrom
extract-rendered-entity-ids

Conversation

@kmcginnes

Copy link
Copy Markdown
Collaborator

Description

renderedEntities.ts had accumulated four unrelated concerns: a pure string ID codec, the canvas visibility atom, the style scope, and the cytoscape render hooks. Only the last is what the module name describes.

The codec has no coupling to the rest — no React, no Jotai, no state — and was exactly the unit the first four test blocks covered, so it moves out whole along with them. 263 lines down to 193. Pure move: no behaviour, signature, or exported name changes, and the barrel keeps every symbol public at the same path.

No deep import paths needed updating; every consumer already imported through @/core.

How to read

renderedEntityIds.ts and its test are the moved code. The diff on renderedEntities.ts is deletions plus one import.

`renderedEntities.ts` had accumulated four unrelated concerns: a pure string ID
codec, the canvas visibility atom, the style scope, and the Cytoscape render
hooks. Only the last is what the module name describes.

The codec has no coupling to the rest — no React, no Jotai, no state — and is
exactly the unit the first four test blocks covered, so it moves out whole along
with them. 263 lines down to 193.
@kmcginnes
kmcginnes deleted the branch test-style-data-lockstep August 14, 2026 21:11
@kmcginnes

Copy link
Copy Markdown
Collaborator Author

Superseded by #2128, which consolidates this stack into a single PR targeting #2112. Same commits, same end state — the branch there is byte-identical to the tree these were cut from, rebased onto schema-view-style-perf after #2118 was squash-merged into it.

@kmcginnes kmcginnes closed this Aug 14, 2026
@kmcginnes
kmcginnes deleted the extract-rendered-entity-ids branch August 14, 2026 21:11
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