NebulaLogger icon indicating copy to clipboard operation
NebulaLogger copied to clipboard

Enhancements for logEntryEventStream LWC

Open jongpie opened this issue 3 years ago • 6 comments

There are a couple of new features I'd like to eventually include in the LWC logEntryEventStream

  • Collapsible sidebar (same way that the sidebar collapses in object tabs within a console app)
  • Ability to view console in full-screen
  • Ability to toggle between the existing console view and a new tabular view (using lightning-datatable)
    • At lead within a tabular view, it might be nice to be able to customize which columns are displayed. The configuration could possible be stored in LoggerParameter__mdt (so it would be customizable, but only at the org level - users wouldn't be able to have their own customized views, which might be ok?)

jongpie avatar Mar 29 '22 14:03 jongpie

@jongpie shall i work on this?

mar-ben avatar Jun 03 '22 19:06 mar-ben

@mar-ben that would be incredible! Feel free to work on this item as well, and let me know if you have any questions.

jongpie avatar Jun 07 '22 13:06 jongpie

@jongpie Please find the below updated Log Entry Event Stream LWC UI. Let me know if any suggestions.

Sidebar expanded (table view): image

Sidebar collapsed (console view): image

Full screen mode: image

mar-ben avatar Jun 17 '22 03:06 mar-ben

@mar-ben this looks amazing!! This is exacrly what I was hoping for - I don't have any suggestions right now, so feel free to submit a PR and I can do a code review.

jongpie avatar Jun 18 '22 18:06 jongpie

@jongpie I am fetching the the Datatable columns configured in LoggerParameter__mdt using apex method LoggerParameter.getStringList . But this method is not annotated as "AuraEnabled". Can I annotate this method as "AuraEnabled" and call it directly from LWC ? or call it from LWC component's controller?

mar-ben avatar Jun 22 '22 22:06 mar-ben

@mar-ben that's a good question! I think for now, I want to avoid annotating the methods in LoggerParameter as AuraEnabled - I might make some other changes to the LoggerParameter class in a month or two, so I'm hesitant to use @AuraEnabled right now. Could you instead create a new Apex controller class for the LWC? It doesn't currently have an Apex controller, but I think this is a good time to create one. The Apex class could be called something like LogEntryEventStreamController.

jongpie avatar Jun 23 '22 19:06 jongpie