You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit 3c22e1e
Browse filesBrowse the repository at this point in the historyBrowse files
refactor(ui): eliminate prop drilling in editor, home, sidebar, and logs dashboard (#4950)
* refactor(ui): eliminate prop drilling in editor, home, sidebar, and logs dashboard
- panel editor: activeSearchTarget was relayed untouched through SubBlock and
30+ input components (depth up to 6); now provided once via
ActiveSearchTargetProvider and re-provided at tool-input's synthetic
sub-block transformation points; removed the vestigial workspaceId
option from SubBlockInputController/useSubBlockInput
- home: ChatSurfaceProvider carries chatId/userId and stable interaction
callbacks to UserInput/MessageContent/MessageActions;
MothershipResourcesProvider carries the five resource operations to
ResourceTabs, removing MothershipView's pure-relay props
- sidebar: extended SidebarDragContext into SidebarListContext so
WorkflowItem/FolderItem read selection/drag callbacks directly; moved the
hidden import input up to sidebar.tsx (also fixes import no-op while the
list shows a skeleton)
- logs dashboard: DashboardSegmentsContext feeds StatusBar directly;
WorkflowsList no longer relays segment selection state
* refactor(home): sync ChatSurfaceProvider callback refs in a layout effect
Mutating refs during render is unsound under concurrent rendering (render
may run multiple times before commit); useLayoutEffect commits the latest
callbacks before any user event can fire.
0 commit comments