-
Notifications
You must be signed in to change notification settings - Fork 326
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix reloading when the saved project uses the Local Backend (#9627)
- Fix enso-org/cloud-v2#1156 - Fix reloading when the saved project uses the Local Backend # Important Notes To reproduce the error: - Open a project in the Local Backend - Close and reopen the IDE, or refresh the IDE.
- Loading branch information
1 parent
c182b30
commit 07793f5
Showing
9 changed files
with
191 additions
and
124 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
32 changes: 32 additions & 0 deletions
32
app/ide-desktop/lib/dashboard/src/pages/authentication/ErrorScreen.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
/** @file A loading screen, displayed while the user is logging in. */ | ||
import * as React from 'react' | ||
|
||
import * as textProvider from '#/providers/TextProvider' | ||
|
||
import * as aria from '#/components/aria' | ||
|
||
import * as errorModule from '#/utilities/error' | ||
|
||
// =================== | ||
// === ErrorScreen === | ||
// =================== | ||
|
||
/** Props for an {@link ErrorScreen}. */ | ||
export interface ErrorScreenProps { | ||
readonly error: unknown | ||
} | ||
|
||
/** A loading screen. */ | ||
export default function ErrorScreen(props: ErrorScreenProps) { | ||
const { error } = props | ||
const { getText } = textProvider.useText() | ||
return ( | ||
<div className="grid h-screen w-screen place-items-center text-primary"> | ||
<div className="flex flex-col items-center gap-status-page text-center text-base"> | ||
<aria.Text>{getText('appErroredMessage')}</aria.Text> | ||
<aria.Text>{getText('appErroredPrompt')}</aria.Text> | ||
<aria.Text className="text-delete">{errorModule.getMessageOrToString(error)}</aria.Text> | ||
</div> | ||
</div> | ||
) | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.