Skip to content

[Bug](supernova): supernova displays default silence duration of 2 without units #1346

@ArtieReus

Description

@ArtieReus

Problem 1: Default silence duration shown without units

In the Create Silence form, the default duration is displayed as 2, but no time unit is shown (e.g., 2h).
This is misleading for users and inconsistent with expected UI behavior.

Location:
apps/supernova/src/components/silences/CreateSilence.tsx
https://github.com/cloudoperators/juno/blob/main/apps/supernova/src/components/silences/CreateSilence.tsx#L64


Problem 2: Default dropdown value is hard-coded instead of using the shared defaults list

The default value for the silence duration dropdown is manually set in the component instead of being sourced from the shared list of default values.

This causes inconsistency between CreateSilence.tsx and the centralized defaults in silenceHelpers.ts.

Expected:
Use the default values defined in:
apps/supernova/src/components/silences/silenceHelpers.ts

export const DEFAULT_DURATION_OPTIONS = [

Expected Behavior

Display units

Screenshots

Image

Metadata

Metadata

Labels

No labels
No labels

Type

Projects

Status

New

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions