Skip to content

Commit 63abaff

Browse files
committed
[dashboard] add notice for stable back and change latest desc
1 parent d4bc3fd commit 63abaff

File tree

2 files changed

+15
-2
lines changed

2 files changed

+15
-2
lines changed

components/dashboard/src/start/StartPage.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,7 @@ export function StartPage(props: StartPageProps) {
110110
{props.children}
111111
{props.showLatestIdeWarning && (
112112
<Alert type="warning" className="mt-4 w-96">
113-
You are using the latest release (unstable) for the editor.{" "}
113+
This workspace is configured with the latest release (unstable) for the editor.{" "}
114114
<a className="gp-link" target="_blank" href={gitpodHostUrl.asPreferences().toString()}>
115115
Change Preferences
116116
</a>

components/dashboard/src/start/StartWorkspace.tsx

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -391,6 +391,7 @@ export default class StartWorkspace extends React.Component<StartWorkspaceProps,
391391
let title = undefined;
392392
let statusMessage = !!error ? undefined : <p className="text-base text-gray-400">Preparing workspace …</p>;
393393
const contextURL = ContextURL.getNormalizedURL(this.state.workspace)?.toString();
394+
const useLatest = !!this.state.workspaceInstance?.configuration?.ideConfig?.useLatest;
394395

395396
switch (this.state?.workspaceInstance?.status.phase) {
396397
// unknown indicates an issue within the system in that it cannot determine the actual phase of
@@ -524,6 +525,19 @@ export default class StartWorkspace extends React.Component<StartWorkspaceProps,
524525
{openLinkLabel}
525526
</button>
526527
</div>
528+
{!useLatest && (
529+
<div className="text-sm text-gray-400 dark:text-gray-500 mt-5">
530+
These IDE options are based on{" "}
531+
<a
532+
className="gp-link"
533+
href={gitpodHostUrl.asPreferences().toString()}
534+
target="_parent"
535+
>
536+
your user preferences
537+
</a>
538+
.
539+
</div>
540+
)}
527541
{this.state.isSSHModalVisible === true && this.state.ownerToken && (
528542
<ConnectToSSHModal
529543
workspaceId={this.props.workspaceId}
@@ -626,7 +640,6 @@ export default class StartWorkspace extends React.Component<StartWorkspaceProps,
626640
);
627641
break;
628642
}
629-
const useLatest = !!this.state.workspaceInstance?.configuration?.ideConfig?.useLatest;
630643
return (
631644
<StartPage phase={phase} error={error} title={title} showLatestIdeWarning={useLatest}>
632645
{statusMessage}

0 commit comments

Comments
 (0)