Add filters in relatedLogEntries LWC
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:- 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
- 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 where is relatedLogEntries LWC used? . I will work on this.
@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. 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.
Filter Modal :

@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.