Skip to content

Commit e0683e0

Browse files
authored
Merge pull request #135 from VinceFINET/release-1.9
v1.9.6
2 parents 7569bde + 7599b94 commit e0683e0

File tree

60 files changed

+1027
-630
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

60 files changed

+1027
-630
lines changed

force-app/main/default/applications/OrgCheck_APP.app

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@
2222
<tabs>OrgCheck_CustomLabels_TAB</tabs>
2323
<tabs>OrgCheck_VisualComponents_TAB</tabs>
2424
<tabs>OrgCheck_ApexComponents_TAB</tabs>
25+
<tabs>OrgCheck_Analytics_TAB</tabs>
2526
<tabs>OrgCheck_Batches_TAB</tabs>
2627
<uiType>Lightning</uiType>
2728
</CustomApplication>

force-app/main/default/applications/OrgCheck_APP.app-meta.xml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@
2222
<tabs>OrgCheck_CustomLabels_TAB</tabs>
2323
<tabs>OrgCheck_VisualComponents_TAB</tabs>
2424
<tabs>OrgCheck_ApexComponents_TAB</tabs>
25+
<tabs>OrgCheck_Analytics_TAB</tabs>
2526
<tabs>OrgCheck_Batches_TAB</tabs>
2627
<uiType>Lightning</uiType>
2728
</CustomApplication>
Lines changed: 121 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,121 @@
1+
<apex:page >
2+
<apex:composition template="OrgCheck_PageTemplate_VFT">
3+
<apex:define name="html_additional_scripttags" />
4+
<apex:define name="text_page_title">
5+
Analytics Components
6+
</apex:define>
7+
<apex:define name="text_page_subtitle">
8+
Analytics Components Overview
9+
</apex:define>
10+
<apex:define name="html_actions">
11+
</apex:define>
12+
<apex:define name="html_content_core">
13+
<div class="slds-tabs_default">
14+
<ul class="slds-tabs_default__nav" role="tablist">
15+
<li class="slds-tabs_default__item slds-is-active" title="Visual Force Pages" role="presentation">
16+
<a class="slds-tabs_default__link" href="javascript:void(0);" role="tab" tabindex="0" aria-selected="true" aria-controls="tab-default-rpt" id="tab-default-rpt__item">Reports</a>
17+
</li>
18+
<li class="slds-tabs_default__item" title="Visual Force Components" role="presentation">
19+
<a class="slds-tabs_default__link" href="javascript:void(0);" role="tab" tabindex="-1" aria-selected="false" aria-controls="tab-default-dsb" id="tab-default-dsb__item">Dashboards</a>
20+
</li>
21+
</ul>
22+
<div id="tab-default-rpt" class="slds-tabs_default__content slds-show" role="tabpanel" aria-labelledby="tab-default-rpt__item">
23+
<div id="datatable-rpt" />
24+
</div>
25+
<div id="tab-default-dsb" class="slds-tabs_default__content slds-hide" role="tabpanel" aria-labelledby="tab-default-dsb__item">
26+
<div id="datatable-dsb" />
27+
</div>
28+
</div>
29+
</apex:define>
30+
<apex:define name="html_start_definition_script">
31+
<script>
32+
function start2(controller, helper) {
33+
34+
// Initialize TABS bindings
35+
helper.html.tabs.initialize('slds-tabs_default__item', 'slds-tabs_default__content', 'slds-button');
36+
37+
// =================================
38+
// RUN CONTROLLER
39+
// =================================
40+
controller.run({
41+
datasets: [ 'reports', 'dashboards' ],
42+
dependencies: false,
43+
onRecords: function(map) {
44+
45+
// Render the Reports data in a table
46+
helper.html.datatable.create({
47+
element: 'datatable-rpt',
48+
columns: [
49+
{ name: 'Name', formula: (r) => { return helper.html.render.link('/'+r.id, r.name); }},
50+
{ name: 'Score', type: 'numeric', property: '##score##' },
51+
{ name: 'Package', property: 'package' },
52+
{ name: 'Developer Name', property: 'developerName' },
53+
{ name: 'Folder', formula: (r) => { return r.folder.name; }},
54+
{ name: 'Format', property: 'format' },
55+
{ name: 'Description',
56+
formula: (r) => {
57+
if (r.description) return r.description;
58+
return 'You should set a description to this Report!';
59+
},
60+
scoreFormula: (r) => {
61+
if (!r.description) return 1;
62+
}
63+
}
64+
],
65+
data: map.reports,
66+
sorting: { name: 'Score', order: 'desc' },
67+
showSearch: true,
68+
showStatistics: true
69+
});
70+
71+
// Render the Dashboards data in a table
72+
helper.html.datatable.create({
73+
element: 'datatable-dsb',
74+
columns: [
75+
{ name: 'Name', formula: (r) => { return helper.html.render.link('/'+r.id, r.name); }},
76+
{ name: 'Score', type: 'numeric', property: '##score##' },
77+
{ name: 'Package', property: 'package' },
78+
{ name: 'Developer Name', property: 'developerName' },
79+
{ name: 'Folder', formula: (r) => { return helper.html.render.link('/'+r.folder.id, r.folder.name); }},
80+
{ name: 'Description',
81+
formula: (r) => {
82+
if (r.description) return r.description;
83+
return 'You should set a description to this Dashboard!';
84+
},
85+
scoreFormula: (r) => {
86+
if (!r.description) return 1;
87+
}
88+
}
89+
],
90+
data: map.dashboards,
91+
sorting: { name: 'Score', order: 'desc' },
92+
showSearch: true,
93+
showStatistics: true
94+
});
95+
},
96+
actions: {
97+
clearCache: {
98+
show: true
99+
},
100+
exportTable: [{
101+
table: 'datatable-rpt',
102+
visibleTab: 'tab-default-rpt__item',
103+
filename: 'Reports'
104+
}, {
105+
table: 'datatable-dsb',
106+
visibleTab: 'tab-default-dsb__item',
107+
filename: 'Dashboards'
108+
}],
109+
help: {
110+
content: [
111+
'This page shows the Reports and Dashboard that you can see.',
112+
'To see more reports and dashboard check out the system permission on your profile/permission sets'
113+
]
114+
}
115+
}
116+
});
117+
}
118+
</script>
119+
</apex:define>
120+
</apex:composition>
121+
</apex:page>
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<ApexPage xmlns="http://soap.sforce.com/2006/04/metadata">
3+
<apiVersion>53.0</apiVersion>
4+
<availableInTouch>true</availableInTouch>
5+
<confirmationTokenRequired>false</confirmationTokenRequired>
6+
<description>OrgCheck Analytics Page</description>
7+
<label>OrgCheck Analytics Page</label>
8+
</ApexPage>

force-app/main/default/pages/OrgCheck_ApexComponents_VFP.page

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
</apex:define>
1010
<apex:define name="html_actions">
1111
<div class="slds-page-header__control">
12-
<a href="/01p" target="_blank">
12+
<a href="/01p" target="_blank" rel="external">
1313
<button class="slds-button slds-button_icon slds-button_icon-border-filled" title="Compile all">
1414
<svg class="slds-button__icon" aria-hidden="true">
1515
<use href="{!URLFOR($Asset.SLDS, '/assets/icons/utility-sprite/svg/symbols.svg#apex_plugin')}"></use>
@@ -19,7 +19,7 @@
1919
</a>
2020
</div>
2121
<div class="slds-page-header__control">
22-
<a href="/ui/setup/apex/ApexTestQueuePage" target="_blank">
22+
<a href="/ui/setup/apex/ApexTestQueuePage" target="_blank" rel="external">
2323
<button class="slds-button slds-button_icon slds-button_icon-border-filled" title="Unit Tests">
2424
<svg class="slds-button__icon" aria-hidden="true">
2525
<use href="{!URLFOR($Asset.SLDS, '/assets/icons/utility-sprite/svg/symbols.svg#checkout')}"></use>
@@ -148,7 +148,8 @@
148148
data: map.apexClasses,
149149
sorting: { name: 'Score', order: 'desc' },
150150
filtering: { formula: (r) => { return r.size !== -1 && r.isTest === false; }},
151-
showSearch: true
151+
showSearch: true,
152+
showStatistics: true
152153
});
153154

154155
// Show alert about recompilation
@@ -246,7 +247,8 @@
246247
],
247248
data: map.apexTriggers,
248249
sorting: { name: 'Score', order: 'desc' },
249-
showSearch: true
250+
showSearch: true,
251+
showStatistics: true
250252
});
251253

252254
// Render the Apex Triggers data in a table
@@ -264,7 +266,8 @@
264266
],
265267
data: objectTriggersCountMap,
266268
sorting: { name: 'Score', order: 'desc' },
267-
showSearch: true
269+
showSearch: true,
270+
showStatistics: true
268271
});
269272

270273
},

force-app/main/default/pages/OrgCheck_ApexComponents_VFP.page-meta.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<?xml version="1.0" encoding="UTF-8"?>
22
<ApexPage xmlns="http://soap.sforce.com/2006/04/metadata">
3-
<apiVersion>51.0</apiVersion>
3+
<apiVersion>53.0</apiVersion>
44
<availableInTouch>true</availableInTouch>
55
<confirmationTokenRequired>false</confirmationTokenRequired>
66
<description>OrgCheck Apex Components Visualforce Page</description>

force-app/main/default/pages/OrgCheck_Authorization_VFP.page-meta.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<?xml version="1.0" encoding="UTF-8"?>
22
<ApexPage xmlns="http://soap.sforce.com/2006/04/metadata">
3-
<apiVersion>51.0</apiVersion>
3+
<apiVersion>53.0</apiVersion>
44
<availableInTouch>false</availableInTouch>
55
<confirmationTokenRequired>false</confirmationTokenRequired>
66
<description>OrgCheck Authorization Page</description>

force-app/main/default/pages/OrgCheck_Automations_VFP.page

Lines changed: 13 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,8 @@
8585
],
8686
data: map.workflows,
8787
sorting: { name: 'Score', order: 'desc' },
88-
showSearch: true
88+
showSearch: true,
89+
showStatistics: true
8990
});
9091

9192
helper.html.datatable.create({
@@ -121,7 +122,8 @@
121122
data: map.flows,
122123
sorting: { name: 'Score', order: 'desc' },
123124
filtering: { formula: (r) => { return r.type === 'Workflow' }},
124-
showSearch: true
125+
showSearch: true,
126+
showStatistics: true
125127
});
126128

127129
helper.html.datatable.create({
@@ -131,6 +133,7 @@
131133
{ name: 'FlowVersion', type: 'numeric', formula: (r) => { return helper.html.render.link('/'+r.id, r.name); }},
132134
{ name: 'Version', type: 'numeric', property: 'version' },
133135
{ name: 'Score', type: 'numeric', property: '##score##' },
136+
{ name: 'Type', property: 'type' },
134137
{ name: 'Active', property: 'isActive',
135138
formula: (r) => {
136139
return helper.html.render.checkbox(r.isActive);
@@ -151,13 +154,19 @@
151154
],
152155
data: map.flows,
153156
sorting: { name: 'Score', order: 'desc' },
154-
filtering: { formula: (r) => { return r.type === 'Flow' }},
155-
showSearch: true
157+
filtering: { formula: (r) => { return r.type !== 'Workflow' }},
158+
showSearch: true,
159+
showStatistics: true
156160
});
157161
},
158162
actions: {
159163
clearCache: {
160164
show: true
165+
},
166+
help: {
167+
content: [
168+
'For more information about Flow types, check https://developer.salesforce.com/docs/atlas.en-us.api_tooling.meta/api_tooling/tooling_api_objects_flow.htm'
169+
]
161170
}
162171
}
163172
});

force-app/main/default/pages/OrgCheck_Automations_VFP.page-meta.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<?xml version="1.0" encoding="UTF-8"?>
22
<ApexPage xmlns="http://soap.sforce.com/2006/04/metadata">
3-
<apiVersion>51.0</apiVersion>
3+
<apiVersion>53.0</apiVersion>
44
<availableInTouch>true</availableInTouch>
55
<confirmationTokenRequired>false</confirmationTokenRequired>
66
<description>OrgCheck Automations Page</description>

force-app/main/default/pages/OrgCheck_Batches_VFP.page

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,8 @@
6565
],
6666
data: map.batchesApexJobs,
6767
sorting: { name: 'Context', order: 'asc' },
68-
showSearch: true
68+
showSearch: true,
69+
showStatistics: true
6970
});
7071

7172
// Render the data in a table for Scheduled Jobs
@@ -86,7 +87,8 @@
8687
],
8788
data: map.batchesScheduledJobs,
8889
sorting: { name: 'Context', order: 'asc' },
89-
showSearch: true
90+
showSearch: true,
91+
showStatistics: true
9092
});
9193

9294
// Render the data in a table for Not Scheduled Jobs
@@ -104,7 +106,8 @@
104106
data: map.apexClasses,
105107
sorting: { name: 'Score', order: 'desc' },
106108
filtering: { formula: (r) => { return (r.interfaces && r.interfaces.includes('System.Schedulable')); }},
107-
showSearch: true
109+
showSearch: true,
110+
showStatistics: true
108111
});
109112
},
110113
actions: {

0 commit comments

Comments
 (0)