From b578af8e3330859d685435543372c7a514870964 Mon Sep 17 00:00:00 2001 From: DESIREDDY MOHITH REDDY Date: Sun, 5 Jul 2026 21:36:10 +0530 Subject: [PATCH 1/4] feat: add reusable empty state components for dashboard widgets (#2646) From e0f40da6e4f46cfd4a98a626c32167f348f56042 Mon Sep 17 00:00:00 2001 From: DESIREDDY MOHITH REDDY Date: Mon, 6 Jul 2026 09:29:17 +0530 Subject: [PATCH 2/4] feat: add reusable empty state components across dashboard widgets (#2646) --- src/app/leaderboard/page.tsx | 4 ++-- src/components/GoalTracker.tsx | 2 +- src/components/PRMetrics.tsx | 9 +++++++++ src/components/TopRepos.tsx | 28 ++++++++-------------------- 4 files changed, 20 insertions(+), 23 deletions(-) diff --git a/src/app/leaderboard/page.tsx b/src/app/leaderboard/page.tsx index b78b24560..10a575307 100644 --- a/src/app/leaderboard/page.tsx +++ b/src/app/leaderboard/page.tsx @@ -104,14 +104,14 @@ async function LeaderboardTable({ title={ hasFilters ? "No leaderboard results for these filters" - : "No public profiles yet" + : "No leaderboard data available" } description={ hasFilters ? "Try a broader language or time filter, or clear filters to view the full leaderboard." : "No public profiles yet - be the first to enable yours in Settings!" } - actionLabel="Go to Settings" + actionLabel="Sync Dashboard" actionHref="/dashboard/settings" /> ) : ( diff --git a/src/components/GoalTracker.tsx b/src/components/GoalTracker.tsx index 387821320..4050b2e1c 100644 --- a/src/components/GoalTracker.tsx +++ b/src/components/GoalTracker.tsx @@ -524,7 +524,7 @@ export default function GoalTracker() {
+ ) : metrics && metrics.total === 0 && (!metrics.gitlab || metrics.gitlab.total === 0) ? ( + ) : activeTab === "authored" ? (
{/* GitHub Stats */} diff --git a/src/components/TopRepos.tsx b/src/components/TopRepos.tsx index baacc0268..0e602228a 100644 --- a/src/components/TopRepos.tsx +++ b/src/components/TopRepos.tsx @@ -7,6 +7,7 @@ import type { RepoHealthScore } from "@/types/repo-health"; import RepoHealthPanel from "@/components/RepoHealthPanel"; import RepoActivityDrawer from "@/components/RepoActivityDrawer"; import { Search, Bookmark } from "lucide-react"; +import EmptyState from "@/components/EmptyState"; interface RepoItemProps { repo: Repo; @@ -537,26 +538,13 @@ export default function TopRepos() {
) : repos.length === 0 ? ( -
-
📦
- -

- No repositories found -

- -

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

- - - Create Repository - -
+ ) : ( <> From 9b0410b2fdc7ad85fc4115e22072f0b04e4e563e Mon Sep 17 00:00:00 2001 From: DESIREDDY MOHITH REDDY Date: Mon, 13 Jul 2026 08:23:04 +0530 Subject: [PATCH 3/4] fix(ci): revert pnpm/action-setup version to v9 to fix self-installer error --- .github/workflows/automated-tests.yml | 2 +- .github/workflows/ci.yml | 10 +++++----- .github/workflows/e2e.yml | 2 +- .github/workflows/visual-regression.yml | 2 +- 4 files changed, 8 insertions(+), 8 deletions(-) diff --git a/.github/workflows/automated-tests.yml b/.github/workflows/automated-tests.yml index 22438c06d..3c57a0a63 100644 --- a/.github/workflows/automated-tests.yml +++ b/.github/workflows/automated-tests.yml @@ -17,7 +17,7 @@ jobs: - uses: pnpm/action-setup@v6 with: - version: 11 + version: 9 - name: Initialize Node.js Environment uses: actions/setup-node@v6 diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 428bb6922..76b9aa9e0 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -21,7 +21,7 @@ jobs: - uses: pnpm/action-setup@v6 with: - version: 11 + version: 9 - uses: actions/setup-node@v6 with: node-version: 22 @@ -41,7 +41,7 @@ jobs: - uses: pnpm/action-setup@v6 with: - version: 11 + version: 9 - uses: actions/setup-node@v6 with: node-version: 22 @@ -64,7 +64,7 @@ jobs: - uses: pnpm/action-setup@v6 with: - version: 11 + version: 9 - uses: actions/setup-node@v6 with: node-version: 22 @@ -110,7 +110,7 @@ jobs: - uses: pnpm/action-setup@v6 with: - version: 11 + version: 9 - uses: actions/setup-node@v6 with: node-version: 22 @@ -130,7 +130,7 @@ jobs: - uses: pnpm/action-setup@v6 with: - version: 11 + version: 9 - uses: actions/setup-node@v6 with: node-version: 22 diff --git a/.github/workflows/e2e.yml b/.github/workflows/e2e.yml index 99da69366..d769a30f7 100644 --- a/.github/workflows/e2e.yml +++ b/.github/workflows/e2e.yml @@ -30,7 +30,7 @@ jobs: - uses: pnpm/action-setup@v6 with: - version: 11 + version: 9 - uses: actions/setup-node@v6 with: node-version: 22 diff --git a/.github/workflows/visual-regression.yml b/.github/workflows/visual-regression.yml index 401300788..e191d3dbe 100644 --- a/.github/workflows/visual-regression.yml +++ b/.github/workflows/visual-regression.yml @@ -44,7 +44,7 @@ jobs: - uses: pnpm/action-setup@v6 with: - version: 11 + version: 9 - name: Setup Node uses: actions/setup-node@v6 From 8294146b7065ff20e5489bff87e72ee41c2b8673 Mon Sep 17 00:00:00 2001 From: DESIREDDY MOHITH REDDY Date: Mon, 13 Jul 2026 08:38:42 +0530 Subject: [PATCH 4/4] fix(ci): remove tree-sitter from onlyBuiltDependencies to bypass native build errors --- package.json | 3 --- 1 file changed, 3 deletions(-) diff --git a/package.json b/package.json index 7a4549cba..845a81609 100644 --- a/package.json +++ b/package.json @@ -118,13 +118,10 @@ "@scarf/scarf", "@sentry/cli", "@swc/core", - "@tree-sitter-grammars/tree-sitter-yaml", "core-js-pure", "core-js", "esbuild", "sharp", - "tree-sitter-json", - "tree-sitter", "unrs-resolver" ] }