feat: Auto refresh Query Log - #8487
Open
tanndlin wants to merge 6 commits into
Open
Conversation
There was a problem hiding this comment.
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.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Fixes #666
Alters the refresh button to allow toggling auto-refreshing. Also adds a space in the config for changing this value too.