Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Mobile: Add support for showing only lines of log that contain a filter #9728

Merged

Conversation

personalizedrefrigerator
Copy link
Collaborator

@personalizedrefrigerator personalizedrefrigerator commented Jan 15, 2024

Summary

Adds support for showing only log entries matching a specific filter (e.g. a plugin ID).

This pull request is intended to support #9652 (mobile plugins).

Screenshot

Screenshot: Log screen: Search bar with text: 'test' is shown above text.

Above, clicking the search icon shows/hides the "Filter" input. Typing in the filter input updates which log statements are shown (only log statements that contain the filter text somewhere are shown).

Testing

  1. Open the settings screen
  2. Click "Tools" then "Log"
  3. Click "Errors only"
  4. Click "Show all"
  5. Scroll down
  6. Click the search button
    • A "filter" input should be shown
  7. Type test
  8. Scroll down
  9. Click "Errors only"
  10. Click the search button again
    • The "filter" input should be hidden

This has been successfully tested on Android 7.

Comment on lines +78 to +80
if (this.props.navigation.state.defaultFilter) {
this.setState({ filter: this.props.navigation.state.defaultFilter });
}
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This isn't used by this pull request — it's used by the mobile plugins pull request to show all logs that contain a specific plugin ID.

@personalizedrefrigerator personalizedrefrigerator changed the title Mobile: Add support for filtering in log screen Mobile: Add support for showing only lines of log that contain a filter Jan 15, 2024
@laurent22 laurent22 merged commit 33ed754 into laurent22:dev Jan 18, 2024
10 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants