Skip to content

Commit

Permalink
New indicator icons (#408)
Browse files Browse the repository at this point in the history
* Updated formula fields on LogEntry__c to replace the old flag image icons with emojis that are more visually distinct from one another

* Updated format of LogEntry__c limits formula fields to display the percentage first (after the new indicators), with limit used & max fields displayed in parenthesis

* Updated build.yml to use to the latest versions of the codecov GitHub Action
  • Loading branch information
jongpie authored Nov 23, 2022
1 parent 956205d commit 125b08c
Show file tree
Hide file tree
Showing 22 changed files with 173 additions and 348 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,7 @@ jobs:
run: npm run test:lwc

- name: 'Upload LWC code coverage to Codecov.io'
uses: codecov/codecov-action@v2.0.2
uses: codecov/codecov-action@v3
with:
token: ${{ secrets.CODECOV_TOKEN }}
flags: LWC
Expand Down Expand Up @@ -248,7 +248,7 @@ jobs:
run: rm ./test-coverage/apex/test-result-707*-codecoverage.json

- name: 'Upload Apex test code coverage to Codecov.io'
uses: codecov/codecov-action@v2.0.2
uses: codecov/codecov-action@v3
with:
token: ${{ secrets.CODECOV_TOKEN }}
flags: Apex
Expand Down
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,10 @@

The most robust logger for Salesforce. Works with Apex, Lightning Components, Flow, Process Builder & Integrations. Designed for Salesforce admins, developers & architects.

## Unlocked Package - v4.9.2
## Unlocked Package - v4.9.3

[![Install Unlocked Package in a Sandbox](./images/btn-install-unlocked-package-sandbox.png)](https://test.salesforce.com/packaging/installPackage.apexp?p0=04t5Y0000023R7iQAE)
[![Install Unlocked Package in Production](./images/btn-install-unlocked-package-production.png)](https://login.salesforce.com/packaging/installPackage.apexp?p0=04t5Y0000023R7iQAE)
[![Install Unlocked Package in a Sandbox](./images/btn-install-unlocked-package-sandbox.png)](https://test.salesforce.com/packaging/installPackage.apexp?p0=04t5Y0000023R7sQAE)
[![Install Unlocked Package in Production](./images/btn-install-unlocked-package-production.png)](https://login.salesforce.com/packaging/installPackage.apexp?p0=04t5Y0000023R7sQAE)
[![View Documentation](./images/btn-view-documentation.png)](https://jongpie.github.io/NebulaLogger/)

## Managed Package - v4.9.0
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,28 +4,17 @@
<businessStatus>Active</businessStatus>
<complianceGroup>None</complianceGroup>
<externalId>false</externalId>
<formula>IMAGE(
CASE(
IF(
(LimitsAggregateQueriesUsed__c / LimitsAggregateQueriesMax__c * 100) &gt;= 90,
&quot;red&quot;,
IF(
(LimitsAggregateQueriesUsed__c / LimitsAggregateQueriesMax__c * 100) &lt; 90 &amp;&amp; (LimitsAggregateQueriesUsed__c / LimitsAggregateQueriesMax__c * 100) &gt;= 80,
&quot;yellow&quot;,
&quot;green&quot;
)
),
&quot;green&quot;, &quot;/img/samples/flag_green.gif&quot;,
&quot;yellow&quot;, &quot;/img/samples/flag_yellow.gif&quot;,
&quot;red&quot;, &quot;/img/samples/flag_red.gif&quot;,
&quot;/s.gif&quot;
),
&apos;&apos;, 16, 16
<formula>IF(
(LimitsAggregateQueriesUsed__c / LimitsAggregateQueriesMax__c * 100) &gt;= 90,
&quot;&quot;,
IF(
(LimitsAggregateQueriesUsed__c / LimitsAggregateQueriesMax__c * 100) &lt; 90 &amp;&amp; (LimitsAggregateQueriesUsed__c / LimitsAggregateQueriesMax__c * 100) &gt;= 80,
&quot;⚠️&quot;,
&quot;&quot;
)
)

+ &apos; &apos; +

TEXT(LimitsAggregateQueriesUsed__c ) + &apos; / &apos; + TEXT(LimitsAggregateQueriesMax__c ) + &apos; (&apos; + TEXT(ROUND(LimitsAggregateQueriesUsed__c / LimitsAggregateQueriesMax__c * 100, 2)) + &apos;%)&apos;</formula>
+ &apos; &apos; + TEXT(ROUND(LimitsAggregateQueriesUsed__c / LimitsAggregateQueriesMax__c * 100, 2)) + &apos;% (&apos;
+ TEXT(LimitsAggregateQueriesUsed__c) + &apos; / &apos; + TEXT(LimitsAggregateQueriesMax__c) + &apos;)&apos;</formula>
<formulaTreatBlanksAs>BlankAsZero</formulaTreatBlanksAs>
<label>Aggregate Queries</label>
<required>false</required>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,28 +4,17 @@
<businessStatus>Active</businessStatus>
<complianceGroup>None</complianceGroup>
<externalId>false</externalId>
<formula>IMAGE(
CASE(
IF(
(LimitsAsyncCallsUsed__c / LimitsAsyncCallsMax__c * 100) &gt;= 90,
&quot;red&quot;,
IF(
(LimitsAsyncCallsUsed__c / LimitsAsyncCallsMax__c * 100) &lt; 90 &amp;&amp; (LimitsAsyncCallsUsed__c / LimitsAsyncCallsMax__c * 100) &gt;= 80,
&quot;yellow&quot;,
&quot;green&quot;
)
),
&quot;green&quot;, &quot;/img/samples/flag_green.gif&quot;,
&quot;yellow&quot;, &quot;/img/samples/flag_yellow.gif&quot;,
&quot;red&quot;, &quot;/img/samples/flag_red.gif&quot;,
&quot;/s.gif&quot;
),
&apos;&apos;, 16, 16
<formula>IF(
(LimitsAsyncCallsUsed__c / LimitsAsyncCallsMax__c * 100) &gt;= 90,
&quot;&quot;,
IF(
(LimitsAsyncCallsUsed__c / LimitsAsyncCallsMax__c * 100) &lt; 90 &amp;&amp; (LimitsAsyncCallsUsed__c / LimitsAsyncCallsMax__c * 100) &gt;= 80,
&quot;⚠️&quot;,
&quot;&quot;
)
)

+ &apos; &apos; +

TEXT(LimitsAsyncCallsUsed__c) + &apos; / &apos; + TEXT(LimitsAsyncCallsMax__c) + &apos; (&apos; + TEXT(ROUND(LimitsAsyncCallsUsed__c / LimitsAsyncCallsMax__c * 100, 2)) + &apos;%)&apos;</formula>
+ &apos; &apos; + TEXT(ROUND(LimitsAsyncCallsUsed__c / LimitsAsyncCallsMax__c * 100, 2)) + &apos;% (&apos;
+ TEXT(LimitsAsyncCallsUsed__c) + &apos; / &apos; + TEXT(LimitsAsyncCallsMax__c) + &apos;)&apos;</formula>
<formulaTreatBlanksAs>BlankAsZero</formulaTreatBlanksAs>
<label>Async Calls</label>
<required>false</required>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,28 +4,17 @@
<businessStatus>Active</businessStatus>
<complianceGroup>None</complianceGroup>
<externalId>false</externalId>
<formula>IMAGE(
CASE(
IF(
(LimitsCalloutsUsed__c / LimitsCalloutsMax__c * 100) &gt;= 90,
&quot;red&quot;,
IF(
(LimitsCalloutsUsed__c / LimitsCalloutsMax__c * 100) &lt; 90 &amp;&amp; (LimitsCalloutsUsed__c / LimitsCalloutsMax__c * 100) &gt;= 80,
&quot;yellow&quot;,
&quot;green&quot;
)
),
&quot;green&quot;, &quot;/img/samples/flag_green.gif&quot;,
&quot;yellow&quot;, &quot;/img/samples/flag_yellow.gif&quot;,
&quot;red&quot;, &quot;/img/samples/flag_red.gif&quot;,
&quot;/s.gif&quot;
),
&apos;&apos;, 16, 16
<formula>IF(
(LimitsCalloutsUsed__c / LimitsCalloutsMax__c * 100) &gt;= 90,
&quot;&quot;,
IF(
(LimitsCalloutsUsed__c / LimitsCalloutsMax__c * 100) &lt; 90 &amp;&amp; (LimitsCalloutsUsed__c / LimitsCalloutsMax__c * 100) &gt;= 80,
&quot;⚠️&quot;,
&quot;&quot;
)
)

+ &apos; &apos; +

TEXT(LimitsCalloutsUsed__c ) + &apos; / &apos; + TEXT(LimitsCalloutsMax__c ) + &apos; (&apos; + TEXT(ROUND(LimitsCalloutsUsed__c / LimitsCalloutsMax__c * 100, 2)) + &apos;%)&apos;</formula>
+ &apos; &apos; + TEXT(ROUND(LimitsCalloutsUsed__c / LimitsCalloutsMax__c * 100, 2)) + &apos;% (&apos;
+ TEXT(LimitsCalloutsUsed__c) + &apos; / &apos; + TEXT(LimitsCalloutsMax__c) + &apos;)&apos;</formula>
<formulaTreatBlanksAs>BlankAsZero</formulaTreatBlanksAs>
<label>Callouts</label>
<required>false</required>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,28 +4,17 @@
<businessStatus>Active</businessStatus>
<complianceGroup>None</complianceGroup>
<externalId>false</externalId>
<formula>IMAGE(
CASE(
<formula>IF(
(LimitsCpuTimeUsed__c / LimitsCpuTimeMax__c * 100) &gt;= 90,
&quot;&quot;,
IF(
(LimitsCpuTimeUsed__c / LimitsCpuTimeMax__c * 100) &gt;= 90,
&quot;red&quot;,
IF(
(LimitsCpuTimeUsed__c / LimitsCpuTimeMax__c * 100) &lt; 90 &amp;&amp; (LimitsCpuTimeUsed__c / LimitsCpuTimeMax__c * 100) &gt;= 80,
&quot;yellow&quot;,
&quot;green&quot;
)
),
&quot;green&quot;, &quot;/img/samples/flag_green.gif&quot;,
&quot;yellow&quot;, &quot;/img/samples/flag_yellow.gif&quot;,
&quot;red&quot;, &quot;/img/samples/flag_red.gif&quot;,
&quot;/s.gif&quot;
),
&apos;&apos;, 16, 16
)

+ &apos; &apos; +

TEXT(LimitsCpuTimeUsed__c) + &apos; / &apos; + TEXT(LimitsCpuTimeMax__c) + &apos; (&apos; + TEXT(ROUND(LimitsCpuTimeUsed__c / LimitsCpuTimeMax__c * 100, 2)) + &apos;%)&apos;</formula>
&quot;⚠️&quot;,
&quot;&quot;
)
)
+ &apos; &apos; + TEXT(ROUND(LimitsCpuTimeUsed__c / LimitsCpuTimeMax__c * 100, 2)) + &apos;% (&apos;
+ TEXT(LimitsCpuTimeUsed__c) + &apos; / &apos; + TEXT(LimitsCpuTimeMax__c) + &apos;)&apos;</formula>
<formulaTreatBlanksAs>BlankAsZero</formulaTreatBlanksAs>
<label>CPU Time</label>
<required>false</required>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,28 +4,17 @@
<businessStatus>Active</businessStatus>
<complianceGroup>None</complianceGroup>
<externalId>false</externalId>
<formula>IMAGE(
CASE(
IF(
(LimitsDmlRowsUsed__c / LimitsDmlRowsMax__c * 100) &gt;= 90,
&quot;red&quot;,
IF(
(LimitsDmlRowsUsed__c / LimitsDmlRowsMax__c * 100) &lt; 90 &amp;&amp; (LimitsDmlRowsUsed__c / LimitsDmlRowsMax__c * 100) &gt;= 80,
&quot;yellow&quot;,
&quot;green&quot;
)
),
&quot;green&quot;, &quot;/img/samples/flag_green.gif&quot;,
&quot;yellow&quot;, &quot;/img/samples/flag_yellow.gif&quot;,
&quot;red&quot;, &quot;/img/samples/flag_red.gif&quot;,
&quot;/s.gif&quot;
),
&apos;&apos;, 16, 16
<formula>IF(
(LimitsDmlRowsUsed__c / LimitsDmlRowsMax__c * 100) &gt;= 90,
&quot;&quot;,
IF(
(LimitsDmlRowsUsed__c / LimitsDmlRowsMax__c * 100) &lt; 90 &amp;&amp; (LimitsDmlRowsUsed__c / LimitsDmlRowsMax__c * 100) &gt;= 80,
&quot;⚠️&quot;,
&quot;&quot;
)
)

+ &apos; &apos; +

TEXT(LimitsDmlRowsUsed__c) + &apos; / &apos; + TEXT(LimitsDmlRowsMax__c) + &apos; (&apos; + TEXT(ROUND(LimitsDmlRowsUsed__c / LimitsDmlRowsMax__c * 100, 2)) + &apos;%)&apos;</formula>
+ &apos; &apos; + TEXT(ROUND(LimitsDmlRowsUsed__c / LimitsDmlRowsMax__c * 100, 2)) + &apos;% (&apos;
+ TEXT(LimitsDmlRowsUsed__c) + &apos; / &apos; + TEXT(LimitsDmlRowsMax__c) + &apos;)&apos;</formula>
<formulaTreatBlanksAs>BlankAsZero</formulaTreatBlanksAs>
<label>DML Rows</label>
<required>false</required>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,28 +4,17 @@
<businessStatus>Active</businessStatus>
<complianceGroup>None</complianceGroup>
<externalId>false</externalId>
<formula>IMAGE(
CASE(
IF(
(LimitsDmlStatementsUsed__c / LimitsDmlStatementsMax__c * 100) &gt;= 90,
&quot;red&quot;,
IF(
(LimitsDmlStatementsUsed__c / LimitsDmlStatementsMax__c * 100) &lt; 90 &amp;&amp; (LimitsDmlStatementsUsed__c / LimitsDmlStatementsMax__c * 100) &gt;= 80,
&quot;yellow&quot;,
&quot;green&quot;
)
),
&quot;green&quot;, &quot;/img/samples/flag_green.gif&quot;,
&quot;yellow&quot;, &quot;/img/samples/flag_yellow.gif&quot;,
&quot;red&quot;, &quot;/img/samples/flag_red.gif&quot;,
&quot;/s.gif&quot;
),
&apos;&apos;, 16, 16
<formula>IF(
(LimitsDmlStatementsUsed__c / LimitsDmlStatementsMax__c * 100) &gt;= 90,
&quot;&quot;,
IF(
(LimitsDmlStatementsUsed__c / LimitsDmlStatementsMax__c * 100) &lt; 90 &amp;&amp; (LimitsDmlStatementsUsed__c / LimitsDmlStatementsMax__c * 100) &gt;= 80,
&quot;⚠️&quot;,
&quot;&quot;
)
)

+ &apos; &apos; +

TEXT(LimitsDmlStatementsUsed__c ) + &apos; / &apos; + TEXT(LimitsDmlStatementsMax__c) + &apos; (&apos; + TEXT(ROUND(LimitsDmlStatementsUsed__c / LimitsDmlStatementsMax__c * 100, 2)) + &apos;%)&apos;</formula>
+ &apos; &apos; + TEXT(ROUND(LimitsDmlStatementsUsed__c / LimitsDmlStatementsMax__c * 100, 2)) + &apos;% (&apos;
+ TEXT(LimitsDmlStatementsUsed__c) + &apos; / &apos; + TEXT(LimitsDmlStatementsMax__c) + &apos;)&apos;</formula>
<formulaTreatBlanksAs>BlankAsZero</formulaTreatBlanksAs>
<label>DML Statements</label>
<required>false</required>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,28 +4,17 @@
<businessStatus>Active</businessStatus>
<complianceGroup>None</complianceGroup>
<externalId>false</externalId>
<formula>IMAGE(
CASE(
IF(
(LimitsEmailInvocationsUsed__c / LimitsEmailInvocationsMax__c * 100) &gt;= 90,
&quot;red&quot;,
IF(
(LimitsEmailInvocationsUsed__c / LimitsEmailInvocationsMax__c * 100) &lt; 90 &amp;&amp; (LimitsEmailInvocationsUsed__c / LimitsEmailInvocationsMax__c * 100) &gt;= 80,
&quot;yellow&quot;,
&quot;green&quot;
)
),
&quot;green&quot;, &quot;/img/samples/flag_green.gif&quot;,
&quot;yellow&quot;, &quot;/img/samples/flag_yellow.gif&quot;,
&quot;red&quot;, &quot;/img/samples/flag_red.gif&quot;,
&quot;/s.gif&quot;
),
&apos;&apos;, 16, 16
<formula>IF(
(LimitsEmailInvocationsUsed__c / LimitsEmailInvocationsMax__c * 100) &gt;= 90,
&quot;&quot;,
IF(
(LimitsEmailInvocationsUsed__c / LimitsEmailInvocationsMax__c * 100) &lt; 90 &amp;&amp; (LimitsEmailInvocationsUsed__c / LimitsEmailInvocationsMax__c * 100) &gt;= 80,
&quot;⚠️&quot;,
&quot;&quot;
)
)

+ &apos; &apos; +

TEXT(LimitsEmailInvocationsUsed__c) + &apos; / &apos; + TEXT(LimitsEmailInvocationsMax__c) + &apos; (&apos; + TEXT(ROUND(LimitsEmailInvocationsUsed__c / LimitsEmailInvocationsMax__c * 100, 2)) + &apos;%)&apos;</formula>
+ &apos; &apos; + TEXT(ROUND(LimitsEmailInvocationsUsed__c / LimitsEmailInvocationsMax__c * 100, 2)) + &apos;% (&apos;
+ TEXT(LimitsEmailInvocationsUsed__c) + &apos; / &apos; + TEXT(LimitsEmailInvocationsMax__c) + &apos;)&apos;</formula>
<formulaTreatBlanksAs>BlankAsZero</formulaTreatBlanksAs>
<label>Email Invocations</label>
<required>false</required>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,28 +4,17 @@
<businessStatus>Active</businessStatus>
<complianceGroup>None</complianceGroup>
<externalId>false</externalId>
<formula>IMAGE(
CASE(
IF(
(LimitsFutureCallsUsed__c / LimitsFutureCallsMax__c * 100) &gt;= 90,
&quot;red&quot;,
IF(
(LimitsFutureCallsUsed__c / LimitsFutureCallsMax__c * 100) &lt; 90 &amp;&amp; (LimitsFutureCallsUsed__c / LimitsFutureCallsMax__c * 100) &gt;= 80,
&quot;yellow&quot;,
&quot;green&quot;
)
),
&quot;green&quot;, &quot;/img/samples/flag_green.gif&quot;,
&quot;yellow&quot;, &quot;/img/samples/flag_yellow.gif&quot;,
&quot;red&quot;, &quot;/img/samples/flag_red.gif&quot;,
&quot;/s.gif&quot;
),
&apos;&apos;, 16, 16
<formula>IF(
(LimitsFutureCallsUsed__c / LimitsFutureCallsMax__c * 100) &gt;= 90,
&quot;&quot;,
IF(
(LimitsFutureCallsUsed__c / LimitsFutureCallsMax__c * 100) &lt; 90 &amp;&amp; (LimitsFutureCallsUsed__c / LimitsFutureCallsMax__c * 100) &gt;= 80,
&quot;⚠️&quot;,
&quot;&quot;
)
)

+ &apos; &apos; +

TEXT(LimitsFutureCallsUsed__c ) + &apos; / &apos; + TEXT(LimitsFutureCallsMax__c) + &apos; (&apos; + TEXT(ROUND(LimitsFutureCallsUsed__c / LimitsFutureCallsMax__c * 100, 2)) + &apos;%)&apos;</formula>
+ &apos; &apos; + TEXT(ROUND(LimitsFutureCallsUsed__c / LimitsFutureCallsMax__c * 100, 2)) + &apos;% (&apos;
+ TEXT(LimitsFutureCallsUsed__c) + &apos; / &apos; + TEXT(LimitsFutureCallsMax__c) + &apos;)&apos;</formula>
<formulaTreatBlanksAs>BlankAsZero</formulaTreatBlanksAs>
<label>Future Calls</label>
<required>false</required>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,28 +4,17 @@
<businessStatus>Active</businessStatus>
<complianceGroup>None</complianceGroup>
<externalId>false</externalId>
<formula>IMAGE(
CASE(
IF(
(LimitsHeapSizeUsed__c / LimitsHeapSizeMax__c * 100) &gt;= 90,
&quot;red&quot;,
IF(
(LimitsHeapSizeUsed__c / LimitsHeapSizeMax__c * 100) &lt; 90 &amp;&amp; (LimitsHeapSizeUsed__c / LimitsHeapSizeMax__c * 100) &gt;= 80,
&quot;yellow&quot;,
&quot;green&quot;
)
),
&quot;green&quot;, &quot;/img/samples/flag_green.gif&quot;,
&quot;yellow&quot;, &quot;/img/samples/flag_yellow.gif&quot;,
&quot;red&quot;, &quot;/img/samples/flag_red.gif&quot;,
&quot;/s.gif&quot;
),
&apos;&apos;, 16, 16
<formula>IF(
(LimitsHeapSizeUsed__c / LimitsHeapSizeMax__c * 100) &gt;= 90,
&quot;&quot;,
IF(
(LimitsHeapSizeUsed__c / LimitsHeapSizeMax__c * 100) &lt; 90 &amp;&amp; (LimitsHeapSizeUsed__c / LimitsHeapSizeMax__c * 100) &gt;= 80,
&quot;⚠️&quot;,
&quot;&quot;
)
)

+ &apos; &apos; +

TEXT(LimitsHeapSizeUsed__c) + &apos; / &apos; + TEXT(LimitsHeapSizeMax__c) + &apos; (&apos; + TEXT(ROUND(LimitsHeapSizeUsed__c / LimitsHeapSizeMax__c * 100, 2)) + &apos;%)&apos;</formula>
+ &apos; &apos; + TEXT(ROUND(LimitsHeapSizeUsed__c / LimitsHeapSizeMax__c * 100, 2)) + &apos;% (&apos;
+ TEXT(LimitsHeapSizeUsed__c) + &apos; / &apos; + TEXT(LimitsHeapSizeMax__c) + &apos;)&apos;</formula>
<formulaTreatBlanksAs>BlankAsZero</formulaTreatBlanksAs>
<label>Heap Size</label>
<required>false</required>
Expand Down
Loading

0 comments on commit 125b08c

Please sign in to comment.