-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #147 from SalesforceLabs/feature/dashboards
Feature/dashboards
- Loading branch information
Showing
10 changed files
with
407 additions
and
23 deletions.
There are no files selected for viewing
4 changes: 4 additions & 0 deletions
4
force-app/main/default/dashboards/AnimalShelterDashboards.dashboardFolder-meta.xml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<DashboardFolder xmlns="http://soap.sforce.com/2006/04/metadata"> | ||
<name>Animal Shelter Dashboards</name> | ||
</DashboardFolder> |
183 changes: 183 additions & 0 deletions
183
...ault/dashboards/AnimalShelterDashboards/dklAwhHHpHBzWUoGiQclJudQrVYlhU.dashboard-meta.xml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,183 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<Dashboard xmlns="http://soap.sforce.com/2006/04/metadata"> | ||
<backgroundEndColor>#FFFFFF</backgroundEndColor> | ||
<backgroundFadeDirection>Diagonal</backgroundFadeDirection> | ||
<backgroundStartColor>#FFFFFF</backgroundStartColor> | ||
<chartTheme>light</chartTheme> | ||
<colorPalette>unity</colorPalette> | ||
<dashboardChartTheme>light</dashboardChartTheme> | ||
<dashboardColorPalette>unity</dashboardColorPalette> | ||
<dashboardGridLayout> | ||
<dashboardGridComponents> | ||
<colSpan>3</colSpan> | ||
<columnIndex>0</columnIndex> | ||
<dashboardComponent> | ||
<autoselectColumnsFromReport>false</autoselectColumnsFromReport> | ||
<chartAxisRange>Auto</chartAxisRange> | ||
<chartSummary> | ||
<axisBinding>y</axisBinding> | ||
<column>RowCount</column> | ||
</chartSummary> | ||
<componentType>Donut</componentType> | ||
<decimalPrecision>-1</decimalPrecision> | ||
<displayUnits>Auto</displayUnits> | ||
<drillEnabled>false</drillEnabled> | ||
<drillToDetailEnabled>false</drillToDetailEnabled> | ||
<enableHover>false</enableHover> | ||
<expandOthers>false</expandOthers> | ||
<groupingColumn>Animal__c.Animal_Status__c</groupingColumn> | ||
<groupingSortProperties> | ||
<groupingSorts> | ||
<groupingLevel>g1</groupingLevel> | ||
<sortOrder>a</sortOrder> | ||
</groupingSorts> | ||
</groupingSortProperties> | ||
<header>Animals by Status</header> | ||
<legendPosition>Right</legendPosition> | ||
<maxValuesDisplayed>6</maxValuesDisplayed> | ||
<report>AnimalShelterReports/Animals_by_Status_CMa</report> | ||
<showPercentage>false</showPercentage> | ||
<showTotal>true</showTotal> | ||
<showValues>true</showValues> | ||
<sortBy>RowLabelAscending</sortBy> | ||
<useReportChart>false</useReportChart> | ||
</dashboardComponent> | ||
<rowIndex>0</rowIndex> | ||
<rowSpan>8</rowSpan> | ||
</dashboardGridComponents> | ||
<dashboardGridComponents> | ||
<colSpan>3</colSpan> | ||
<columnIndex>3</columnIndex> | ||
<dashboardComponent> | ||
<autoselectColumnsFromReport>false</autoselectColumnsFromReport> | ||
<chartAxisRange>Auto</chartAxisRange> | ||
<chartSummary> | ||
<aggregate>Sum</aggregate> | ||
<axisBinding>y</axisBinding> | ||
<column>Locations__c.Capacity__c</column> | ||
</chartSummary> | ||
<componentType>Donut</componentType> | ||
<decimalPrecision>-1</decimalPrecision> | ||
<displayUnits>Auto</displayUnits> | ||
<drillEnabled>false</drillEnabled> | ||
<drillToDetailEnabled>false</drillToDetailEnabled> | ||
<enableHover>false</enableHover> | ||
<expandOthers>false</expandOthers> | ||
<groupingColumn>Locations__c.Parent_Block_Name__c</groupingColumn> | ||
<groupingSortProperties> | ||
<groupingSorts> | ||
<groupingLevel>g1</groupingLevel> | ||
<sortOrder>a</sortOrder> | ||
</groupingSorts> | ||
</groupingSortProperties> | ||
<header>Available Capacity</header> | ||
<legendPosition>Right</legendPosition> | ||
<maxValuesDisplayed>6</maxValuesDisplayed> | ||
<report>AnimalShelterReports/Locations_All_Available_Locations_qYH</report> | ||
<showPercentage>false</showPercentage> | ||
<showTotal>false</showTotal> | ||
<showValues>true</showValues> | ||
<sortBy>RowLabelAscending</sortBy> | ||
<title>By Block</title> | ||
<useReportChart>false</useReportChart> | ||
</dashboardComponent> | ||
<rowIndex>0</rowIndex> | ||
<rowSpan>8</rowSpan> | ||
</dashboardGridComponents> | ||
<dashboardGridComponents> | ||
<colSpan>3</colSpan> | ||
<columnIndex>6</columnIndex> | ||
<dashboardComponent> | ||
<autoselectColumnsFromReport>false</autoselectColumnsFromReport> | ||
<chartAxisRange>Auto</chartAxisRange> | ||
<chartSummary> | ||
<aggregate>Sum</aggregate> | ||
<axisBinding>y</axisBinding> | ||
<column>Adoption_Match__c.Successful_Adoption__c</column> | ||
</chartSummary> | ||
<componentType>Donut</componentType> | ||
<decimalPrecision>-1</decimalPrecision> | ||
<displayUnits>Auto</displayUnits> | ||
<drillEnabled>false</drillEnabled> | ||
<drillToDetailEnabled>false</drillToDetailEnabled> | ||
<enableHover>false</enableHover> | ||
<expandOthers>false</expandOthers> | ||
<groupingColumn>Adoption_Match__c.Status__c</groupingColumn> | ||
<groupingSortProperties> | ||
<groupingSorts> | ||
<groupingLevel>g1</groupingLevel> | ||
<sortOrder>a</sortOrder> | ||
</groupingSorts> | ||
</groupingSortProperties> | ||
<header>Successful Adoptions</header> | ||
<legendPosition>Right</legendPosition> | ||
<maxValuesDisplayed>6</maxValuesDisplayed> | ||
<report>AnimalShelterReports/Successful_Adoptions_by_Match_Type_S85</report> | ||
<showPercentage>false</showPercentage> | ||
<showTotal>true</showTotal> | ||
<showValues>true</showValues> | ||
<sortBy>RowLabelAscending</sortBy> | ||
<title>By Match Type</title> | ||
<useReportChart>false</useReportChart> | ||
</dashboardComponent> | ||
<rowIndex>0</rowIndex> | ||
<rowSpan>8</rowSpan> | ||
</dashboardGridComponents> | ||
<dashboardGridComponents> | ||
<colSpan>6</colSpan> | ||
<columnIndex>0</columnIndex> | ||
<dashboardComponent> | ||
<autoselectColumnsFromReport>false</autoselectColumnsFromReport> | ||
<componentType>FlexTable</componentType> | ||
<flexComponentProperties> | ||
<decimalPrecision>-1</decimalPrecision> | ||
<flexTableColumn> | ||
<reportColumn>FK_Animal__c.Animal_Name__c</reportColumn> | ||
<showSubTotal>false</showSubTotal> | ||
<showTotal>false</showTotal> | ||
<type>detail</type> | ||
</flexTableColumn> | ||
<flexTableColumn> | ||
<reportColumn>Animal_Action__c.Description__c</reportColumn> | ||
<showSubTotal>false</showSubTotal> | ||
<showTotal>false</showTotal> | ||
<type>detail</type> | ||
</flexTableColumn> | ||
<flexTableColumn> | ||
<reportColumn>Animal_Action__c.Previous_Action_Detail__c</reportColumn> | ||
<showSubTotal>false</showSubTotal> | ||
<showTotal>false</showTotal> | ||
<type>detail</type> | ||
</flexTableColumn> | ||
<flexTableColumn> | ||
<reportColumn>Animal_Action__c.Date_Time_of_Action__c</reportColumn> | ||
<showSubTotal>false</showSubTotal> | ||
<showTotal>false</showTotal> | ||
<type>detail</type> | ||
</flexTableColumn> | ||
<flexTableSortInfo> | ||
<sortColumn>FK_Animal__c.Animal_Name__c</sortColumn> | ||
<sortOrder>1</sortOrder> | ||
</flexTableSortInfo> | ||
<hideChatterPhotos>true</hideChatterPhotos> | ||
</flexComponentProperties> | ||
<groupingSortProperties/> | ||
<header>Animals with Vaccinations Due</header> | ||
<report>AnimalShelterReports/Animals_with_Vaccinations_Due_Zxc</report> | ||
</dashboardComponent> | ||
<rowIndex>8</rowIndex> | ||
<rowSpan>5</rowSpan> | ||
</dashboardGridComponents> | ||
<numberOfColumns>12</numberOfColumns> | ||
<rowHeight>36</rowHeight> | ||
</dashboardGridLayout> | ||
<dashboardType>SpecifiedUser</dashboardType> | ||
<description>Default Dashboard for Animal Shelter Starter</description> | ||
<isGridLayout>true</isGridLayout> | ||
<owner>[email protected]</owner> | ||
<runningUser>[email protected]</runningUser> | ||
<textColor>#000000</textColor> | ||
<title>Animal Shelter Dashboard</title> | ||
<titleColor>#000000</titleColor> | ||
<titleSize>12</titleSize> | ||
</Dashboard> |
5 changes: 5 additions & 0 deletions
5
...default/objectTranslations/Locations__c-es/Parent_Block_Name__c.fieldTranslation-meta.xml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<CustomFieldTranslation xmlns="http://soap.sforce.com/2006/04/metadata"> | ||
<label></label> | ||
<name>Parent_Block_Name__c</name> | ||
</CustomFieldTranslation> |
5 changes: 5 additions & 0 deletions
5
...default/objectTranslations/Locations__c-it/Parent_Block_Name__c.fieldTranslation-meta.xml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<CustomFieldTranslation xmlns="http://soap.sforce.com/2006/04/metadata"> | ||
<label></label> | ||
<name>Parent_Block_Name__c</name> | ||
</CustomFieldTranslation> |
14 changes: 14 additions & 0 deletions
14
force-app/main/default/objects/Locations__c/fields/Parent_Block_Name__c.field-meta.xml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<CustomField xmlns="http://soap.sforce.com/2006/04/metadata"> | ||
<fullName>Parent_Block_Name__c</fullName> | ||
<description>Formula to return the Parent Block Name, used in Reports</description> | ||
<externalId>false</externalId> | ||
<formula>IF ( RecordType.Name = "Unit", Parent_Block__r.Name__c , "")</formula> | ||
<formulaTreatBlanksAs>BlankAsZero</formulaTreatBlanksAs> | ||
<label>Parent Block Name</label> | ||
<required>false</required> | ||
<trackHistory>false</trackHistory> | ||
<trackTrending>false</trackTrending> | ||
<type>Text</type> | ||
<unique>false</unique> | ||
</CustomField> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
79 changes: 79 additions & 0 deletions
79
...default/reports/AnimalShelterReports/Active_Approved_Adopter_Profiles_GvH.report-meta.xml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,79 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<Report xmlns="http://soap.sforce.com/2006/04/metadata"> | ||
<chart> | ||
<backgroundColor1>#FFFFFF</backgroundColor1> | ||
<backgroundColor2>#FFFFFF</backgroundColor2> | ||
<backgroundFadeDir>Diagonal</backgroundFadeDir> | ||
<chartSummaries> | ||
<aggregate>Sum</aggregate> | ||
<axisBinding>y</axisBinding> | ||
<column>Adopter_Profile__c.Active__c</column> | ||
</chartSummaries> | ||
<chartType>Donut</chartType> | ||
<enableHoverLabels>false</enableHoverLabels> | ||
<expandOthers>false</expandOthers> | ||
<groupingColumn>Adopter_Profile__c.Profile_Approval_Status__c</groupingColumn> | ||
<legendPosition>Right</legendPosition> | ||
<location>CHART_BOTTOM</location> | ||
<showAxisLabels>true</showAxisLabels> | ||
<showPercentage>false</showPercentage> | ||
<showTotal>true</showTotal> | ||
<showValues>false</showValues> | ||
<size>Medium</size> | ||
<summaryAxisRange>Auto</summaryAxisRange> | ||
<textColor>#000000</textColor> | ||
<textSize>12</textSize> | ||
<titleColor>#000000</titleColor> | ||
<titleSize>18</titleSize> | ||
</chart> | ||
<columns> | ||
<field>Adopter_Profile__c.Contact_Name__c</field> | ||
</columns> | ||
<columns> | ||
<field>Adopter_Profile__c.Type_of_Animal__c</field> | ||
</columns> | ||
<columns> | ||
<field>CUST_NAME</field> | ||
</columns> | ||
<columns> | ||
<aggregateTypes>Sum</aggregateTypes> | ||
<field>Adopter_Profile__c.Active__c</field> | ||
</columns> | ||
<filter> | ||
<criteriaItems> | ||
<column>Adopter_Profile__c.Active__c</column> | ||
<columnToColumn>false</columnToColumn> | ||
<isUnlocked>true</isUnlocked> | ||
<operator>equals</operator> | ||
<value>1</value> | ||
</criteriaItems> | ||
<criteriaItems> | ||
<column>Adopter_Profile__c.Profile_Approval_Status__c</column> | ||
<columnToColumn>false</columnToColumn> | ||
<isUnlocked>true</isUnlocked> | ||
<operator>equals</operator> | ||
<value>Approved</value> | ||
</criteriaItems> | ||
<language>en_US</language> | ||
</filter> | ||
<format>Summary</format> | ||
<groupingsDown> | ||
<dateGranularity>Day</dateGranularity> | ||
<field>Adopter_Profile__c.Profile_Approval_Status__c</field> | ||
<sortOrder>Asc</sortOrder> | ||
</groupingsDown> | ||
<name>Active & Approved Adopter Profiles</name> | ||
<params> | ||
<name>co</name> | ||
<value>0</value> | ||
</params> | ||
<reportType>CustomEntity$Adopter_Profile__c@Adopter_Profile__c.Contact__c</reportType> | ||
<scope>organization</scope> | ||
<showDetails>true</showDetails> | ||
<showGrandTotal>true</showGrandTotal> | ||
<showSubTotals>false</showSubTotals> | ||
<timeFrameFilter> | ||
<dateColumn>Adopter_Profile__c.Profile_End_Date__c</dateColumn> | ||
<interval>INTERVAL_CUSTOM</interval> | ||
</timeFrameFilter> | ||
</Report> |
6 changes: 0 additions & 6 deletions
6
...in/default/reports/AnimalShelterReports/Animals_with_Vaccinations_Due_Zxc.report-meta.xml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
54 changes: 37 additions & 17 deletions
54
...efault/reports/AnimalShelterReports/Locations_All_Available_Locations_qYH.report-meta.xml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.