Skip to content

Magic number 30000 hardcoded in Dashboard for auto-refresh interval #5582

@aashu2006

Description

@aashu2006

User Request

Type: bug
Target: Console Application
Submitted by: @aashu2006
Console Request ID: faa756a5-f71f-469d-a330-995cfdce9bb8

Description

What happened:
In web/src/components/dashboard/Dashboard.tsx:265, the auto-refresh interval is hardcoded:

}, 30000) // 30 seconds

Per the project's no-magic-numbers rule, this should be a named constant like AUTO_REFRESH_INTERVAL_MS = 30_000.

What I expected:
The interval value should be extracted to a named constant for clarity and to match project conventions.

Steps to reproduce:

  1. Review web/src/components/dashboard/Dashboard.tsx:265
  2. Observe 30000 used directly with no named constant

This issue was automatically created from the KubeStellar Console.

Metadata

Metadata

Assignees

No one assigned

    Labels

    help wantedDenotes an issue that needs help from a contributor. Must meet "help wanted" guidelines.kind/enhancementEnhancement or improvementneeds-triageIndicates an issue or PR lacks a `triage/foo` label and requires one.triage/neededNeeds triage

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions