-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Before this patch, if the Renovate CronJob could not be found, we would return a 500 Internal Server Error and the UI would look broken. Now, we return a 404 Not Found, log a warning, and let the frontend show an error message component. The info cards are updated to properly handle this case.
- Loading branch information
Showing
5 changed files
with
52 additions
and
28 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,13 @@ | ||
import { FunctionComponent, PropsWithChildren } from 'react' | ||
import { ColoredSkeleton } from './ColoredSkeleton.js' | ||
import { Card } from './Card.js' | ||
|
||
export const InfoCard: FunctionComponent<PropsWithChildren<{ | ||
title?: string | ||
title: string | ||
}>> = (props) => { | ||
return ( | ||
<Card> | ||
<div className='text-sm text-gray-200'>{props.title ?? <ColoredSkeleton />}</div> | ||
<div className='mt-2 text-white-900 font-semibold'>{props.children ?? <ColoredSkeleton />}</div> | ||
<div className='text-sm text-gray-200'>{props.title}</div> | ||
<div className='mt-2 text-white-900 font-semibold'>{props.children}</div> | ||
</Card> | ||
) | ||
} |
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