Show git error state when debugging
This commit is contained in:
parent
de8bce1bee
commit
7d2d7b49cb
@ -123,8 +123,8 @@ export default function AdminAppInsightsClient({
|
|||||||
<>
|
<>
|
||||||
{(codeMeta || debug) && <>
|
{(codeMeta || debug) && <>
|
||||||
<ScoreCard title="Source code">
|
<ScoreCard title="Source code">
|
||||||
{codeMeta?.didError
|
{(codeMeta?.didError || debug) &&
|
||||||
? <ScoreCardRow
|
<ScoreCardRow
|
||||||
icon={<IoSyncCircle
|
icon={<IoSyncCircle
|
||||||
size={18}
|
size={18}
|
||||||
className={WARNING_TEXT_COLOR}
|
className={WARNING_TEXT_COLOR}
|
||||||
@ -136,51 +136,49 @@ export default function AdminAppInsightsClient({
|
|||||||
classNameTrigger="translate-y-[4.5px] ml-2 h-3"
|
classNameTrigger="translate-y-[4.5px] ml-2 h-3"
|
||||||
/>
|
/>
|
||||||
</>}
|
</>}
|
||||||
/>
|
/>}
|
||||||
: <>
|
{((!codeMeta?.didError && noFork) || debug) &&
|
||||||
{(noFork || debug) &&
|
<ScoreCardRow
|
||||||
<ScoreCardRow
|
icon={<FaCircleInfo
|
||||||
icon={<FaCircleInfo
|
size={15}
|
||||||
size={15}
|
className="text-blue-500 translate-y-[1px]"
|
||||||
className="text-blue-500 translate-y-[1px]"
|
|
||||||
/>}
|
|
||||||
content="This template is not forked"
|
|
||||||
expandContent={<>
|
|
||||||
<AdminLink href={TEMPLATE_REPO_URL_FORK}>
|
|
||||||
Fork original template
|
|
||||||
</AdminLink>
|
|
||||||
{' '}
|
|
||||||
to receive the latest fixes and features.
|
|
||||||
{' '}
|
|
||||||
Additional instructions in
|
|
||||||
{' '}
|
|
||||||
{readmeAnchor('receiving-updates')}.
|
|
||||||
</>}
|
|
||||||
/>}
|
|
||||||
{(forkBehind || debug) && <ScoreCardRow
|
|
||||||
icon={<IoSyncCircle
|
|
||||||
size={18}
|
|
||||||
className="text-blue-500"
|
|
||||||
/>}
|
|
||||||
content={<>
|
|
||||||
This fork is
|
|
||||||
{' '}
|
|
||||||
{renderHighlightText(
|
|
||||||
pluralize(codeMeta?.behindBy ?? DEBUG_BEHIND_BY, 'commit'),
|
|
||||||
'blue',
|
|
||||||
)}
|
|
||||||
{' '}
|
|
||||||
behind
|
|
||||||
</>}
|
|
||||||
expandContent={<>
|
|
||||||
<AdminLink href={codeMeta?.urlRepo ?? ''}>
|
|
||||||
Sync your fork
|
|
||||||
</AdminLink>
|
|
||||||
{' '}
|
|
||||||
to receive the latest fixes and features.
|
|
||||||
</>}
|
|
||||||
/>}
|
/>}
|
||||||
|
content="This template is not forked"
|
||||||
|
expandContent={<>
|
||||||
|
<AdminLink href={TEMPLATE_REPO_URL_FORK}>
|
||||||
|
Fork original template
|
||||||
|
</AdminLink>
|
||||||
|
{' '}
|
||||||
|
to receive the latest fixes and features.
|
||||||
|
{' '}
|
||||||
|
Additional instructions in
|
||||||
|
{' '}
|
||||||
|
{readmeAnchor('receiving-updates')}.
|
||||||
|
</>}
|
||||||
|
/>}
|
||||||
|
{((!codeMeta?.didError && forkBehind) || debug) && <ScoreCardRow
|
||||||
|
icon={<IoSyncCircle
|
||||||
|
size={18}
|
||||||
|
className="text-blue-500"
|
||||||
|
/>}
|
||||||
|
content={<>
|
||||||
|
This fork is
|
||||||
|
{' '}
|
||||||
|
{renderHighlightText(
|
||||||
|
pluralize(codeMeta?.behindBy ?? DEBUG_BEHIND_BY, 'commit'),
|
||||||
|
'blue',
|
||||||
|
)}
|
||||||
|
{' '}
|
||||||
|
behind
|
||||||
</>}
|
</>}
|
||||||
|
expandContent={<>
|
||||||
|
<AdminLink href={codeMeta?.urlRepo ?? ''}>
|
||||||
|
Sync your fork
|
||||||
|
</AdminLink>
|
||||||
|
{' '}
|
||||||
|
to receive the latest fixes and features.
|
||||||
|
</>}
|
||||||
|
/>}
|
||||||
<ScoreCardRow
|
<ScoreCardRow
|
||||||
icon={<BiLogoGithub size={17} />}
|
icon={<BiLogoGithub size={17} />}
|
||||||
content={<div
|
content={<div
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user