Skip to content

Remove the redundant "Errors only" quick filter - #43

Merged
laomou merged 1 commit into
mainfrom
refactor/remove-errors-only
Jul 27, 2026
Merged

Remove the redundant "Errors only" quick filter#43
laomou merged 1 commit into
mainfrom
refactor/remove-errors-only

Conversation

@laomou

@laomou laomou commented Jul 27, 2026

Copy link
Copy Markdown
Owner

What

Removes the "Errors only" quick-filter checkbox from the options panel.

Why

It kept only E/F level rows — exactly what the Level column picker already does by selecting E and F. Two overlapping ways to filter by level:

  • add clutter to the options row, and
  • can confuse: e.g. the Level picker showing only I combined with "Errors only" yields an empty result (I ∩ E/F = ∅) with no obvious cause.

The column picker fully covers the "show only errors" use case.

Changes

  • Remove the errors_only checkbox from the options panel.
  • Remove the errors_only field from FilterSpec and UiState, and the branch in FilterSpec::matches.
  • Remove the errors_only i18n strings (en + zh) and the now-obsolete errors_only_filters test; adjust two tests that incidentally set the flag.

The flag was session-only UI state (never written to config), so there is no config migration needed.

Testing

  • cargo test — 99 pass.
  • cargo clippy — clean.

"Errors only" kept only E/F level rows — exactly what the Level column
picker already does by selecting E and F. Having two ways to filter by
level added clutter and could confuse ("Level shows only I" + "Errors
only" → empty result with no obvious cause).

Drop the checkbox and its FilterSpec field; level filtering via the
column picker fully covers the use case. The flag was session-only UI
state (never persisted), so no config migration is needed.
@laomou
laomou merged commit 3364e45 into main Jul 27, 2026
3 checks passed
@laomou
laomou deleted the refactor/remove-errors-only branch July 27, 2026 08:52
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.

1 participant