void;
+ select: (target: ConstituentaID) => void;
+ deselect: (target: ConstituentaID) => void;
+ toggleSelect: (target: ConstituentaID) => void;
+ deselectAll: () => void;
viewVersion: (version?: number) => void;
+ createVersion: () => void;
+ editVersions: () => void;
moveUp: () => void;
moveDown: () => void;
@@ -70,13 +81,11 @@ interface IRSEditContext {
share: () => void;
toggleSubscribe: () => void;
download: () => void;
+
reindex: () => void;
produceStructure: () => void;
inlineSynthesis: () => void;
substitute: () => void;
-
- createVersion: () => void;
- editVersions: () => void;
}
const RSEditContext = createContext(null);
@@ -119,6 +128,7 @@ export const RSEditState = ({
);
}, [user?.is_staff, mode, model.isOwned]);
const isContentEditable = useMemo(() => isMutable && !model.isArchive, [isMutable, model.isArchive]);
+ const nothingSelected = useMemo(() => selected.length === 0, [selected]);
const [showUpload, setShowUpload] = useState(false);
const [showClone, setShowClone] = useState(false);
@@ -464,12 +474,23 @@ export const RSEditState = ({
setSelected(selected),
+ select: (target: ConstituentaID) => setSelected(prev => [...prev, target]),
+ deselect: (target: ConstituentaID) => setSelected(prev => prev.filter(id => id !== target)),
+ toggleSelect: (target: ConstituentaID) =>
+ setSelected(prev => (prev.includes(target) ? prev.filter(id => id !== target) : [...prev, target])),
+ deselectAll: () => setSelected([]),
viewVersion,
+ createVersion: () => setShowCreateVersion(true),
+ editVersions: () => setShowEditVersions(true),
moveUp,
moveDown,
@@ -486,13 +507,11 @@ export const RSEditState = ({
claim,
share,
toggleSubscribe,
+
reindex,
inlineSynthesis: () => setShowInlineSynthesis(true),
produceStructure,
- substitute,
-
- createVersion: () => setShowCreateVersion(true),
- editVersions: () => setShowEditVersions(true)
+ substitute
}}
>
{model.schema ? (
diff --git a/rsconcept/frontend/src/pages/RSFormPage/RSTabs.tsx b/rsconcept/frontend/src/pages/RSFormPage/RSTabs.tsx
index 9aa1b44e..88ac3c15 100644
--- a/rsconcept/frontend/src/pages/RSFormPage/RSTabs.tsx
+++ b/rsconcept/frontend/src/pages/RSFormPage/RSTabs.tsx
@@ -204,7 +204,7 @@ function RSTabs() {
-
+
@@ -217,7 +217,7 @@ function RSTabs() {
-
+
diff --git a/rsconcept/frontend/src/styling/color.ts b/rsconcept/frontend/src/styling/color.ts
index 416541c1..e0ab4ffe 100644
--- a/rsconcept/frontend/src/styling/color.ts
+++ b/rsconcept/frontend/src/styling/color.ts
@@ -179,7 +179,7 @@ export const graphLightT = {
activeFill: '#1DE9AC',
opacity: 1,
selectedOpacity: 1,
- inactiveOpacity: 0.2,
+ inactiveOpacity: 0.5,
label: {
color: '#2A6475',
stroke: '#fff',
@@ -231,7 +231,7 @@ export const graphDarkT = {
activeFill: '#1DE9AC',
opacity: 1,
selectedOpacity: 1,
- inactiveOpacity: 0.2,
+ inactiveOpacity: 0.5,
label: {
stroke: '#1E2026',
color: '#ACBAC7',