Conversation
|
Preview is ready. |
7063130 to
0244f06
Compare
9aa9179 to
39cefbd
Compare
| }; | ||
| ``` | ||
|
|
||
| - **`key`** (required) — unique identifier for the area within the component. If an area with the same key already exists, it is replaced instead of duplicated. Also used to persist the area's local state across render cycles. |
There was a problem hiding this comment.
Less details please
| blockPort.isDelegated; // false | ||
| ``` | ||
|
|
||
| #### How CollapsibleGroup uses delegation |
| if (canvasVisible !== undefined) { | ||
| viewState?.setHiddenBlock(Boolean(canvasVisible)); | ||
| // Manual control: delegate canvas rendering when canvasVisible=false | ||
| viewState?.setRenderDelegated(!canvasVisible); |
There was a problem hiding this comment.
check is this real needs, because Block will remove self hitbox
| width: rect.width + GROUP_PAD * 2, | ||
| height: rect.height + GROUP_PAD * 2, | ||
| }, | ||
| collapsed: !!(Math.floor(Math.random() * 10) % 2), |
There was a problem hiding this comment.
It's unnecessary here. Now, if you work with a story there are groups that open/close at random because of this line, even if you don't touch them
| const sourcePort = this.$sourcePortState.value; | ||
| const targetPort = this.$targetPortState.value; | ||
| if (!sourcePort.lookup && !targetPort.lookup) { | ||
| return [sourcePort.$point.value, targetPort.$point.value]; |
There was a problem hiding this comment.
As I understand this is breaking change, but hardly anyone signed up for this at all.
| * (React overlay mode, hitbox kept). Both flags make isVisible() return false, | ||
| * but only blockHidden removes the hitbox. | ||
| */ | ||
| private blockHidden = false; |
There was a problem hiding this comment.
Can we put it in the state? I see that this has already been done in the connections, but here we have to store data both in the staff and here, and even synchronize them.
Made-with: Cursor
ceba070 to
1c2cbdd
Compare
Code review (branch vs main)PR: feat(Groups): CollapsibleGroup — large feature: Strengths
Issues (confidence ≥80%)
graph/src/components/canvas/groups/CollapsibleGroup.ts Lines 268 to 290 in 1c2cbdd graph/src/components/canvas/groups/Group.ts Lines 227 to 252 in 1c2cbdd
graph/e2e/tests/groups/collapsible-group.spec.ts Lines 575 to 641 in 1c2cbdd E2E / DX suggestions (non-blocking)
🤖 Generated with Claude Code If this review was useful, react with 👍; otherwise 👎. |
Made-with: Cursor
No description provided.