@@ -24,70 +24,13 @@ const meta: Meta<typeof ManagedAgentsConsumption> = {
24
24
export default meta ;
25
25
type Story = StoryObj < typeof ManagedAgentsConsumption > ;
26
26
27
- export const Default : Story = {
28
- name : "Normal Usage (42% of limit)" ,
29
- } ;
30
-
31
- export const Warning : Story = {
32
- name : "Warning (80-99% of limit)" ,
33
- args : {
34
- managedAgentFeature : {
35
- enabled : true ,
36
- actual : 96000 , // 80% of limit - should show orange
37
- soft_limit : 60000 ,
38
- limit : 120000 ,
39
- usage_period : {
40
- start : "February 27, 2025" ,
41
- end : "February 27, 2026" ,
42
- issued_at : "February 27, 2025" ,
43
- } ,
44
- entitlement : "entitled" ,
45
- } ,
46
- } ,
47
- } ;
27
+ export const Default : Story = { } ;
48
28
49
29
export const NearLimit : Story = {
50
- name : "Near Limit (95% of limit)" ,
51
- args : {
52
- managedAgentFeature : {
53
- enabled : true ,
54
- actual : 114000 , // 95% of limit - should show orange
55
- soft_limit : 60000 ,
56
- limit : 120000 ,
57
- usage_period : {
58
- start : "February 27, 2025" ,
59
- end : "February 27, 2026" ,
60
- issued_at : "February 27, 2025" ,
61
- } ,
62
- entitlement : "entitled" ,
63
- } ,
64
- } ,
65
- } ;
66
-
67
- export const AtLimit : Story = {
68
- name : "At Limit (100% of limit)" ,
69
- args : {
70
- managedAgentFeature : {
71
- enabled : true ,
72
- actual : 120000 , // 100% of limit - should show red
73
- soft_limit : 60000 ,
74
- limit : 120000 ,
75
- usage_period : {
76
- start : "February 27, 2025" ,
77
- end : "February 27, 2026" ,
78
- issued_at : "February 27, 2025" ,
79
- } ,
80
- entitlement : "entitled" ,
81
- } ,
82
- } ,
83
- } ;
84
-
85
- export const OverLimit : Story = {
86
- name : "Over Limit (120% of limit)" ,
87
30
args : {
88
31
managedAgentFeature : {
89
32
enabled : true ,
90
- actual : 144000 , // 120% of limit - should show red
33
+ actual : 115000 ,
91
34
soft_limit : 60000 ,
92
35
limit : 120000 ,
93
36
usage_period : {
@@ -101,11 +44,10 @@ export const OverLimit: Story = {
101
44
} ;
102
45
103
46
export const OverIncluded : Story = {
104
- name : "Over Included (67% of limit)" ,
105
47
args : {
106
48
managedAgentFeature : {
107
49
enabled : true ,
108
- actual : 80000 , // Over included but under 80% of total limit - should still be green
50
+ actual : 80000 ,
109
51
soft_limit : 60000 ,
110
52
limit : 120000 ,
111
53
usage_period : {
@@ -119,7 +61,6 @@ export const OverIncluded: Story = {
119
61
} ;
120
62
121
63
export const LowUsage : Story = {
122
- name : "Low Usage (21% of limit)" ,
123
64
args : {
124
65
managedAgentFeature : {
125
66
enabled : true ,
0 commit comments