Skip to content

Commit 4fe4c36

Browse files
authored
Added loggerSettings LWC to utility bar (#746)
* Updated loggerSettings LWC to support the target lightning__UtilityBar (in addition to the 2 targets it previously had, lightning__HomePage and lightning__Tab) * Added loggerSettings LWC to the flexipage LoggerConsoleUtilityBar * Updated lightning-datatable in loggerSettings LWC to have the property wrap-table-header, which helps make the column headers more readable when shown in the utility bar * Updated project summary in README.md
1 parent 2462fca commit 4fe4c36

8 files changed

Lines changed: 59 additions & 13 deletions

File tree

README.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -3,17 +3,17 @@
33
[![Build](https://github.com/jongpie/NebulaLogger/actions/workflows/build.yml/badge.svg)](https://github.com/jongpie/NebulaLogger/actions/workflows/build.yml)
44
[![codecov](https://codecov.io/gh/jongpie/NebulaLogger/branch/main/graph/badge.svg?token=1DJPDRM3N4)](https://codecov.io/gh/jongpie/NebulaLogger)
55

6-
The most robust logger for Salesforce. Works with Apex, Lightning Components, Flow, Process Builder & Integrations. Designed for Salesforce admins, developers & architects.
6+
The most robust observability solution for Salesforce experts. Built 100% natively on the platform, and designed to work seamlessly with Apex, Lightning Components, Flow, Process Builder & integrations.
77

8-
## Unlocked Package - v4.14.4
8+
## Unlocked Package - v4.14.5
99

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

14-
`sf package install --wait 20 --security-type AdminsOnly --package 04t5Y0000015oRNQAY`
14+
`sf package install --wait 20 --security-type AdminsOnly --package 04t5Y0000015oRXQAY`
1515

16-
`sfdx force:package:install --wait 20 --securitytype AdminsOnly --package 04t5Y0000015oRNQAY`
16+
`sfdx force:package:install --wait 20 --securitytype AdminsOnly --package 04t5Y0000015oRXQAY`
1717

1818
---
1919

nebula-logger/core/main/log-management/flexipages/LoggerConsoleUtilityBar.flexipage-meta.xml

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,42 @@
11
<?xml version="1.0" encoding="UTF-8"?>
22
<FlexiPage xmlns="http://soap.sforce.com/2006/04/metadata">
33
<flexiPageRegions>
4+
<itemInstances>
5+
<componentInstance>
6+
<componentInstanceProperties>
7+
<name>eager</name>
8+
<type>decorator</type>
9+
<value>false</value>
10+
</componentInstanceProperties>
11+
<componentInstanceProperties>
12+
<name>height</name>
13+
<type>decorator</type>
14+
<value>600</value>
15+
</componentInstanceProperties>
16+
<componentInstanceProperties>
17+
<name>icon</name>
18+
<type>decorator</type>
19+
<value>settings</value>
20+
</componentInstanceProperties>
21+
<componentInstanceProperties>
22+
<name>label</name>
23+
<type>decorator</type>
24+
<value>Logger Settings</value>
25+
</componentInstanceProperties>
26+
<componentInstanceProperties>
27+
<name>scrollable</name>
28+
<type>decorator</type>
29+
<value>true</value>
30+
</componentInstanceProperties>
31+
<componentInstanceProperties>
32+
<name>width</name>
33+
<type>decorator</type>
34+
<value>1200</value>
35+
</componentInstanceProperties>
36+
<componentName>loggerSettings</componentName>
37+
<identifier>loggerSettings</identifier>
38+
</componentInstance>
39+
</itemInstances>
440
<itemInstances>
541
<componentInstance>
642
<componentName>console:history</componentName>

nebula-logger/core/main/log-management/lwc/loggerSettings/loggerSettings.html

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,15 @@
2828
</template>
2929
</div>
3030
<div>
31-
<lightning-datatable columns={columns} data={records} hide-checkbox-column key-field="Id" onrowaction={handleRowAction} show-row-number-column>
31+
<lightning-datatable
32+
columns={columns}
33+
data={records}
34+
hide-checkbox-column
35+
key-field="Id"
36+
onrowaction={handleRowAction}
37+
show-row-number-column
38+
wrap-table-header
39+
>
3240
</lightning-datatable>
3341
</div>
3442
</lightning-card>

nebula-logger/core/main/log-management/lwc/loggerSettings/loggerSettings.js-meta.xml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,5 +6,6 @@
66
<targets>
77
<target>lightning__HomePage</target>
88
<target>lightning__Tab</target>
9+
<target>lightning__UtilityBar</target>
910
</targets>
1011
</LightningComponentBundle>

nebula-logger/core/main/logger-engine/classes/Logger.cls

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
global with sharing class Logger {
1616
// There's no reliable way to get the version number dynamically in Apex
1717
@TestVisible
18-
private static final String CURRENT_VERSION_NUMBER = 'v4.14.4';
18+
private static final String CURRENT_VERSION_NUMBER = 'v4.14.5';
1919
private static final System.LoggingLevel FALLBACK_LOGGING_LEVEL = System.LoggingLevel.DEBUG;
2020
private static final List<LogEntryEventBuilder> LOG_ENTRIES_BUFFER = new List<LogEntryEventBuilder>();
2121
private static final String MISSING_SCENARIO_ERROR_MESSAGE = 'No logger scenario specified. A scenario is required for logging in this org.';

nebula-logger/core/main/logger-engine/lwc/logger/logEntryBuilder.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ import FORM_FACTOR from '@salesforce/client/formFactor';
66
import { log as lightningLog } from 'lightning/logger';
77
import { LoggerStackTrace } from './loggerStackTrace';
88

9-
const CURRENT_VERSION_NUMBER = 'v4.14.4';
9+
const CURRENT_VERSION_NUMBER = 'v4.14.5';
1010

1111
const LOGGING_LEVEL_EMOJIS = {
1212
ERROR: '⛔',

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "nebula-logger",
3-
"version": "4.14.4",
3+
"version": "4.14.5",
44
"description": "The most robust logger for Salesforce. Works with Apex, Lightning Components, Flow, Process Builder & Integrations. Designed for Salesforce admins, developers & architects.",
55
"author": "Jonathan Gillespie",
66
"license": "MIT",

sfdx-project.json

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,9 @@
99
"path": "./nebula-logger/core",
1010
"definitionFile": "./config/scratch-orgs/build-base-scratch-def.json",
1111
"scopeProfiles": true,
12-
"versionNumber": "4.14.4.NEXT",
13-
"versionName": "Optionally Auto-Call lightning-logger LWC",
14-
"versionDescription": "Added the optional ability to automatically call Salesforce's lightning-logger LWC when logging via lightning components. This then creates a \"Lightning Logger\" event in Event Monitoring",
12+
"versionNumber": "4.14.5.NEXT",
13+
"versionName": "Added Logger Settings to Utility Bar",
14+
"versionDescription": "Added the loggerSettings LWC to the LoggerConsole app's utility bar flexipage so settings can be easily viewed/edited from anywhere in the console app",
1515
"releaseNotesUrl": "https://github.com/jongpie/NebulaLogger/releases",
1616
"unpackagedMetadata": {
1717
"path": "./nebula-logger/extra-tests"
@@ -189,6 +189,7 @@
189189
"Nebula Logger - Core@4.14.2-jest-test-bugfixes": "04t5Y0000015oQZQAY",
190190
"Nebula Logger - Core@4.14.3-logentryrecordpage-tab-visibility-bugfixes": "04t5Y0000015oQjQAI",
191191
"Nebula Logger - Core@4.14.4-optionally-auto-call-lightning-logger-lwc": "04t5Y0000015oRNQAY",
192+
"Nebula Logger - Core@4.14.5-added-logger-settings-to-utility-bar": "04t5Y0000015oRXQAY",
192193
"Nebula Logger - Core Plugin - Async Failure Additions": "0Ho5Y000000blO4SAI",
193194
"Nebula Logger - Core Plugin - Async Failure Additions@1.0.0": "04t5Y0000015lhiQAA",
194195
"Nebula Logger - Core Plugin - Async Failure Additions@1.0.1": "04t5Y0000015lhsQAA",

0 commit comments

Comments
 (0)