From 7eb7fb09cf1959fe967247f8a6f7c20930cc2d64 Mon Sep 17 00:00:00 2001 From: Ivan <8611739+IRBorisov@users.noreply.github.com> Date: Tue, 29 Jul 2025 22:42:50 +0300 Subject: [PATCH] B: Small UI fixes --- .../components/toolbar-graph-selection.tsx | 18 +++++++++--------- .../view-constituents/view-constituents.tsx | 7 +++---- .../dialogs/dlg-edit-cst/dlg-edit-cst.tsx | 1 + .../editor-constituenta.tsx | 2 +- 4 files changed, 14 insertions(+), 14 deletions(-) diff --git a/rsconcept/frontend/src/features/rsform/components/toolbar-graph-selection.tsx b/rsconcept/frontend/src/features/rsform/components/toolbar-graph-selection.tsx index ed947efb..5d90a017 100644 --- a/rsconcept/frontend/src/features/rsform/components/toolbar-graph-selection.tsx +++ b/rsconcept/frontend/src/features/rsform/components/toolbar-graph-selection.tsx @@ -31,7 +31,7 @@ interface ToolbarGraphSelectionProps extends Styling { export function ToolbarGraphSelection({ className, graph, - value: selected, + value, isCore, isInherited, isCrucial, @@ -40,7 +40,7 @@ export function ToolbarGraphSelection({ }: ToolbarGraphSelectionProps) { const selectedMenu = useDropdown(); const groupMenu = useDropdown(); - const emptySelection = selected.length === 0; + const emptySelection = value.length === 0; function handleSelectReset() { onChange([]); @@ -68,31 +68,31 @@ export function ToolbarGraphSelection({ } function handleExpandOutputs() { - onChange([...selected, ...graph.expandOutputs(selected)]); + onChange([...value, ...graph.expandOutputs(value)]); } function handleExpandInputs() { - onChange([...selected, ...graph.expandInputs(selected)]); + onChange([...value, ...graph.expandInputs(value)]); } function handleSelectMaximize() { selectedMenu.hide(); - onChange(graph.maximizePart(selected)); + onChange(graph.maximizePart(value)); } function handleSelectInvert() { selectedMenu.hide(); - onChange([...graph.nodes.keys()].filter(item => !selected.includes(item))); + onChange([...graph.nodes.keys()].filter(item => !value.includes(item))); } function handleSelectAllInputs() { selectedMenu.hide(); - onChange([...graph.expandInputs(selected)]); + onChange([...value, ...graph.expandInputs(value)]); } function handleSelectAllOutputs() { selectedMenu.hide(); - onChange([...graph.expandOutputs(selected)]); + onChange([...value, ...graph.expandOutputs(value)]); } return ( @@ -166,7 +166,7 @@ export function ToolbarGraphSelection({ icon={} onClick={groupMenu.toggle} /> - + +
- +
); } diff --git a/rsconcept/frontend/src/features/rsform/dialogs/dlg-edit-cst/dlg-edit-cst.tsx b/rsconcept/frontend/src/features/rsform/dialogs/dlg-edit-cst/dlg-edit-cst.tsx index f663fda2..394025a1 100644 --- a/rsconcept/frontend/src/features/rsform/dialogs/dlg-edit-cst/dlg-edit-cst.tsx +++ b/rsconcept/frontend/src/features/rsform/dialogs/dlg-edit-cst/dlg-edit-cst.tsx @@ -36,6 +36,7 @@ export function DlgEditCst() { target: target.id, item_data: { alias: target.alias, + crucial: target.crucial, cst_type: target.cst_type, convention: target.convention, definition_formal: target.definition_formal, diff --git a/rsconcept/frontend/src/features/rsform/pages/rsform-page/editor-constituenta/editor-constituenta.tsx b/rsconcept/frontend/src/features/rsform/pages/rsform-page/editor-constituenta/editor-constituenta.tsx index 3f9bcef7..d90a4bde 100644 --- a/rsconcept/frontend/src/features/rsform/pages/rsform-page/editor-constituenta/editor-constituenta.tsx +++ b/rsconcept/frontend/src/features/rsform/pages/rsform-page/editor-constituenta/editor-constituenta.tsx @@ -122,7 +122,7 @@ export function EditorConstituenta() {