refactor(studio): remove section pinning from the flat inspector#2135
refactor(studio): remove section pinning from the flat inspector#2135vanceingalls wants to merge 1 commit into
Conversation
miga-heygen
left a comment
There was a problem hiding this comment.
Reviewed as part of the 15-PR edit-panel redesign stack. Full stack review posted on #2120. No blockers on this PR. — Miga
miguel-heygen
left a comment
There was a problem hiding this comment.
Final current-head pass: 1fea656. Reviewed the stack boundaries and current diff against the flat-inspector contracts; required checks have no failures/pending checks and no unresolved review threads remain. No new drift found; residual notes are non-blocking.
1fea656 to
94a812a
Compare
5d24fc1 to
6374b78
Compare
miguel-heygen
left a comment
There was a problem hiding this comment.
Superseding earlier approval: the latest max-review pass found confirmed correctness issues in this flat-inspector stack (identity/selector-index state, hide-all write races, timing inference, slider pointer/keyboard/reset semantics, and duplicate React keys). Hold merge and require fixes plus re-review on the current stack head.

What
Tenth PR in the flat inspector stack (see #2120 for the foundation and full stack list). Removes group pinning entirely — the pin button,
PinnedGroupRow,PinnedZoneDivider, theusePersistedPinnedGroupshook (deleted outright, including its test file), and thepinnedGroupsByElementTypefield fromstudioUiPreferences.ts.Stack: #2120 → ... → #2134 → #2135 (this).
Why
Explicit product decision: pinning added complexity without being worth keeping. Removing it also resolves the one known follow-up flagged in the previous PR (#2134) — an oversized pinned zone could silently clip content with no scrollbar, since there's no scroll fallback in the new fixed-header layout. With no pinned zone at all, that failure mode can't occur.
How
PropertyPanelFlat.tsx's group list no longer splits into pinned/unpinned — thebeforeOpen/openGroup/afterOpensplit (from refactor(studio): scroll only the open group's body, keep headers fixed #2134) now operates directly on the full group list.FlatGroupHeaderno longer acceptsisPinned/onTogglePin; the pin button is gone from its button row.PinnedGroupRowandPinnedZoneDividerdeleted frompropertyPanelFlatPrimitives.tsx.usePersistedPinnedGroups.tsand its test file deleted entirely.pinnedGroupsByElementTyperemoved fromStudioUiPreferencesand its read/write validation.Test plan
PropertyPanel.test.tsx,propertyPanelFlatPrimitives.test.tsx, andstudioUiPreferences.test.ts.oxlint/oxfmt/fallowclean.