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

Commitc7f51a9

Browse files
authored
chore(site): update time until shutdown tooltip language (#11964)
1 parentd2e6405 commitc7f51a9

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
@@ -202,42 +202,42 @@ describe("ttlShutdownAt", () => {
202202
[
203203
"One hour --> helper text shows shutdown after 1 hour",
204204
1,
205-
`Your workspace will shut down 1 hour after its next start. We delay shutdown bythis time whenever we detect activity.`,
205+
`Your workspace will shut down 1 hour after its next start. We delay shutdown by1 hour whenever we detect activity.`,
206206
],
207207
[
208208
"Two hours --> helper text shows shutdown after 2 hours",
209209
2,
210-
`Your workspace will shut down 2 hours after its next start. We delay shutdown bythis time whenever we detect activity.`,
210+
`Your workspace will shut down 2 hours after its next start. We delay shutdown by1 hour whenever we detect activity.`,
211211
],
212212
[
213213
"24 hours --> helper text shows shutdown after 1 day",
214214
24,
215-
`Your workspace will shut down 1 day after its next start. We delay shutdown bythis time whenever we detect activity.`,
215+
`Your workspace will shut down 1 day after its next start. We delay shutdown by1 hour whenever we detect activity.`,
216216
],
217217
[
218218
"48 hours --> helper text shows shutdown after 2 days",
219219
48,
220-
`Your workspace will shut down 2 days after its next start. We delay shutdown bythis time whenever we detect activity.`,
220+
`Your workspace will shut down 2 days after its next start. We delay shutdown by1 hour whenever we detect activity.`,
221221
],
222222
[
223223
"1.2 hours --> helper text shows shutdown after 1 hour and 12 minutes",
224224
1.2,
225-
`Your workspace will shut down 1 hour and 12 minutes after its next start. We delay shutdown bythis time whenever we detect activity.`,
225+
`Your workspace will shut down 1 hour and 12 minutes after its next start. We delay shutdown by1 hour whenever we detect activity.`,
226226
],
227227
[
228228
"24.2 hours --> helper text shows shutdown after 1 day and 12 minutes",
229229
24.2,
230-
`Your workspace will shut down 1 day and 12 minutes after its next start. We delay shutdown bythis time whenever we detect activity.`,
230+
`Your workspace will shut down 1 day and 12 minutes after its next start. We delay shutdown by1 hour whenever we detect activity.`,
231231
],
232232
[
233233
"0.2 hours --> helper text shows shutdown after 12 minutes",
234234
0.2,
235-
`Your workspace will shut down 12 minutes after its next start. We delay shutdown bythis time whenever we detect activity.`,
235+
`Your workspace will shut down 12 minutes after its next start. We delay shutdown by1 hour whenever we detect activity.`,
236236
],
237237
[
238238
"48.258 hours --> helper text shows shutdown after 2 days and 15 minutes and 28 seconds",
239239
48.258,
240-
`Your workspace will shut down 2 days and 15 minutes and 28 seconds after its next start. We delay shutdown bythis time whenever we detect activity.`,
240+
`Your workspace will shut down 2 days and 15 minutes and 28 seconds after its next start. We delay shutdown by1 hour whenever we detect activity.`,
241241
],
242242
])("%p",(_,ttlHours,expected)=>{
243243
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
@@ -458,6 +458,6 @@ export const ttlShutdownAt = (formTTL: number): string => {
458458
return`Your workspace will shut down${formatDuration(
459459
intervalToDuration({start:0,end:formTTL*60*60*1000}),
460460
{delimiter:" and "},
461-
)} after its next start. We delay shutdown bythis time whenever we detect activity.`;
461+
)} after its next start. We delay shutdown by1 hour whenever we detect activity.`;
462462
}
463463
};

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp