Skip to content

Commit

Permalink
feat: add link to status page
Browse files Browse the repository at this point in the history
Co-authored-by: steveoh <sgourley@utah.gov>
  • Loading branch information
stdavis and steveoh committed Nov 9, 2021
1 parent 936b8b2 commit acee7ab
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ app.on('activate', () => {

app.on('web-contents-created', (_, contents) => {
const isSafeForExternalOpen = (urlString) => {
const safeHosts = ['github.com', 'api.mapserv.utah.gov', 'developer.mapserv.utah.gov'];
const safeHosts = ['github.com', 'api.mapserv.utah.gov', 'developer.mapserv.utah.gov', 'agrc-status.netlify.app'];

try {
const url = new URL(urlString);
Expand Down
12 changes: 11 additions & 1 deletion src/pages/Error.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,17 @@ export default function Error({ error, children }) {
<h2 className="text-indigo-600">This is a little embarrassing...</h2>
<p>
We are really sorry. There was an error in the application that caused it to crash. The best way to make this
not happen again for you or anyone else is to report the issue to us. It should only take a few moments.
not happen again for you or anyone else is to report the issue to us. It should only take a few moments. But
first check our{' '}
<a
className="text-yellow-500 hover:text-yellow-300"
href="https://agrc-status.netlify.app"
target="_blank"
rel="noopener noreferrer"
>
status page
</a>{' '}
to see if it is already being worked on.
</p>
<h2 className="mb-8 text-center">Report by</h2>
<section className="grid grid-cols-2 gap-4 mb-8 text-center">
Expand Down

0 comments on commit acee7ab

Please sign in to comment.