Governance Mandatory Programs working.
This commit is contained in:
1 parent
5d87186127
commit
f7f3287379
9 files changed
+1700
-1578
No files matched your search
File renamed without changes.
@@ -401,8 +401,8 @@
|
||||
"id": "60712b3c-ee76-40ba-8de2-e03aa61f6dde",
|
||||
"savedPayload": {
|
||||
"position": {
|
||||
"x": 25130.086277076116,
|
||||
"y": 31080.643930047634
|
||||
"x": 25177.761863855485,
|
||||
"y": 31018.51189569167
|
||||
},
|
||||
"targetPosition": {
|
||||
"x": 24917.954242720152,
|
||||
@@ -431,7 +431,7 @@
|
||||
"id": "639a6504-a0d0-4d7e-ad99-80ba5115ac72",
|
||||
"savedPayload": {
|
||||
"position": {
|
||||
"x": 24840.308529189395,
|
||||
"x": 24995.59995625091,
|
||||
"y": 31158.28964357839
|
||||
},
|
||||
"targetPosition": {
|
||||
@@ -450,6 +450,36 @@
|
||||
"isRunning": false
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"type": "Pool",
|
||||
"name": "Support-Program",
|
||||
"config": "{\n\"codeName\": \"Support-Program\"\n}",
|
||||
"project": "Governance",
|
||||
"poolClasses": [],
|
||||
"pools": [],
|
||||
"id": "18fa6e35-77df-4446-87a9-9d3e6b83eb05",
|
||||
"savedPayload": {
|
||||
"position": {
|
||||
"x": 24767.954242720152,
|
||||
"y": 31128.319516827003
|
||||
},
|
||||
"targetPosition": {
|
||||
"x": 24917.954242720152,
|
||||
"y": 30868.51189569167
|
||||
},
|
||||
"floatingObject": {
|
||||
"isPinned": false,
|
||||
"isFrozen": false,
|
||||
"isCollapsed": false,
|
||||
"angleToParent": 2,
|
||||
"distanceToParent": 3,
|
||||
"arrangementStyle": 0
|
||||
},
|
||||
"uiObject": {
|
||||
"isRunning": false
|
||||
}
|
||||
}
|
||||
}
|
||||
],
|
||||
"id": "9b6c24b9-e21d-458b-b509-1828d40b4239",
|
||||
|
||||
File diff suppressed because it is too large.
Load diff
@@ -144,32 +144,6 @@
|
||||
"type": "Governance Project",
|
||||
"name": "New Governance Project",
|
||||
"project": "Governance",
|
||||
"projectDefinition": {
|
||||
"type": "Project Definition",
|
||||
"name": "Governance",
|
||||
"config": "{ \n \"codeName\": \"Governance\"\n}",
|
||||
"project": "Foundations",
|
||||
"id": "ba1aa656-d184-493a-b332-e4db109065f0",
|
||||
"savedPayload": {
|
||||
"position": {
|
||||
"x": 13832,
|
||||
"y": 10738.5
|
||||
},
|
||||
"targetPosition": {
|
||||
"x": 13532,
|
||||
"y": 10738.5
|
||||
},
|
||||
"floatingObject": {
|
||||
"isPinned": false,
|
||||
"isFrozen": false,
|
||||
"isCollapsed": false,
|
||||
"angleToParent": 1,
|
||||
"distanceToParent": 3,
|
||||
"arrangementStyle": 0
|
||||
},
|
||||
"uiObject": {}
|
||||
}
|
||||
},
|
||||
"id": "db380c52-cf90-475b-87df-c005dd51cdf6",
|
||||
"savedPayload": {
|
||||
"position": {
|
||||
@@ -193,66 +167,6 @@
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"type": "Positions",
|
||||
"name": "Superalgos",
|
||||
"project": "Governance",
|
||||
"positionClasss": [],
|
||||
"positions": [
|
||||
{
|
||||
"type": "Position",
|
||||
"name": "Project Leader",
|
||||
"config": "{\n \"description\": \"\", \"relativeWeight\": 0 \n}",
|
||||
"project": "Governance",
|
||||
"positions": [],
|
||||
"positionClasss": [],
|
||||
"id": "5f694173-4568-46b2-a52c-4244320919f7",
|
||||
"savedPayload": {
|
||||
"position": {
|
||||
"x": 30231,
|
||||
"y": 38070
|
||||
},
|
||||
"targetPosition": {
|
||||
"x": 30231,
|
||||
"y": 37770
|
||||
},
|
||||
"floatingObject": {
|
||||
"isPinned": false,
|
||||
"isFrozen": false,
|
||||
"isCollapsed": false,
|
||||
"angleToParent": 2,
|
||||
"distanceToParent": 3,
|
||||
"arrangementStyle": 0
|
||||
},
|
||||
"uiObject": {
|
||||
"isRunning": false
|
||||
}
|
||||
}
|
||||
}
|
||||
],
|
||||
"id": "50c68665-5da2-48a8-b229-7a1563ae82d2",
|
||||
"savedPayload": {
|
||||
"position": {
|
||||
"x": 30231,
|
||||
"y": 37770
|
||||
},
|
||||
"targetPosition": {
|
||||
"x": 30231,
|
||||
"y": 37770
|
||||
},
|
||||
"floatingObject": {
|
||||
"isPinned": false,
|
||||
"isFrozen": false,
|
||||
"isCollapsed": true,
|
||||
"angleToParent": 1,
|
||||
"distanceToParent": 3,
|
||||
"arrangementStyle": 0
|
||||
},
|
||||
"uiObject": {
|
||||
"isRunning": false
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"type": "Docs Space",
|
||||
"name": "New Docs Space",
|
||||
@@ -892,9 +806,9 @@
|
||||
{
|
||||
"type": "Plugin File",
|
||||
"name": "Julian-Molina",
|
||||
"config": "{\"project\":\"Governance\",\"fileName\":\"Julian-Molina\"}",
|
||||
"config": "{\n \"project\": \"Governance\",\n \"fileName\": \"Julian-Molina\"\n}",
|
||||
"project": "Foundations",
|
||||
"id": "d13c2f5a-b48c-4c67-ae0a-c5c49c27868b",
|
||||
"id": "39cd9f98-5266-4eee-ace2-cad6db5b29e4",
|
||||
"savedPayload": {
|
||||
"position": {
|
||||
"x": 35306.95802911758,
|
||||
@@ -931,7 +845,7 @@
|
||||
"floatingObject": {
|
||||
"isPinned": false,
|
||||
"isFrozen": false,
|
||||
"isCollapsed": true,
|
||||
"isCollapsed": false,
|
||||
"angleToParent": 2,
|
||||
"distanceToParent": 3,
|
||||
"arrangementStyle": 0
|
||||
@@ -1246,7 +1160,7 @@
|
||||
"floatingObject": {
|
||||
"isPinned": false,
|
||||
"isFrozen": false,
|
||||
"isCollapsed": false,
|
||||
"isCollapsed": true,
|
||||
"angleToParent": 2,
|
||||
"distanceToParent": 3,
|
||||
"arrangementStyle": 0
|
||||
@@ -1284,7 +1198,36 @@
|
||||
"type": "Plugin Positions",
|
||||
"name": "New Plugin Positions",
|
||||
"project": "Governance",
|
||||
"pluginFiles": [],
|
||||
"pluginFiles": [
|
||||
{
|
||||
"type": "Plugin File",
|
||||
"name": "Superalgos",
|
||||
"config": "{\n \"project\": \"Governance\",\n \"fileName\": \"Superalgos\"\n}",
|
||||
"project": "Foundations",
|
||||
"id": "ccaa3acb-687b-4e61-8a15-251f5524ed13",
|
||||
"savedPayload": {
|
||||
"position": {
|
||||
"x": 35942.095312981444,
|
||||
"y": 9960.039006389541
|
||||
},
|
||||
"targetPosition": {
|
||||
"x": 35910.73677400115,
|
||||
"y": 10258.395575000022
|
||||
},
|
||||
"floatingObject": {
|
||||
"isPinned": false,
|
||||
"isFrozen": false,
|
||||
"isCollapsed": true,
|
||||
"angleToParent": 2,
|
||||
"distanceToParent": 3,
|
||||
"arrangementStyle": 0
|
||||
},
|
||||
"uiObject": {
|
||||
"isRunning": false
|
||||
}
|
||||
}
|
||||
}
|
||||
],
|
||||
"id": "4adb08aa-1703-4a6d-a8f5-eec6f5d8d1cc",
|
||||
"savedPayload": {
|
||||
"position": {
|
||||
@@ -1298,7 +1241,7 @@
|
||||
"floatingObject": {
|
||||
"isPinned": false,
|
||||
"isFrozen": false,
|
||||
"isCollapsed": false,
|
||||
"isCollapsed": true,
|
||||
"angleToParent": 2,
|
||||
"distanceToParent": 3,
|
||||
"arrangementStyle": 0
|
||||
@@ -1382,6 +1325,34 @@
|
||||
"isRunning": false
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"type": "User Profile",
|
||||
"name": "Jeremy",
|
||||
"config": "{\n \"codeName\": \"\",\n \"tokens\": 1000\n}",
|
||||
"project": "Governance",
|
||||
"id": "759e9012-c995-47ed-92f1-7d204bf2b58e",
|
||||
"savedPayload": {
|
||||
"position": {
|
||||
"x": 19667.166666666664,
|
||||
"y": 23061.600619195047
|
||||
},
|
||||
"targetPosition": {
|
||||
"x": 19667.166666666664,
|
||||
"y": 23061.600619195047
|
||||
},
|
||||
"floatingObject": {
|
||||
"isPinned": false,
|
||||
"isFrozen": false,
|
||||
"isCollapsed": false,
|
||||
"angleToParent": 2,
|
||||
"distanceToParent": 3,
|
||||
"arrangementStyle": 0
|
||||
},
|
||||
"uiObject": {
|
||||
"isRunning": false
|
||||
}
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
@@ -12,8 +12,8 @@
|
||||
"action": "Add UI Object",
|
||||
"actionProject": "Foundations",
|
||||
"actionFunction": "payload.executeAction",
|
||||
"label": "Add User Support",
|
||||
"relatedUiObject": "User Support"
|
||||
"label": "Add User Supporter",
|
||||
"relatedUiObject": "User Supporter"
|
||||
},
|
||||
{
|
||||
"action": "Add UI Object",
|
||||
@@ -49,9 +49,9 @@
|
||||
"propertyNameAtParent": "supportProgram",
|
||||
"childrenNodesProperties": [
|
||||
{
|
||||
"name": "userSupports",
|
||||
"name": "userSupporters",
|
||||
"type": "array",
|
||||
"childType": "User Support",
|
||||
"childType": "User Supporter",
|
||||
"autoAdd": false
|
||||
},
|
||||
{
|
||||
|
||||
+3
-3
@@ -1,5 +1,5 @@
|
||||
{
|
||||
"type": "User Support",
|
||||
"type": "User Supporter",
|
||||
"menuItems": [
|
||||
{
|
||||
"action": "Configure",
|
||||
@@ -31,10 +31,10 @@
|
||||
"addLeftIcons": true,
|
||||
"level": 2,
|
||||
"attachingRules": {
|
||||
"compatibleTypes": "->support Program->"
|
||||
"compatibleTypes": "->Support Program->"
|
||||
},
|
||||
"referencingRules": {
|
||||
"compatibleTypes": "->User Profile->"
|
||||
},
|
||||
"propertyNameAtParent": "userSupports"
|
||||
"propertyNameAtParent": "userSupporters"
|
||||
}
|
||||
@@ -41,6 +41,11 @@ function newGovernanceFunctionLibraryDistributionProcess() {
|
||||
userProfiles
|
||||
)
|
||||
|
||||
UI.projects.governance.functionLibraries.supportProgram.calculate(
|
||||
pools,
|
||||
userProfiles
|
||||
)
|
||||
|
||||
UI.projects.governance.functionLibraries.mentorshipProgram.calculate(
|
||||
pools,
|
||||
userProfiles
|
||||
|
||||
@@ -0,0 +1,23 @@
|
||||
function newGovernanceFunctionLibrarySupportProgram() {
|
||||
let thisObject = {
|
||||
calculate: calculate
|
||||
}
|
||||
|
||||
return thisObject
|
||||
|
||||
function calculate(
|
||||
pools,
|
||||
userProfiles
|
||||
) {
|
||||
UI.projects.governance.utilities.mandatoryProgram.run(
|
||||
pools,
|
||||
userProfiles,
|
||||
"supportProgram",
|
||||
"Support-Program",
|
||||
"Support Program",
|
||||
"Support Power",
|
||||
"userSupporters",
|
||||
"User Supporter"
|
||||
)
|
||||
}
|
||||
}
|
||||
@@ -1003,6 +1003,11 @@
|
||||
"propertyName": "referralProgram",
|
||||
"functionName": "newGovernanceFunctionLibraryReferralProgram"
|
||||
},
|
||||
{
|
||||
"name": "Support Program",
|
||||
"propertyName": "supportProgram",
|
||||
"functionName": "newGovernanceFunctionLibrarySupportProgram"
|
||||
},
|
||||
{
|
||||
"name": "Mentorship Program",
|
||||
"propertyName": "mentorshipProgram",
|
||||
|
||||
Reference in new issue
Block a user