Skip to content

Commit 80255c4

Browse files
committed
Bumps version to 0.2.0 and enhances event indicators
Updates the version to 0.2.0 across components. Adds new status colors for EventItem component to improve visual distinction between different statuses. Introduces handling for the 'Information' event type in the Indicator component, enhancing functionality and user experience. Includes 'Active' status in the StatusEnum for better event tracking.
1 parent f502608 commit 80255c4

File tree

3 files changed

+22
-3
lines changed

3 files changed

+22
-3
lines changed

src/Components/History/EventItem.tsx

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ interface IEventItem {
1515
/**
1616
* @author Aloento
1717
* @since 1.0.0
18-
* @version 0.1.0
18+
* @version 0.2.0
1919
*/
2020
export function EventItem({ Prev, Curr }: IEventItem) {
2121
const isBegin = useMemo(() => {
@@ -68,11 +68,25 @@ export function EventItem({ Prev, Curr }: IEventItem) {
6868

6969
switch (Curr.Status) {
7070
case EventStatus.Analysing:
71+
color = "red";
72+
break;
73+
7174
case EventStatus.Fixing:
75+
color = "orange";
76+
break;
77+
7278
case EventStatus.Observing:
7379
color = "yellow";
7480
break;
7581

82+
case EventStatus.Planned:
83+
color = "cyan";
84+
break;
85+
86+
case EventStatus.Active:
87+
color = "teal";
88+
break;
89+
7690
case EventStatus.Modified:
7791
case EventStatus.InProgress:
7892
color = "violet";

src/Components/Home/Indicator.ts

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ interface IIndicator {
1010
/**
1111
* @author Aloento
1212
* @since 1.0.0
13-
* @version 0.1.0
13+
* @version 0.2.0
1414
*/
1515
export function Indicator({ Type, Size, Class }: IIndicator) {
1616
const scaleIcon = "scale-icon-";
@@ -28,6 +28,8 @@ export function Indicator({ Type, Size, Class }: IIndicator) {
2828
return "alert-warning";
2929
case EventType.Outage:
3030
return "action-circle-close";
31+
case EventType.Information:
32+
return "alert-information";
3133
default:
3234
return "action-success";
3335
}
@@ -43,6 +45,8 @@ export function Indicator({ Type, Size, Class }: IIndicator) {
4345
return `${text}warning)`;
4446
case EventType.Outage:
4547
return `${text}danger)`;
48+
case EventType.Information:
49+
return `${text}disabled)`;
4650
default:
4751
return `${text}success)`;
4852
}

src/Services/Status.Entities.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ interface UpdateEntityV2 {
4646
/**
4747
* @author Aloento
4848
* @since 1.0.0
49-
* @version 0.1.0
49+
* @version 0.2.0
5050
*/
5151
export const enum StatusEnum {
5252
Analyzing = "analyzing",
@@ -65,4 +65,5 @@ export const enum StatusEnum {
6565
System = "SYSTEM",
6666
Planned = "planned",
6767
Cancelled = "cancelled",
68+
Active = "active",
6869
}

0 commit comments

Comments
 (0)