From 58552862f26d5411a933f781d941c3ecaa8ffb41 Mon Sep 17 00:00:00 2001 From: Luis Fernando Molina Date: Thu, 3 Jun 2021 19:28:25 +0200 Subject: [PATCH] Claims Implemented --- ...set.json => asset-contribution-claim.json} | 6 +- ...s.json => asset-contributions-folder.json} | 22 +++---- .../Schemas/App-Schema/asset-vote.json | 2 +- .../App-Schema/contributed-youtube-video.json | 2 +- .../App-Schema/contribution-claims.json | 36 ++++------- .../feature-contribution-claim.json | 41 +++++++++++++ ...json => feature-contributions-folder.json} | 22 +++---- .../Schemas/App-Schema/feature-vote.json | 2 +- .../Schemas/App-Schema/ranking-vote.json | 2 +- .../App-Schema/software-contributions.json | 60 ------------------- ...time.json => time-contribution-claim.json} | 6 +- ...ns.json => time-contributions-folder.json} | 22 +++---- .../Schemas/App-Schema/time-vote.json | 4 +- .../Schemas/App-Schema/user-vote.json | 2 +- .../App-Schema/votes-distribution.json | 8 +-- ...c-contributions.json => votes-switch.json} | 14 ++--- 16 files changed, 110 insertions(+), 141 deletions(-) rename Projects/Governance/Schemas/App-Schema/{contributed-asset.json => asset-contribution-claim.json} (86%) rename Projects/Governance/Schemas/App-Schema/{marketing-contributions.json => asset-contributions-folder.json} (67%) create mode 100644 Projects/Governance/Schemas/App-Schema/feature-contribution-claim.json rename Projects/Governance/Schemas/App-Schema/{community-contributions.json => feature-contributions-folder.json} (66%) delete mode 100644 Projects/Governance/Schemas/App-Schema/software-contributions.json rename Projects/Governance/Schemas/App-Schema/{contributed-time.json => time-contribution-claim.json} (86%) rename Projects/Governance/Schemas/App-Schema/{time-contributions.json => time-contributions-folder.json} (71%) rename Projects/Governance/Schemas/App-Schema/{civic-contributions.json => votes-switch.json} (88%) diff --git a/Projects/Governance/Schemas/App-Schema/contributed-asset.json b/Projects/Governance/Schemas/App-Schema/asset-contribution-claim.json similarity index 86% rename from Projects/Governance/Schemas/App-Schema/contributed-asset.json rename to Projects/Governance/Schemas/App-Schema/asset-contribution-claim.json index f75d6d45c..536d946db 100644 --- a/Projects/Governance/Schemas/App-Schema/contributed-asset.json +++ b/Projects/Governance/Schemas/App-Schema/asset-contribution-claim.json @@ -1,5 +1,5 @@ { - "type": "Contributed Asset", + "type": "Asset Contribution Claim", "menuItems": [ { "action": "Configure", @@ -31,11 +31,11 @@ "addLeftIcons": true, "level": 2, "attachingRules": { - "compatibleTypes": "->Software Contributions->" + "compatibleTypes": "->Asset Contributions Folder->" }, "referencingRules": { "compatibleTypes": "->Asset->" }, - "propertyNameAtParent": "contributedAssets", + "propertyNameAtParent": "assetContributionClaims", "icon": "tron" } \ No newline at end of file diff --git a/Projects/Governance/Schemas/App-Schema/marketing-contributions.json b/Projects/Governance/Schemas/App-Schema/asset-contributions-folder.json similarity index 67% rename from Projects/Governance/Schemas/App-Schema/marketing-contributions.json rename to Projects/Governance/Schemas/App-Schema/asset-contributions-folder.json index 76b3030c7..ef08212b5 100644 --- a/Projects/Governance/Schemas/App-Schema/marketing-contributions.json +++ b/Projects/Governance/Schemas/App-Schema/asset-contributions-folder.json @@ -1,5 +1,5 @@ { - "type": "Marketing Contributions", + "type": "Asset Contributions Folder", "menuItems": [ { "action": "Configure", @@ -11,14 +11,14 @@ { "action": "Add UI Object", "actionFunction": "payload.executeAction", - "label": "Add Marketing Contributions", - "relatedUiObject": "Marketing Contributions" + "label": "Add Asset Contributions Folder", + "relatedUiObject": "Asset Contributions Folder" }, { "action": "Add UI Object", "actionFunction": "payload.executeAction", - "label": "Add Contributed Asset", - "relatedUiObject": "Contributed Asset" + "label": "Add Asset Contribution Claim", + "relatedUiObject": "Asset Contribution Claim" }, { "action": "Delete UI Object", @@ -39,20 +39,20 @@ "addLeftIcons": true, "level": 2, "attachingRules": { - "compatibleTypes": "->Contribution Claims->Marketing Contributions->" + "compatibleTypes": "->Contribution Claims->Asset Contributions Folder->" }, - "propertyNameAtParent": "marketingContributions", + "propertyNameAtParent": "assetContributionsFolder", "childrenNodesProperties": [ { - "name": "marketingContributions", + "name": "assetContributionsFolder", "type": "array", - "childType": "Marketing Contributions", + "childType": "Asset Contributions Folder", "autoAdd": false }, { - "name": "contributedAssets", + "name": "assetContributionClaims", "type": "array", - "childType": "Contributed Asset", + "childType": "Asset Contribution Claim", "autoAdd": false } ], diff --git a/Projects/Governance/Schemas/App-Schema/asset-vote.json b/Projects/Governance/Schemas/App-Schema/asset-vote.json index b6c4275ca..6b2828f77 100644 --- a/Projects/Governance/Schemas/App-Schema/asset-vote.json +++ b/Projects/Governance/Schemas/App-Schema/asset-vote.json @@ -33,7 +33,7 @@ "addLeftIcons": true, "level": 2, "attachingRules": { - "compatibleTypes": "->Civic Contributions->" + "compatibleTypes": "->Votes Switch->" }, "referencingRules": { "compatibleTypes": "->Asset Class->Asset->" diff --git a/Projects/Governance/Schemas/App-Schema/contributed-youtube-video.json b/Projects/Governance/Schemas/App-Schema/contributed-youtube-video.json index 089b52a8c..fe07c5c9c 100644 --- a/Projects/Governance/Schemas/App-Schema/contributed-youtube-video.json +++ b/Projects/Governance/Schemas/App-Schema/contributed-youtube-video.json @@ -35,7 +35,7 @@ "attachingRules": { "compatibleTypes": "->Assets->Asset->" }, - "propertyNameAtParent": "softwareContributions", + "propertyNameAtParent": "assetContributionsFolder", "childrenNodesProperties": [ { "name": "assetClass", diff --git a/Projects/Governance/Schemas/App-Schema/contribution-claims.json b/Projects/Governance/Schemas/App-Schema/contribution-claims.json index 9d27188c4..34d781a96 100644 --- a/Projects/Governance/Schemas/App-Schema/contribution-claims.json +++ b/Projects/Governance/Schemas/App-Schema/contribution-claims.json @@ -10,27 +10,21 @@ }, { "action": "Add UI Object", - "label": "Add Software Contributions", - "relatedUiObject": "Software Contributions", + "label": "Add Asset Contributions Folder", + "relatedUiObject": "Asset Contributions Folder", "actionFunction": "payload.executeAction" }, { "action": "Add UI Object", "actionFunction": "payload.executeAction", - "label": "Add Marketing Contributions", - "relatedUiObject": "Marketing Contributions" + "label": "Add Feature Contributions Folder", + "relatedUiObject": "Feature Contributions Folder" }, { "action": "Add UI Object", "actionFunction": "payload.executeAction", - "label": "Add Community Contributions", - "relatedUiObject": "Community Contributions" - }, - { - "action": "Add UI Object", - "actionFunction": "payload.executeAction", - "label": "Add Time Contributions", - "relatedUiObject": "Time Contributions" + "label": "Add Time Contributions Folder", + "relatedUiObject": "Time Contributions Folder" }, { "action": "Delete UI Object", @@ -54,27 +48,21 @@ "propertyNameAtParent": "contributionClaims", "childrenNodesProperties": [ { - "name": "softwareContributions", + "name": "assetContributionsFolder", "type": "array", - "childType": "Software Contributions", + "childType": "Asset Contributions Folder", "autoAdd": false }, { - "name": "marketingContributions", + "name": "featureContributionsFolder", "type": "array", - "childType": "Marketing Contributions", + "childType": "Feature Contributions Folder", "autoAdd": false }, { - "name": "communityContributions", + "name": "timeContributionsFolder", "type": "array", - "childType": "Community Contributions", - "autoAdd": false - }, - { - "name": "timeContributions", - "type": "array", - "childType": "Time Contributions", + "childType": "Time Contributions Folder", "autoAdd": false } ], diff --git a/Projects/Governance/Schemas/App-Schema/feature-contribution-claim.json b/Projects/Governance/Schemas/App-Schema/feature-contribution-claim.json new file mode 100644 index 000000000..2d8769949 --- /dev/null +++ b/Projects/Governance/Schemas/App-Schema/feature-contribution-claim.json @@ -0,0 +1,41 @@ +{ + "type": "Feature Contribution Claim", + "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", + "Use Reference Parent Parent" + ], + "editors": { + "config": true + }, + "initialValues": { + "config": "{\n \"description\": \"\"\n}" + }, + "addLeftIcons": true, + "level": 2, + "attachingRules": { + "compatibleTypes": "->Feature Contributions Folder->" + }, + "referencingRules": { + "compatibleTypes": "->Feature->" + }, + "propertyNameAtParent": "featureContributionClaims", + "icon": "tron" +} \ No newline at end of file diff --git a/Projects/Governance/Schemas/App-Schema/community-contributions.json b/Projects/Governance/Schemas/App-Schema/feature-contributions-folder.json similarity index 66% rename from Projects/Governance/Schemas/App-Schema/community-contributions.json rename to Projects/Governance/Schemas/App-Schema/feature-contributions-folder.json index 36c8ec2d6..04c3c5037 100644 --- a/Projects/Governance/Schemas/App-Schema/community-contributions.json +++ b/Projects/Governance/Schemas/App-Schema/feature-contributions-folder.json @@ -1,5 +1,5 @@ { - "type": "Community Contributions", + "type": "Feature Contributions Folder", "menuItems": [ { "action": "Configure", @@ -11,14 +11,14 @@ { "action": "Add UI Object", "actionFunction": "payload.executeAction", - "label": "Add Community Contributions", - "relatedUiObject": "Community Contributions" + "label": "Add Feature Contributions Folder", + "relatedUiObject": "Feature Contributions Folder" }, { "action": "Add UI Object", "actionFunction": "payload.executeAction", - "label": "Add Contributed Asset", - "relatedUiObject": "Contributed Asset" + "label": "Add Feature Contribution Claim", + "relatedUiObject": "Feature Contribution Claim" }, { "action": "Delete UI Object", @@ -39,20 +39,20 @@ "addLeftIcons": true, "level": 2, "attachingRules": { - "compatibleTypes": "->Contribution Claims->Community Contributions->" + "compatibleTypes": "->Contribution Claims->Feature Contributions Folder->" }, - "propertyNameAtParent": "communityContributions", + "propertyNameAtParent": "featureContributionsFolder", "childrenNodesProperties": [ { - "name": "communityContributions", + "name": "featureContributionsFolder", "type": "array", - "childType": "Community Contributions", + "childType": "Feature Contributions Folder", "autoAdd": false }, { - "name": "contributedAssets", + "name": "featureContributionClaims", "type": "array", - "childType": "Contributed Asset", + "childType": "Feature Contribution Claim", "autoAdd": false } ], diff --git a/Projects/Governance/Schemas/App-Schema/feature-vote.json b/Projects/Governance/Schemas/App-Schema/feature-vote.json index 72fc22580..35322a435 100644 --- a/Projects/Governance/Schemas/App-Schema/feature-vote.json +++ b/Projects/Governance/Schemas/App-Schema/feature-vote.json @@ -32,7 +32,7 @@ "addLeftIcons": true, "level": 2, "attachingRules": { - "compatibleTypes": "->Civic Contributions->" + "compatibleTypes": "->Votes Switch->" }, "referencingRules": { "compatibleTypes": "->Feature Class->Feature->" diff --git a/Projects/Governance/Schemas/App-Schema/ranking-vote.json b/Projects/Governance/Schemas/App-Schema/ranking-vote.json index 079065718..5d75af150 100644 --- a/Projects/Governance/Schemas/App-Schema/ranking-vote.json +++ b/Projects/Governance/Schemas/App-Schema/ranking-vote.json @@ -31,7 +31,7 @@ "addLeftIcons": true, "level": 2, "attachingRules": { - "compatibleTypes": "->Civic Contributions->" + "compatibleTypes": "->Votes Switch->" }, "referencingRules": { "compatibleTypes": "->Team->Ranking Position->" diff --git a/Projects/Governance/Schemas/App-Schema/software-contributions.json b/Projects/Governance/Schemas/App-Schema/software-contributions.json deleted file mode 100644 index 86083a8ed..000000000 --- a/Projects/Governance/Schemas/App-Schema/software-contributions.json +++ /dev/null @@ -1,60 +0,0 @@ -{ - "type": "Software Contributions", - "menuItems": [ - { - "action": "Configure", - "actionFunction": "uiObject.configEditor.activate", - "label": "Configure", - "iconPathOn": "configuration", - "iconPathOff": "configuration" - }, - { - "action": "Add UI Object", - "actionFunction": "payload.executeAction", - "label": "Add Software Contributions", - "relatedUiObject": "Software Contributions" - }, - { - "action": "Add UI Object", - "actionFunction": "payload.executeAction", - "label": "Add Contributed Asset", - "relatedUiObject": "Contributed Asset" - }, - { - "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": "->Contribution Claims->Software Contributions->" - }, - "propertyNameAtParent": "softwareContributions", - "childrenNodesProperties": [ - { - "name": "softwareContributions", - "type": "array", - "childType": "Software Contributions", - "autoAdd": false - }, - { - "name": "contributedAssets", - "type": "array", - "childType": "Contributed Asset", - "autoAdd": false - } - ], - "icon": "bitcoin" -} \ No newline at end of file diff --git a/Projects/Governance/Schemas/App-Schema/contributed-time.json b/Projects/Governance/Schemas/App-Schema/time-contribution-claim.json similarity index 86% rename from Projects/Governance/Schemas/App-Schema/contributed-time.json rename to Projects/Governance/Schemas/App-Schema/time-contribution-claim.json index 9895ec408..d607c01df 100644 --- a/Projects/Governance/Schemas/App-Schema/contributed-time.json +++ b/Projects/Governance/Schemas/App-Schema/time-contribution-claim.json @@ -1,5 +1,5 @@ { - "type": "Contributed Time", + "type": "Time Contribution Claim", "menuItems": [ { "action": "Configure", @@ -31,11 +31,11 @@ "addLeftIcons": true, "level": 2, "attachingRules": { - "compatibleTypes": "->Time Contributions->" + "compatibleTypes": "->Time Contributions Folder->" }, "referencingRules": { "compatibleTypes": "->Ranking Position->" }, - "propertyNameAtParent": "contributedTimes", + "propertyNameAtParent": "timeContributionClaims", "icon": "dogecoin" } \ No newline at end of file diff --git a/Projects/Governance/Schemas/App-Schema/time-contributions.json b/Projects/Governance/Schemas/App-Schema/time-contributions-folder.json similarity index 71% rename from Projects/Governance/Schemas/App-Schema/time-contributions.json rename to Projects/Governance/Schemas/App-Schema/time-contributions-folder.json index a6a362501..47ec677ce 100644 --- a/Projects/Governance/Schemas/App-Schema/time-contributions.json +++ b/Projects/Governance/Schemas/App-Schema/time-contributions-folder.json @@ -1,5 +1,5 @@ { - "type": "Time Contributions", + "type": "Time Contributions Folder", "menuItems": [ { "action": "Configure", @@ -11,14 +11,14 @@ { "action": "Add UI Object", "actionFunction": "payload.executeAction", - "label": "Add Time Contributions", - "relatedUiObject": "Time Contributions" + "label": "Add Time Contributions Folder", + "relatedUiObject": "Time Contributions Folder" }, { "action": "Add UI Object", "actionFunction": "payload.executeAction", - "label": "Add Contributed Time", - "relatedUiObject": "Contributed Time" + "label": "Add Time Contribution Claim", + "relatedUiObject": "Time Contribution Claim" }, { "action": "Delete UI Object", @@ -39,20 +39,20 @@ "addLeftIcons": true, "level": 2, "attachingRules": { - "compatibleTypes": "->Contribution Claims->Time Contributions->" + "compatibleTypes": "->Contribution Claims->Time Contributions Folder->" }, - "propertyNameAtParent": "timeContributions", + "propertyNameAtParent": "timeContributionsFolder", "childrenNodesProperties": [ { - "name": "timeContributions", + "name": "timeContributionsFolder", "type": "array", - "childType": "Time Contributions", + "childType": "Time Contributions Folder", "autoAdd": false }, { - "name": "contributedTimes", + "name": "timeContributionClaims", "type": "array", - "childType": "Contributed Time", + "childType": "Time Contribution Claim", "autoAdd": false } ], diff --git a/Projects/Governance/Schemas/App-Schema/time-vote.json b/Projects/Governance/Schemas/App-Schema/time-vote.json index dd017b283..a085523bd 100644 --- a/Projects/Governance/Schemas/App-Schema/time-vote.json +++ b/Projects/Governance/Schemas/App-Schema/time-vote.json @@ -31,10 +31,10 @@ "addLeftIcons": true, "level": 2, "attachingRules": { - "compatibleTypes": "->Civic Contributions->" + "compatibleTypes": "->Votes Switch->" }, "referencingRules": { - "compatibleTypes": "->Contributed Time->" + "compatibleTypes": "->Time Contribution Claim->" }, "propertyNameAtParent": "timeVotes", "icon": "dogecoin" diff --git a/Projects/Governance/Schemas/App-Schema/user-vote.json b/Projects/Governance/Schemas/App-Schema/user-vote.json index f74d785b8..df86346f5 100644 --- a/Projects/Governance/Schemas/App-Schema/user-vote.json +++ b/Projects/Governance/Schemas/App-Schema/user-vote.json @@ -30,7 +30,7 @@ "addLeftIcons": true, "level": 2, "attachingRules": { - "compatibleTypes": "->Civic Contributions->" + "compatibleTypes": "->Votes Switch->" }, "referencingRules": { "compatibleTypes": "->User Profile->" diff --git a/Projects/Governance/Schemas/App-Schema/votes-distribution.json b/Projects/Governance/Schemas/App-Schema/votes-distribution.json index 33209a758..ddc718adf 100644 --- a/Projects/Governance/Schemas/App-Schema/votes-distribution.json +++ b/Projects/Governance/Schemas/App-Schema/votes-distribution.json @@ -11,8 +11,8 @@ { "action": "Add UI Object", "actionFunction": "payload.executeAction", - "label": "Add Civic Contributions", - "relatedUiObject": "Civic Contributions" + "label": "Add Votes Switch", + "relatedUiObject": "Votes Switch" }, { "action": "Add UI Object", @@ -45,9 +45,9 @@ "propertyNameAtParent": "votesDistribution", "childrenNodesProperties": [ { - "name": "civicContributions", + "name": "votesSwitch", "type": "array", - "childType": "Civic Contributions", + "childType": "Votes Switch", "autoAdd": false } ], diff --git a/Projects/Governance/Schemas/App-Schema/civic-contributions.json b/Projects/Governance/Schemas/App-Schema/votes-switch.json similarity index 88% rename from Projects/Governance/Schemas/App-Schema/civic-contributions.json rename to Projects/Governance/Schemas/App-Schema/votes-switch.json index d368147f5..d04dfe7d4 100644 --- a/Projects/Governance/Schemas/App-Schema/civic-contributions.json +++ b/Projects/Governance/Schemas/App-Schema/votes-switch.json @@ -1,5 +1,5 @@ { - "type": "Civic Contributions", + "type": "Votes Switch", "menuItems": [ { "action": "Configure", @@ -11,8 +11,8 @@ { "action": "Add UI Object", "actionFunction": "payload.executeAction", - "label": "Add Civic Contributions", - "relatedUiObject": "Civic Contributions" + "label": "Add Votes Switch", + "relatedUiObject": "Votes Switch" }, { "action": "Add UI Object", @@ -63,14 +63,14 @@ "addLeftIcons": true, "level": 2, "attachingRules": { - "compatibleTypes": "->Votes Distribution->Civic Contributions->" + "compatibleTypes": "->Votes Distribution->Votes Switch->" }, - "propertyNameAtParent": "civicContributions", + "propertyNameAtParent": "votesSwitch", "childrenNodesProperties": [ { - "name": "civicContributions", + "name": "votesSwitch", "type": "array", - "childType": "Civic Contributions", + "childType": "Votes Switch", "autoAdd": false }, {