Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit9d58c44

Browse files
committed
layout fixes on small screen and PR review
1 parentbcb7faa commit9d58c44

File tree

2 files changed

+34
-8
lines changed

2 files changed

+34
-8
lines changed

‎site/src/pages/DeploymentSettingsPage/LicensesSettingsPage/ManagedAgentsConsumption.stories.tsx‎

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,8 +43,17 @@ export const LowUsage: Story = {
4343
},
4444
};
4545

46+
exportconstIncludedAtLimit:Story={
47+
args:{
48+
usage:25000,
49+
included:30500,
50+
limit:30500,
51+
},
52+
};
53+
4654
exportconstDisabled:Story={
4755
args:{
56+
enabled:false,
4857
usage:Number.NaN,
4958
included:Number.NaN,
5059
limit:Number.NaN,

‎site/src/pages/DeploymentSettingsPage/LicensesSettingsPage/ManagedAgentsConsumption.tsx‎

Lines changed: 25 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -34,11 +34,11 @@ export const ManagedAgentsConsumption: FC<ManagedAgentsConsumptionProps> = ({
3434
<StackalignItems="center"spacing={1}>
3535
<StackalignItems="center"spacing={0.5}>
3636
<spancss={styles.disabledTitle}>
37-
Managed AIAgent Feature Disabled
37+
Managed AIAgents Disabled
3838
</span>
3939
<spancss={styles.disabledDescription}>
40-
The managedAIagent feature isnot included in your current
41-
license.Contact{" "}
40+
ManagedAIagents arenot included in your current license.
41+
Contact{" "}
4242
<MuiLinkhref="mailto:sales@coder.com">sales</MuiLink> to upgrade
4343
your license and unlock this feature.
4444
</span>
@@ -70,7 +70,7 @@ export const ManagedAgentsConsumption: FC<ManagedAgentsConsumptionProps> = ({
7070
`}
7171
>
7272
<ChevronRightIcon/>
73-
How we calculate managedagent consumption
73+
How we calculate managedagents consumption
7474
</Button>
7575
</CollapsibleTrigger>
7676
</header>
@@ -83,8 +83,8 @@ export const ManagedAgentsConsumption: FC<ManagedAgentsConsumptionProps> = ({
8383
`}
8484
>
8585
<p>
86-
Managed agents are counted based on the amount ofstarted
87-
workspaces with an AI agent.
86+
Managed agents are counted based on the amount ofsuccessfully
87+
startedworkspaces with an AI agent.
8888
</p>
8989
<ul>
9090
<liclassName="flex items-center gap-2">
@@ -108,7 +108,7 @@ export const ManagedAgentsConsumption: FC<ManagedAgentsConsumptionProps> = ({
108108
>
109109
<divclassName="w-full border-b-1 border-t-1 border-dashed border-content-disabled"/>
110110
</div>
111-
Total limit after whichthe featurewill bedisabled.
111+
Total limit after whichfurther AI workspace buildswill beblocked.
112112
</li>
113113
</ul>
114114
</CollapsibleContent>
@@ -138,7 +138,7 @@ export const ManagedAgentsConsumption: FC<ManagedAgentsConsumptionProps> = ({
138138
/>
139139
</div>
140140

141-
<divclassName="relative flex justify-between mt-4 text-sm">
141+
<divclassName="relativehidden lg:flex justify-between mt-4 text-sm">
142142
<divclassName="flex flex-col items-start">
143143
<spanclassName="text-content-secondary">Actual:</span>
144144
<spanclassName="font-medium">{usage.toLocaleString()}</span>
@@ -159,6 +159,23 @@ export const ManagedAgentsConsumption: FC<ManagedAgentsConsumptionProps> = ({
159159
<spanclassName="font-medium">{limit.toLocaleString()}</span>
160160
</div>
161161
</div>
162+
163+
<divclassName="flex lg:hidden flex-col gap-3 mt-4 text-sm">
164+
<divclassName="flex justify-between">
165+
<divclassName="flex flex-col items-start">
166+
<spanclassName="text-content-secondary">Actual:</span>
167+
<spanclassName="font-medium">{usage.toLocaleString()}</span>
168+
</div>
169+
<divclassName="flex flex-col items-center">
170+
<spanclassName="text-content-secondary">Included:</span>
171+
<spanclassName="font-medium">{included.toLocaleString()}</span>
172+
</div>
173+
<divclassName="flex flex-col items-end">
174+
<spanclassName="text-content-secondary">Limit:</span>
175+
<spanclassName="font-medium">{limit.toLocaleString()}</span>
176+
</div>
177+
</div>
178+
</div>
162179
</div>
163180
</section>
164181
);

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp