diff --git a/src/components/CIAnalytics.tsx b/src/components/CIAnalytics.tsx index 80894dcf2..5eff43d64 100644 --- a/src/components/CIAnalytics.tsx +++ b/src/components/CIAnalytics.tsx @@ -103,6 +103,8 @@ export default function CIAnalytics() { : "Rate limited" : "Refresh"; + const hasNoCIData = !!data && data.totalRuns === 0; + return (
@@ -163,6 +165,27 @@ export default function CIAnalytics() { )}
+ ) : hasNoCIData ? ( +
+
⚙️
+ +

+ No CI runs detected +

+ +

+ Set up GitHub Actions to see workflow and build analytics here. +

+ + + Learn GitHub Actions + +
) : data ? (
@@ -180,7 +203,7 @@ export default function CIAnalytics() {
))}
- +

Flakiest workflow diff --git a/src/components/DiscussionsWidget.tsx b/src/components/DiscussionsWidget.tsx index daf2905ed..ba8be0d61 100644 --- a/src/components/DiscussionsWidget.tsx +++ b/src/components/DiscussionsWidget.tsx @@ -52,6 +52,12 @@ export default function DiscussionsWidget() { ] : []; + const hasNoDiscussionData = + !!data && + data.discussionsStarted === 0 && + data.commentsGiven === 0 && + data.markedAsAnswer === 0; + return (

@@ -78,6 +84,27 @@ export default function DiscussionsWidget() { Try again

+ ) : hasNoDiscussionData ? ( +
+
💬
+ +

+ No discussion activity yet +

+ +

+ Participate in GitHub Discussions to see your activity metrics here. +

+ + + Explore Discussions + +
) : (
{stats.map((stat) => ( diff --git a/src/components/TopRepos.tsx b/src/components/TopRepos.tsx index 051e8f397..cd3605976 100644 --- a/src/components/TopRepos.tsx +++ b/src/components/TopRepos.tsx @@ -456,9 +456,29 @@ export default function TopRepos() {
) : repos.length === 0 ? ( -

No commits in the last {days} days.

+
+
📦
+ +

+ No repositories found +

+ +

+ Push your first commit on GitHub to get started and see repository activity here. +

+ + + Create Repository + +
) : ( <> +