Visualizer: show a plate lid as its own tree node, exclude it from the well count - #1147
Merged
Merged
Conversation
…om the well count
A plate's lid is a regular child resource, so the sidebar tree counted it as a
well ("97 wells" on a lidded 96-well plate) and never showed it separately.
Add an isLid predicate, exclude lids from the plate and tube-rack counts, and
return the lid from getDisplayChildren so it renders as its own collapsible node
while the individual wells/tips/tubes stay hidden.
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
BioCam
force-pushed
the
visualizer-lid-tree-node
branch
from
July 4, 2026 20:50
fb909bc to
a6a4bd5
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
A plate's lid is a regular child resource, so the sidebar tree counted it toward the plate's item total - a lidded 96-well plate read "97 wells" - and the lid never appeared as its own node because plate-like resources return no display children. Confirmed on a real serialized culture_plate (with_lid=True): 97 children, the last one a Lid.
Both stem from the same assumption that every child of a plate is a well, which stopped being true once lids became child resources.
isLidpredicate (category === "lid"orresourceType === "Lid").getDisplayChildrenso it renders as its own collapsible tree node, while the individual wells/tips/tubes stay hidden as before.No behavior change for lid-less plates or for the canvas: the change only touches the sidebar tree and the count label. Tip racks are unaffected in practice - PLR has no lid concept for them - and stay consistent (the filter simply yields none).
🤖 Generated with Claude Code