-
-
Notifications
You must be signed in to change notification settings - Fork 174
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
WIP Stubbed out a new LWC + controller class + custom tab for viewing…
… LogEntryArchive__b as part of #117
- Loading branch information
Showing
9 changed files
with
78 additions
and
0 deletions.
There are no files selected for viewing
13 changes: 13 additions & 0 deletions
13
nebula-logger/plugins/big-object-archiving/plugin/classes/LogEntryArchiveController.cls
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,13 @@ | ||
//------------------------------------------------------------------------------------------------// | ||
// This file is part of the Nebula Logger project, released under the MIT License. // | ||
// See LICENSE file or go to https://github.com/jongpie/NebulaLogger for full license details. // | ||
//------------------------------------------------------------------------------------------------// | ||
|
||
public with sharing class LogEntryArchiveController { | ||
@AuraEnabled | ||
public static List<LogEntryArchive__b> getLogEntryArchives() { | ||
// TODO add more fields, add support for filters (based on index), | ||
// add 'order by' or custom sorting (index limits which fields can be used in sort within SOQL) | ||
return [SELECT LoggedByUsername__c, LoggingLevel__c, Message__c FROM LogEntryArchive__b WITH SECURITY_ENFORCED]; | ||
} | ||
} |
5 changes: 5 additions & 0 deletions
5
...logger/plugins/big-object-archiving/plugin/classes/LogEntryArchiveController.cls-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"?> | ||
<ApexClass xmlns="http://soap.sforce.com/2006/04/metadata"> | ||
<apiVersion>54.0</apiVersion> | ||
<status>Active</status> | ||
</ApexClass> |
12 changes: 12 additions & 0 deletions
12
...la-logger/plugins/big-object-archiving/plugin/classes/LogEntryArchiveController_Tests.cls
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,12 @@ | ||
//------------------------------------------------------------------------------------------------// | ||
// This file is part of the Nebula Logger project, released under the MIT License. // | ||
// See LICENSE file or go to https://github.com/jongpie/NebulaLogger for full license details. // | ||
//------------------------------------------------------------------------------------------------// | ||
|
||
@IsTest | ||
private class LogEntryArchiveController_Tests { | ||
@IsTest | ||
static void it_has_tests() { | ||
System.assert(false, 'TODO'); | ||
} | ||
} |
5 changes: 5 additions & 0 deletions
5
.../plugins/big-object-archiving/plugin/classes/LogEntryArchiveController_Tests.cls-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" ?> | ||
<ApexClass xmlns="http://soap.sforce.com/2006/04/metadata"> | ||
<apiVersion>54.0</apiVersion> | ||
<status>Active</status> | ||
</ApexClass> |
13 changes: 13 additions & 0 deletions
13
nebula-logger/plugins/big-object-archiving/plugin/lwc/logEntryArchives/logEntryArchives.html
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,13 @@ | ||
<template> | ||
<lightning-card title={title} class="slds-p-around_medium"> | ||
<div slot="actions"> | ||
<lightning-button-group> | ||
<lightning-button label="TODO" icon-name="utility:delete"></lightning-button> | ||
</lightning-button-group> | ||
</div> | ||
<div> | ||
<!-- TODO datatable :-( --> | ||
<lightning-datatable show-row-number-column> </lightning-datatable> | ||
</div> | ||
</lightning-card> | ||
</template> |
11 changes: 11 additions & 0 deletions
11
nebula-logger/plugins/big-object-archiving/plugin/lwc/logEntryArchives/logEntryArchives.js
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,11 @@ | ||
import { LightningElement } from 'lwc'; | ||
|
||
export default class LogEntryArchives extends LightningElement { | ||
get title() { | ||
return 'Log Entry Archives'; | ||
} | ||
|
||
async connectedCallback() { | ||
document.title = this.title; | ||
} | ||
} |
9 changes: 9 additions & 0 deletions
9
...ger/plugins/big-object-archiving/plugin/lwc/logEntryArchives/logEntryArchives.js-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,9 @@ | ||
<?xml version="1.0" encoding="UTF-8" ?> | ||
<LightningComponentBundle xmlns="http://soap.sforce.com/2006/04/metadata"> | ||
<apiVersion>54.0</apiVersion> | ||
<isExposed>false</isExposed> | ||
<masterLabel>Log Entry Archives</masterLabel> | ||
<targets> | ||
<target>lightning__Tab</target> | ||
</targets> | ||
</LightningComponentBundle> |
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
6 changes: 6 additions & 0 deletions
6
nebula-logger/plugins/big-object-archiving/plugin/tabs/LogEntryArchives.tab-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,6 @@ | ||
<?xml version="1.0" encoding="UTF-8" ?> | ||
<CustomTab xmlns="http://soap.sforce.com/2006/04/metadata"> | ||
<label>Log Entry Archives</label> | ||
<lwcComponent>logEntryArchives</lwcComponent> | ||
<motif>Custom13: Box</motif> | ||
</CustomTab> |