Skip to content

Commit

Permalink
Merge pull request #1304 from bcgov/BCMOHAD-24466
Browse files Browse the repository at this point in the history
BCMOHAD-24466 && BCMOHAD-24614 || Updated the Visibility changes
  • Loading branch information
RanadheerRG authored Sep 20, 2024
2 parents a3bd31a + 3d55cb4 commit 8b6b478
Show file tree
Hide file tree
Showing 15 changed files with 182 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,13 @@
<Profile xmlns="http://soap.sforce.com/2006/04/metadata">
<fullName>MoH Standard User</fullName>
<applicationVisibilities>
<application>Case_Management</application>
<application>Home</application>
<default>true</default>
<visible>ture</visible>
</applicationVisibilities>
<applicationVisibilities>
<application>Case_Management</application>
<default>false</default>
<visible>false</visible>
</applicationVisibilities>
<applicationVisibilities>
Expand Down Expand Up @@ -179,9 +184,9 @@
<visible>true</visible>
</recordTypeVisibilities>
<recordTypeVisibilities>
<default>true</default>
<default>false</default>
<recordType>Case.Special_Authority_Request</recordType>
<visible>true</visible>
<visible>false</visible>
</recordTypeVisibilities>
<recordTypeVisibilities>
<default>true</default>
Expand Down
8 changes: 8 additions & 0 deletions dev-app-post/main/default/roles/Developer.role-meta.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
<?xml version="1.0" encoding="UTF-8"?>
<Role xmlns="http://soap.sforce.com/2006/04/metadata">
<caseAccessLevel>None</caseAccessLevel>
<contactAccessLevel>Edit</contactAccessLevel>
<mayForecastManagerShare>false</mayForecastManagerShare>
<name>Developer</name>
<opportunityAccessLevel>Edit</opportunityAccessLevel>
</Role>
8 changes: 8 additions & 0 deletions dev-app-post/main/default/roles/SA_Admin.role-meta.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
<?xml version="1.0" encoding="UTF-8"?>
<Role xmlns="http://soap.sforce.com/2006/04/metadata">
<caseAccessLevel>None</caseAccessLevel>
<contactAccessLevel>Edit</contactAccessLevel>
<mayForecastManagerShare>false</mayForecastManagerShare>
<name>SA Admin</name>
<opportunityAccessLevel>Edit</opportunityAccessLevel>
</Role>
9 changes: 9 additions & 0 deletions dev-app-post/main/default/roles/SA_Manager.role-meta.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
<?xml version="1.0" encoding="UTF-8"?>
<Role xmlns="http://soap.sforce.com/2006/04/metadata">
<caseAccessLevel>None</caseAccessLevel>
<contactAccessLevel>Edit</contactAccessLevel>
<mayForecastManagerShare>false</mayForecastManagerShare>
<name>SA Manager</name>
<opportunityAccessLevel>Edit</opportunityAccessLevel>
<parentRole>SA_Admin</parentRole>
</Role>
9 changes: 9 additions & 0 deletions dev-app-post/main/default/roles/SA_Staff.role-meta.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
<?xml version="1.0" encoding="UTF-8"?>
<Role xmlns="http://soap.sforce.com/2006/04/metadata">
<caseAccessLevel>None</caseAccessLevel>
<contactAccessLevel>Edit</contactAccessLevel>
<mayForecastManagerShare>false</mayForecastManagerShare>
<name>SA Staff</name>
<opportunityAccessLevel>Edit</opportunityAccessLevel>
<parentRole>SA_Manager</parentRole>
</Role>
19 changes: 19 additions & 0 deletions force-app/main/default/applications/Home.app-meta.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
<?xml version="1.0" encoding="UTF-8"?>
<CustomApplication xmlns="http://soap.sforce.com/2006/04/metadata">
<brand>
<headerColor>#0070D2</headerColor>
<shouldOverrideOrgTheme>false</shouldOverrideOrgTheme>
</brand>
<description>This is the Default Landing Page</description>
<formFactors>Small</formFactors>
<formFactors>Large</formFactors>
<isNavAutoTempTabsDisabled>false</isNavAutoTempTabsDisabled>
<isNavPersonalizationDisabled>true</isNavPersonalizationDisabled>
<isNavTabPersistenceDisabled>false</isNavTabPersistenceDisabled>
<isOmniPinnedViewEnabled>false</isOmniPinnedViewEnabled>
<label>Home</label>
<navType>Standard</navType>
<tabs>standard-home</tabs>
<uiType>Lightning</uiType>
<utilityBar>Home_UtilityBar</utilityBar>
</CustomApplication>
40 changes: 40 additions & 0 deletions force-app/main/default/flexipages/Home.flexipage-meta.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
<?xml version="1.0" encoding="UTF-8"?>
<FlexiPage xmlns="http://soap.sforce.com/2006/04/metadata">
<flexiPageRegions>
<name>top</name>
<type>Region</type>
</flexiPageRegions>
<flexiPageRegions>
<name>bottomLeft</name>
<type>Region</type>
</flexiPageRegions>
<flexiPageRegions>
<itemInstances>
<componentInstance>
<componentInstanceProperties>
<name>context</name>
<value>BOOKMARKS</value>
</componentInstanceProperties>
<componentName>forceChatter:exposedFeed</componentName>
<identifier>forceChatter_exposedFeed</identifier>
</componentInstance>
</itemInstances>
<name>bottomRight</name>
<type>Region</type>
</flexiPageRegions>
<flexiPageRegions>
<itemInstances>
<componentInstance>
<componentName>runtime_sales_activities:todayTaskContainer</componentName>
<identifier>runtime_sales_activities_todayTaskContainer</identifier>
</componentInstance>
</itemInstances>
<name>sidebar</name>
<type>Region</type>
</flexiPageRegions>
<masterLabel>Home</masterLabel>
<template>
<name>home:desktopTemplate</name>
</template>
<type>HomePage</type>
</FlexiPage>
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
<?xml version="1.0" encoding="UTF-8"?>
<FlexiPage xmlns="http://soap.sforce.com/2006/04/metadata">
<flexiPageRegions>
<name>utilityItems</name>
<type>Region</type>
</flexiPageRegions>
<flexiPageRegions>
<name>backgroundComponents</name>
<type>Background</type>
</flexiPageRegions>
<masterLabel>Home UtilityBar</masterLabel>
<template>
<name>one:utilityBarTemplateDesktop</name>
<properties>
<name>isLeftAligned</name>
<value>true</value>
</properties>
</template>
<type>UtilityBar</type>
</FlexiPage>
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
<operation>equals</operation>
<value>PersonAccount.Patient</value>
</filters>
<label>All Patients</label>
<label>All SAT Patients</label>
<sharedTo>
<group>All_SAT_Team_Members</group>
</sharedTo>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
<operation>equals</operation>
<value>PersonAccount.Provider</value>
</filters>
<label>All Providers</label>
<label>All SAT Providers</label>
<sharedTo>
<group>All_SAT_Team_Members</group>
</sharedTo>
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
<?xml version="1.0" encoding="UTF-8"?>
<ListView xmlns="http://soap.sforce.com/2006/04/metadata">
<fullName>Migraine_Queue_Case</fullName>
<columns>CASES.CASE_NUMBER</columns>
<columns>NAME</columns>
<columns>CASES.SUBJECT</columns>
<columns>CASES.STATUS</columns>
<columns>CASES.PRIORITY</columns>
<columns>CASES.CREATED_DATE</columns>
<columns>CORE.USERS.ALIAS</columns>
<filterScope>Queue</filterScope>
<label>Migraine Queue</label>
<queue>Migraine_Queue</queue>
<sharedTo>
<group>All_SAT_Team_Members</group>
</sharedTo>
</ListView>
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
<?xml version="1.0" encoding="UTF-8"?>
<ListView xmlns="http://soap.sforce.com/2006/04/metadata">
<fullName>Omalizumab_Case</fullName>
<columns>CASES.CASE_NUMBER</columns>
<columns>NAME</columns>
<columns>CASES.SUBJECT</columns>
<columns>CASES.STATUS</columns>
<columns>CASES.PRIORITY</columns>
<columns>CASES.CREATED_DATE</columns>
<columns>CORE.USERS.ALIAS</columns>
<filterScope>Queue</filterScope>
<label>Omalizumab</label>
<queue>Omalizumab</queue>
<sharedTo>
<group>All_SAT_Team_Members</group>
</sharedTo>
</ListView>
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
<?xml version="1.0" encoding="UTF-8"?>
<ListView xmlns="http://soap.sforce.com/2006/04/metadata">
<fullName>Service_Case_Case</fullName>
<columns>CASES.CASE_NUMBER</columns>
<columns>NAME</columns>
<columns>CASES.SUBJECT</columns>
<columns>CASES.STATUS</columns>
<columns>CASES.PRIORITY</columns>
<columns>CASES.CREATED_DATE</columns>
<columns>CORE.USERS.ALIAS</columns>
<filterScope>Queue</filterScope>
<label>Service Case</label>
<queue>Service_Case</queue>
<sharedTo>
<group>All_SAT_Team_Members</group>
</sharedTo>
</ListView>
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
<?xml version="1.0" encoding="UTF-8"?>
<ValidationRule xmlns="http://soap.sforce.com/2006/04/metadata">
<fullName>SAT_Validate_Case_Owner</fullName>
<active>true</active>
<description>The purpose of this rule is that only SAT cases can be assigned to SAT queues and SAT Users</description>
<errorConditionFormula>AND(RecordType.DeveloperName =&quot;Special_Authority_Request&quot;, ISCHANGED( OwnerId ), NOT(OR(Owner:Queue.DeveloperName = &quot;General_Queue&quot;, Owner:Queue.DeveloperName = &quot;AC&quot;, Owner:Queue.DeveloperName = &quot;AR&quot;, Owner:Queue.DeveloperName = &quot;Compounds&quot;, Owner:Queue.DeveloperName = &quot;Hep&quot;, Owner:Queue.DeveloperName = &quot;IBD&quot;, Owner:Queue.DeveloperName = &quot;IPF_Benra_Mepo&quot;, Owner:Queue.DeveloperName = &quot;Insulin_Pumps&quot;, Owner:Queue.DeveloperName = &quot;MS&quot;, Owner:Queue.DeveloperName = &quot;OAB&quot;, Owner:Queue.DeveloperName = &quot;OP&quot;, Owner:Queue.DeveloperName = &quot;Off_Label_AR&quot;, Owner:Queue.DeveloperName = &quot;PAH&quot;, Owner:Queue.DeveloperName = &quot;PP&quot;, Owner:Queue.DeveloperName = &quot;Regular&quot;, Owner:Queue.DeveloperName = &quot;SAP&quot;, Owner:Queue.DeveloperName = &quot;Urgent&quot;, Owner:Queue.DeveloperName = &quot;eForm_Failure&quot;, Owner:Queue.DeveloperName = &quot;Pharmacist_Regular_Queue&quot;, Owner:Queue.DeveloperName = &quot;Pharmacist_Urgent_Queue&quot;, Owner:Queue.DeveloperName = &quot;To_be_faxed_queue&quot;, Owner:Queue.DeveloperName = &quot;HIBC_Error_Report_Queue&quot;, Owner:Queue.DeveloperName = &quot;Fax_Intake&quot;, Owner:Queue.DeveloperName = &quot;LCA&quot;, Owner:Queue.DeveloperName = &quot;Omalizumab&quot;, Owner:Queue.DeveloperName = &quot;Evolocumab_Queue&quot;, Owner:Queue.DeveloperName = &quot;Service_Case&quot;, Owner:Queue.DeveloperName = &quot;Migraine_Queue&quot;)), NOT(OR(Owner:User.UserRole.Name = &quot;Developer&quot;,Owner:User.UserRole.Name = &quot;SA Admin&quot;,Owner:User.UserRole.Name = &quot;SA Manager&quot;,Owner:User.UserRole.Name = &quot;SA Staff&quot;)))</errorConditionFormula>
<errorMessage>SAT cases can only be assigned to SAT queues.</errorMessage>
</ValidationRule>
Original file line number Diff line number Diff line change
Expand Up @@ -1093,10 +1093,6 @@
<enabled>true</enabled>
<name>CreateCustomizeFilters</name>
</userPermissions>
<userPermissions>
<enabled>true</enabled>
<name>EditPublicFilters</name>
</userPermissions>
<userPermissions>
<enabled>true</enabled>
<name>RunFlow</name>
Expand Down

0 comments on commit 8b6b478

Please sign in to comment.