Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

✨ Feedback from May 2022 Sprint #14

Merged
merged 18 commits into from
Jun 16, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion data/contacts.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
"Email": "[email protected]",
"Phone": "4152568563",
"GRMS_LoginEmail__c": "[email protected]",
"GRMS_ContactType__c": "Survey User"
"GRMS_ContactType__c": "Field Worker"
},
{
"attributes": {
Expand Down
2 changes: 1 addition & 1 deletion data/plan.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
"files": ["contacts.json"]
},
{
"sobject": "GRMS_UserClientRelation__c",
"sobject": "GRMS_FieldWorkerClientRelation__c",
"saveRefs": true,
"resolveRefs": true,
"files": ["relationship.json"]
Expand Down
16 changes: 8 additions & 8 deletions data/relationship.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,27 +2,27 @@
"records": [
{
"attributes": {
"type": "GRMS_UserClientRelation__c",
"type": "GRMS_FieldWorkerClientRelation__c",
"referenceId": "RelationRef1"
},
"GRMS_User__c": "@ContactRef1",
"GRMS_FieldWorker__c": "@ContactRef1",
"GRMS_Client__c": "@ContactRef2"
},
{
"attributes": {
"type": "GRMS_UserClientRelation__c",
"type": "GRMS_FieldWorkerClientRelation__c",
"referenceId": "RelationRef2"
},
"GRMS_User__c": "@ContactRef1",
"GRMS_Client__c": "@ContactRef2"
"GRMS_FieldWorker__c": "@ContactRef1",
"GRMS_Client__c": "@ContactRef3"
},
{
"attributes": {
"type": "GRMS_UserClientRelation__c",
"type": "GRMS_FieldWorkerClientRelation__c",
"referenceId": "RelationRef3"
},
"GRMS_User__c": "@ContactRef1",
"GRMS_Client__c": "@ContactRef2"
"GRMS_FieldWorker__c": "@ContactRef1",
"GRMS_Client__c": "@ContactRef4"
}
]
}
20 changes: 19 additions & 1 deletion force-app/main/default/applications/GRMS_Survey_App.app-meta.xml
Original file line number Diff line number Diff line change
@@ -1,5 +1,23 @@
<?xml version="1.0" encoding="UTF-8"?>
<CustomApplication xmlns="http://soap.sforce.com/2006/04/metadata">
<actionOverrides>
<actionName>View</actionName>
<comment>Action override created by Lightning App Builder during activation.</comment>
<content>GRMS_Contact_Record_Page</content>
<formFactor>Small</formFactor>
<skipRecordTypeSelect>false</skipRecordTypeSelect>
<type>Flexipage</type>
<pageOrSobjectType>Contact</pageOrSobjectType>
</actionOverrides>
<actionOverrides>
<actionName>View</actionName>
<comment>Action override created by Lightning App Builder during activation.</comment>
<content>GRMS_Contact_Record_Page</content>
<formFactor>Large</formFactor>
<skipRecordTypeSelect>false</skipRecordTypeSelect>
<type>Flexipage</type>
<pageOrSobjectType>Contact</pageOrSobjectType>
</actionOverrides>
<brand>
<headerColor>#0070D2</headerColor>
<logo>grms_sq_logo</logo>
Expand All @@ -13,7 +31,7 @@
<label>Grassroots Survey</label>
<navType>Standard</navType>
<tabs>standard-Contact</tabs>
<tabs>GRMS_UserClientRelation__c</tabs>
<tabs>GRMS_FieldWorkerClientRelation__c</tabs>
<tabs>GRMS_Survey__c</tabs>
<uiType>Lightning</uiType>
<utilityBar>GRMS_Survey_App_UtilityBar</utilityBar>
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,311 @@
<?xml version="1.0" encoding="UTF-8"?>
<FlexiPage xmlns="http://soap.sforce.com/2006/04/metadata">
<flexiPageRegions>
<itemInstances>
<componentInstance>
<componentInstanceProperties>
<name>collapsed</name>
<value>false</value>
</componentInstanceProperties>
<componentInstanceProperties>
<name>enableActionsConfiguration</name>
<value>false</value>
</componentInstanceProperties>
<componentInstanceProperties>
<name>enableActionsInNative</name>
<value>false</value>
</componentInstanceProperties>
<componentInstanceProperties>
<name>hideChatterActions</name>
<value>false</value>
</componentInstanceProperties>
<componentInstanceProperties>
<name>numVisibleActions</name>
<value>3</value>
</componentInstanceProperties>
<componentName>force:highlightsPanel</componentName>
<identifier>force_highlightsPanel</identifier>
</componentInstance>
</itemInstances>
<mode>Replace</mode>
<name>header</name>
<type>Region</type>
</flexiPageRegions>
<flexiPageRegions>
<itemInstances>
<componentInstance>
<componentInstanceProperties>
<name>displayOption</name>
<value>BOTH</value>
</componentInstanceProperties>
<componentName>runtime_sales_merge:mergeCandidatesPreviewCard</componentName>
<identifier>runtime_sales_merge_mergeCandidatesPreviewCard</identifier>
</componentInstance>
</itemInstances>
<itemInstances>
<componentInstance>
<componentInstanceProperties>
<name>parentFieldApiName</name>
<value>Contact.Id</value>
</componentInstanceProperties>
<componentInstanceProperties>
<name>relatedListApiName</name>
<value>Surveys__r</value>
</componentInstanceProperties>
<componentInstanceProperties>
<name>relatedListComponentOverride</name>
<value>NONE</value>
</componentInstanceProperties>
<componentInstanceProperties>
<name>rowsToDisplay</name>
<value>10</value>
</componentInstanceProperties>
<componentInstanceProperties>
<name>showActionBar</name>
<value>true</value>
</componentInstanceProperties>
<componentName>force:relatedListSingleContainer</componentName>
<identifier>force_relatedListSingleContainer1</identifier>
</componentInstance>
</itemInstances>
<itemInstances>
<componentInstance>
<componentInstanceProperties>
<name>parentFieldApiName</name>
<value>Contact.Id</value>
</componentInstanceProperties>
<componentInstanceProperties>
<name>relatedListApiName</name>
<value>ClientRelationships__r</value>
</componentInstanceProperties>
<componentInstanceProperties>
<name>relatedListComponentOverride</name>
<value>NONE</value>
</componentInstanceProperties>
<componentInstanceProperties>
<name>rowsToDisplay</name>
<value>10</value>
</componentInstanceProperties>
<componentInstanceProperties>
<name>showActionBar</name>
<value>true</value>
</componentInstanceProperties>
<componentName>force:relatedListSingleContainer</componentName>
<identifier>force_relatedListSingleContainer</identifier>
<visibilityRule>
<criteria>
<leftValue>{!Record.GRMS_ContactType__c}</leftValue>
<operator>EQUAL</operator>
<rightValue>Field Worker</rightValue>
</criteria>
</visibilityRule>
</componentInstance>
</itemInstances>
<itemInstances>
<componentInstance>
<componentInstanceProperties>
<name>parentFieldApiName</name>
<value>Contact.Id</value>
</componentInstanceProperties>
<componentInstanceProperties>
<name>relatedListApiName</name>
<value>FieldWorkerRelationships__r</value>
</componentInstanceProperties>
<componentInstanceProperties>
<name>relatedListComponentOverride</name>
<value>NONE</value>
</componentInstanceProperties>
<componentInstanceProperties>
<name>rowsToDisplay</name>
<value>10</value>
</componentInstanceProperties>
<componentInstanceProperties>
<name>showActionBar</name>
<value>true</value>
</componentInstanceProperties>
<componentName>force:relatedListSingleContainer</componentName>
<identifier>force_relatedListSingleContainer2</identifier>
<visibilityRule>
<criteria>
<leftValue>{!Record.GRMS_ContactType__c}</leftValue>
<operator>EQUAL</operator>
<rightValue>Survey Client</rightValue>
</criteria>
</visibilityRule>
</componentInstance>
</itemInstances>
<itemInstances>
<componentInstance>
<componentInstanceProperties>
<name>parentFieldApiName</name>
<value>Contact.Id</value>
</componentInstanceProperties>
<componentInstanceProperties>
<name>relatedListApiName</name>
<value>AttachedContentDocuments</value>
</componentInstanceProperties>
<componentInstanceProperties>
<name>relatedListComponentOverride</name>
<value>NONE</value>
</componentInstanceProperties>
<componentInstanceProperties>
<name>rowsToDisplay</name>
<value>10</value>
</componentInstanceProperties>
<componentInstanceProperties>
<name>showActionBar</name>
<value>true</value>
</componentInstanceProperties>
<componentName>force:relatedListSingleContainer</componentName>
<identifier>force_relatedListSingleContainer3</identifier>
</componentInstance>
</itemInstances>
<mode>Replace</mode>
<name>relatedTabContent</name>
<type>Facet</type>
</flexiPageRegions>
<flexiPageRegions>
<itemInstances>
<componentInstance>
<componentName>force:detailPanel</componentName>
<identifier>force_detailPanel</identifier>
</componentInstance>
</itemInstances>
<mode>Replace</mode>
<name>detailTabContent</name>
<type>Facet</type>
</flexiPageRegions>
<flexiPageRegions>
<itemInstances>
<componentInstance>
<componentInstanceProperties>
<name>active</name>
<value>true</value>
</componentInstanceProperties>
<componentInstanceProperties>
<name>body</name>
<value>relatedTabContent</value>
</componentInstanceProperties>
<componentInstanceProperties>
<name>title</name>
<value>Standard.Tab.relatedLists</value>
</componentInstanceProperties>
<componentName>flexipage:tab</componentName>
<identifier>relatedListsTab</identifier>
</componentInstance>
</itemInstances>
<itemInstances>
<componentInstance>
<componentInstanceProperties>
<name>body</name>
<value>detailTabContent</value>
</componentInstanceProperties>
<componentInstanceProperties>
<name>title</name>
<value>Standard.Tab.detail</value>
</componentInstanceProperties>
<componentName>flexipage:tab</componentName>
<identifier>detailTab</identifier>
</componentInstance>
</itemInstances>
<mode>Replace</mode>
<name>maintabs</name>
<type>Facet</type>
</flexiPageRegions>
<flexiPageRegions>
<itemInstances>
<componentInstance>
<componentInstanceProperties>
<name>tabs</name>
<value>maintabs</value>
</componentInstanceProperties>
<componentName>flexipage:tabset</componentName>
<identifier>flexipage_tabset</identifier>
</componentInstance>
</itemInstances>
<mode>Replace</mode>
<name>main</name>
<type>Region</type>
</flexiPageRegions>
<flexiPageRegions>
<itemInstances>
<componentInstance>
<componentName>runtime_sales_activities:activityPanel</componentName>
<identifier>runtime_sales_activities_activityPanel</identifier>
</componentInstance>
</itemInstances>
<mode>Replace</mode>
<name>activityTabContent</name>
<type>Facet</type>
</flexiPageRegions>
<flexiPageRegions>
<itemInstances>
<componentInstance>
<componentName>forceChatter:recordFeedContainer</componentName>
<identifier>forceChatter_recordFeedContainer</identifier>
</componentInstance>
</itemInstances>
<mode>Replace</mode>
<name>feedTabContent</name>
<type>Facet</type>
</flexiPageRegions>
<flexiPageRegions>
<itemInstances>
<componentInstance>
<componentInstanceProperties>
<name>active</name>
<value>true</value>
</componentInstanceProperties>
<componentInstanceProperties>
<name>body</name>
<value>activityTabContent</value>
</componentInstanceProperties>
<componentInstanceProperties>
<name>title</name>
<value>Standard.Tab.activity</value>
</componentInstanceProperties>
<componentName>flexipage:tab</componentName>
<identifier>activityTab</identifier>
</componentInstance>
</itemInstances>
<itemInstances>
<componentInstance>
<componentInstanceProperties>
<name>body</name>
<value>feedTabContent</value>
</componentInstanceProperties>
<componentInstanceProperties>
<name>title</name>
<value>Standard.Tab.collaborate</value>
</componentInstanceProperties>
<componentName>flexipage:tab</componentName>
<identifier>collaborateTab</identifier>
</componentInstance>
</itemInstances>
<mode>Replace</mode>
<name>sidebartabs</name>
<type>Facet</type>
</flexiPageRegions>
<flexiPageRegions>
<itemInstances>
<componentInstance>
<componentInstanceProperties>
<name>tabs</name>
<value>sidebartabs</value>
</componentInstanceProperties>
<componentName>flexipage:tabset</componentName>
<identifier>flexipage_tabset2</identifier>
</componentInstance>
</itemInstances>
<mode>Replace</mode>
<name>sidebar</name>
<type>Region</type>
</flexiPageRegions>
<masterLabel>Grassroots Survey Contact Record Page</masterLabel>
<parentFlexiPage>sfa__Contact_rec_L</parentFlexiPage>
<sobjectType>Contact</sobjectType>
<template>
<name>flexipage:recordHomeTemplateDesktop</name>
</template>
<type>RecordPage</type>
</FlexiPage>
Loading