#6308: feat(ui): add logsLevelFilters field to store log level filter settings
app: web-ui
cli
Cluster:
Cron Job UI Enhancements
## Summary
- Persist log level filters in browser session storage.
- User log filter preferences (trace, debug, info, warn, error, fatal) now persist across browser sessions, improving user experience by maintaining their preferred log visibility settings.
## Changes
- Storage: Add logsLevelFilters field to UiSettings with proper validation and backward compatibility.
- State Management: Initialize log filters from stored settings instead of hardcoded defaults.
- Persistence: Save filter changes immediately when users toggle log levels in the UI.
<!-- greptile_comment -->
<h2>Greptile Overview</h2>
<h3>Greptile Summary</h3>
This PR adds a new `logsLevelFilters` field to persisted UI settings and wires the Logs view so toggling log levels immediately saves the updated filter state to storage. It also removes the now-redundant hardcoded default log filter constant, and includes minor housekeeping changes (.gitignore IDE entry, docstring typo fix).
Main integration points are `ui/src/ui/storage.ts` for default + validation/merge of persisted settings, and `ui/src/ui/app-render.ts`/`ui/src/ui/app.ts` for reading and writing the filter state during UI interactions.
<h3>Confidence Score: 4/5</h3>
- This PR is generally safe to merge; the main concern is potential state drift between `settings.logsLevelFilters` and the separate `logsLevelFilters` state field.
- Changes are localized and mostly additive (storage schema + UI wiring). However, initializing `logsLevelFilters` once from `settings` creates a plausible inconsistency if settings are updated through other code paths, which could lead to confusing UI behavior.
- ui/src/ui/app.ts
<!-- greptile_other_comments_section -->
<sub>(2/5) Greptile learns from your feedback when you react with thumbs up/down!</sub>
<!-- /greptile_comment -->
Most Similar PRs
#6408: feat(ui): add job filtering and improve run history display
by Cassius0924 · 2026-02-01
72.3%
#17966: feat(ui/usage): show files read during session in context panel
by jogelin · 2026-02-16
72.2%
#14719: UI: fix debug event log layout and health history toggle
by detecti1 · 2026-02-12
72.2%
#10800: fix(ui): apply token from URL param to settings
by callebtc · 2026-02-07
72.0%
#11281: fix(logging): prevent subsystem loggers from bypassing file log lev...
by janckerchen · 2026-02-07
71.6%
#7316: fix: /chat dashboard performance
by felipcsousa · 2026-02-02
71.0%
#22139: Fix(ui): improve log formatting for JSON payloads
by npmisantosh · 2026-02-20
71.0%
#9510: Feature/cron UI filter bar
by guxu11 · 2026-02-05
70.6%
#13960: fix(ui): preserve structured config validation error details
by constansino · 2026-02-11
70.5%
#12719: feat(ui): add copy button to logs page
by billgetman · 2026-02-09
70.2%