Skip to content

Commit 9cad23d

Browse files
authored
Merge pull request #82 from VinceFINET/release-1.9
v1.9.3
2 parents 306db81 + 7af122c commit 9cad23d

File tree

5 files changed

+138
-60
lines changed

5 files changed

+138
-60
lines changed

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

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,5 +3,6 @@
33
<apiVersion>50.0</apiVersion>
44
<availableInTouch>false</availableInTouch>
55
<confirmationTokenRequired>false</confirmationTokenRequired>
6-
<label>OrgCheck_Authorization_VFP</label>
6+
<description>OrgCheck Authorization Page</description>
7+
<label>OrgCheck Authorization Page</label>
78
</ApexPage>

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

Lines changed: 21 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -23,14 +23,29 @@
2323
helper.html.datatable.create({
2424
element: 'datatable',
2525
columns: [
26-
{ name: 'Object', formula: (r) => {
27-
let objectId = r.objectId ? r.objectId : r.objectName;
28-
let objectName = r.objectId ? map.customObjects[r.objectId]?.developerName : r.objectName;
29-
return helper.html.render.link('/lightning/setup/ObjectManager/'+objectId+'/Details/view', objectName);
26+
{ name: 'Object Name', formula: (r) => {
27+
let entityUrl = '/lightning/setup/ObjectManager/'+r.objectName+'/Details/view';
28+
let entityName = r.objectName;
29+
if (r.objectId) {
30+
switch (map.customObjects[r.objectId]?.type) {
31+
case 'CustomSetting': entityUrl = '/lightning/setup/CustomSettings/page?address=%2F'+r.objectId; break;
32+
case 'CustomObject': entityUrl = '/lightning/setup/ObjectManager/'+r.objectId+'/Details/view'; break;
33+
case 'CustomEvent': entityUrl = '/lightning/setup/EventObjects/page?address=%2F'+r.objectId; break;
34+
case 'KnowledgeArticle': entityUrl = '/lightning/setup/KnowledgeArticles/page?address=%2F'+r.objectId; break;
35+
case 'ExternalObject': entityUrl = '/lightning/setup/ExternalObjects/page?address=%2F'+r.objectId; break;
36+
case 'BigObject': entityUrl = '/lightning/setup/BigObjects/page?address=%2F'+r.objectId; break;
37+
case 'CustomMetadataType': entityUrl = '/lightning/setup/CustomMetadata/page?address=%2F'+r.objectId; break;
38+
default: entityUrl = '/'+r.objectId;
39+
}
40+
entityName = map.customObjects[r.objectId]?.developerName;
41+
}
42+
return helper.html.render.link(entityUrl, entityName);
43+
}},
44+
{ name: 'Object Type', formula: (r) => {
45+
return r.objectId ? map.customObjects[r.objectId]?.type : 'Standard';
3046
}},
3147
{ name: 'Field', formula: (r) => {
32-
const objectId = r.objectId ? r.objectId : r.objectName;
33-
return helper.html.render.link('/lightning/setup/ObjectManager/'+objectId+'/FieldsAndRelationships/'+r.id+'/view', r.fieldName);
48+
return helper.html.render.link('/'+r.id, r.fieldName);
3449
}},
3550
{ name: 'Score', formula: (r) => {
3651
let score = 0;

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

Lines changed: 66 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -33,15 +33,70 @@
3333
</header>
3434
</div>
3535
<div class="slds-card__body slds-card__body_inner">
36-
Introducing <b>OrgCheck</b>. An easy-to-install and easy-to-use Salesforce
37-
application in order to quickly analyze your org and its technical debt.<br />
38-
<br />
39-
<center>
40-
<object type="image/svg+xml" data="{!URLFOR($Resource.OrgCheck_Logos_SR, 'Logo.svg')}" width="40%" height="40%">
41-
<img src="{!URLFOR($Resource.OrgCheck_Logos_SR, 'Logo.svg')}" width="40%" height="40%" />
42-
</object>
43-
</center>
44-
<br />
36+
<table>
37+
<tr>
38+
<td width="50%">
39+
<object type="image/svg+xml" data="{!URLFOR($Resource.OrgCheck_Logos_SR, 'Logo.svg')}" width="80%" height="80%">
40+
<img src="{!URLFOR($Resource.OrgCheck_Logos_SR, 'Logo.svg')}" width="80%" height="80%" />
41+
</object>
42+
</td>
43+
<td width="50%">
44+
Introducing <b>OrgCheck</b>. An easy-to-install and easy-to-use Salesforce
45+
application in order to quickly analyze your org and its technical debt.
46+
</td>
47+
</tr>
48+
</table>
49+
</div>
50+
</article>
51+
<article class="slds-card">
52+
<div class="slds-card__header slds-grid">
53+
<header class="slds-media slds-media_center slds-has-flexi-truncate">
54+
<div class="slds-media__figure">
55+
<span class="slds-icon_container slds-icon-standard-observation-component" title="Legal terms">
56+
<svg class="slds-icon slds-icon_small" aria-hidden="true">
57+
<use href="{!URLFOR($Asset.SLDS, 'assets/icons/standard-sprite/svg/symbols.svg#observation_component')}"></use>
58+
</svg>
59+
<span class="slds-assistive-text">Legal terms</span>
60+
</span>
61+
</div>
62+
<div class="slds-media__body">
63+
<h2 class="slds-card__header-title slds-card__header-link slds-truncate">
64+
Legal terms
65+
</h2>
66+
</div>
67+
<div class="slds-no-flex">
68+
</div>
69+
</header>
70+
</div>
71+
<div class="slds-card__body slds-card__body_inner">
72+
<b>OrgCheck is free to use, but is not an official Salesforce product. </b> OrgCheck has not been officially
73+
tested or documented. Salesforce support is not available for OrgCheck. Support requests for OrgCheck
74+
should be directed to GitHub at <a href="https://github.com/VinceFINET/OrgCheck/issues" target="_blank">https://github.com/VinceFINET/OrgCheck/issues</a>.
75+
Source code for OrgCheck can be found at <a href="https://github.com/VinceFINET/OrgCheck" target="_blank">https://github.com/VinceFINET/OrgCheck</a>
76+
under separate and different license terms.
77+
</div>
78+
</article>
79+
<article class="slds-card">
80+
<div class="slds-card__header slds-grid">
81+
<header class="slds-media slds-media_center slds-has-flexi-truncate">
82+
<div class="slds-media__figure">
83+
<span class="slds-icon_container slds-icon-standard-number-input" title="welcome">
84+
<svg class="slds-icon slds-icon_small" aria-hidden="true">
85+
<use href="{!URLFOR($Asset.SLDS, 'assets/icons/standard-sprite/svg/symbols.svg#number_input')}"></use>
86+
</svg>
87+
<span class="slds-assistive-text">Welcome</span>
88+
</span>
89+
</div>
90+
<div class="slds-media__body">
91+
<h2 class="slds-card__header-title slds-card__header-link slds-truncate">
92+
Technical Debt
93+
</h2>
94+
</div>
95+
<div class="slds-no-flex">
96+
</div>
97+
</header>
98+
</div>
99+
<div class="slds-card__body slds-card__body_inner">
45100
Although invisible, <b>Technical Debt</b> has an impact on your project, your
46101
IT budget, your Salesforce app, your end-users and... your business.<br />
47102
You may be interested in this <a target="_blank"
@@ -142,12 +197,12 @@
142197
<div class="slds-card__body slds-card__body_inner">
143198
<table>
144199
<tr>
145-
<td>
200+
<td width="30%">
146201
<object type="image/svg+xml" data="{!URLFOR($Resource.OrgCheck_Logos_SR, 'Mascot.svg')}" width="80%" height="80%">
147202
<img src="{!URLFOR($Resource.OrgCheck_Logos_SR, 'Mascot.svg')}" width="80%" height="80%" />
148203
</object>
149204
</td>
150-
<td>
205+
<td width="70%">
151206
<b>Issues or new ideas?</b><br />
152207
Track them at <br />
153208
<a href="https://github.com/VinceFINET/OrgCheck/issues" target="_blank">https://github.com/VinceFINET/OrgCheck/issues</a><br />

force-app/main/default/staticresources/OrgCheck_OrgCheck_SR.resource

Lines changed: 44 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ const OrgCheck = {
66
/**
77
* OrgCheck Version
88
*/
9-
version: 'v1.9.2',
9+
version: 'v1.9.3',
1010

1111
/**
1212
* Organization Id where OrgCheck is currently installed
@@ -366,40 +366,40 @@ const OrgCheck = {
366366
this.showError = function (error) {
367367
if (error) {
368368
private_errors.push(error);
369-
let html = '<h1 class="slds-text-heading--small"></h1><br /><br />';
370-
html += 'Please go <a href="https://github.com/VinceFINET/OrgCheck/issues" '+
369+
let commonHTML = '<h1 class="slds-text-heading--small"></h1><br /><br />';
370+
commonHTML += 'Please go <a href="https://github.com/VinceFINET/OrgCheck/issues" '+
371371
'target="_blank">here</a> and log an issue with the following information. <br /'+
372372
'><br />';
373-
html += '<b>OrgCheck Information</b><br />';
374-
html += 'Version: ' + (OrgCheck && OrgCheck.version ? OrgCheck.version : 'no version available') + '<br />';
375-
html += 'Installed on OrgId: ' + (OrgCheck && OrgCheck.localOrgId ? OrgCheck.localOrgId : 'no orgId available') + '<br />';
376-
html += '<br />';
377-
html += '<b>Navigation Information</b><br />';
378-
html += 'Page: ' + document.location.pathname + '<br />';
379-
html += '<br />';
380-
html += '<b>System Information</b><br />';
381-
html += 'User Agent: ' + navigator.userAgent + '<br />';
382-
html += 'Operating System: ' + navigator.platform + '<br />';
383-
html += 'Language: ' + navigator.language + '<br />';
384-
html += '<br />';
373+
let informationHTML = '<b>OrgCheck Information</b><br />';
374+
informationHTML += 'Version: ' + (OrgCheck && OrgCheck.version ? OrgCheck.version : 'no version available') + '<br />';
375+
informationHTML += 'Installed on OrgId: ' + (OrgCheck && OrgCheck.localOrgId ? OrgCheck.localOrgId : 'no orgId available') + '<br />';
376+
informationHTML += '<br />';
377+
informationHTML += '<b>Navigation Information</b><br />';
378+
informationHTML += 'Page: ' + document.location.pathname + '<br />';
379+
informationHTML += '<br />';
380+
informationHTML += '<b>System Information</b><br />';
381+
informationHTML += 'User Agent: ' + navigator.userAgent + '<br />';
382+
informationHTML += 'Operating System: ' + navigator.platform + '<br />';
383+
informationHTML += 'Language: ' + navigator.language + '<br />';
384+
informationHTML += '<br />';
385385
private_errors.forEach((v, i) => {
386-
html += '<b>Error #' + i + ': ' + v.name + '</b><br />';
386+
informationHTML += '<b>Error #' + i + ': ' + v.name + '</b><br />';
387387
if (v.context) {
388-
html += 'When: <small><code>' + v.context.when + '</code></small><br />';
389-
html += 'What:<ul class="slds-list_dotted">';
388+
informationHTML += 'When: <small><code>' + v.context.when + '</code></small><br />';
389+
informationHTML += 'What:<ul class="slds-list_dotted">';
390390
for (k in v.context.what) {
391-
html += '<li>' + k + ': <small><code>' + v.context.what[k] + '</code></small></li>';
391+
informationHTML += '<li>' + k + ': <small><code>' + v.context.what[k] + '</code></small></li>';
392392
}
393-
html += '</ul>';
393+
informationHTML += '</ul>';
394394
}
395395
if (v.stack) {
396-
html += 'Stack: <br/> <small><code>' + v.stack.replace(/ at /g, '<br />&nbsp;&nbsp;&nbsp;at ') + '</code></small><br />';
396+
informationHTML += 'Stack: <br/> <small><code>' + v.stack.replace(/ at /g, '<br />&nbsp;&nbsp;&nbsp;at ') + '</code></small><br />';
397397
}
398-
html += '<br />';
398+
informationHTML += '<br />';
399399
});
400400
private_show_modal(
401401
'Oh no, OrgCheck had an error!',
402-
html.replace(/https:\/\/[a-zA-Z0-9_-]*\./g, 'https://ANONYMIZED_MYDOMAIN.')
402+
commonHTML + informationHTML.replace(/https:\/\/[a-zA-Z0-9_-]*\./g, 'https://ANONYMIZED_MYDOMAIN.')
403403
);
404404
}
405405
};
@@ -3239,15 +3239,31 @@ function buildDatasets(core) {
32393239
mnemonic: this.keycache,
32403240
queries: [ {
32413241
tooling: true,
3242-
string: 'SELECT Id, DeveloperName, NamespacePrefix '+
3243-
'FROM CustomObject '+
3244-
'WHERE ManageableState = \'unmanaged\' '
3242+
string: 'SELECT DurableId, DeveloperName, IsCustomSetting, QualifiedApiName, NamespacePrefix '+
3243+
'FROM EntityDefinition '+
3244+
'WHERE DurableId LIKE \'01I%\' AND (NOT DurableId LIKE \'%.%\') '
32453245
} ],
32463246
onEachRecordFromAPICallback: function(v, i, l, ts) {
3247+
let entityType = 'Other';
3248+
if (v.IsCustomSetting == true)
3249+
entityType = 'CustomSetting';
3250+
else {
3251+
const pp = v.QualifiedApiName.split('__');
3252+
const prefix = pp[pp.length-1];
3253+
switch (prefix) {
3254+
case 'c': entityType = 'CustomObject'; break;
3255+
case 'e': entityType = 'CustomEvent'; break;
3256+
case 'ka': entityType = 'KnowledgeArticle'; break;
3257+
case 'x': entityType = 'ExternalObject'; break;
3258+
case 'b': entityType = 'BigObject'; break;
3259+
case 'mdt': entityType = 'CustomMetadataType'; break;
3260+
}
3261+
}
32473262
return {
3248-
id: core.doSimplifiySalesforceID(v.Id),
3263+
id: core.doSimplifiySalesforceID(v.DurableId),
32493264
developerName: v.DeveloperName,
3250-
packageName: v.NamespacePrefix
3265+
packageName: v.NamespacePrefix,
3266+
type: entityType
32513267
};
32523268
},
32533269
onEndFromCacheCallback: resolve,

sfdx-project.json

Lines changed: 5 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@
44
"path": "force-app",
55
"default": true,
66
"package": "OrgCheck",
7-
"versionName": "Version 1.8",
8-
"versionNumber": "1.8.3.NEXT",
7+
"versionName": "Version 1.9",
8+
"versionNumber": "1.9.3.NEXT",
99
"versionDescription": "OrgCheck is an easy-to-install and easy-to-use Salesforce application in order to quickly analyze your org and its technical debt."
1010
}
1111
],
@@ -15,18 +15,9 @@
1515
"packageAliases": {
1616
"OrgCheck": "0Ho2X000000KyjaSAC",
1717
"[email protected]": "04t2X0000011QEvQAM",
18-
"[email protected]": "04t2X000000F1X2QAK",
19-
"[email protected]": "04t2X000000F1YyQAK",
20-
"[email protected]": "04t2X000000F1Z3QAK",
21-
"[email protected]": "04t7R000001u5owQAA",
22-
"[email protected]": "04t7R000001u5tdQAA",
2318
"[email protected]": "04t7R000001u5tiQAA",
24-
"[email protected]": "04t7R000001u639QAA",
25-
"[email protected]": "04t7R000001u63EQAQ",
26-
"[email protected]": "04t7R000001u63JQAQ",
27-
"[email protected]": "04t7R000001u63OQAQ",
28-
"[email protected]": "04t7R000001u63TQAQ",
29-
"[email protected]": "04t7R000001u63YQAQ",
30-
"[email protected]": "04t7R000001u63dQAA"
19+
"[email protected]": "04t7R000000km9AQAQ",
20+
"[email protected]": "04t7R000000kmHZQAY",
21+
"[email protected]": "04t7R000000kmLCQAY"
3122
}
3223
}

0 commit comments

Comments
 (0)