Skip to content

feat: Auto refresh Query Log - #8487

Open
tanndlin wants to merge 6 commits into
AdguardTeam:masterfrom
tanndlin:auto_refresh
Open

feat: Auto refresh Query Log#8487
tanndlin wants to merge 6 commits into
AdguardTeam:masterfrom
tanndlin:auto_refresh

Conversation

@tanndlin

@tanndlin tanndlin commented Jul 24, 2026

Copy link
Copy Markdown

Fixes #666

Alters the refresh button to allow toggling auto-refreshing. Also adds a space in the config for changing this value too.

image image

Copilot AI review requested due to automatic review settings July 24, 2026 01:34

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Pull request overview

Adds an optional “live” (auto-refreshing) mode to the Query Log UI, with a user-configurable refresh interval persisted in localStorage and surfaced in Logs settings.

Changes:

  • Introduces an auto-refresh toggle next to the Query Log refresh button, backed by localStorage.
  • Adds a Logs settings section to choose the auto-refresh interval.
  • Adds constants, styling, and i18n strings to support the new UI.

Reviewed changes

Copilot reviewed 8 out of 8 changed files in this pull request and generated 3 comments.

Show a summary per file
File Description
client/src/helpers/localStorageHelper.ts Adds new localStorage keys for auto-refresh enabled/interval settings.
client/src/helpers/constants.ts Defines allowed auto-refresh intervals and a default interval constant.
client/src/components/Settings/LogsConfig/Form.tsx Inserts the new auto-refresh interval selector into Logs configuration UI.
client/src/components/Settings/LogsConfig/AutoRefreshInterval.tsx New settings component for selecting/storing the refresh interval.
client/src/components/Logs/Logs.css Styles the auto-refresh toggle in the Logs header.
client/src/components/Logs/Filters/index.tsx Adds concurrency guard + “silent” refresh path and renders the auto-refresh toggle.
client/src/components/Logs/Filters/AutoRefresh.tsx New toggle component that schedules periodic silent refreshes.
client/src/__locales/en.json Adds English translations for auto-refresh UI labels.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread client/src/components/Logs/Filters/index.tsx
Comment thread client/src/components/Settings/LogsConfig/AutoRefreshInterval.tsx
Comment thread client/src/components/Logs/Filters/AutoRefresh.tsx
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.

[Feature Request] Live Query Log

2 participants