Skip to content

Keep polyhedron editing and analysis available when the overlay is off - #235

Merged
SchrodingersCattt merged 4 commits into
mainfrom
cursor/analysis-overlay-gate-b6dd
Oct 25, 2026
Merged

SchrodingersCattt merged 4 commits into
mainfrom
cursor/analysis-overlay-gate-b6dd

Conversation

@SchrodingersCattt

Copy link
Copy Markdown
Owner

Part of #228

The polyhedron editor stays visible when “Show polyhedra overlay” is off, so color, row visibility, and centre/ligand fields can still be edited. A row’s enabled flag decides whether that spec is drawn. topology_enabled remains the overlay switch used when the figure is assembled, and it no longer forces every row off.

run_analysis computes whenever specs exist. It does not return disabled because the overlay is off, and it does not write the overlay flag back onto the scene. With no specs the status is still no_specs.

Open in Web Open in Cursor 

Row checkboxes still decide which specs draw. The overlay switch only hides the layer, and analysis computes from existing specs without flipping that switch.

Co-authored-by: Ming-Yu Guo <guomy26@mail2.sysu.edu.cn>

@SchrodingersCattt SchrodingersCattt left a comment

Copy link
Copy Markdown
Owner Author

Choose a reason for hiding this comment

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

Review (Part of #228)

Verdict: approve-ready

What it does

Keeps polyhedron editing and analysis available when the topology overlay is off — analysis no longer gated solely by topology_enabled (medium #228).

CI

9/9 green on 4bca28c.

Notes

  • Correct product behavior: overlay visibility ≠ capability gate.
  • Low conflict risk with the transform/projection batch; can merge independently.
  • No merge from me (author PR).

@SchrodingersCattt SchrodingersCattt left a comment

Copy link
Copy Markdown
Owner Author

Choose a reason for hiding this comment

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

Re-review (Part of #228)

Verdict: approve-ready (head advanced past prior review on 4bca28c6)

Follow-up 912fa5a: keeps overlay drawing gates separate across analysis and view updates — view_updates.js now ANDs topology_enabled with per-spec enabled; docs/POST /topology wording matches analysis-with-drawing-off. Extra tests for MVF acceptance + topology API. CI 9/9. Still approve-ready; can land independently.

No merge from me (author PR).

@SchrodingersCattt
SchrodingersCattt merged commit 2edd75a into main Oct 25, 2026
9 checks passed
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