NebulaLogger icon indicating copy to clipboard operation
NebulaLogger copied to clipboard

Add filters in relatedLogEntries LWC

Open jongpie opened this issue 3 years ago • 4 comments

New Feature Summary

Currently, the relatedLogEntries LWC provides a search box to filter on LogEntry__c records, but no other filters are provided. It'd be helpful to have some new filters added to the component so that users can have more control over what data is displayed on a record page.

  • Filter for LogEntry__c.LoggingLevel__c - this filter could be implemented in 1 of 2 ways:
    1. Display the filter as a picklist so users can select a single logging level - any log entries with the specified logging level's ordinal, or a higher ordinal, should then be displayed
    2. Display the filter as a multi-select picklist so users can select multiple logging levels - any log entries with the specified logging levels should then be displayed
  • Filter for LogEntry__r.Log__c.Scenario__c - users should be able to enter text to specify a scenario, and only matching log entries should be displayed.

jongpie avatar Jun 21 '22 21:06 jongpie

@jongpie where is relatedLogEntries LWC used? . I will work on this.

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

@mar-ben that would be amazing! The relatedLogEntries LWC is designed to be used on any record flexipage - you can add it in App Builder for any record page, it shows up as a custom component called "Related Log Entries". There is a very basic page in the wiki about it, but it doesn't have much technical details - let me know if you have any questions!

jongpie avatar Jun 28 '22 19:06 jongpie

@jongpie. Please find the updated UI screenshots . I have used checkbox group instead of multi select picklist for logging Level filter. Let me know if any changes required.

Screen Shot 2022-07-17 at 6 00 40 PM

Filter Modal : Screen Shot 2022-07-17 at 6 03 00 PM

mar-ben avatar Jul 17 '22 23:07 mar-ben

@mar-ben I love this, this looks great! I had not thought of using a modal for the filters, but I really like that approach - it gives a lot of room to add new filters in the future. And I think the checkbox group looks great. Feel free to submit a PR for your changes whenever you're ready.

jongpie avatar Jul 29 '22 12:07 jongpie