Skip to content

Add auto refresh feature for jobs, commands and clusters#8

Merged
babourine merged 3 commits intomainfrom
CU-86dwv08bd_Heimdall-Auto-Refresh
Jun 3, 2025
Merged

Add auto refresh feature for jobs, commands and clusters#8
babourine merged 3 commits intomainfrom
CU-86dwv08bd_Heimdall-Auto-Refresh

Conversation

@gauravwarale
Copy link
Contributor

No description provided.

Copilot AI review requested due to automatic review settings June 2, 2025 09:36
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

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>
@babourine babourine merged commit dd9fcf9 into main Jun 3, 2025
5 checks passed
@babourine babourine deleted the CU-86dwv08bd_Heimdall-Auto-Refresh branch June 3, 2025 20:57
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.

4 participants