Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 45f7d77

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

File tree

2 files changed

+9
-9
lines changed

2 files changed

+9
-9
lines changed

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

+8-8
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

+1-1
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 (e instanceof RangeError) {
470470
return Language.errorTtlMax;

0 commit comments

Comments
 (0)