diff --git a/dashboard/src/app/[tenantId]/(diagram)/wfSpec/[...props]/components/WfRunsHeader.tsx b/dashboard/src/app/[tenantId]/(diagram)/wfSpec/[...props]/components/WfRunsHeader.tsx index dba18d8eb..1c4eabe56 100644 --- a/dashboard/src/app/[tenantId]/(diagram)/wfSpec/[...props]/components/WfRunsHeader.tsx +++ b/dashboard/src/app/[tenantId]/(diagram)/wfSpec/[...props]/components/WfRunsHeader.tsx @@ -27,7 +27,7 @@ export const WfRunsHeader: FC<Props> = ({ spec, currentStatus, currentWindow, se <div className="relative"> <ListboxButton className="flex items-center gap-2 rounded-lg border-2 px-2 py-1 text-xs"> <ClockIcon className="h-5 w-5 fill-none stroke-black" /> - Last {TIME_RANGES_NAMES[currentWindow]} + {currentWindow !== -1 ? `Last ${TIME_RANGES_NAMES[currentWindow]}` : TIME_RANGES_NAMES[currentWindow]} </ListboxButton> <ListboxOptions className="absolute mt-1 w-[120px] rounded-md bg-white py-1 text-base shadow-lg ring-1 ring-black/5 focus:outline-none sm:text-sm"> {TIME_RANGES.map(time => ( @@ -40,7 +40,7 @@ export const WfRunsHeader: FC<Props> = ({ spec, currentStatus, currentWindow, se }` } > - Last {TIME_RANGES_NAMES[time]} + {time !== -1 ? `Last ${TIME_RANGES_NAMES[time]}` : TIME_RANGES_NAMES[time]} </Listbox.Option> ))} </ListboxOptions> diff --git a/dashboard/src/app/constants.ts b/dashboard/src/app/constants.ts index 51b700f1b..e726bac53 100644 --- a/dashboard/src/app/constants.ts +++ b/dashboard/src/app/constants.ts @@ -27,7 +27,7 @@ export const TIME_RANGES = [-1, 5, 15, 30, 60, 180, 360, 720, 1440, 4320] as con export type TimeRange = (typeof TIME_RANGES)[number] export const TIME_RANGES_NAMES: { [key in TimeRange]: string } = { - [-1]: '4.543 billion years', + [-1]: 'All time', 5: '5 minutes', 15: '15 minutes', 30: '30 minutes',