diff --git a/Projects/Superalgos/Schemas/App-Schema/community-contributions.json b/Projects/Superalgos/Schemas/App-Schema/community-contributions.json index 6d5fea2de..e41ce60b7 100644 --- a/Projects/Superalgos/Schemas/App-Schema/community-contributions.json +++ b/Projects/Superalgos/Schemas/App-Schema/community-contributions.json @@ -14,6 +14,12 @@ "label": "Add Community Contributions", "relatedUiObject": "Community Contributions" }, + { + "action": "Add UI Object", + "actionFunction": "payload.executeAction", + "label": "Add Contributed Asset", + "relatedUiObject": "Contributed Asset" + }, { "action": "Delete UI Object", "askConfirmation": true, @@ -42,6 +48,12 @@ "type": "array", "childType": "Community Contributions", "autoAdd": false + }, + { + "name": "contributedAssets", + "type": "array", + "childType": "Contributed Asset", + "autoAdd": false } ], "icon": "bitcoin" diff --git a/Projects/Superalgos/Schemas/App-Schema/contributed-time.json b/Projects/Superalgos/Schemas/App-Schema/contributed-time.json new file mode 100644 index 000000000..3c171cca6 --- /dev/null +++ b/Projects/Superalgos/Schemas/App-Schema/contributed-time.json @@ -0,0 +1,40 @@ +{ + "type": "Contributed Time", + "menuItems": [ + { + "action": "Configure", + "actionFunction": "uiObject.configEditor.activate", + "label": "Configure", + "iconPathOn": "configuration", + "iconPathOff": "configuration" + }, + { + "action": "Delete UI Object", + "askConfirmation": true, + "confirmationLabel": "Confirm to Delete", + "label": "Delete", + "iconPathOn": "delete-entity", + "iconPathOff": "delete-entity", + "actionFunction": "payload.executeAction" + } + ], + "title": [ + "Use Reference Parent" + ], + "editors": { + "config": true + }, + "initialValues": { + "config": "{\n \"description\": \"\"\n}" + }, + "addLeftIcons": true, + "level": 2, + "attachingRules": { + "compatibleTypes": "->Governance Contributions->" + }, + "referencingRules": { + "compatibleTypes": "->Project Rank->" + }, + "propertyNameAtParent": "contributedTimes", + "icon": "dogecoin" +} \ No newline at end of file diff --git a/Projects/Superalgos/Schemas/App-Schema/governance-contributions.json b/Projects/Superalgos/Schemas/App-Schema/governance-contributions.json new file mode 100644 index 000000000..f2cd13a2f --- /dev/null +++ b/Projects/Superalgos/Schemas/App-Schema/governance-contributions.json @@ -0,0 +1,60 @@ +{ + "type": "Governance Contributions", + "menuItems": [ + { + "action": "Configure", + "actionFunction": "uiObject.configEditor.activate", + "label": "Configure", + "iconPathOn": "configuration", + "iconPathOff": "configuration" + }, + { + "action": "Add UI Object", + "actionFunction": "payload.executeAction", + "label": "Add Governance Contributions", + "relatedUiObject": "Governance Contributions" + }, + { + "action": "Add UI Object", + "actionFunction": "payload.executeAction", + "label": "Add Contributed Time", + "relatedUiObject": "Contributed Time" + }, + { + "action": "Delete UI Object", + "askConfirmation": true, + "confirmationLabel": "Confirm to Delete", + "label": "Delete", + "iconPathOn": "delete-entity", + "iconPathOff": "delete-entity", + "actionFunction": "payload.executeAction" + } + ], + "editors": { + "config": true + }, + "initialValues": { + "config": "{\n \"description\": \"\"\n}" + }, + "addLeftIcons": true, + "level": 2, + "attachingRules": { + "compatibleTypes": "->User Contributions->Governance Contributions->" + }, + "propertyNameAtParent": "governanceContributions", + "childrenNodesProperties": [ + { + "name": "governanceContributions", + "type": "array", + "childType": "Governance Contributions", + "autoAdd": false + }, + { + "name": "contributedTimes", + "type": "array", + "childType": "Contributed Time", + "autoAdd": false + } + ], + "icon": "bitcoin" +} \ No newline at end of file diff --git a/Projects/Superalgos/Schemas/App-Schema/marketing-contributions.json b/Projects/Superalgos/Schemas/App-Schema/marketing-contributions.json index 4238c91c1..cfec4a2c0 100644 --- a/Projects/Superalgos/Schemas/App-Schema/marketing-contributions.json +++ b/Projects/Superalgos/Schemas/App-Schema/marketing-contributions.json @@ -14,6 +14,12 @@ "label": "Add Marketing Contributions", "relatedUiObject": "Marketing Contributions" }, + { + "action": "Add UI Object", + "actionFunction": "payload.executeAction", + "label": "Add Contributed Asset", + "relatedUiObject": "Contributed Asset" + }, { "action": "Delete UI Object", "askConfirmation": true, @@ -42,6 +48,12 @@ "type": "array", "childType": "Marketing Contributions", "autoAdd": false + }, + { + "name": "contributedAssets", + "type": "array", + "childType": "Contributed Asset", + "autoAdd": false } ], "icon": "bitcoin"