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

Commit45f7d77

Browse files
fix(site): remove hard-coded activity bump label (#15583)
Closes#15536.The setting description is already dynamically set correctly, and Idon't believe it warrants repeating.![image](https://github.com/user-attachments/assets/467b2ef3-468a-4634-819f-98f36c86b5ab)
1 parente3082f1 commit45f7d77

File tree

2 files changed

+9
-9
lines changed

2 files changed

+9
-9
lines changed

‎site/src/pages/WorkspaceSettingsPage/WorkspaceSchedulePage/WorkspaceScheduleForm.test.tsx‎

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -203,42 +203,42 @@ describe("ttlShutdownAt", () => {
203203
[
204204
"One hour --> helper text shows shutdown after 1 hour",
205205
1,
206-
"Your workspace will shut down 1 hour after its next start. We delay shutdown by 1 hour whenever we detect activity.",
206+
"Your workspace will shut down 1 hour after its next start.",
207207
],
208208
[
209209
"Two hours --> helper text shows shutdown after 2 hours",
210210
2,
211-
"Your workspace will shut down 2 hours after its next start. We delay shutdown by 1 hour whenever we detect activity.",
211+
"Your workspace will shut down 2 hours after its next start.",
212212
],
213213
[
214214
"24 hours --> helper text shows shutdown after 1 day",
215215
24,
216-
"Your workspace will shut down 1 day after its next start. We delay shutdown by 1 hour whenever we detect activity.",
216+
"Your workspace will shut down 1 day after its next start.",
217217
],
218218
[
219219
"48 hours --> helper text shows shutdown after 2 days",
220220
48,
221-
"Your workspace will shut down 2 days after its next start. We delay shutdown by 1 hour whenever we detect activity.",
221+
"Your workspace will shut down 2 days after its next start.",
222222
],
223223
[
224224
"1.2 hours --> helper text shows shutdown after 1 hour and 12 minutes",
225225
1.2,
226-
"Your workspace will shut down 1 hour and 12 minutes after its next start. We delay shutdown by 1 hour whenever we detect activity.",
226+
"Your workspace will shut down 1 hour and 12 minutes after its next start.",
227227
],
228228
[
229229
"24.2 hours --> helper text shows shutdown after 1 day and 12 minutes",
230230
24.2,
231-
"Your workspace will shut down 1 day and 12 minutes after its next start. We delay shutdown by 1 hour whenever we detect activity.",
231+
"Your workspace will shut down 1 day and 12 minutes after its next start.",
232232
],
233233
[
234234
"0.2 hours --> helper text shows shutdown after 12 minutes",
235235
0.2,
236-
"Your workspace will shut down 12 minutes after its next start. We delay shutdown by 1 hour whenever we detect activity.",
236+
"Your workspace will shut down 12 minutes after its next start.",
237237
],
238238
[
239239
"48.258 hours --> helper text shows shutdown after 2 days and 15 minutes and 28 seconds",
240240
48.258,
241-
"Your workspace will shut down 2 days and 15 minutes and 28 seconds after its next start. We delay shutdown by 1 hour whenever we detect activity.",
241+
"Your workspace will shut down 2 days and 15 minutes and 28 seconds after its next start.",
242242
],
243243
])("%p",(_,ttlHours,expected)=>{
244244
expect(ttlShutdownAt(ttlHours)).toEqual(expected);

‎site/src/pages/WorkspaceSettingsPage/WorkspaceSchedulePage/WorkspaceScheduleForm.tsx‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -464,7 +464,7 @@ export const ttlShutdownAt = (formTTL: number): string => {
464464
return`Your workspace will shut down${formatDuration(
465465
intervalToDuration({start:0,end:formTTL*60*60*1000}),
466466
{delimiter:" and "},
467-
)} after its next start. We delay shutdown by 1 hour whenever we detect activity.`;
467+
)} after its next start.`;
468468
}catch(e){
469469
if(einstanceofRangeError){
470470
returnLanguage.errorTtlMax;

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp