-
-
Notifications
You must be signed in to change notification settings - Fork 18
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add global error handling page and imrpove SFDC classic styling
- Loading branch information
Showing
7 changed files
with
67 additions
and
137 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
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
29 changes: 29 additions & 0 deletions
29
apps/jetstream-web-extension/src/core/GlobalExtensionError.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,29 @@ | ||
import { FeedbackLink, Grid } from '@jetstream/ui'; | ||
|
||
export const GlobalExtensionError = ({ message }: { message: string }) => { | ||
return ( | ||
<div className="slds-card slds-box"> | ||
<p>There was a problem connecting with Salesforce. Make sure you are logged in to Salesforce and try again.</p> | ||
{message && <p className="slds-m-top_small slds-text-color_error">{message}</p>} | ||
<hr className="slds-m-vertical_medium" /> | ||
<Grid vertical> | ||
<div> | ||
<ol className="slds-list_ordered"> | ||
<li> | ||
Bug reports and feature requests - <FeedbackLink type="GH_ISSUE" /> | ||
</li> | ||
<li className="slds-m-top_x-small"> | ||
<FeedbackLink type="GH_DISCUSSION" /> | ||
</li> | ||
<li className="slds-m-top_x-small"> | ||
Ask a question in the <strong>#vendors-jetstream</strong> Discord channel <FeedbackLink type="DISCORD" /> | ||
</li> | ||
<li className="slds-m-top_x-small"> | ||
You can always email us at <FeedbackLink type="EMAIL" /> | ||
</li> | ||
</ol> | ||
</div> | ||
</Grid> | ||
</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
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