diff --git a/src/admin/AdminAppInsightsClient.tsx b/src/admin/AdminAppInsightsClient.tsx index 52fae8fa..2a440976 100644 --- a/src/admin/AdminAppInsightsClient.tsx +++ b/src/admin/AdminAppInsightsClient.tsx @@ -58,7 +58,6 @@ export default function AdminAppInsightsClient({ return (
} - > - This fork is 9 commits behind - + content="This fork is 9 commits behind" + additionalContent="This fork is 9 commits behind" + /> } - > - Consider enabling rate limiting to mitigate AI abuse - + icon={} + content="Consider enabling rate limiting to mitigate AI abuse" + // eslint-disable-next-line max-len + additionalContent="Consider enabling rate limiting to mitigate AI abuse" + /> } - > - Consider forking this repository to receive new features and fixes - + // eslint-disable-next-line max-len + content="Consider forking this repository to receive new features and fixes" + /> } - > - Enable AI text generation in the app configuration - + content="Enable AI text generation in the app configuration" + /> {renderTitle('Code Observability')} {(fork || debug) && diff --git a/src/components/ScoreCardRow.tsx b/src/components/ScoreCardRow.tsx index 716d4e47..744ef1a8 100644 --- a/src/components/ScoreCardRow.tsx +++ b/src/components/ScoreCardRow.tsx @@ -1,29 +1,42 @@ import { clsx } from 'clsx'; -import { ReactNode } from 'react'; +import { ReactNode, useState } from 'react'; +import { FaMinus, FaPlus } from 'react-icons/fa6'; export default function ScoreCardRow({ icon, - children, - details, + content, + additionalContent, }: { icon: ReactNode - children: ReactNode - details?: string + content: ReactNode + additionalContent?: ReactNode }) { + const [isExpanded, setIsExpanded] = useState(false); return (
-
+
{icon}
-
- {children} +
+
+ {content} +
+ {isExpanded && +
+ {additionalContent} +
}
- {details && - - {details} - } + {additionalContent && }
); }