mirror of
https://github.com/soconnor0919/hristudio.git
synced 2026-03-24 11:47:51 -04:00
feat: Relocate experiment designer routes under studies, update ROS2 topic paths, and enhance designer hashing and performance.
This commit is contained in:
@@ -88,8 +88,8 @@ function DraggableAction({
|
||||
|
||||
const style: React.CSSProperties = transform
|
||||
? {
|
||||
transform: `translate3d(${transform.x}px, ${transform.y}px, 0)`,
|
||||
}
|
||||
transform: `translate3d(${transform.x}px, ${transform.y}px, 0)`,
|
||||
}
|
||||
: {};
|
||||
|
||||
const IconComponent = iconMap[action.icon] ?? Sparkles;
|
||||
@@ -487,4 +487,6 @@ export function ActionLibraryPanel() {
|
||||
);
|
||||
}
|
||||
|
||||
export default ActionLibraryPanel;
|
||||
// Wrap in React.memo to prevent unnecessary re-renders causing flashing in categories
|
||||
export default React.memo(ActionLibraryPanel);
|
||||
|
||||
|
||||
@@ -48,9 +48,18 @@ export interface InspectorPanelProps {
|
||||
*/
|
||||
onTabChange?: (tab: "properties" | "issues" | "dependencies") => void;
|
||||
/**
|
||||
* Whether to auto-switch to properties tab when selection changes.
|
||||
* If true, auto-switch to "properties" when a selection occurs.
|
||||
*/
|
||||
autoFocusOnSelection?: boolean;
|
||||
/**
|
||||
* Study plugins with name and metadata
|
||||
*/
|
||||
studyPlugins?: Array<{
|
||||
id: string;
|
||||
robotId: string;
|
||||
name: string;
|
||||
version: string;
|
||||
}>;
|
||||
}
|
||||
|
||||
export function InspectorPanel({
|
||||
@@ -58,6 +67,7 @@ export function InspectorPanel({
|
||||
activeTab,
|
||||
onTabChange,
|
||||
autoFocusOnSelection = true,
|
||||
studyPlugins,
|
||||
}: InspectorPanelProps) {
|
||||
/* ------------------------------------------------------------------------ */
|
||||
/* Store Selectors */
|
||||
@@ -339,6 +349,7 @@ export function InspectorPanel({
|
||||
steps={steps}
|
||||
actionSignatureDrift={actionSignatureDrift}
|
||||
actionDefinitions={actionRegistry.getAllActions()}
|
||||
studyPlugins={studyPlugins}
|
||||
onReconcileAction={(actionId) => {
|
||||
// Placeholder: future diff modal / signature update
|
||||
|
||||
|
||||
Reference in New Issue
Block a user