Skip to content

Update timeouts layout in user preferences #16653

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Mar 6, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 9 additions & 5 deletions components/dashboard/src/user-settings/Preferences.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ export default function Preferences() {
</div>
</div>

<h3 className="mt-12">Inactivity Timeout </h3>
<h3 className="mt-12">Timeouts</h3>
<p className="text-base text-gray-500 dark:text-gray-400">
Workspaces will stop after a period of inactivity without any user input.
</p>
Expand All @@ -100,14 +100,17 @@ export default function Preferences() {

{!allowConfigureWorkspaceTimeout && (
<Alert type="message">
Upgrade organization <Link to="/billing">billing</Link> plan to use a custom inactivity
timeout.
Upgrade organization{" "}
<Link to="/billing" className="gp-link">
billing
</Link>{" "}
plan to use a custom inactivity timeout.
</Alert>
)}

{allowConfigureWorkspaceTimeout && (
<>
<span className="flex mt-2">
<span className="flex">
<input
type="text"
className="w-96 h-9"
Expand All @@ -126,7 +129,8 @@ export default function Preferences() {
</span>
<div className="mt-1">
<p className="text-gray-500 dark:text-gray-400">
Use minutes or hours, like <strong>30m</strong> or <strong>2h</strong>.
Use minutes or hours, like <span className="font-semibold">30m</span> or{" "}
<span className="font-semibold">2h</span>.
</p>
</div>
</>
Expand Down