Add auto refresh feature for jobs, commands and clusters#8
Merged
Conversation
Contributor
There was a problem hiding this comment.
Pull Request Overview
This PR adds an auto refresh feature for jobs, commands, and clusters.
- Integrates the AutoRefreshContext into Jobs, Commands, and Clusters components for automatic query refetching.
- Introduces a new AutoRefreshSelect component in the Header for users to adjust the refresh interval.
- Adds an AutoRefreshProviderContainer and updates the application layout to include the provider.
Reviewed Changes
Copilot reviewed 9 out of 9 changed files in this pull request and generated 1 comment.
Show a summary per file
| File | Description |
|---|---|
| web/src/modules/Jobs/Jobs.tsx | Integrates auto refresh functionality using AutoRefreshContext |
| web/src/modules/Commands/Commands.tsx | Integrates auto refresh functionality using AutoRefreshContext |
| web/src/modules/Clusters/Clusters.tsx | Integrates auto refresh functionality using AutoRefreshContext |
| web/src/components/Header/Header.tsx | Adds AutoRefreshSelect component in the header |
| web/src/common/AutoRefreshSelect/* | Introduces auto refresh selection UI and related styles |
| web/src/common/AutoRefreshProvider/context.tsx | Establishes context for managing refresh intervals |
| web/src/common/AutoRefreshProvider/AutoRefreshProviderContainer.tsx | Wraps the provider for client-side dynamic import |
| web/src/app/layout.tsx | Updates layout to include the AutoRefreshProviderContainer |
Comments suppressed due to low confidence (1)
web/src/common/AutoRefreshProvider/AutoRefreshProviderContainer.tsx:5
- The component name 'AutoRefreshProvidercontainer' should follow proper camel case and be renamed to 'AutoRefreshProviderContainer' for clarity and consistency.
export const AutoRefreshProvidercontainer: React.FC<{
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
JoshMDiaz
approved these changes
Jun 2, 2025
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.
No description provided.