Skip to content

Add PlateAdapter visualization with hole grid and magnetic rack styling#946

Merged
BioCam merged 4 commits intoPyLabRobot:mainfrom
BioCam:Update-PlateAdapter-Visualization
Mar 20, 2026
Merged

Add PlateAdapter visualization with hole grid and magnetic rack styling#946
BioCam merged 4 commits intoPyLabRobot:mainfrom
BioCam:Update-PlateAdapter-Visualization

Conversation

@BioCam
Copy link
Collaborator

@BioCam BioCam commented Mar 19, 2026

PlateAdapter now renders with its actual hole grid geometry instead of a generic rectangle.

The Problem

PlateAdapter resources (magnetic racks, PCR adapters, shaker adapters) rendered as plain rectangles, indistinguishable from unknown resources.
Their rich geometry data (hole grid position, size, spacing) was completely unused visually.

PR Content

  • New PlateAdapter JS class with hole grid computed from serialized geometry
  • Standard adapters: brushed-metal gradient body with inner bevel and depth-effectholes
  • Magnetic adapters (name/model contains "magn"): cornflower blue body with silvermetallic holes
  • Sidebar summary shows assigned plate name or "empty"
  • UML info panel shows hole size, spacing, offset, and plate_z_offset
  • Registered in classForResourceType() for both type and category lookup

Looks like this:
Screenshot 2026-03-19 at 18 37 19

Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR enhances the visualizer’s representation of PlateAdapter resources so they render with their real hole-grid geometry and distinct styling (standard vs. magnetic), making adapters visually identifiable and more informative in the UI.

Changes:

  • Added a new PlateAdapter resource class in the visualizer that renders a computed hole grid (with distinct standard/magnetic styling).
  • Registered PlateAdapter in classForResourceType() for both type and category mapping.
  • Extended the sidebar summary and UML info panel to show adapter-specific information (assigned plate name / empty; hole sizing/spacing/offsets).

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

BioCam and others added 3 commits March 19, 2026 22:20
@BioCam BioCam merged commit 40c0afb into PyLabRobot:main Mar 20, 2026
21 checks passed
@BioCam BioCam deleted the Update-PlateAdapter-Visualization branch March 20, 2026 10:09
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.

2 participants