From 6c14a20679786cda6c8f071024e4cb11a8fb9070 Mon Sep 17 00:00:00 2001 From: Luis Fernando Molina Date: Thu, 3 Jun 2021 21:27:00 +0200 Subject: [PATCH] All vote types implemented --- .../Schemas/App-Schema/asset-claim-vote.json | 41 +++++++++++++++++++ .../App-Schema/feature-claim-vote.json | 41 +++++++++++++++++++ .../{time-vote.json => time-claim-vote.json} | 4 +- .../Schemas/App-Schema/votes-switch.json | 32 +++++++++++++-- 4 files changed, 112 insertions(+), 6 deletions(-) create mode 100644 Projects/Governance/Schemas/App-Schema/asset-claim-vote.json create mode 100644 Projects/Governance/Schemas/App-Schema/feature-claim-vote.json rename Projects/Governance/Schemas/App-Schema/{time-vote.json => time-claim-vote.json} (93%) diff --git a/Projects/Governance/Schemas/App-Schema/asset-claim-vote.json b/Projects/Governance/Schemas/App-Schema/asset-claim-vote.json new file mode 100644 index 000000000..97fd65724 --- /dev/null +++ b/Projects/Governance/Schemas/App-Schema/asset-claim-vote.json @@ -0,0 +1,41 @@ +{ + "type": "Asset Claim Vote", + "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": [ + "Reference Parent Find In Parents Node Type->User Profile", + "Use Reference Parent" + ], + "editors": { + "config": true + }, + "initialValues": { + "config": "{\n \"description\": \"\"\n}" + }, + "addLeftIcons": true, + "level": 2, + "attachingRules": { + "compatibleTypes": "->Votes Switch->" + }, + "referencingRules": { + "compatibleTypes": "->Asset Contribution Claim->" + }, + "propertyNameAtParent": "assetClaimVotes", + "icon": "EN" +} \ No newline at end of file diff --git a/Projects/Governance/Schemas/App-Schema/feature-claim-vote.json b/Projects/Governance/Schemas/App-Schema/feature-claim-vote.json new file mode 100644 index 000000000..a5123d218 --- /dev/null +++ b/Projects/Governance/Schemas/App-Schema/feature-claim-vote.json @@ -0,0 +1,41 @@ +{ + "type": "Feature Claim Vote", + "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": [ + "Reference Parent Find In Parents Node Type->User Profile", + "Use Reference Parent" + ], + "editors": { + "config": true + }, + "initialValues": { + "config": "{\n \"description\": \"\"\n}" + }, + "addLeftIcons": true, + "level": 2, + "attachingRules": { + "compatibleTypes": "->Votes Switch->" + }, + "referencingRules": { + "compatibleTypes": "->Feature Contribution Claim->" + }, + "propertyNameAtParent": "featureClaimVotes", + "icon": "github-api" +} \ No newline at end of file diff --git a/Projects/Governance/Schemas/App-Schema/time-vote.json b/Projects/Governance/Schemas/App-Schema/time-claim-vote.json similarity index 93% rename from Projects/Governance/Schemas/App-Schema/time-vote.json rename to Projects/Governance/Schemas/App-Schema/time-claim-vote.json index a085523bd..98e88627e 100644 --- a/Projects/Governance/Schemas/App-Schema/time-vote.json +++ b/Projects/Governance/Schemas/App-Schema/time-claim-vote.json @@ -1,5 +1,5 @@ { - "type": "Time Vote", + "type": "Time Claim Vote", "menuItems": [ { "action": "Configure", @@ -36,6 +36,6 @@ "referencingRules": { "compatibleTypes": "->Time Contribution Claim->" }, - "propertyNameAtParent": "timeVotes", + "propertyNameAtParent": "timeClaimVotes", "icon": "dogecoin" } \ No newline at end of file diff --git a/Projects/Governance/Schemas/App-Schema/votes-switch.json b/Projects/Governance/Schemas/App-Schema/votes-switch.json index 24157b4d9..316420ac6 100644 --- a/Projects/Governance/Schemas/App-Schema/votes-switch.json +++ b/Projects/Governance/Schemas/App-Schema/votes-switch.json @@ -35,8 +35,20 @@ { "action": "Add UI Object", "actionFunction": "payload.executeAction", - "label": "Add Time Vote", - "relatedUiObject": "Time Vote" + "label": "Add Time Claim Vote", + "relatedUiObject": "Time Claim Vote" + }, + { + "action": "Add UI Object", + "actionFunction": "payload.executeAction", + "label": "Add Asset Claim Vote", + "relatedUiObject": "Asset Claim Vote" + }, + { + "action": "Add UI Object", + "actionFunction": "payload.executeAction", + "label": "Add Feature Claim Vote", + "relatedUiObject": "Feature Claim Vote" }, { "action": "Add UI Object", @@ -86,9 +98,21 @@ "autoAdd": false }, { - "name": "timeVotes", + "name": "timeClaimVotes", "type": "array", - "childType": "Time Vote", + "childType": "Time Claim Vote", + "autoAdd": false + }, + { + "name": "assetClaimVotes", + "type": "array", + "childType": "Asset Claim Vote", + "autoAdd": false + }, + { + "name": "featureClaimVotes", + "type": "array", + "childType": "Feature Claim Vote", "autoAdd": false }, {